2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
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.60'
576 PACKAGE_STRING
='emacs 23.0.60'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
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.60 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.60:";;
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 --disable-font-backend don
't compile 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-pop don't support POP
mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version
5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server
host
1352 --without-sound don
't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don
't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don
't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don
't compile with SVG image support
1362 --without-freetype don't use Freetype
for local font support
1363 --without-xft don
't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf
for OpenType font support
1365 --without-m17n-flt don
't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don
't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1371 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1373 --without-dbus don't compile with D-Bus support
1374 --without-makeinfo don
't require makeinfo for building manuals
1376 --with-pkg-config-prog=PATH
1377 Path to pkg-config for finding GTK and librsvg
1378 --with-x use the X Window System
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1389 XMKMF Path to xmkmf, Makefile generator for X Window System
1391 Use these variables to override the choices made by `configure' or to
help
1392 it to
find libraries and programs with nonstandard names
/locations.
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1401 test -d "$ac_dir" ||
continue
1405 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1407 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1412 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir
=$ac_pwd
1416 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir
=$ac_top_build_prefix
1421 .
) # We are building in place.
1423 ac_top_srcdir
=$ac_top_builddir_sub
1424 ac_abs_top_srcdir
=$ac_pwd ;;
1425 [\\/]* | ?
:[\\/]* ) # Absolute name.
1426 ac_srcdir
=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir
=$srcdir
1428 ac_abs_top_srcdir
=$srcdir ;;
1430 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1454 emacs configure
23.0.60
1455 generated by GNU Autoconf
2.61
1457 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1459 This configure
script is free software
; the Free Software Foundation
1460 gives unlimited permission to copy
, distribute and modify it.
1464 cat >config.log
<<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1468 It was created by emacs $as_me 23.0.60, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir
=.
1505 echo "PATH: $as_dir"
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1529 ac_must_keep_next
=false
1535 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1537 |
-silent |
--silent |
--silen |
--sile |
--sil)
1540 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1545 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true
; then
1547 ac_must_keep_next
=false
# Got value, back to normal.
1550 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1551 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1552 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1553 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 -* ) ac_must_keep_next
=true
;;
1561 ac_configure_args
="$ac_configure_args '$ac_arg'"
1566 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1567 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1585 # The following way of writing the cache mishandles newlines in values,
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1622 for ac_var in $ac_subst_vars
1624 eval ac_val=\$$ac_var
1626 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 echo "$ac_var='\''$ac_val'\''"
1632 if test -n "$ac_subst_files"; then
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1639 for ac_var
in $ac_subst_files
1641 eval ac_val
=\$
$ac_var
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 echo "$ac_var='\''$ac_val'\''"
1650 if test -s confdefs.h; then
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 for ac_signal
in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest
* confdefs.h
1676 # Predefined preprocessor variables.
1678 cat >>confdefs.h
<<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 cat >>confdefs.h
<<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 cat >>confdefs.h
<<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 cat >>confdefs.h
<<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 cat >>confdefs.h
<<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x
"$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE
; then
1708 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1710 set x
"$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1731 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1732 *) .
"./$cache_file";;
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1741 ac_header_list
="$ac_header_list sys/time.h"
1742 ac_header_list
="$ac_header_list unistd.h"
1743 ac_func_list
="$ac_func_list alarm"
1744 # Check that the precious variables saved in the cache have kept the same
1746 ac_cache_corrupted
=false
1747 for ac_var
in $ac_precious_vars; do
1748 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1749 eval ac_new_set
=\
$ac_env_${ac_var}_set
1750 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1751 eval ac_new_val
=\
$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted
=: ;;
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted
=: ;;
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1767 echo "$as_me: former value: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1769 echo "$as_me: current value: $ac_new_val" >&2;}
1770 ac_cache_corrupted
=:
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1776 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg
=$ac_var=$ac_new_val ;;
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1818 ac_cpp
='$CPP $CPPFLAGS'
1819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1824 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1828 test "$program_prefix" != NONE
&&
1829 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1830 # Use a double $ so make ignores it.
1831 test "$program_suffix" != NONE
&&
1832 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1833 # Double any \ or $. echo might interpret backslashes.
1834 # By default was `s,x,x', remove it if useless.
1835 cat <<\_ACEOF
>conftest.
sed
1836 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1838 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1842 lispdir
='${datadir}/emacs/${version}/lisp'
1843 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1844 '${datadir}/emacs/site-lisp'
1845 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1846 etcdir
='${datadir}/emacs/${version}/etc'
1847 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1848 docdir
='${datadir}/emacs/${version}/etc'
1849 gamedir
='${localstatedir}/games/emacs'
1856 # Check whether --with-pop was given.
1857 if test "${with_pop+set}" = set; then
1863 if test "$with_pop" = yes; then
1864 cat >>confdefs.h
<<\_ACEOF
1865 #define MAIL_USE_POP 1
1872 # Check whether --with-kerberos was given.
1873 if test "${with_kerberos+set}" = set; then
1874 withval
=$with_kerberos;
1879 if test "$with_kerberos" = yes; then
1880 cat >>confdefs.h
<<\_ACEOF
1888 # Check whether --with-kerberos5 was given.
1889 if test "${with_kerberos5+set}" = set; then
1890 withval
=$with_kerberos5;
1895 if test "${with_kerberos5}" = yes; then
1896 if test "${with_kerberos}" != yes; then
1898 cat >>confdefs.h
<<\_ACEOF
1904 cat >>confdefs.h
<<\_ACEOF
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval
=$with_hesiod;
1918 if test "$with_hesiod" = yes; then
1920 cat >>confdefs.h
<<\_ACEOF
1927 # Check whether --with-sound was given.
1928 if test "${with_sound+set}" = set; then
1929 withval
=$with_sound;
1936 # Check whether --with-sync-input was given.
1937 if test "${with_sync_input+set}" = set; then
1938 withval
=$with_sync_input;
1943 if test "$with_sync_input" = yes; then
1945 cat >>confdefs.h
<<\_ACEOF
1946 #define SYNC_INPUT 1
1952 # Check whether --with-x-toolkit was given.
1953 if test "${with_x_toolkit+set}" = set; then
1954 withval
=$with_x_toolkit; case "${withval}" in
1955 y | ye |
yes ) val
=gtk
;;
1957 l | lu | luc | luci | lucid
) val
=lucid
;;
1958 a |
at | ath | athe | athen | athena
) val
=athena
;;
1959 m | mo | mot | moti | motif
) val
=motif
;;
1960 g | gt | gtk
) val
=gtk
;;
1962 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1963 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1964 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1965 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1966 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1967 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1968 { (exit 1); exit 1; }; }
1977 # Check whether --with-xpm was given.
1978 if test "${with_xpm+set}" = set; then
1985 # Check whether --with-jpeg was given.
1986 if test "${with_jpeg+set}" = set; then
1993 # Check whether --with-tiff was given.
1994 if test "${with_tiff+set}" = set; then
2001 # Check whether --with-gif was given.
2002 if test "${with_gif+set}" = set; then
2009 # Check whether --with-png was given.
2010 if test "${with_png+set}" = set; then
2017 # Check whether --with-rsvg was given.
2018 if test "${with_rsvg+set}" = set; then
2026 # Check whether --with-freetype was given.
2027 if test "${with_freetype+set}" = set; then
2028 withval
=$with_freetype;
2034 # Check whether --with-xft was given.
2035 if test "${with_xft+set}" = set; then
2042 # Check whether --with-libotf was given.
2043 if test "${with_libotf+set}" = set; then
2044 withval
=$with_libotf;
2050 # Check whether --with-m17n-flt was given.
2051 if test "${with_m17n_flt+set}" = set; then
2052 withval
=$with_m17n_flt;
2059 # Check whether --with-toolkit-scroll-bars was given.
2060 if test "${with_toolkit_scroll_bars+set}" = set; then
2061 withval
=$with_toolkit_scroll_bars;
2063 with_toolkit_scroll_bars
=yes
2067 # Check whether --with-xaw3d was given.
2068 if test "${with_xaw3d+set}" = set; then
2069 withval
=$with_xaw3d;
2075 # Check whether --with-xim was given.
2076 if test "${with_xim+set}" = set; then
2083 # Check whether --with-carbon was given.
2084 if test "${with_carbon+set}" = set; then
2085 withval
=$with_carbon;
2092 # Check whether --with-gpm was given.
2093 if test "${with_gpm+set}" = set; then
2100 # Check whether --with-dbus was given.
2101 if test "${with_dbus+set}" = set; then
2108 ## For the times when you want to build Emacs but don't have
2109 ## a suitable makeinfo, and can live without the manuals.
2111 # Check whether --with-makeinfo was given.
2112 if test "${with_makeinfo+set}" = set; then
2113 withval
=$with_makeinfo;
2120 # Check whether --with-gtk was given.
2121 if test "${with_gtk+set}" = set; then
2122 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2123 specify a toolkit." >&5
2124 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&2;}
2126 { (exit 1); exit 1; }; }
2131 # Check whether --with-gcc was given.
2132 if test "${with_gcc+set}" = set; then
2133 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2134 variable to specify a compiler." >&5
2135 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-pkg-config-prog was given.
2143 if test "${with_pkg_config_prog+set}" = set; then
2144 withval
=$with_pkg_config_prog;
2147 if test "X${with_pkg_config_prog}" != X
; then
2148 if test "${with_pkg_config_prog}" != yes; then
2149 PKG_CONFIG
="${with_pkg_config_prog}"
2153 # Check whether --enable-carbon-app was given.
2154 if test "${enable_carbon_app+set}" = set; then
2155 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2159 ## Enabled by default.
2160 # Check whether --enable-font-backend was given.
2161 if test "${enable_font_backend+set}" = set; then
2162 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2164 USE_FONT_BACKEND
=yes
2168 # Check whether --enable-asserts was given.
2169 if test "${enable_asserts+set}" = set; then
2170 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2176 # Check whether --enable-maintainer-mode was given.
2177 if test "${enable_maintainer_mode+set}" = set; then
2178 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2180 USE_MAINTAINER_MODE
=no
2183 if test $USE_MAINTAINER_MODE = yes; then
2190 # Check whether --enable-locallisppath was given.
2191 if test "${enable_locallisppath+set}" = set; then
2192 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2194 elif test "${enableval}" != "yes"; then
2195 locallisppath
=${enableval}
2200 #### Make srcdir absolute, if it isn't already. It's important to
2201 #### avoid running the path through pwd unnecessarily, since pwd can
2202 #### give you automounter prefixes, which can go away. We do all this
2203 #### so Emacs can find its files when run uninstalled.
2204 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2209 ## We may be able to use the $PWD environment variable to make this
2210 ## absolute. But sometimes PWD is inaccurate.
2211 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2212 ## but that tested only for a well-formed and valid PWD,
2213 ## it did not object when PWD was well-formed and valid but just wrong.
2214 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2218 srcdir
="`(cd ${srcdir}; pwd)`"
2221 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2224 #### Check if the source directory already has a configured system in it.
2225 if test `pwd` != `(cd ${srcdir} && pwd)` \
2226 && test -f "${srcdir}/src/config.h" ; then
2227 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2228 as a build directory right now; it has been configured in its own
2229 right. To configure in another directory as well, you MUST
2230 use GNU make. If you do not have GNU make, then you must
2231 now do \`make distclean' in ${srcdir},
2232 and then run $0 again." >&5
2233 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2234 as a build directory right now; it has been configured in its own
2235 right. To configure in another directory as well, you MUST
2236 use GNU make. If you do not have GNU make, then you must
2237 now do \`make distclean' in ${srcdir},
2238 and then run $0 again." >&2;}
2241 #### Given the configuration name, set machfile and opsysfile to the
2242 #### names of the m/*.h and s/*.h files we should use.
2244 ### Canonicalize the configuration name.
2247 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2248 if test -f "$ac_dir/install-sh"; then
2250 ac_install_sh
="$ac_aux_dir/install-sh -c"
2252 elif test -f "$ac_dir/install.sh"; then
2254 ac_install_sh
="$ac_aux_dir/install.sh -c"
2256 elif test -f "$ac_dir/shtool"; then
2258 ac_install_sh
="$ac_aux_dir/shtool install -c"
2262 if test -z "$ac_aux_dir"; then
2263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2265 { (exit 1); exit 1; }; }
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277 # Make sure we can run config.sub.
2278 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2281 { (exit 1); exit 1; }; }
2283 { echo "$as_me:$LINENO: checking build system type" >&5
2284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2285 if test "${ac_cv_build+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_build_alias
=$build_alias
2289 test "x$ac_build_alias" = x
&&
2290 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2291 test "x$ac_build_alias" = x
&&
2292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2294 { (exit 1); exit 1; }; }
2295 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2302 echo "${ECHO_T}$ac_cv_build" >&6; }
2303 case $ac_cv_build in
2305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2306 echo "$as_me: error: invalid value of canonical build" >&2;}
2307 { (exit 1); exit 1; }; };;
2310 ac_save_IFS
=$IFS; IFS
='-'
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2320 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2323 { echo "$as_me:$LINENO: checking host system type" >&5
2324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2325 if test "${ac_cv_host+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test "x$host_alias" = x
; then
2329 ac_cv_host
=$ac_cv_build
2331 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2334 { (exit 1); exit 1; }; }
2338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2339 echo "${ECHO_T}$ac_cv_host" >&6; }
2342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2343 echo "$as_me: error: invalid value of canonical host" >&2;}
2344 { (exit 1); exit 1; }; };;
2347 ac_save_IFS
=$IFS; IFS
='-'
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2357 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2361 configuration
=${host_alias-${build_alias-$host}}
2365 ### If you add support for a new configuration, add code to this
2366 ### switch statement to recognize your configuration name and select
2367 ### the appropriate operating system and machine description files.
2369 ### You would hope that you could choose an m/*.h file pretty much
2370 ### based on the machine portion of the configuration name, and an s-
2371 ### file based on the operating system portion. However, it turns out
2372 ### that each m/*.h file is pretty manufacturer-specific - for
2373 ### example hp9000s300.h is a 68000 machine;
2374 ### mips.h, pmax.h are all MIPS
2375 ### machines. So we basically have to have a special case for each
2376 ### configuration name.
2378 ### As far as handling version numbers on operating systems is
2379 ### concerned, make sure things will fail in a fixable way. If
2380 ### /etc/MACHINES doesn't say anything about version numbers, be
2381 ### prepared to handle anything reasonably. If version numbers
2382 ### matter, be sure /etc/MACHINES says something about it.
2384 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2385 ### "System V Release 4"; he writes, "The old convention encouraged
2386 ### confusion between `system' and `release' levels'."
2388 machine
='' opsys
='' unported
=no
2389 case "${canonical}" in
2394 case "${canonical}" in
2395 alpha
*-*-freebsd*) machine
=alpha
;;
2396 arm
*-*-freebsd*) machine
=arm
;;
2397 ia64-
*-freebsd*) machine
=ia64
;;
2398 sparc64-
*-freebsd*) machine
=sparc
;;
2399 powerpc-
*-freebsd*) machine
=macppc
;;
2400 i
[3456]86-*-freebsd*) machine
=intel386
;;
2401 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2405 ## FreeBSD kernel + glibc based userland
2408 case "${canonical}" in
2409 alpha
*-*-kfreebsd*) machine
=alpha
;;
2410 ia64-
*-kfreebsd*) machine
=ia64
;;
2411 sparc64-
*-kfreebsd*) machine
=sparc
;;
2412 powerpc-
*-kfreebsd*) machine
=macppc
;;
2413 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2414 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2421 if test -f /usr
/lib
/crti.o
; then
2423 cat >>confdefs.h
<<\_ACEOF
2429 case "${canonical}" in
2430 alpha
*-*-netbsd*) machine
=alpha
;;
2431 i
[3456]86-*-netbsd*) machine
=intel386
;;
2433 # This is somewhat bogus.
2434 machine
=hp9000s300
;;
2435 mips-
*-netbsd*) machine
=pmax
;;
2436 mipsel-
*-netbsd*) machine
=pmax
;;
2437 mipseb-
*-netbsd*) machine
=pmax
;;
2438 powerpc-
*-netbsd*) machine
=macppc
;;
2439 sparc
*-*-netbsd*) machine
=sparc
;;
2440 vax-
*-netbsd*) machine
=vax
;;
2441 arm-
*-netbsd*) machine
=arm
;;
2442 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2443 hppa-
*-netbsd*) machine
=hp800
;;
2450 case "${canonical}" in
2451 alpha
*-*-openbsd*) machine
=alpha
;;
2452 arm-
*-openbsd*) machine
=arm
;;
2453 hppa-
*-openbsd*) machine
=hp9000s300
;;
2454 i386-
*-openbsd*) machine
=intel386
;;
2455 m68k-
*-openbsd*) machine
=hp9000s300
;;
2456 powerpc-
*-openbsd*) machine
=macppc
;;
2457 sparc
*-*-openbsd*) machine
=sparc
;;
2458 vax-
*-openbsd*) machine
=vax
;;
2459 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2466 case "${canonical}" in
2467 i
[3456]86-*-lynxos*) machine
=intel386
;;
2468 powerpc-
*-lynxos*) machine
=powerpc
;;
2475 case "${canonical}" in
2476 i
[345]86-*-bsdi*) machine
=intel386
;;
2477 sparc-
*-bsdi*) machine
=sparc
;;
2478 powerpc-
*-bsdi*) machine
=macppc
;;
2480 case "${canonical}" in
2481 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2482 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2483 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2484 *-*-bsdi3* ) opsys
=bsdos3
;;
2485 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2489 alpha
*-*-linux-gnu* )
2490 machine
=alpha opsys
=gnu-linux
2494 machine
=arm opsys
=gnu-linux
2497 ## Apple Darwin / Mac OS X
2499 case "${canonical}" in
2500 i
[3456]86-* ) machine
=intel386
;;
2501 powerpc-
* ) machine
=powermac
;;
2505 # Define CPP as follows to make autoconf work correctly.
2506 CPP
="${CC-cc} -E -no-cpp-precomp"
2507 # Use fink packages if available.
2508 if test -d /sw
/include
&& test -d /sw
/lib
; then
2509 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2510 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2511 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2516 i
[3456]86-cubix-sysv* )
2517 machine
=intel386 opsys
=usg5-3
2520 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2521 machine
=pmax opsys
=bsd4-2
2523 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2524 machine
=pmax opsys
=bsd4-3
2527 machine
=pmax opsys
=ultrix4-3
2529 ## HP 9000 series 200 or 300
2531 machine
=hp9000s300 opsys
=bsd4-3
2533 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2535 case "`uname -r`" in
2536 ## Someone's system reports A.B8.05 for this.
2537 ## I wonder what other possibilities there are.
2538 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2539 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2540 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2541 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2542 *) machine
=hp9000s300 opsys
=hpux
;;
2546 ## HP 9000 series 700 and 800, running HP/UX
2548 machine
=hp800 opsys
=hpux
2551 machine
=hp800 opsys
=hpux8
2553 hppa
*-hp-hpux9shr* )
2554 machine
=hp800 opsys
=hpux9shr
2557 machine
=hp800 opsys
=hpux9
2559 hppa
*-hp-hpux10.2
* )
2560 machine
=hp800 opsys
=hpux10-20
2563 machine
=hp800 opsys
=hpux10
2565 hppa
*-hp-hpux1[1-9]* )
2566 machine
=hp800 opsys
=hpux11
2567 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2570 hppa
*-*-linux-gnu* )
2571 machine
=hp800 opsys
=gnu-linux
2574 ## HP 9000 series 700 and 800, running HP/UX
2576 ## Cross-compilation? Nah!
2577 case "`uname -r`" in
2578 ## Someone's system reports A.B8.05 for this.
2579 ## I wonder what other possibilities there are.
2580 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2581 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2582 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2583 *) machine
=hp800 opsys
=hpux10
;;
2587 machine
=hp800 opsys
=nextstep
2592 machine
=ibm370aix opsys
=usg5-3
2595 machine
=ibms390 opsys
=gnu-linux
2597 s390x-
*-linux-gnu* )
2598 machine
=ibms390x opsys
=gnu-linux
2600 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2601 machine
=ibmrs6000 opsys
=aix3-1
2603 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2604 machine
=ibmrs6000 opsys
=aix3-2-5
2606 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2607 machine
=ibmrs6000 opsys
=aix4-1
2609 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2610 machine
=ibmrs6000 opsys
=aix4-2
2612 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2613 machine
=ibmrs6000 opsys
=aix4-2
2615 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2616 machine
=ibmrs6000 opsys
=aix4-2
2618 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2619 machine
=ibmrs6000 opsys
=aix4-2
2621 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2622 machine
=ibmrs6000 opsys
=aix4
2624 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2625 machine
=ibmrs6000 opsys
=aix4-1
2627 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2628 machine
=ibmrs6000 opsys
=aix3-2
2632 i
[3456]86-prime-sysv* )
2633 machine
=i386 opsys
=usg5-3
2636 ## ncr machine running svr4.3.
2637 i
[3456]86-ncr-sysv4.3
)
2638 machine
=ncr386 opsys
=usg5-4-3
2641 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2642 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2643 i
[3456]86-ncr-sysv* )
2644 machine
=ncr386 opsys
=usg5-4-2
2647 ## Macintosh PowerPC
2648 powerpc
*-*-linux-gnu* )
2649 machine
=macppc opsys
=gnu-linux
2652 ## Workstations sold by MIPS
2653 ## This is not necessarily all workstations using the MIPS processor -
2654 ## Irises are produced by SGI, and DECstations by DEC.
2657 machine
=mips opsys
=bsd4-3
2660 machine
=mips opsys
=usg5-2-2
2664 m68
*-next-* | m68k-
*-nextstep* )
2665 machine
=m68k opsys
=nextstep
2670 machine
=ews4800 opsys
=ux4800
2674 mips-siemens-sysv
* | mips-sni-sysv
*)
2675 machine
=mips-siemens opsys
=usg5-4
2676 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2677 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2680 ## Silicon Graphics machines
2683 machine
=iris4d opsys
=irix6-5
2684 # Without defining _LANGUAGE_C, things get masked out in the headers
2685 # so that, for instance, grepping for `free' in stdlib.h fails and
2686 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2687 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2688 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2692 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2693 machine
=sparc opsys
=gnu-linux
2696 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2697 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2698 | rs6000-
*-solaris2*)
2699 case "${canonical}" in
2700 i
[3456]86-*-* ) machine
=intel386
;;
2701 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2702 powerpcle
* ) machine
=powerpcle
;;
2703 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2704 sparc
* ) machine
=sparc
;;
2707 case "${canonical}" in
2708 *-sunos5.3
* |
*-solaris2.3
* )
2710 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2712 *-sunos5.4
* |
*-solaris2.4
* )
2714 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2717 *-sunos5.5
* |
*-solaris2.5
* )
2719 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2722 *-sunos5.6
* |
*-solaris2.6
* )
2724 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2727 *-sunos5* |
*-solaris* )
2729 emacs_check_sunpro_c
=yes
2730 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2734 ## Watch out for a compiler that we know will not work.
2735 case "${canonical}" in
2736 *-solaris* |
*-sunos5* )
2737 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2738 ## /usr/ucb/cc doesn't work;
2739 ## we should find some other compiler that does work.
2747 machine
=sparc opsys
=nextstep
2750 ## Tandem Integrity S2
2752 machine
=tandem-s2 opsys
=usg5-3
2758 case "${canonical}" in
2759 *-bsd4.1
* ) opsys
=bsd4-1
;;
2760 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2761 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2762 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2763 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2764 *-vms* ) opsys
=vms
;;
2771 machine
=ia64 opsys
=gnu-linux
2774 ## Intel 386 machines where we don't care about the manufacturer
2777 case "${canonical}" in
2778 *-cygwin ) opsys
=cygwin
;;
2779 *-darwin* ) opsys
=darwin
2780 CPP
="${CC-cc} -E -no-cpp-precomp"
2782 *-linux-gnu* ) opsys
=gnu-linux
;;
2783 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2784 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2785 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2786 *-386bsd* ) opsys
=386bsd
;;
2787 *-nextstep* ) opsys
=nextstep
;;
2788 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2792 ## m68k Linux-based GNU system
2794 machine
=m68k opsys
=gnu-linux
2797 ## Mips Linux-based GNU system
2798 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2799 machine
=mips opsys
=gnu-linux
2803 sparc-fujitsu-sysv4
* )
2804 machine
=sparc opsys
=uxpds
2805 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2809 ## AMD x86-64 Linux-based GNU system
2810 x86_64-
*-linux-gnu* )
2811 machine
=amdx86-64 opsys
=gnu-linux
2814 ## Tensilica Xtensa Linux-based GNU system
2815 xtensa
*-*-linux-gnu* )
2816 machine
=xtensa opsys
=gnu-linux
2824 ### If the code above didn't choose an operating system, just choose
2825 ### an operating system based on the configuration name. You really
2826 ### only want to use this when you have no idea what the right
2827 ### operating system is; if you know what operating systems a machine
2828 ### runs, it's cleaner to make it explicit in the case statement
2830 if test x
"${opsys}" = x
; then
2831 case "${canonical}" in
2832 *-gnu* ) opsys
=gnu
;;
2833 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2834 *-bsd4.2
) opsys
=bsd4-2
;;
2835 *-bsd4.3
) opsys
=bsd4-3
;;
2836 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2837 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2838 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2839 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2840 *-sysv4.2uw
* ) opsys
=unixware
;;
2841 *-sysv5uw* ) opsys
=unixware
;;
2842 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2843 *-sysv4.1
* |
*-sysvr4.1
* )
2844 NON_GNU_CPP
=/usr
/lib
/cpp
2846 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2847 if [ x
$NON_GNU_CPP = x
]; then
2848 if [ -f /usr
/ccs
/lib
/cpp
]; then
2849 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2851 NON_GNU_CPP
=/lib
/cpp
2855 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2862 ### Tests for sytems that we beleive are obsolete and should be desupported.
2864 case "${machine}" in
2865 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2866 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2867 echo "and it is planned to be desupported in the next version of Emacs"
2868 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2869 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2870 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2876 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 |
386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv
)
2877 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2878 echo "and it is planned to be desupported in the next version of Emacs"
2879 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2880 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2881 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2888 if test $unported = yes; then
2889 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2890 Check \`etc/MACHINES' for recognized configuration names." >&5
2891 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2893 { (exit 1); exit 1; }; }
2896 machfile
="m/${machine}.h"
2897 opsysfile
="s/${opsys}.h"
2900 #### Choose a compiler.
2901 test -n "$CC" && cc_specified
=yes
2903 # Save the value of CFLAGS that the user specified.
2904 SPECIFIED_CFLAGS
="$CFLAGS"
2907 ac_cpp
='$CPP $CPPFLAGS'
2908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC
="$CC" # Let the user override the test.
2922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir
=.
2927 for ac_exec_ext
in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$CC"; then
2941 { echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6; }
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2950 if test -z "$ac_cv_prog_CC"; then
2952 # Extract the first word of "gcc", so it can be a program name with args.
2953 set dummy gcc
; ac_word
=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir
=.
2967 for ac_exec_ext
in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC
="gcc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6; }
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2988 if test "x$ac_ct_CC" = x
; then
2991 case $cross_compiling:$ac_tool_warned in
2993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&5
2996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2999 ac_tool_warned
=yes ;;
3007 if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC
="$CC" # Let the user override the test.
3019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir
=.
3024 for ac_exec_ext
in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3048 if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc
; ac_word
=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC
="$CC" # Let the user override the test.
3060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir
=.
3065 for ac_exec_ext
in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected
=yes
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy
$ac_cv_prog_CC
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3088 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3094 if test -n "$CC"; then
3095 { echo "$as_me:$LINENO: result: $CC" >&5
3096 echo "${ECHO_T}$CC" >&6; }
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog
in cl.exe
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC
="$CC" # Let the user override the test.
3118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir
=.
3123 for ac_exec_ext
in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 if test -n "$CC"; then
3137 { echo "$as_me:$LINENO: result: $CC" >&5
3138 echo "${ECHO_T}$CC" >&6; }
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3145 test -n "$CC" && break
3148 if test -z "$CC"; then
3150 for ac_prog
in cl.exe
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy
$ac_prog; ac_word
=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC
="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 echo "${ECHO_T}$ac_ct_CC" >&6; }
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3189 test -n "$ac_ct_CC" && break
3192 if test "x$ac_ct_CC" = x
; then
3195 case $cross_compiling:$ac_tool_warned in
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned
=yes ;;
3212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3218 # Provide some information about the compiler.
3219 echo "$as_me:$LINENO: checking for C compiler version" >&5
3220 ac_compiler
=`set X $ac_compile; echo $2`
3221 { (ac_try
="$ac_compiler --version >&5"
3223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler --version >&5") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (ac_try="$ac_compiler -v >&5"
3233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3234 *) ac_try_echo
=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compiler -v >&5") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3241 { (ac_try
="$ac_compiler -V >&5"
3243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_compiler -V >&5") 2>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3272 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3274 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3276 # List of possible output files, starting from the most likely.
3277 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3278 # only as a last resort. b.out is created by i960 compilers.
3279 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3281 # The IRIX 6 linker writes into existing files which may not be
3282 # executable, retaining their permissions. Remove them first so a
3283 # subsequent execution test works.
3285 for ac_file in $ac_files
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3294 if { (ac_try="$ac_link_default"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link_default") 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3307 # so that the user can short-circuit this test for compilers unknown to
3309 for ac_file
in $ac_files ''
3311 test -f "$ac_file" ||
continue
3313 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3316 # We found the default executable, but exeext='' is most
3320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3322 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 # We set ac_cv_exeext here because the later test for it is not
3325 # safe: cross compilers may not add the suffix if given an `-o'
3326 # argument, so we may need to know it at that point already.
3327 # Even if this section looks crufty: it has the advantage of
3334 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3340 { echo "$as_me:$LINENO: result: $ac_file" >&5
3341 echo "${ECHO_T}$ac_file" >&6; }
3342 if test -z "$ac_file"; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.
$ac_ext >&5
3346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C compiler cannot create executables
3349 See \`config.log' for more details." >&2;}
3350 { (exit 77); exit 77; }; }
3353 ac_exeext
=$ac_cv_exeext
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3358 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3359 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3360 # If not cross compiling, check that we can run a simple program.
3361 if test "$cross_compiling" != yes; then
3362 if { ac_try
='./$ac_file'
3363 { (case "(($ac_try" in
3364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_try") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3374 if test "$cross_compiling" = maybe; then
3377 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details.
" >&5
3380 echo "$as_me: error
: cannot run C compiled programs.
3381 If you meant to cross compile
, use \
`--host'.
3382 See \`config.log
' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3387 { echo "$as_me:$LINENO: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6; }
3390 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3395 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3396 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3397 echo "${ECHO_T}$cross_compiling" >&6; }
3399 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3400 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3401 if { (ac_try="$ac_link"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_link") 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3412 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3413 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3415 for ac_file
in conftest.exe conftest conftest.
*; do
3416 test -f "$ac_file" ||
continue
3418 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3419 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details." >&5
3427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3428 See \`config.log' for more details." >&2;}
3429 { (exit 1); exit 1; }; }
3432 rm -f conftest
$ac_cv_exeext
3433 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3434 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3436 rm -f conftest.
$ac_ext
3437 EXEEXT
=$ac_cv_exeext
3439 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3441 if test "${ac_cv_objext+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat >conftest.
$ac_ext <<_ACEOF
3447 cat confdefs.h
>>conftest.
$ac_ext
3448 cat >>conftest.
$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3459 rm -f conftest.o conftest.obj
3460 if { (ac_try
="$ac_compile"
3462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3483 See \`config.log
' for more details." >&5
3484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details.
" >&2;}
3486 { (exit 1); exit 1; }; }
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3492 echo "${ECHO_T}$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3495 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached
) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3537 echo "$as_me: failed program was
:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3549 GCC=`test $ac_compiler_gnu = yes && echo yes`
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3553 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then
3555 echo $ECHO_N "(cached
) $ECHO_C" >&6
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3633 echo "$as_me: failed program was
:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 echo "$as_me: failed program was
:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3687 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3698 if test "$GCC" = yes; then
3704 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3705 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3706 if test "${ac_cv_prog_cc_c89+set}" = set; then
3707 echo $ECHO_N "(cached
) $ECHO_C" >&6
3709 ac_cv_prog_cc_c89=no
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3719 #include <sys/types.h>
3720 #include <sys/stat.h>
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3735 s = g (p, va_arg (v,int));
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771 CC="$ac_save_CC $ac_arg"
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3781 grep -v '^ *+' conftest.er1 >conftest.err
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 ac_cv_prog_cc_c89=$ac_arg
3791 echo "$as_me: failed program was
:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3800 rm -f conftest.$ac_ext
3805 case "x
$ac_cv_prog_cc_c89" in
3807 { echo "$as_me:$LINENO: result
: none needed
" >&5
3808 echo "${ECHO_T}none needed
" >&6; } ;;
3810 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3811 echo "${ECHO_T}unsupported
" >&6; } ;;
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3815 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3831 ## If not using gcc, and on Solaris, and no CPP specified, see if
3832 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3833 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3834 test x"$CPP" = x; then
3835 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3836 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3838 if test "${emacs_cv_sunpro_c+set}" = set; then
3839 echo $ECHO_N "(cached
) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3859 rm -f conftest.$ac_objext conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>conftest.er1
3868 grep -v '^ *+' conftest.er1 >conftest.err
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest$ac_exeext &&
3876 $as_test_x conftest$ac_exeext; then
3877 emacs_cv_sunpro_c=yes
3879 echo "$as_me: failed program was
:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 emacs_cv_sunpro_c=no
3885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3886 conftest$ac_exeext conftest.$ac_ext
3889 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3890 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3892 if test x"$emacs_cv_sunpro_c" = xyes; then
3893 NON_GNU_CPP="$CC -E -Xs"
3897 #### Some systems specify a CPP to use unless we are using GCC.
3898 #### Now that we know whether we are using GCC, we can decide whether
3899 #### to use that one.
3900 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3905 #### Some systems specify a CC to use unless we are using GCC.
3906 #### Now that we know whether we are using GCC, we can decide whether
3907 #### to use that one.
3908 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3909 test x$cc_specified != xyes
3914 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3916 CC="$CC $GCC_TEST_OPTIONS"
3919 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3921 CC="$CC $NON_GCC_TEST_OPTIONS"
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _GNU_SOURCE 1
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3936 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3937 # On Suns, sometimes $CPP names a directory.
3938 if test -n "$CPP" && test -d "$CPP"; then
3941 if test -z "$CPP"; then
3942 if test "${ac_cv_prog_CPP+set}" = set; then
3943 echo $ECHO_N "(cached
) $ECHO_C" >&6
3945 # Double quotes because CPP needs to be expanded
3946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3949 for ac_c_preproc_warn_flag in '' yes
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error
" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3964 # include <limits.h>
3966 # include <assert.h>
3970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3982 (exit $ac_status); } >/dev/null && {
3983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3988 echo "$as_me: failed program was
:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4007 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4019 (exit $ac_status); } >/dev/null && {
4020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4023 # Broken: success on invalid input.
4026 echo "$as_me: failed program was
:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 # Passes both tests.
4034 rm -f conftest.err conftest.$ac_ext
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then
4051 { echo "$as_me:$LINENO: result
: $CPP" >&5
4052 echo "${ECHO_T}$CPP" >&6; }
4054 for ac_c_preproc_warn_flag in '' yes
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error
" is here to catch this case.
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4069 # include <limits.h>
4071 # include <assert.h>
4075 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4087 (exit $ac_status); } >/dev/null && {
4088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4093 echo "$as_me: failed program was
:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Broken: fails on valid input.
4100 rm -f conftest.err conftest.$ac_ext
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4112 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4128 # Broken: success on invalid input.
4131 echo "$as_me: failed program was
:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 # Passes both tests.
4139 rm -f conftest.err conftest.$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4147 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4148 See \
`config.log' for more details." >&5
4149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log
' for more details." >&2;}
4151 { (exit 1); exit 1; }; }
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4157 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4162 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4163 if test "${ac_cv_path_GREP+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 # Extract the first word of "grep ggrep" to use in msg output
4167 if test -z "$GREP"; then
4168 set dummy grep ggrep; ac_prog_name=$2
4169 if test "${ac_cv_path_GREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 ac_path_GREP_found=false
4173 # Loop through the user's path and
test for each of PROGNAME-LIST
4174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4175 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4178 test -z "$as_dir" && as_dir
=.
4179 for ac_prog
in grep ggrep
; do
4180 for ac_exec_ext
in '' $ac_executable_extensions; do
4181 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4183 # Check for GNU ac_path_GREP and select it if it is found.
4184 # Check for GNU $ac_path_GREP
4185 case `"$ac_path_GREP" --version 2>&1` in
4187 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 echo 'GREP' >> "conftest.nl"
4197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4199 ac_count
=`expr $ac_count + 1`
4200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_GREP
="$ac_path_GREP"
4203 ac_path_GREP_max
=$ac_count
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4212 $ac_path_GREP_found && break 3
4222 GREP
="$ac_cv_path_GREP"
4223 if test -z "$GREP"; then
4224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226 { (exit 1); exit 1; }; }
4230 ac_cv_path_GREP
=$GREP
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4237 GREP
="$ac_cv_path_GREP"
4240 { echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4242 if test "${ac_cv_path_EGREP+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4246 then ac_cv_path_EGREP
="$GREP -E"
4248 # Extract the first word of "egrep" to use in msg output
4249 if test -z "$EGREP"; then
4250 set dummy
egrep; ac_prog_name
=$2
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_path_EGREP_found
=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4260 test -z "$as_dir" && as_dir
=.
4261 for ac_prog
in egrep; do
4262 for ac_exec_ext
in '' $ac_executable_extensions; do
4263 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266 # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4269 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4272 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 echo 'EGREP' >> "conftest.nl"
4279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4280 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4281 ac_count
=`expr $ac_count + 1`
4282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_EGREP
="$ac_path_EGREP"
4285 ac_path_EGREP_max
=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4290 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4294 $ac_path_EGREP_found && break 3
4304 EGREP
="$ac_cv_path_EGREP"
4305 if test -z "$EGREP"; then
4306 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308 { (exit 1); exit 1; }; }
4312 ac_cv_path_EGREP
=$EGREP
4318 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4319 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4320 EGREP
="$ac_cv_path_EGREP"
4324 { echo "$as_me:$LINENO: checking for AIX" >&5
4325 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4326 cat >conftest.
$ac_ext <<_ACEOF
4329 cat confdefs.h
>>conftest.
$ac_ext
4330 cat >>conftest.
$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "yes" >/dev
/null
2>&1; then
4339 { echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6; }
4341 cat >>confdefs.h
<<\_ACEOF
4342 #define _ALL_SOURCE 1
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4354 if test "${ac_cv_header_stdc+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 cat >conftest.
$ac_ext <<_ACEOF
4360 cat confdefs.h
>>conftest.
$ac_ext
4361 cat >>conftest.
$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4376 rm -f conftest.
$ac_objext
4377 if { (ac_try
="$ac_compile"
4379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_header_stdc=no
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4418 ac_cv_header_stdc=no
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4439 ac_cv_header_stdc=no
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4485 *) ac_try_echo
=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4492 { (case "(($ac_try" in
4493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_header_stdc=no
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4553 #include <$ac_header>
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4559 *) ac_try_echo
=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1
>conftest.err
4566 cat conftest.err
>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.
$ac_objext; then
4572 eval "$as_ac_Header=yes"
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4577 eval "$as_ac_Header=no"
4580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 ac_res
=`eval echo '${'$as_ac_Header'}'`
4583 { echo "$as_me:$LINENO: result: $ac_res" >&5
4584 echo "${ECHO_T}$ac_res" >&6; }
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4586 cat >>confdefs.h
<<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 if test "${ac_cv_header_minix_config_h+set}" = set; then
4596 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4597 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4602 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4604 # Is the header compilable?
4605 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4606 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 #include <minix/config.h>
4616 rm -f conftest.
$ac_objext
4617 if { (ac_try
="$ac_compile"
4619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4625 grep -v '^ *+' conftest.er1 >conftest.err
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_header_compiler=yes
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_header_compiler=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643 echo "${ECHO_T}$ac_header_compiler" >&6; }
4645 # Is the header present?
4646 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4647 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <minix/config.h>
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4659 *) ac_try_echo
=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1
>conftest.err
4666 cat conftest.err
>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev
/null
&& {
4669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4672 ac_header_preproc
=yes
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.
$ac_ext >&5
4677 ac_header_preproc
=no
4680 rm -f conftest.err conftest.
$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4682 echo "${ECHO_T}$ac_header_preproc" >&6; }
4684 # So? What about this header?
4685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4687 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4691 ac_header_preproc
=yes
4694 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4701 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4709 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4710 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4711 if test "${ac_cv_header_minix_config_h+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 ac_cv_header_minix_config_h
=$ac_header_preproc
4716 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4717 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4720 if test $ac_cv_header_minix_config_h = yes; then
4727 if test "$MINIX" = yes; then
4729 cat >>confdefs.h
<<\_ACEOF
4730 #define _POSIX_SOURCE 1
4734 cat >>confdefs.h
<<\_ACEOF
4735 #define _POSIX_1_SOURCE 2
4739 cat >>confdefs.h
<<\_ACEOF
4755 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4756 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4757 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 cat >conftest.
$ac_ext <<_ACEOF
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4767 # define __EXTENSIONS__ 1
4768 $ac_includes_default
4777 rm -f conftest.
$ac_objext
4778 if { (ac_try
="$ac_compile"
4780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_compile") 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && {
4791 test -z "$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 } && test -s conftest.$ac_objext; then
4794 ac_cv_safe_to_define___extensions__=yes
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ac_cv_safe_to_define___extensions__=no
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4805 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 cat >>confdefs.h <<\_ACEOF
4808 #define __EXTENSIONS__ 1
4811 cat >>confdefs.h <<\_ACEOF
4812 #define _POSIX_PTHREAD_SEMANTICS 1
4815 cat >>confdefs.h <<\_ACEOF
4816 #define _TANDEM_SOURCE 1
4821 ### Use -Wno-pointer-sign if the compiler supports it
4822 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4823 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4824 SAVE_CFLAGS="$CFLAGS"
4825 CFLAGS="$CFLAGS -Wno-pointer-sign"
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4845 *) ac_try_echo
=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1
>conftest.err
4852 cat conftest.err
>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.
$ac_objext; then
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4870 { echo "$as_me:$LINENO: result: $has_option" >&5
4871 echo "${ECHO_T}$has_option" >&6; }
4872 CFLAGS
="$SAVE_CFLAGS"
4876 #### Some other nice autoconf tests.
4878 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4879 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4881 if test "$LN_S" = "ln -s"; then
4882 { echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6; }
4885 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4886 echo "${ECHO_T}no, using $LN_S" >&6; }
4890 ac_cpp
='$CPP $CPPFLAGS'
4891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4894 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 # Double quotes because CPP needs to be expanded
4905 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 for ac_c_preproc_warn_flag
in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat >conftest.
$ac_ext <<_ACEOF
4919 cat confdefs.h
>>conftest.
$ac_ext
4920 cat >>conftest.
$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4923 # include <limits.h>
4925 # include <assert.h>
4929 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 # Broken: fails on valid input.
4954 rm -f conftest.err conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4969 *) ac_try_echo
=$ac_try;;
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1
>conftest.err
4976 cat conftest.err
>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev
/null
&& {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4982 # Broken: success on invalid input.
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 # Passes both tests.
4993 rm -f conftest.err conftest.
$ac_ext
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.
$ac_ext
4998 if $ac_preproc_ok; then
5010 { echo "$as_me:$LINENO: result: $CPP" >&5
5011 echo "${ECHO_T}$CPP" >&6; }
5013 for ac_c_preproc_warn_flag
in '' yes
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 # include <limits.h>
5030 # include <assert.h>
5034 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5042 grep -v '^ *+' conftest.er1 >conftest.err
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null && {
5047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5048 test ! -s conftest.err
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 # Broken: fails on valid input.
5059 rm -f conftest.err conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5074 *) ac_try_echo
=$ac_try;;
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 grep -v '^ *+' conftest.er1
>conftest.err
5081 cat conftest.err
>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev
/null
&& {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5087 # Broken: success on invalid input.
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.
$ac_ext >&5
5093 # Passes both tests.
5098 rm -f conftest.err conftest.
$ac_ext
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.err conftest.
$ac_ext
5103 if $ac_preproc_ok; then
5106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5107 See \`config.log' for more details." >&5
5108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&2;}
5110 { (exit 1); exit 1; }; }
5114 ac_cpp
='$CPP $CPPFLAGS'
5115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5119 # Find a good install program. We prefer a C program (faster),
5120 # so one script is as good as another. But avoid the broken or
5121 # incompatible versions:
5122 # SysV /etc/install, /usr/sbin/install
5123 # SunOS /usr/etc/install
5124 # IRIX /sbin/install
5126 # AmigaOS /C/install, which installs bootblocks on floppy discs
5127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5130 # OS/2's system install, which has a completely different semantic
5131 # ./install, which can be erroneously created by make from ./install.sh.
5132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5134 if test -z "$INSTALL"; then
5135 if test "${ac_cv_path_install+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir
=.
5143 # Account for people who put trailing slashes in PATH elements.
5145 .
/ | .
// |
/cC
/* | \
5146 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5147 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5150 # OSF1 and SCO ODT 3.0 have their own names for install.
5151 # Don't use installbsd from OSF since it installs stuff as root
5153 for ac_prog
in ginstall scoinst
install; do
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5156 if test $ac_prog = install &&
5157 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5158 # AIX install. It has an incompatible calling convention.
5160 elif test $ac_prog = install &&
5161 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5162 # program-specific install script used by HP pwplus--don't use.
5165 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5178 if test "${ac_cv_path_install+set}" = set; then
5179 INSTALL
=$ac_cv_path_install
5181 # As a last resort, use the slow shell script. Don't cache a
5182 # value for INSTALL within a source directory, because that will
5183 # break other packages using the cache if that directory is
5184 # removed, or if the value is a relative name.
5185 INSTALL
=$ac_install_sh
5188 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5189 echo "${ECHO_T}$INSTALL" >&6; }
5191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5192 # It thinks the first close brace ends the variable substitution.
5193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5197 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5199 if test "x$RANLIB" = x
; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5202 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_RANLIB+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 if test -n "$RANLIB"; then
5209 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir
=.
5216 for ac_exec_ext
in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 RANLIB
=$ac_cv_prog_RANLIB
5229 if test -n "$RANLIB"; then
5230 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5231 echo "${ECHO_T}$RANLIB" >&6; }
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5239 if test -z "$ac_cv_prog_RANLIB"; then
5240 ac_ct_RANLIB
=$RANLIB
5241 # Extract the first word of "ranlib", so it can be a program name with args.
5242 set dummy ranlib
; ac_word
=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 if test -n "$ac_ct_RANLIB"; then
5249 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5269 if test -n "$ac_ct_RANLIB"; then
5270 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5271 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5273 { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5277 if test "x$ac_ct_RANLIB" = x
; then
5280 case $cross_compiling:$ac_tool_warned in
5282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5283 whose name does not start with the host triplet. If you think this
5284 configuration is useful to you, please write to autoconf@gnu.org." >&5
5285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet. If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5288 ac_tool_warned
=yes ;;
5290 RANLIB
=$ac_ct_RANLIB
5293 RANLIB
="$ac_cv_prog_RANLIB"
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info
; ac_word
=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 case $INSTALL_INFO in
5306 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir
=.
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5328 if test -n "$INSTALL_INFO"; then
5329 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5330 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info
; ac_word
=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 case $INSTALL_INFO in
5346 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5350 for as_dir
in /usr
/sbin
5353 test -z "$as_dir" && as_dir
=.
5354 for ac_exec_ext
in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info
; ac_word
=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 case $INSTALL_INFO in
5386 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5408 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5409 if test -n "$INSTALL_INFO"; then
5410 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5411 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5413 { echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6; }
5418 # Extract the first word of "gzip", so it can be a program name with args.
5419 set dummy
gzip; ac_word
=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir
=.
5435 for ac_exec_ext
in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5449 if test -n "$GZIP_PROG"; then
5450 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5451 echo "${ECHO_T}$GZIP_PROG" >&6; }
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5460 ## Need makeinfo >= 4.6 (?) to build the manuals.
5461 # Extract the first word of "makeinfo", so it can be a program name with args.
5462 set dummy makeinfo
; ac_word
=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir
=.
5478 for ac_exec_ext
in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5492 MAKEINFO
=$ac_cv_path_MAKEINFO
5493 if test -n "$MAKEINFO"; then
5494 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5495 echo "${ECHO_T}$MAKEINFO" >&6; }
5497 { echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6; }
5502 if test "$MAKEINFO" != "no" && \
5503 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
5507 ## Makeinfo is unusual. For a released Emacs, the manuals are
5508 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5509 ## therefore in the category of "special tools" not normally required, which
5510 ## configure does not have to check for (eg autoconf itself).
5511 ## In a CVS checkout on the other hand, the manuals are not included.
5512 ## So makeinfo is a requirement to build from CVS, and configure
5513 ## should test for it as it does for any other build requirement.
5514 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5515 ## with pre-built manuals, from a CVS checkout.
5516 if test "$MAKEINFO" = "no"; then
5517 if test "x${with_makeinfo}" = "xno"; then
5519 elif ! test -e $srcdir/info
/emacs
; then
5520 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5521 source tree does not seem to have pre-built manuals in the \`info' directory.
5522 Either install a suitable version of makeinfo, or re-run configure
5523 with the \`--without-makeinfo' option to build without the manuals. " >&5
5524 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5525 source tree does not seem to have pre-built manuals in the \`info' directory.
5526 Either install a suitable version of makeinfo, or re-run configure
5527 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5528 { (exit 1); exit 1; }; }
5533 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5535 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5538 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5540 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5544 late_LDFLAGS
=$LDFLAGS
5545 if test "$GCC" = yes; then
5546 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5548 LDFLAGS
="$LDFLAGS -znocombreloc"
5551 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5552 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5553 cat >conftest.
$ac_ext <<_ACEOF
5556 rm -f conftest.
$ac_objext conftest
$ac_exeext
5557 if { (ac_try
="$ac_link"
5559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_link") 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && {
5570 test -z "$ac_c_werror_flag" ||
5571 test ! -s conftest.err
5572 } && test -s conftest$ac_exeext &&
5573 $as_test_x conftest$ac_exeext; then
5574 { echo "$as_me:$LINENO: result: yes" >&5
5575 echo "${ECHO_T}yes" >&6; }
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.$ac_ext >&5
5580 LDFLAGS=$late_LDFLAGS
5581 { echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6; }
5585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5586 conftest$ac_exeext conftest.$ac_ext
5588 #### Extract some information from the operating system and machine files.
5590 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5591 - which libraries the lib-src programs will want, and
5592 - whether the GNU malloc routines are usable..." >&5
5593 echo "$as_me: checking the machine- and system-dependent files to find out
5594 - which libraries the lib-src programs will want, and
5595 - whether the GNU malloc routines are usable..." >&6;}
5597 ### First figure out CFLAGS (which we use for running the compiler here)
5598 ### and REAL_CFLAGS (which we use for real compilation).
5599 ### The two are the same except on a few systems, where they are made
5600 ### different to work around various lossages. For example,
5601 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5602 ### as implying static linking.
5604 ### If the CFLAGS env var is specified, we use that value
5605 ### instead of the default.
5607 ### It's not important that this name contain the PID; you can't run
5608 ### two configures in the same directory and have anything work
5610 tempcname="conftest.c"
5613 #include "'${srcdir}'/src/'${opsysfile}'"
5614 #include "'${srcdir}'/src/'${machfile}'"
5615 #ifndef LIBS_MACHINE
5616 #define LIBS_MACHINE
5621 #ifndef C_SWITCH_SYSTEM
5622 #define C_SWITCH_SYSTEM
5624 #ifndef C_SWITCH_MACHINE
5625 #define C_SWITCH_MACHINE
5627 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5628 configure___ c_switch_system=C_SWITCH_SYSTEM
5629 configure___ c_switch_machine=C_SWITCH_MACHINE
5632 #define LIB_X11_LIB -lX11
5635 #ifndef LIBX11_SYSTEM
5636 #define LIBX11_SYSTEM
5638 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5641 configure___ unexec=UNEXEC
5643 configure___ unexec=unexec.o
5646 #ifdef SYSTEM_MALLOC
5647 configure___ system_malloc=yes
5649 configure___ system_malloc=no
5652 #ifdef USE_MMAP_FOR_BUFFERS
5653 configure___ use_mmap_for_buffers=yes
5655 configure___ use_mmap_for_buffers=no
5658 #ifndef C_DEBUG_SWITCH
5659 #define C_DEBUG_SWITCH -g
5662 #ifndef C_OPTIMIZE_SWITCH
5664 #define C_OPTIMIZE_SWITCH -O2
5666 #define C_OPTIMIZE_SWITCH -O
5670 #ifndef C_WARNINGS_SWITCH
5671 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5674 #ifndef LD_SWITCH_MACHINE
5675 #define LD_SWITCH_MACHINE
5678 #ifndef LD_SWITCH_SYSTEM
5679 #define LD_SWITCH_SYSTEM
5682 #ifndef LD_SWITCH_X_SITE_AUX
5683 #define LD_SWITCH_X_SITE_AUX
5686 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5687 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5689 #ifdef THIS_IS_CONFIGURE
5691 /* Get the CFLAGS for tests in configure. */
5693 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5695 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5698 #else /* not THIS_IS_CONFIGURE */
5700 /* Get the CFLAGS for real compilation. */
5702 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5704 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5707 #endif /* not THIS_IS_CONFIGURE */
5710 # The value of CPP is a quoted variable reference, so we need to do this
5711 # to get its actual value...
5712 CPP=`eval "echo $CPP"`
5713 eval `${CPP} -Isrc ${tempcname} \
5714 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5715 if test "x$SPECIFIED_CFLAGS" = x; then
5716 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5717 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5719 REAL_CFLAGS="$CFLAGS"
5723 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5725 ### Make sure subsequent tests use flags consistent with the build flags.
5727 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5728 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5730 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5735 # Check whether --enable-largefile was given.
5736 if test "${enable_largefile+set}" = set; then
5737 enableval=$enable_largefile;
5740 if test "$enable_largefile" != no; then
5742 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5743 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5744 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 ac_cv_sys_largefile_CC=no
5748 if test "$GCC" != yes; then
5751 # IRIX 6.2 and later do not support large files by default,
5752 # so use the C compiler's -n32 option if that helps.
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5780 *) ac_try_echo
=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1
>conftest.err
5787 cat conftest.err
>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.
$ac_objext; then
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.
$ac_ext >&5
5801 rm -f core conftest.err conftest.
$ac_objext
5803 rm -f conftest.
$ac_objext
5804 if { (ac_try
="$ac_compile"
5806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5820 ac_cv_sys_largefile_CC=' -n32'; break
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5828 rm -f core conftest.err conftest.$ac_objext
5832 rm -f conftest.$ac_ext
5835 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5836 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5837 if test "$ac_cv_sys_largefile_CC" != no; then
5838 CC=$CC$ac_cv_sys_largefile_CC
5841 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5842 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5843 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 cat >conftest.$ac_ext <<_ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5874 *) ac_try_echo
=$ac_try;;
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5879 grep -v '^ *+' conftest.er1
>conftest.err
5881 cat conftest.err
>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.
$ac_objext; then
5887 ac_cv_sys_file_offset_bits
=no
; break
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 cat >conftest.
$ac_ext <<_ACEOF
5899 cat confdefs.h
>>conftest.
$ac_ext
5900 cat >>conftest.
$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 #define _FILE_OFFSET_BITS 64
5903 #include <sys/types.h>
5904 /* Check that off_t can represent 2**63 - 1 correctly.
5905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5906 since some C++ compilers masquerading as C compilers
5907 incorrectly reject 9223372036854775807. */
5908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5910 && LARGE_OFF_T % 2147483647 == 1)
5920 rm -f conftest.
$ac_objext
5921 if { (ac_try
="$ac_compile"
5923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
5937 ac_cv_sys_file_offset_bits=64; break
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 ac_cv_sys_file_offset_bits=unknown
5950 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5951 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5952 case $ac_cv_sys_file_offset_bits in #(
5955 cat >>confdefs.h <<_ACEOF
5956 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5961 if test $ac_cv_sys_file_offset_bits = unknown; then
5962 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5963 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5964 if test "${ac_cv_sys_large_files+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <sys/types.h>
5975 /* Check that off_t can represent 2**63 - 1 correctly.
5976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5977 since some C++ compilers masquerading as C compilers
5978 incorrectly reject 9223372036854775807. */
5979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5981 && LARGE_OFF_T % 2147483647 == 1)
5991 rm -f conftest.$ac_objext
5992 if { (ac_try="$ac_compile"
5994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5995 *) ac_try_echo
=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1
>conftest.err
6002 cat conftest.err
>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.
$ac_objext; then
6008 ac_cv_sys_large_files
=no
; break
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.
$ac_ext >&5
6016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6017 cat >conftest.
$ac_ext <<_ACEOF
6020 cat confdefs.h
>>conftest.
$ac_ext
6021 cat >>conftest.
$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #define _LARGE_FILES 1
6024 #include <sys/types.h>
6025 /* Check that off_t can represent 2**63 - 1 correctly.
6026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6027 since some C++ compilers masquerading as C compilers
6028 incorrectly reject 9223372036854775807. */
6029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6031 && LARGE_OFF_T % 2147483647 == 1)
6041 rm -f conftest.
$ac_objext
6042 if { (ac_try
="$ac_compile"
6044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6050 grep -v '^ *+' conftest.er1 >conftest.err
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && {
6055 test -z "$ac_c_werror_flag" ||
6056 test ! -s conftest.err
6057 } && test -s conftest.$ac_objext; then
6058 ac_cv_sys_large_files=1; break
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 ac_cv_sys_large_files=unknown
6071 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6072 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6073 case $ac_cv_sys_large_files in #(
6076 cat >>confdefs.h <<_ACEOF
6077 #define _LARGE_FILES $ac_cv_sys_large_files
6087 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6088 ### be located in either /usr/lib64 or /usr/lib.
6089 case "${canonical}" in
6090 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6091 if test -d /usr/lib64; then
6093 cat >>confdefs.h <<\_ACEOF
6094 #define HAVE_LIB64_DIR 1
6103 if test "${with_sound}" != "no"; then
6104 # Sound support for GNU/Linux and the free BSDs.
6108 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6110 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118 { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6121 # Is the header compilable?
6122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6131 #include <$ac_header>
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6137 *) ac_try_echo
=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1
>conftest.err
6144 cat conftest.err
>&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.
$ac_objext; then
6150 ac_header_compiler
=yes
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.
$ac_ext >&5
6155 ac_header_compiler
=no
6158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6; }
6162 # Is the header present?
6163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6165 cat >conftest.
$ac_ext <<_ACEOF
6168 cat confdefs.h
>>conftest.
$ac_ext
6169 cat >>conftest.
$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <$ac_header>
6173 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev/null && {
6186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6189 ac_header_preproc=yes
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_header_preproc=no
6197 rm -f conftest.err conftest.$ac_ext
6198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6199 echo "${ECHO_T}$ac_header_preproc" >&6; }
6201 # So? What about this header?
6202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6208 ac_header_preproc=yes
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 eval "$as_ac_Header=\$ac_header_preproc"
6233 ac_res=`eval echo '${'$as_ac_Header'}'`
6234 { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6247 # Emulation library used on NetBSD.
6248 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6249 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6250 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 ac_check_lib_save_LIBS=$LIBS
6254 LIBS="-lossaudio $LIBS"
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any GCC internal prototype to avoid an error.
6263 Use char because int might match the return type of a GCC
6264 builtin and then its argument prototype would still apply. */
6272 return _oss_ioctl ();
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6281 *) ac_try_echo
=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_link") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1
>conftest.err
6288 cat conftest.err
>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest
$ac_exeext &&
6294 $as_test_x conftest
$ac_exeext; then
6295 ac_cv_lib_ossaudio__oss_ioctl
=yes
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.
$ac_ext >&5
6300 ac_cv_lib_ossaudio__oss_ioctl
=no
6303 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6304 conftest
$ac_exeext conftest.
$ac_ext
6305 LIBS
=$ac_check_lib_save_LIBS
6307 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6308 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6309 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6318 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6322 # Extract the first word of "pkg-config", so it can be a program name with args.
6323 set dummy pkg-config
; ac_word
=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir
=.
6339 for ac_exec_ext
in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6353 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6354 if test -n "$PKG_CONFIG"; then
6355 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6356 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6358 { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6364 if test "$PKG_CONFIG" = "no" ; then
6367 PKG_CONFIG_MIN_VERSION
=0.9.0
6368 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6369 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6370 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6372 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6373 { echo "$as_me:$LINENO: result: yes" >&5
6374 echo "${ECHO_T}yes" >&6; }
6377 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6378 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6379 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6380 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6381 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6383 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6384 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6385 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6386 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6387 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6389 { echo "$as_me:$LINENO: result: no" >&5
6390 echo "${ECHO_T}no" >&6; }
6393 ## If we have a custom action on failure, don't print errors, but
6394 ## do set a variable so people can do so.
6395 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6407 if test $succeeded = yes; then
6413 if test $HAVE_ALSA = yes; then
6414 SAVE_CFLAGS
="$CFLAGS"
6415 SAVE_LDFLAGS
="$LDFLAGS"
6416 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6417 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6418 cat >conftest.
$ac_ext <<_ACEOF
6421 cat confdefs.h
>>conftest.
$ac_ext
6422 cat >>conftest.
$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 #include <asoundlib.h>
6428 snd_lib_error_set_handler (0);
6433 rm -f conftest.
$ac_objext
6434 if { (ac_try
="$ac_compile"
6436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6442 grep -v '^ *+' conftest.er1 >conftest.err
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 emacs_alsa_normal=yes
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 emacs_alsa_normal=no
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 if test "$emacs_alsa_normal" != yes; then
6460 cat >conftest.$ac_ext <<_ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <alsa/asoundlib.h>
6470 snd_lib_error_set_handler (0);
6475 rm -f conftest.$ac_objext
6476 if { (ac_try="$ac_compile"
6478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6479 *) ac_try_echo
=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6484 grep -v '^ *+' conftest.er1
>conftest.err
6486 cat conftest.err
>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } && {
6489 test -z "$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 } && test -s conftest.
$ac_objext; then
6492 emacs_alsa_subdir
=yes
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.
$ac_ext >&5
6497 emacs_alsa_subdir
=no
6500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6501 if test "$emacs_alsa_subdir" != yes; then
6502 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6503 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6504 { (exit 1); exit 1; }; }
6506 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6509 CFLAGS
="$SAVE_CFLAGS"
6510 LDFLAGS
="$SAVE_LDFLAGS"
6511 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6512 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6514 cat >>confdefs.h
<<\_ACEOF
6547 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6548 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6549 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6550 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6553 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6554 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6557 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_res
=`eval echo '${'$as_ac_Header'}'`
6561 { echo "$as_me:$LINENO: result: $ac_res" >&5
6562 echo "${ECHO_T}$ac_res" >&6; }
6564 # Is the header compilable?
6565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6567 cat >conftest.
$ac_ext <<_ACEOF
6570 cat confdefs.h
>>conftest.
$ac_ext
6571 cat >>conftest.
$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 #include <$ac_header>
6576 rm -f conftest.
$ac_objext
6577 if { (ac_try
="$ac_compile"
6579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$ac_compile") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1 >conftest.err
6587 cat conftest.err >&5
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest.$ac_objext; then
6593 ac_header_compiler=yes
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6598 ac_header_compiler=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603 echo "${ECHO_T}$ac_header_compiler" >&6; }
6605 # Is the header present?
6606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6608 cat >conftest.$ac_ext <<_ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 #include <$ac_header>
6616 if { (ac_try="$ac_cpp conftest.$ac_ext"
6618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6619 *) ac_try_echo
=$ac_try;;
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6624 grep -v '^ *+' conftest.er1
>conftest.err
6626 cat conftest.err
>&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } >/dev
/null
&& {
6629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6632 ac_header_preproc
=yes
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.
$ac_ext >&5
6637 ac_header_preproc
=no
6640 rm -f conftest.err conftest.
$ac_ext
6641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6642 echo "${ECHO_T}$ac_header_preproc" >&6; }
6644 # So? What about this header?
6645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6651 ac_header_preproc
=yes
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6657 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6661 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6671 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 eval "$as_ac_Header=\$ac_header_preproc"
6676 ac_res
=`eval echo '${'$as_ac_Header'}'`
6677 { echo "$as_me:$LINENO: result: $ac_res" >&5
6678 echo "${ECHO_T}$ac_res" >&6; }
6681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6682 cat >>confdefs.h
<<_ACEOF
6683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6691 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6692 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6693 cat >conftest.
$ac_ext <<_ACEOF
6696 cat confdefs.h
>>conftest.
$ac_ext
6697 cat >>conftest.
$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <sys/personality.h>
6703 personality (PER_LINUX32)
6708 rm -f conftest.
$ac_objext
6709 if { (ac_try
="$ac_compile"
6711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1 >conftest.err
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.$ac_objext; then
6725 emacs_cv_personality_linux32=yes
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 emacs_cv_personality_linux32=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6735 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6737 if test $emacs_cv_personality_linux32 = yes; then
6739 cat >>confdefs.h <<\_ACEOF
6740 #define HAVE_PERSONALITY_LINUX32 1
6746 for ac_header in term.h
6748 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #include <$ac_header>
6762 if { (ac_try="$ac_cpp conftest.$ac_ext"
6764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6765 *) ac_try_echo
=$ac_try;;
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6770 grep -v '^ *+' conftest.er1
>conftest.err
6772 cat conftest.err
>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } >/dev
/null
&& {
6775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6778 eval "$as_ac_Header=yes"
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6783 eval "$as_ac_Header=no"
6786 rm -f conftest.err conftest.
$ac_ext
6788 ac_res
=`eval echo '${'$as_ac_Header'}'`
6789 { echo "$as_me:$LINENO: result: $ac_res" >&5
6790 echo "${ECHO_T}$ac_res" >&6; }
6791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6792 cat >>confdefs.h
<<_ACEOF
6793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6802 if test "${ac_cv_header_stdc+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.
$ac_ext <<_ACEOF
6808 cat confdefs.h
>>conftest.
$ac_ext
6809 cat >>conftest.
$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6824 rm -f conftest.
$ac_objext
6825 if { (ac_try
="$ac_compile"
6827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_header_stdc=yes
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_header_stdc=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 if test $ac_cv_header_stdc = yes; then
6852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6853 cat >conftest.$ac_ext <<_ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863 $EGREP "memchr" >/dev/null 2>&1; then
6866 ac_cv_header_stdc=no
6872 if test $ac_cv_header_stdc = yes; then
6873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6874 cat >conftest.$ac_ext <<_ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884 $EGREP "free" >/dev/null 2>&1; then
6887 ac_cv_header_stdc=no
6893 if test $ac_cv_header_stdc = yes; then
6894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6895 if test "$cross_compiling" = yes; then
6898 cat >conftest.$ac_ext <<_ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6906 #if ((' ' & 0x0FF) == 0x020)
6907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6910 # define ISLOWER(c) \
6911 (('a' <= (c) && (c) <= 'i') \
6912 || ('j' <= (c) && (c) <= 'r') \
6913 || ('s' <= (c) && (c) <= 'z'))
6914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6922 for (i = 0; i < 256; i++)
6923 if (XOR (islower (i), ISLOWER (i))
6924 || toupper (i) != TOUPPER (i))
6929 rm -f conftest$ac_exeext
6930 if { (ac_try="$ac_link"
6932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6933 *) ac_try_echo
=$ac_try;;
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6940 { (case "(($ac_try" in
6941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_try") 2>&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); }; }; then
6951 echo "$as_me: program exited with status $ac_status" >&5
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_header_stdc=no
6958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6966 if test $ac_cv_header_stdc = yes; then
6968 cat >>confdefs.h <<\_ACEOF
6969 #define STDC_HEADERS 1
6974 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6975 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6976 if test "${ac_cv_header_time+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 cat >conftest.$ac_ext <<_ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 #include <sys/types.h>
6986 #include <sys/time.h>
6992 if ((struct tm *) 0)
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7002 *) ac_try_echo
=$ac_try;;
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7007 grep -v '^ *+' conftest.er1
>conftest.err
7009 cat conftest.err
>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.
$ac_objext; then
7015 ac_cv_header_time
=yes
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.
$ac_ext >&5
7020 ac_cv_header_time
=no
7023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7025 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7026 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7027 if test $ac_cv_header_time = yes; then
7029 cat >>confdefs.h
<<\_ACEOF
7030 #define TIME_WITH_SYS_TIME 1
7035 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7036 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7037 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 cat >conftest.
$ac_ext <<_ACEOF
7043 cat confdefs.h
>>conftest.
$ac_ext
7044 cat >>conftest.
$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 $ac_includes_default
7058 rm -f conftest.
$ac_objext
7059 if { (ac_try
="$ac_compile"
7061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_compile") 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && {
7072 test -z "$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 } && test -s conftest.$ac_objext; then
7075 ac_cv_have_decl_sys_siglist=yes
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 ac_cv_have_decl_sys_siglist=no
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7086 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7087 if test $ac_cv_have_decl_sys_siglist = yes; then
7089 cat >>confdefs.h <<_ACEOF
7090 #define HAVE_DECL_SYS_SIGLIST 1
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_DECL_SYS_SIGLIST 0
7103 if test $ac_cv_have_decl_sys_siglist != yes; then
7104 # For Tru64, at least:
7105 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7106 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7107 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 cat >conftest.$ac_ext <<_ACEOF
7113 cat confdefs.h >>conftest.$ac_ext
7114 cat >>conftest.$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7120 #ifndef __sys_siglist
7121 (void) __sys_siglist;
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7132 *) ac_try_echo
=$ac_try;;
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1
>conftest.err
7139 cat conftest.err
>&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.
$ac_objext; then
7145 ac_cv_have_decl___sys_siglist
=yes
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.
$ac_ext >&5
7150 ac_cv_have_decl___sys_siglist
=no
7153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7156 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7157 if test $ac_cv_have_decl___sys_siglist = yes; then
7159 cat >>confdefs.h
<<_ACEOF
7160 #define HAVE_DECL___SYS_SIGLIST 1
7165 cat >>confdefs.h
<<_ACEOF
7166 #define HAVE_DECL___SYS_SIGLIST 0
7173 if test $ac_cv_have_decl___sys_siglist = yes; then
7175 cat >>confdefs.h
<<\_ACEOF
7176 #define sys_siglist __sys_siglist
7181 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7182 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7183 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 cat >conftest.
$ac_ext <<_ACEOF
7189 cat confdefs.h
>>conftest.
$ac_ext
7190 cat >>conftest.
$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 #include <sys/types.h>
7193 #include <sys/wait.h>
7195 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7198 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7211 rm -f conftest.
$ac_objext
7212 if { (ac_try
="$ac_compile"
7214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7215 *) ac_try_echo=$ac_try;;
7217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7220 grep -v '^ *+' conftest.er1 >conftest.err
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 ac_cv_header_sys_wait_h=yes
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 ac_cv_header_sys_wait_h=no
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7239 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7240 if test $ac_cv_header_sys_wait_h = yes; then
7242 cat >>confdefs.h <<\_ACEOF
7243 #define HAVE_SYS_WAIT_H 1
7249 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7250 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7251 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7254 cat >conftest.$ac_ext <<_ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 #ifdef TIME_WITH_SYS_TIME
7261 #include <sys/time.h>
7264 #ifdef HAVE_SYS_TIME_H
7265 #include <sys/time.h>
7276 static struct utimbuf x; x.actime = x.modtime;
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7285 *) ac_try_echo
=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1
>conftest.err
7292 cat conftest.err
>&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.
$ac_objext; then
7298 emacs_cv_struct_utimbuf
=yes
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.
$ac_ext >&5
7303 emacs_cv_struct_utimbuf
=no
7306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7308 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7309 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7310 if test $emacs_cv_struct_utimbuf = yes; then
7312 cat >>confdefs.h
<<\_ACEOF
7313 #define HAVE_STRUCT_UTIMBUF 1
7318 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7319 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7320 if test "${ac_cv_type_signal+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 cat >conftest.
$ac_ext <<_ACEOF
7326 cat confdefs.h
>>conftest.
$ac_ext
7327 cat >>conftest.
$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7335 return *(signal (0, 0)) (0) == 1;
7340 rm -f conftest.
$ac_objext
7341 if { (ac_try
="$ac_compile"
7343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7347 (eval "$ac_compile") 2>conftest.er1
7349 grep -v '^ *+' conftest.er1 >conftest.err
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } && {
7354 test -z "$ac_c_werror_flag" ||
7355 test ! -s conftest.err
7356 } && test -s conftest.$ac_objext; then
7357 ac_cv_type_signal=int
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 ac_cv_type_signal=void
7365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7368 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7370 cat >>confdefs.h <<_ACEOF
7371 #define RETSIGTYPE $ac_cv_type_signal
7376 { echo "$as_me:$LINENO: checking for speed_t" >&5
7377 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7378 if test "${emacs_cv_speed_t+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 #include <termios.h>
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7400 *) ac_try_echo
=$ac_try;;
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1
>conftest.err
7407 cat conftest.err
>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.
$ac_objext; then
7413 emacs_cv_speed_t
=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.
$ac_ext >&5
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7423 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7424 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7425 if test $emacs_cv_speed_t = yes; then
7427 cat >>confdefs.h
<<\_ACEOF
7428 #define HAVE_SPEED_T 1
7433 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7434 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7435 if test "${emacs_cv_struct_timeval+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 cat >conftest.
$ac_ext <<_ACEOF
7441 cat confdefs.h
>>conftest.
$ac_ext
7442 cat >>conftest.
$ac_ext <<_ACEOF
7443 /* end confdefs.h. */
7444 #ifdef TIME_WITH_SYS_TIME
7445 #include <sys/time.h>
7448 #ifdef HAVE_SYS_TIME_H
7449 #include <sys/time.h>
7457 static struct timeval x; x.tv_sec = x.tv_usec;
7462 rm -f conftest.
$ac_objext
7463 if { (ac_try
="$ac_compile"
7465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7471 grep -v '^ *+' conftest.er1 >conftest.err
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.$ac_objext; then
7479 emacs_cv_struct_timeval=yes
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 emacs_cv_struct_timeval=no
7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7490 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7491 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7492 if test $emacs_cv_struct_timeval = yes; then
7494 cat >>confdefs.h <<\_ACEOF
7495 #define HAVE_TIMEVAL 1
7500 { echo "$as_me:$LINENO: checking for struct exception" >&5
7501 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7502 if test "${emacs_cv_struct_exception+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7515 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7520 rm -f conftest.$ac_objext
7521 if { (ac_try="$ac_compile"
7523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7524 *) ac_try_echo
=$ac_try;;
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_compile") 2>conftest.er1
7529 grep -v '^ *+' conftest.er1
>conftest.err
7531 cat conftest.err
>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_c_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest.
$ac_objext; then
7537 emacs_cv_struct_exception
=yes
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.
$ac_ext >&5
7542 emacs_cv_struct_exception
=no
7545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7547 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7548 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7549 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7550 if test $emacs_cv_struct_exception != yes; then
7552 cat >>confdefs.h
<<\_ACEOF
7553 #define NO_MATHERR 1
7559 for ac_header
in sys
/socket.h
7561 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7562 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7565 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 ac_res
=`eval echo '${'$as_ac_Header'}'`
7569 { echo "$as_me:$LINENO: result: $ac_res" >&5
7570 echo "${ECHO_T}$ac_res" >&6; }
7572 # Is the header compilable?
7573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7575 cat >conftest.
$ac_ext <<_ACEOF
7578 cat confdefs.h
>>conftest.
$ac_ext
7579 cat >>conftest.
$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 #include <$ac_header>
7584 rm -f conftest.
$ac_objext
7585 if { (ac_try
="$ac_compile"
7587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 ac_header_compiler=yes
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 ac_header_compiler=no
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6; }
7613 # Is the header present?
7614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7616 cat >conftest.$ac_ext <<_ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <$ac_header>
7624 if { (ac_try="$ac_cpp conftest.$ac_ext"
7626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7627 *) ac_try_echo
=$ac_try;;
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7632 grep -v '^ *+' conftest.er1
>conftest.err
7634 cat conftest.err
>&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } >/dev
/null
&& {
7637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7640 ac_header_preproc
=yes
7642 echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.
$ac_ext >&5
7645 ac_header_preproc
=no
7648 rm -f conftest.err conftest.
$ac_ext
7649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7650 echo "${ECHO_T}$ac_header_preproc" >&6; }
7652 # So? What about this header?
7653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7659 ac_header_preproc
=yes
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 eval "$as_ac_Header=\$ac_header_preproc"
7684 ac_res
=`eval echo '${'$as_ac_Header'}'`
7685 { echo "$as_me:$LINENO: result: $ac_res" >&5
7686 echo "${ECHO_T}$ac_res" >&6; }
7689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7690 cat >>confdefs.h
<<_ACEOF
7691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7699 for ac_header
in net
/if.h
7701 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7704 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+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. */
7713 $ac_includes_default
7714 #if HAVE_SYS_SOCKET_H
7715 #include <sys/socket.h>
7718 #include <$ac_header>
7720 rm -f conftest.
$ac_objext
7721 if { (ac_try
="$ac_compile"
7723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727 (eval "$ac_compile") 2>conftest.er1
7729 grep -v '^ *+' conftest.er1 >conftest.err
7731 cat conftest.err >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } && {
7734 test -z "$ac_c_werror_flag" ||
7735 test ! -s conftest.err
7736 } && test -s conftest.$ac_objext; then
7737 eval "$as_ac_Header=yes"
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7742 eval "$as_ac_Header=no"
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 ac_res=`eval echo '${'$as_ac_Header'}'`
7748 { echo "$as_me:$LINENO: result: $ac_res" >&5
7749 echo "${ECHO_T}$ac_res" >&6; }
7750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7751 cat >>confdefs.h <<_ACEOF
7752 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7760 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7761 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7762 if test "${ac_cv_struct_tm+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 #include <sys/types.h>
7778 int *p = &tm.tm_sec;
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7788 *) ac_try_echo
=$ac_try;;
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7793 grep -v '^ *+' conftest.er1
>conftest.err
7795 cat conftest.err
>&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest.
$ac_objext; then
7801 ac_cv_struct_tm
=time.h
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.
$ac_ext >&5
7806 ac_cv_struct_tm
=sys
/time.h
7809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7811 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7812 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7813 if test $ac_cv_struct_tm = sys
/time.h
; then
7815 cat >>confdefs.h
<<\_ACEOF
7816 #define TM_IN_SYS_TIME 1
7821 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7822 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7823 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7824 echo $ECHO_N "(cached) $ECHO_C" >&6
7826 cat >conftest.
$ac_ext <<_ACEOF
7829 cat confdefs.h
>>conftest.
$ac_ext
7830 cat >>conftest.
$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 #include <sys/types.h>
7833 #include <$ac_cv_struct_tm>
7839 static struct tm ac_aggr;
7840 if (ac_aggr.tm_zone)
7846 rm -f conftest.
$ac_objext
7847 if { (ac_try
="$ac_compile"
7849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853 (eval "$ac_compile") 2>conftest.er1
7855 grep -v '^ *+' conftest.er1 >conftest.err
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } && {
7860 test -z "$ac_c_werror_flag" ||
7861 test ! -s conftest.err
7862 } && test -s conftest.$ac_objext; then
7863 ac_cv_member_struct_tm_tm_zone=yes
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <sys/types.h>
7875 #include <$ac_cv_struct_tm>
7881 static struct tm ac_aggr;
7882 if (sizeof ac_aggr.tm_zone)
7888 rm -f conftest.$ac_objext
7889 if { (ac_try="$ac_compile"
7891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7892 *) ac_try_echo
=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7897 grep -v '^ *+' conftest.er1
>conftest.err
7899 cat conftest.err
>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.
$ac_objext; then
7905 ac_cv_member_struct_tm_tm_zone
=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.
$ac_ext >&5
7910 ac_cv_member_struct_tm_tm_zone
=no
7913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7918 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7919 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7920 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7922 cat >>confdefs.h
<<_ACEOF
7923 #define HAVE_STRUCT_TM_TM_ZONE 1
7929 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7931 cat >>confdefs.h
<<\_ACEOF
7932 #define HAVE_TM_ZONE 1
7936 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7937 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7938 if test "${ac_cv_have_decl_tzname+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 cat >conftest.
$ac_ext <<_ACEOF
7944 cat confdefs.h
>>conftest.
$ac_ext
7945 cat >>conftest.
$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7960 rm -f conftest.
$ac_objext
7961 if { (ac_try
="$ac_compile"
7963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
7977 ac_cv_have_decl_tzname=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_cv_have_decl_tzname=no
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7988 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7989 if test $ac_cv_have_decl_tzname = yes; then
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_DECL_TZNAME 1
7997 cat >>confdefs.h <<_ACEOF
7998 #define HAVE_DECL_TZNAME 0
8005 { echo "$as_me:$LINENO: checking for tzname" >&5
8006 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8007 if test "${ac_cv_var_tzname+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8017 #if !HAVE_DECL_TZNAME
8018 extern char *tzname[];
8024 return tzname[0][0];
8029 rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8033 *) ac_try_echo
=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_link") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1
>conftest.err
8040 cat conftest.err
>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest
$ac_exeext &&
8046 $as_test_x conftest
$ac_exeext; then
8047 ac_cv_var_tzname
=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.
$ac_ext >&5
8055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8056 conftest
$ac_exeext conftest.
$ac_ext
8058 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8059 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8060 if test $ac_cv_var_tzname = yes; then
8062 cat >>confdefs.h
<<\_ACEOF
8063 #define HAVE_TZNAME 1
8069 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8070 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8071 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 cat >conftest.
$ac_ext <<_ACEOF
8077 cat confdefs.h
>>conftest.
$ac_ext
8078 cat >>conftest.
$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8085 static struct tm ac_aggr;
8086 if (ac_aggr.tm_gmtoff)
8092 rm -f conftest.
$ac_objext
8093 if { (ac_try
="$ac_compile"
8095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_compile") 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest.$ac_objext; then
8109 ac_cv_member_struct_tm_tm_gmtoff=yes
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8125 static struct tm ac_aggr;
8126 if (sizeof ac_aggr.tm_gmtoff)
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8136 *) ac_try_echo
=$ac_try;;
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_compile") 2>conftest.er1
8141 grep -v '^ *+' conftest.er1
>conftest.err
8143 cat conftest.err
>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest.
$ac_objext; then
8149 ac_cv_member_struct_tm_tm_gmtoff
=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.
$ac_ext >&5
8154 ac_cv_member_struct_tm_tm_gmtoff
=no
8157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8162 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8163 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8164 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8166 cat >>confdefs.h
<<\_ACEOF
8167 #define HAVE_TM_GMTOFF 1
8172 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8173 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8174 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.
$ac_ext <<_ACEOF
8180 cat confdefs.h
>>conftest.
$ac_ext
8181 cat >>conftest.
$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 $ac_includes_default
8184 #if HAVE_SYS_SOCKET_H
8185 #include <sys/socket.h>
8194 static struct ifreq ac_aggr;
8195 if (ac_aggr.ifr_flags)
8201 rm -f conftest.
$ac_objext
8202 if { (ac_try
="$ac_compile"
8204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_compile") 2>conftest.er1
8210 grep -v '^ *+' conftest.er1 >conftest.err
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } && {
8215 test -z "$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 } && test -s conftest.$ac_objext; then
8218 ac_cv_member_struct_ifreq_ifr_flags=yes
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 cat >conftest.$ac_ext <<_ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8230 #if HAVE_SYS_SOCKET_H
8231 #include <sys/socket.h>
8240 static struct ifreq ac_aggr;
8241 if (sizeof ac_aggr.ifr_flags)
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8251 *) ac_try_echo
=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8256 grep -v '^ *+' conftest.er1
>conftest.err
8258 cat conftest.err
>&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.
$ac_objext; then
8264 ac_cv_member_struct_ifreq_ifr_flags
=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.
$ac_ext >&5
8269 ac_cv_member_struct_ifreq_ifr_flags
=no
8272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8278 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8279 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8281 cat >>confdefs.h
<<_ACEOF
8282 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8287 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8288 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8289 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 cat >conftest.
$ac_ext <<_ACEOF
8295 cat confdefs.h
>>conftest.
$ac_ext
8296 cat >>conftest.
$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 $ac_includes_default
8299 #if HAVE_SYS_SOCKET_H
8300 #include <sys/socket.h>
8309 static struct ifreq ac_aggr;
8310 if (ac_aggr.ifr_hwaddr)
8316 rm -f conftest.
$ac_objext
8317 if { (ac_try
="$ac_compile"
8319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8335 echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8338 cat >conftest.$ac_ext <<_ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8355 static struct ifreq ac_aggr;
8356 if (sizeof ac_aggr.ifr_hwaddr)
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8366 *) ac_try_echo
=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8371 grep -v '^ *+' conftest.er1
>conftest.err
8373 cat conftest.err
>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.
$ac_objext; then
8379 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.
$ac_ext >&5
8384 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8393 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8394 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8396 cat >>confdefs.h
<<_ACEOF
8397 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8402 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8403 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8404 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 cat >conftest.
$ac_ext <<_ACEOF
8410 cat confdefs.h
>>conftest.
$ac_ext
8411 cat >>conftest.
$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 $ac_includes_default
8414 #if HAVE_SYS_SOCKET_H
8415 #include <sys/socket.h>
8424 static struct ifreq ac_aggr;
8425 if (ac_aggr.ifr_netmask)
8431 rm -f conftest.
$ac_objext
8432 if { (ac_try
="$ac_compile"
8434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 ac_cv_member_struct_ifreq_ifr_netmask=yes
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 #if HAVE_SYS_SOCKET_H
8461 #include <sys/socket.h>
8470 static struct ifreq ac_aggr;
8471 if (sizeof ac_aggr.ifr_netmask)
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8481 *) ac_try_echo
=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1
>conftest.err
8488 cat conftest.err
>&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.
$ac_objext; then
8494 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.
$ac_ext >&5
8499 ac_cv_member_struct_ifreq_ifr_netmask
=no
8502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8507 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8508 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8509 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8511 cat >>confdefs.h
<<_ACEOF
8512 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8517 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8518 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8519 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 cat >conftest.
$ac_ext <<_ACEOF
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 $ac_includes_default
8529 #if HAVE_SYS_SOCKET_H
8530 #include <sys/socket.h>
8539 static struct ifreq ac_aggr;
8540 if (ac_aggr.ifr_broadaddr)
8546 rm -f conftest.
$ac_objext
8547 if { (ac_try
="$ac_compile"
8549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_compile") 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest.$ac_objext; then
8563 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8565 echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8575 #if HAVE_SYS_SOCKET_H
8576 #include <sys/socket.h>
8585 static struct ifreq ac_aggr;
8586 if (sizeof ac_aggr.ifr_broadaddr)
8592 rm -f conftest.$ac_objext
8593 if { (ac_try="$ac_compile"
8595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8596 *) ac_try_echo
=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1
>conftest.err
8603 cat conftest.err
>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.
$ac_objext; then
8609 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.
$ac_ext >&5
8614 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8623 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8624 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8626 cat >>confdefs.h
<<_ACEOF
8627 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8632 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8633 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8634 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 cat >conftest.
$ac_ext <<_ACEOF
8640 cat confdefs.h
>>conftest.
$ac_ext
8641 cat >>conftest.
$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 #if HAVE_SYS_SOCKET_H
8645 #include <sys/socket.h>
8654 static struct ifreq ac_aggr;
8655 if (ac_aggr.ifr_addr)
8661 rm -f conftest.
$ac_objext
8662 if { (ac_try
="$ac_compile"
8664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_addr=yes
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8689 $ac_includes_default
8690 #if HAVE_SYS_SOCKET_H
8691 #include <sys/socket.h>
8700 static struct ifreq ac_aggr;
8701 if (sizeof ac_aggr.ifr_addr)
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8711 *) ac_try_echo
=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.
$ac_objext; then
8724 ac_cv_member_struct_ifreq_ifr_addr
=yes
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.
$ac_ext >&5
8729 ac_cv_member_struct_ifreq_ifr_addr
=no
8732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8738 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8739 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8741 cat >>confdefs.h
<<_ACEOF
8742 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8750 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8751 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8752 if test "$ac_cv_prog_cc_c89" != no
; then
8753 { echo "$as_me:$LINENO: result: yes" >&5
8754 echo "${ECHO_T}yes" >&6; }
8756 cat >>confdefs.h
<<\_ACEOF
8757 #define PROTOTYPES 1
8761 cat >>confdefs.h
<<\_ACEOF
8762 #define __PROTOTYPES 1
8766 { echo "$as_me:$LINENO: result: no" >&5
8767 echo "${ECHO_T}no" >&6; }
8770 { echo "$as_me:$LINENO: checking for working volatile" >&5
8771 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8772 if test "${ac_cv_c_volatile+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 cat >conftest.
$ac_ext <<_ACEOF
8778 cat confdefs.h
>>conftest.
$ac_ext
8779 cat >>conftest.
$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8787 int * volatile y = (int *) 0;
8793 rm -f conftest.
$ac_objext
8794 if { (ac_try
="$ac_compile"
8796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.$ac_objext; then
8810 ac_cv_c_volatile=yes
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8821 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8822 if test $ac_cv_c_volatile = no; then
8824 cat >>confdefs.h <<\_ACEOF
8830 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8831 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8832 if test "${ac_cv_c_const+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8845 /* FIXME: Include the comments suggested by Paul. */
8847 /* Ultrix mips cc rejects this. */
8848 typedef int charset[2];
8850 /* SunOS 4.1.1 cc rejects this. */
8851 char const *const *pcpcc;
8853 /* NEC SVR4.0.2 mips cc rejects this. */
8854 struct point {int x, y;};
8855 static struct point const zero = {0,0};
8856 /* AIX XL C 1.02.0.0 rejects this.
8857 It does not let you subtract one const X* pointer from another in
8858 an arm of an if-expression whose if-part is not a constant
8860 const char *g = "string";
8861 pcpcc = &g + (g ? g-g : 0);
8862 /* HPUX 7.0 cc rejects these. */
8864 ppc = (char**) pcpcc;
8865 pcpcc = (char const *const *) ppc;
8866 { /* SCO 3.2v4 cc rejects this. */
8868 char const *s = 0 ? (char *) 0 : (char const *) 0;
8873 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8875 const int *foo = &x[0];
8878 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8879 typedef const int *iptr;
8883 { /* AIX XL C 1.02.0.0 rejects this saying
8884 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8885 struct s { int j; const int *ap[3]; };
8886 struct s *b; b->j = 5;
8888 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8892 return !cs[0] && !zero.x;
8899 rm -f conftest.$ac_objext
8900 if { (ac_try="$ac_compile"
8902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8903 *) ac_try_echo
=$ac_try;;
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_compile") 2>conftest.er1
8908 grep -v '^ *+' conftest.er1
>conftest.err
8910 cat conftest.err
>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest.
$ac_objext; then
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.
$ac_ext >&5
8924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8926 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8927 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8928 if test $ac_cv_c_const = no
; then
8930 cat >>confdefs.h
<<\_ACEOF
8936 { echo "$as_me:$LINENO: checking for void * support" >&5
8937 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8938 if test "${emacs_cv_void_star+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8956 rm -f conftest.
$ac_objext
8957 if { (ac_try
="$ac_compile"
8959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8965 grep -v '^ *+' conftest.er1 >conftest.err
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.$ac_objext; then
8973 emacs_cv_void_star=yes
8975 echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 emacs_cv_void_star=no
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8984 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8985 if test $emacs_cv_void_star = yes; then
8986 cat >>confdefs.h <<\_ACEOF
8987 #define POINTER_TYPE void
8991 cat >>confdefs.h <<\_ACEOF
8992 #define POINTER_TYPE char
9001 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9002 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9003 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9004 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 cat >conftest.make <<\_ACEOF
9010 @echo '@@@%%%=$(MAKE)=@@@%%%'
9012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9013 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9015 eval ac_cv_prog_make_${ac_make}_set=yes;;
9017 eval ac_cv_prog_make_${ac_make}_set=no;;
9021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9022 { echo "$as_me:$LINENO: result: yes" >&5
9023 echo "${ECHO_T}yes" >&6; }
9026 { echo "$as_me:$LINENO: result: no" >&5
9027 echo "${ECHO_T}no" >&6; }
9028 SET_MAKE="MAKE=${MAKE-make}"
9032 { echo "$as_me:$LINENO: checking for long file names" >&5
9033 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9034 if test "${ac_cv_sys_long_file_names+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 ac_cv_sys_long_file_names=yes
9038 # Test for long file names in all the places we know might matter:
9039 # . the current directory, where building will happen
9040 # $prefix/lib where we will be installing things
9041 # $exec_prefix/lib likewise
9042 # $TMPDIR if set, where it might want to write temporary files
9043 # /tmp where it might want to write temporary files
9046 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9047 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9048 # in the usual case where exec_prefix is '${prefix}'.
9050 . | /* | ?:[\\/]*) ;; #(
9053 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9054 ac_xdir=$ac_dir/cf$$
9055 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9056 ac_tf1=$ac_xdir/conftest9012345
9057 ac_tf2=$ac_xdir/conftest9012346
9058 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9059 ac_cv_sys_long_file_names=no
9060 rm -f -r "$ac_xdir" 2>/dev/null
9061 test $ac_cv_sys_long_file_names = no && break
9064 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9065 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9066 if test $ac_cv_sys_long_file_names = yes; then
9068 cat >>confdefs.h <<\_ACEOF
9069 #define HAVE_LONG_FILE_NAMES 1
9075 #### Choose a window system.
9077 { echo "$as_me:$LINENO: checking for X" >&5
9078 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9081 # Check whether --with-x was given.
9082 if test "${with_x+set}" = set; then
9086 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9087 if test "x$with_x" = xno; then
9088 # The user explicitly disabled X.
9091 case $x_includes,$x_libraries in #(
9092 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9093 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9094 { (exit 1); exit 1; }; };; #(
9095 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 # One or both of the vars are not set, and there is no cached value.
9099 ac_x_includes=no ac_x_libraries=no
9100 rm -f -r conftest.dir
9101 if mkdir conftest.dir; then
9103 cat >Imakefile <<'_ACEOF'
9105 @echo incroot='${INCROOT}'
9107 @echo usrlibdir='${USRLIBDIR}'
9109 @echo libdir='${LIBDIR}'
9111 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9113 for ac_var in incroot usrlibdir libdir; do
9114 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9116 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9117 for ac_extension in a so sl; do
9118 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9119 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9120 ac_im_usrlibdir=$ac_im_libdir; break
9123 # Screen out bogus values from the imake configuration. They are
9124 # bogus both because they are the default anyway, and because
9125 # using them would break gcc on systems where it needs fixed includes.
9126 case $ac_im_incroot in
9127 /usr/include) ac_x_includes= ;;
9128 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9130 case $ac_im_usrlibdir in
9132 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9136 rm -f -r conftest.dir
9139 # Standard set of common directories for X headers.
9140 # Check X11 before X11Rn because it is often a symlink to the current release.
9152 /usr/local/X11/include
9153 /usr/local/X11R6/include
9154 /usr/local/X11R5/include
9155 /usr/local/X11R4/include
9157 /usr/local/include/X11
9158 /usr/local/include/X11R6
9159 /usr/local/include/X11R5
9160 /usr/local/include/X11R4
9164 /usr/XFree86/include/X11
9168 /usr/unsupported/include
9170 /usr/local/x11r5/include
9171 /usr/lpp/Xamples/include
9173 /usr/openwin/include
9174 /usr/openwin/share/include'
9176 if test "$ac_x_includes" = no; then
9177 # Guess where to find include files, by looking for Xlib.h.
9178 # First, try using that file with no special directory specified.
9179 cat >conftest.$ac_ext <<_ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 #include <X11/Xlib.h>
9187 if { (ac_try="$ac_cpp conftest.$ac_ext"
9189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9190 *) ac_try_echo
=$ac_try;;
9192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9195 grep -v '^ *+' conftest.er1
>conftest.err
9197 cat conftest.err
>&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } >/dev
/null
&& {
9200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9201 test ! -s conftest.err
9203 # We can compile using X headers with no special include directory.
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.
$ac_ext >&5
9209 for ac_dir
in $ac_x_header_dirs; do
9210 if test -r "$ac_dir/X11/Xlib.h"; then
9211 ac_x_includes
=$ac_dir
9217 rm -f conftest.err conftest.
$ac_ext
9218 fi # $ac_x_includes = no
9220 if test "$ac_x_libraries" = no
; then
9221 # Check for the libraries.
9222 # See if we find them without any special options.
9223 # Don't add to $LIBS permanently.
9226 cat >conftest.
$ac_ext <<_ACEOF
9229 cat confdefs.h
>>conftest.
$ac_ext
9230 cat >>conftest.
$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 #include <X11/Xlib.h>
9241 rm -f conftest.
$ac_objext conftest
$ac_exeext
9242 if { (ac_try
="$ac_link"
9244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_link") 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest$ac_exeext &&
9258 $as_test_x conftest$ac_exeext; then
9260 # We can link X programs with no special library path.
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9267 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9269 # Don't even attempt the hair of trying to link an X program!
9270 for ac_extension in a so sl; do
9271 if test -r "$ac_dir/libX11.$ac_extension"; then
9272 ac_x_libraries=$ac_dir
9279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9280 conftest$ac_exeext conftest.$ac_ext
9281 fi # $ac_x_libraries = no
9283 case $ac_x_includes,$ac_x_libraries in #(
9285 # Didn't find X, or a directory has "'" in its name.
9286 ac_cv_have_x="have_x=no";; #(
9288 # Record where we found X for the cache.
9289 ac_cv_have_x="have_x=yes\
9290 ac_x_includes='$ac_x_includes'\
9291 ac_x_libraries='$ac_x_libraries'"
9297 eval "$ac_cv_have_x"
9300 if test "$have_x" != yes; then
9301 { echo "$as_me:$LINENO: result: $have_x" >&5
9302 echo "${ECHO_T}$have_x" >&6; }
9305 # If each of the values was on the command line, it overrides each guess.
9306 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9307 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9308 # Update the cache value to reflect the command line values.
9309 ac_cv_have_x="have_x=yes\
9310 ac_x_includes='$x_includes'\
9311 ac_x_libraries='$x_libraries'"
9312 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9313 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9316 if test "$no_x" = yes; then
9322 ## Workaround for bug in autoconf <= 2.62.
9323 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9324 ## No need to do anything special for these standard directories.
9325 ## This is an experiment, take it out if it causes problems.
9326 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9328 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9332 if test "${x_libraries}" != NONE; then
9333 if test -n "${x_libraries}"; then
9334 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9335 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9337 x_default_search_path=""
9338 x_search_path=${x_libraries}
9339 if test -z "${x_search_path}"; then
9340 x_search_path=/usr/lib
9342 for x_library in `echo ${x_search_path}: | \
9343 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9345 ${x_library}/X11/%L/%T/%N%C%S:\
9346 ${x_library}/X11/%l/%T/%N%C%S:\
9347 ${x_library}/X11/%T/%N%C%S:\
9348 ${x_library}/X11/%L/%T/%N%S:\
9349 ${x_library}/X11/%l/%T/%N%S:\
9350 ${x_library}/X11/%T/%N%S"
9351 if test x"${x_default_search_path}" = x; then
9352 x_default_search_path=${x_search_path}
9354 x_default_search_path="${x_search_path}:${x_default_search_path}"
9358 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9359 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9362 if test x"${x_includes}" = x; then
9363 bitmapdir=/usr/include/X11/bitmaps
9365 # accumulate include directories that have X11 bitmap subdirectories
9367 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9368 if test -d "${bmd}/X11/bitmaps"; then
9369 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9371 if test -d "${bmd}/bitmaps"; then
9372 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9375 if test ${bmd_acc} != "dummyval"; then
9376 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9381 if test "${with_carbon}" != no; then
9382 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9383 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9384 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9385 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9389 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9391 # Is the header compilable?
9392 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9393 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 $ac_includes_default
9401 #include <Carbon/Carbon.h>
9403 rm -f conftest.$ac_objext
9404 if { (ac_try="$ac_compile"
9406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9407 *) ac_try_echo
=$ac_try;;
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_compile") 2>conftest.er1
9412 grep -v '^ *+' conftest.er1
>conftest.err
9414 cat conftest.err
>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } && {
9417 test -z "$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9419 } && test -s conftest.
$ac_objext; then
9420 ac_header_compiler
=yes
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.
$ac_ext >&5
9425 ac_header_compiler
=no
9428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9430 echo "${ECHO_T}$ac_header_compiler" >&6; }
9432 # Is the header present?
9433 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9434 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9435 cat >conftest.
$ac_ext <<_ACEOF
9438 cat confdefs.h
>>conftest.
$ac_ext
9439 cat >>conftest.
$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9441 #include <Carbon/Carbon.h>
9443 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9451 grep -v '^ *+' conftest.er1 >conftest.err
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } >/dev/null && {
9456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9459 ac_header_preproc=yes
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 ac_header_preproc=no
9467 rm -f conftest.err conftest.$ac_ext
9468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9469 echo "${ECHO_T}$ac_header_preproc" >&6; }
9471 # So? What about this header?
9472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9474 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9475 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9476 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9477 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9478 ac_header_preproc=yes
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9491 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9492 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9496 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9497 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9498 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9503 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9504 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9507 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9513 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9514 if test "${with_carbon+set}" != set \
9515 && test "${carbon_appdir_x+set}" != set; then
9516 for var in with_x with_x_toolkit with_xim \
9517 with_xpm with_jpeg with_tiff with_gif with_png; do
9518 if eval test \"\${$var+set}\" = set; then
9525 if test "${HAVE_CARBON}" = yes; then
9529 case "${window_system}" in
9533 case "${with_x_toolkit}" in
9534 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9535 motif ) USE_X_TOOLKIT=MOTIF ;;
9537 USE_X_TOOLKIT=none ;;
9538 no ) USE_X_TOOLKIT=none ;;
9539 * ) USE_X_TOOLKIT=maybe ;;
9549 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9550 # Extract the first word of "X", so it can be a program name with args.
9551 set dummy X; ac_word=$2
9552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9554 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 if test -n "$HAVE_XSERVER"; then
9558 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567 ac_cv_prog_HAVE_XSERVER="true"
9568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9575 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9578 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9579 if test -n "$HAVE_XSERVER"; then
9580 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9581 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9583 { echo "$as_me:$LINENO: result: no" >&5
9584 echo "${ECHO_T}no" >&6; }
9588 if test "$HAVE_XSERVER" = true ||
9589 test -n "$DISPLAY" ||
9590 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9591 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9592 were found. You should install the relevant development files for X
9593 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9594 sure you have development files for image handling, i.e.
9595 tiff, gif, jpeg, png and xpm.
9596 If you are sure you want Emacs compiled without X window support, pass
9599 echo "$as_me: error: You seem to be running X, but no X development libraries
9600 were found. You should install the relevant development files for X
9601 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9602 sure you have development files for image handling, i.e.
9603 tiff, gif, jpeg, png and xpm.
9604 If you are sure you want Emacs compiled without X window support, pass
9606 to configure." >&2;}
9607 { (exit 1); exit 1; }; }
9611 ### If we're using X11, we should use the X menu package.
9614 yes ) HAVE_MENUS=yes ;;
9617 ### Compute the unexec source name from the object name.
9618 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9620 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9621 # Assume not, until told otherwise.
9624 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9625 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9626 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 cat >conftest.$ac_ext <<_ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9637 #define malloc_get_state innocuous_malloc_get_state
9639 /* System header to define __stub macros and hopefully few prototypes,
9640 which can conflict with char malloc_get_state (); below.
9641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9642 <limits.h> exists even on freestanding compilers. */
9645 # include <limits.h>
9647 # include <assert.h>
9650 #undef malloc_get_state
9652 /* Override any GCC internal prototype to avoid an error.
9653 Use char because int might match the return type of a GCC
9654 builtin and then its argument prototype would still apply. */
9658 char malloc_get_state ();
9659 /* The GNU C library defines this for functions which it implements
9660 to always fail with ENOSYS. Some functions are actually named
9661 something starting with __ and the normal name is an alias. */
9662 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9669 return malloc_get_state ();
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9678 *) ac_try_echo
=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9683 grep -v '^ *+' conftest.er1
>conftest.err
9685 cat conftest.err
>&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest
$ac_exeext &&
9691 $as_test_x conftest
$ac_exeext; then
9692 ac_cv_func_malloc_get_state
=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.
$ac_ext >&5
9697 ac_cv_func_malloc_get_state
=no
9700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9701 conftest
$ac_exeext conftest.
$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9704 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9705 if test $ac_cv_func_malloc_get_state = yes; then
9711 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9712 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 cat >conftest.
$ac_ext <<_ACEOF
9719 cat confdefs.h
>>conftest.
$ac_ext
9720 cat >>conftest.
$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724 #define malloc_set_state innocuous_malloc_set_state
9726 /* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char malloc_set_state (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9732 # include <limits.h>
9734 # include <assert.h>
9737 #undef malloc_set_state
9739 /* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9745 char malloc_set_state ();
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9756 return malloc_set_state ();
9761 rm -f conftest.
$ac_objext conftest
$ac_exeext
9762 if { (ac_try
="$ac_link"
9764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest$ac_exeext &&
9778 $as_test_x conftest$ac_exeext; then
9779 ac_cv_func_malloc_set_state=yes
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 ac_cv_func_malloc_set_state=no
9787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9788 conftest$ac_exeext conftest.$ac_ext
9790 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9791 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9792 if test $ac_cv_func_malloc_set_state = yes; then
9798 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9799 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9800 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 cat >conftest.$ac_ext <<_ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 extern void (* __after_morecore_hook)();
9813 __after_morecore_hook = 0
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9822 *) ac_try_echo
=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_link") 2>conftest.er1
9827 grep -v '^ *+' conftest.er1
>conftest.err
9829 cat conftest.err
>&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); } && {
9832 test -z "$ac_c_werror_flag" ||
9833 test ! -s conftest.err
9834 } && test -s conftest
$ac_exeext &&
9835 $as_test_x conftest
$ac_exeext; then
9836 emacs_cv_var___after_morecore_hook
=yes
9838 echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.
$ac_ext >&5
9841 emacs_cv_var___after_morecore_hook
=no
9844 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9845 conftest
$ac_exeext conftest.
$ac_ext
9847 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9848 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9849 if test $emacs_cv_var___after_morecore_hook = no
; then
9852 if test "${system_malloc}" = "yes"; then
9855 (The GNU allocators don't work with this system configuration.)"
9857 if test "$doug_lea_malloc" = "yes" ; then
9858 if test "$GNU_MALLOC" = yes ; then
9860 (Using Doug Lea's new malloc from the GNU C Library.)"
9863 cat >>confdefs.h
<<\_ACEOF
9864 #define DOUG_LEA_MALLOC 1
9869 if test x
"${REL_ALLOC}" = x
; then
9870 REL_ALLOC
=${GNU_MALLOC}
9876 for ac_header
in stdlib.h unistd.h
9878 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9879 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9882 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 ac_res
=`eval echo '${'$as_ac_Header'}'`
9886 { echo "$as_me:$LINENO: result: $ac_res" >&5
9887 echo "${ECHO_T}$ac_res" >&6; }
9889 # Is the header compilable?
9890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9892 cat >conftest.
$ac_ext <<_ACEOF
9895 cat confdefs.h
>>conftest.
$ac_ext
9896 cat >>conftest.
$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 #include <$ac_header>
9901 rm -f conftest.
$ac_objext
9902 if { (ac_try
="$ac_compile"
9904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_compile") 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest.$ac_objext; then
9918 ac_header_compiler=yes
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ac_header_compiler=no
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9928 echo "${ECHO_T}$ac_header_compiler" >&6; }
9930 # Is the header present?
9931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 #include <$ac_header>
9941 if { (ac_try="$ac_cpp conftest.$ac_ext"
9943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9944 *) ac_try_echo
=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1
>conftest.err
9951 cat conftest.err
>&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } >/dev
/null
&& {
9954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9957 ac_header_preproc
=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.
$ac_ext >&5
9962 ac_header_preproc
=no
9965 rm -f conftest.err conftest.
$ac_ext
9966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9967 echo "${ECHO_T}$ac_header_preproc" >&6; }
9969 # So? What about this header?
9970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9976 ac_header_preproc
=yes
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9996 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 eval "$as_ac_Header=\$ac_header_preproc"
10001 ac_res
=`eval echo '${'$as_ac_Header'}'`
10002 { echo "$as_me:$LINENO: result: $ac_res" >&5
10003 echo "${ECHO_T}$ac_res" >&6; }
10006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10007 cat >>confdefs.h
<<_ACEOF
10008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10016 for ac_func
in getpagesize
10018 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10021 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 cat >conftest.
$ac_ext <<_ACEOF
10027 cat confdefs.h
>>conftest.
$ac_ext
10028 cat >>conftest.
$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10032 #define $ac_func innocuous_$ac_func
10034 /* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char $ac_func (); below.
10036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10037 <limits.h> exists even on freestanding compilers. */
10040 # include <limits.h>
10042 # include <assert.h>
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10054 /* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
10057 #if defined __stub_$ac_func || defined __stub___$ac_func
10064 return $ac_func ();
10069 rm -f conftest.
$ac_objext conftest
$ac_exeext
10070 if { (ac_try
="$ac_link"
10071 case "(($ac_try" in
10072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_link") 2>conftest.er1
10078 grep -v '^ *+' conftest.er1 >conftest.err
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && {
10083 test -z "$ac_c_werror_flag" ||
10084 test ! -s conftest.err
10085 } && test -s conftest$ac_exeext &&
10086 $as_test_x conftest$ac_exeext; then
10087 eval "$as_ac_var=yes"
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 eval "$as_ac_var=no"
10095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096 conftest$ac_exeext conftest.$ac_ext
10098 ac_res=`eval echo '${'$as_ac_var'}'`
10099 { echo "$as_me:$LINENO: result: $ac_res" >&5
10100 echo "${ECHO_T}$ac_res" >&6; }
10101 if test `eval echo '${'$as_ac_var'}'` = yes; then
10102 cat >>confdefs.h <<_ACEOF
10103 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10109 { echo "$as_me:$LINENO: checking for working mmap" >&5
10110 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10111 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 if test "$cross_compiling" = yes; then
10115 ac_cv_func_mmap_fixed_mapped=no
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 $ac_includes_default
10124 /* malloc might have been renamed as rpl_malloc. */
10127 /* Thanks to Mike Haertel and Jim Avera for this test.
10128 Here is a matrix of mmap possibilities:
10129 mmap private not fixed
10130 mmap private fixed at somewhere currently unmapped
10131 mmap private fixed at somewhere already mapped
10132 mmap shared not fixed
10133 mmap shared fixed at somewhere currently unmapped
10134 mmap shared fixed at somewhere already mapped
10135 For private mappings, we should verify that changes cannot be read()
10136 back from the file, nor mmap's back from the file at a different
10137 address. (There have been systems where private was not correctly
10138 implemented like the infamous i386 svr4.0, and systems where the
10139 VM page cache was not coherent with the file system buffer cache
10140 like early versions of FreeBSD and possibly contemporary NetBSD.)
10141 For shared mappings, we should conversely verify that changes get
10142 propagated back to all the places they're supposed to be.
10144 Grep wants private fixed already mapped.
10145 The main things grep needs to know about mmap are:
10146 * does it exist and is it safe to write into the mmap'd area
10147 * how to use it (BSD variants) */
10150 #include <sys/mman.h>
10152 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10156 /* This mess was copied from the GNU getpagesize.h. */
10157 #ifndef HAVE_GETPAGESIZE
10158 /* Assume that all systems that can run configure have sys/param.h. */
10159 # ifndef HAVE_SYS_PARAM_H
10160 # define HAVE_SYS_PARAM_H 1
10163 # ifdef _SC_PAGESIZE
10164 # define getpagesize() sysconf(_SC_PAGESIZE)
10165 # else /* no _SC_PAGESIZE */
10166 # ifdef HAVE_SYS_PARAM_H
10167 # include <sys/param.h>
10168 # ifdef EXEC_PAGESIZE
10169 # define getpagesize() EXEC_PAGESIZE
10170 # else /* no EXEC_PAGESIZE */
10172 # define getpagesize() NBPG * CLSIZE
10175 # endif /* no CLSIZE */
10176 # else /* no NBPG */
10178 # define getpagesize() NBPC
10179 # else /* no NBPC */
10181 # define getpagesize() PAGESIZE
10182 # endif /* PAGESIZE */
10183 # endif /* no NBPC */
10184 # endif /* no NBPG */
10185 # endif /* no EXEC_PAGESIZE */
10186 # else /* no HAVE_SYS_PARAM_H */
10187 # define getpagesize() 8192 /* punt totally */
10188 # endif /* no HAVE_SYS_PARAM_H */
10189 # endif /* no _SC_PAGESIZE */
10191 #endif /* no HAVE_GETPAGESIZE */
10196 char *data, *data2, *data3;
10200 pagesize = getpagesize ();
10202 /* First, make a file with some known garbage in it. */
10203 data = (char *) malloc (pagesize);
10206 for (i = 0; i < pagesize; ++i)
10207 *(data + i) = rand ();
10209 fd = creat ("conftest.mmap", 0600);
10212 if (write (fd, data, pagesize) != pagesize)
10216 /* Next, try to mmap the file at a fixed address which already has
10217 something else allocated at it. If we can, also make sure that
10218 we see the same garbage. */
10219 fd = open ("conftest.mmap", O_RDWR);
10222 data2 = (char *) malloc (2 * pagesize);
10225 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10226 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10227 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10229 for (i = 0; i < pagesize; ++i)
10230 if (*(data + i) != *(data2 + i))
10233 /* Finally, make sure that changes to the mapped area do not
10234 percolate back to the file as seen by read(). (This is a bug on
10235 some variants of i386 svr4.0.) */
10236 for (i = 0; i < pagesize; ++i)
10237 *(data2 + i) = *(data2 + i) + 1;
10238 data3 = (char *) malloc (pagesize);
10241 if (read (fd, data3, pagesize) != pagesize)
10243 for (i = 0; i < pagesize; ++i)
10244 if (*(data + i) != *(data3 + i))
10250 rm -f conftest$ac_exeext
10251 if { (ac_try="$ac_link"
10252 case "(($ac_try" in
10253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10254 *) ac_try_echo
=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_link") 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10261 { (case "(($ac_try" in
10262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_try") 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_func_mmap_fixed_mapped=yes
10272 echo "$as_me: program exited with status $ac_status" >&5
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ( exit $ac_status )
10277 ac_cv_func_mmap_fixed_mapped=no
10279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10284 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10285 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10286 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_MMAP 1
10293 rm -f conftest.mmap
10295 if test $use_mmap_for_buffers = yes; then
10299 LIBS="$libsrc_libs $LIBS"
10302 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10303 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10304 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 ac_check_lib_save_LIBS=$LIBS
10308 LIBS="-ldnet $LIBS"
10309 cat >conftest.$ac_ext <<_ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10316 /* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10326 return dnet_ntoa ();
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10335 *) ac_try_echo
=$ac_try;;
10337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10338 (eval "$ac_link") 2>conftest.er1
10340 grep -v '^ *+' conftest.er1
>conftest.err
10342 cat conftest.err
>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } && {
10345 test -z "$ac_c_werror_flag" ||
10346 test ! -s conftest.err
10347 } && test -s conftest
$ac_exeext &&
10348 $as_test_x conftest
$ac_exeext; then
10349 ac_cv_lib_dnet_dnet_ntoa
=yes
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.
$ac_ext >&5
10354 ac_cv_lib_dnet_dnet_ntoa
=no
10357 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10358 conftest
$ac_exeext conftest.
$ac_ext
10359 LIBS
=$ac_check_lib_save_LIBS
10361 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10362 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10363 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10364 cat >>confdefs.h
<<_ACEOF
10365 #define HAVE_LIBDNET 1
10368 LIBS
="-ldnet $LIBS"
10373 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10374 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10375 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 ac_check_lib_save_LIBS
=$LIBS
10379 LIBS
="-lXbsd $LIBS"
10380 cat >conftest.
$ac_ext <<_ACEOF
10383 cat confdefs.h
>>conftest.
$ac_ext
10384 cat >>conftest.
$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10396 rm -f conftest.
$ac_objext conftest
$ac_exeext
10397 if { (ac_try
="$ac_link"
10398 case "(($ac_try" in
10399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_link") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest$ac_exeext &&
10413 $as_test_x conftest$ac_exeext; then
10414 ac_cv_lib_Xbsd_main=yes
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_cv_lib_Xbsd_main=no
10422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10423 conftest$ac_exeext conftest.$ac_ext
10424 LIBS=$ac_check_lib_save_LIBS
10426 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10427 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10428 if test $ac_cv_lib_Xbsd_main = yes; then
10429 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10434 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10435 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10436 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 ac_check_lib_save_LIBS=$LIBS
10440 LIBS="-lpthreads $LIBS"
10441 cat >conftest.$ac_ext <<_ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10448 /* Override any GCC internal prototype to avoid an error.
10449 Use char because int might match the return type of a GCC
10450 builtin and then its argument prototype would still apply. */
10458 return cma_open ();
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10467 *) ac_try_echo
=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_link") 2>conftest.er1
10472 grep -v '^ *+' conftest.er1
>conftest.err
10474 cat conftest.err
>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest
$ac_exeext &&
10480 $as_test_x conftest
$ac_exeext; then
10481 ac_cv_lib_pthreads_cma_open
=yes
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.
$ac_ext >&5
10486 ac_cv_lib_pthreads_cma_open
=no
10489 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10490 conftest
$ac_exeext conftest.
$ac_ext
10491 LIBS
=$ac_check_lib_save_LIBS
10493 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10494 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10495 if test $ac_cv_lib_pthreads_cma_open = yes; then
10496 cat >>confdefs.h
<<_ACEOF
10497 #define HAVE_LIBPTHREADS 1
10500 LIBS
="-lpthreads $LIBS"
10508 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10509 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10510 if test "${gdb_cv_bigtoc+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10516 *) gdb_cv_bigtoc
=-bbigtoc ;;
10519 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10520 cat >conftest.
$ac_ext <<_ACEOF
10523 cat confdefs.h
>>conftest.
$ac_ext
10524 cat >>conftest.
$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10535 rm -f conftest.
$ac_objext conftest
$ac_exeext
10536 if { (ac_try
="$ac_link"
10537 case "(($ac_try" in
10538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_link") 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } && {
10549 test -z "$ac_c_werror_flag" ||
10550 test ! -s conftest.err
10551 } && test -s conftest$ac_exeext &&
10552 $as_test_x conftest$ac_exeext; then
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10565 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10566 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10570 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10571 # used for the tests that follow. We set them back to REAL_CFLAGS and
10572 # REAL_CPPFLAGS later on.
10574 REAL_CPPFLAGS="$CPPFLAGS"
10576 if test "${HAVE_X11}" = "yes"; then
10577 DEFS="$C_SWITCH_X_SITE $DEFS"
10578 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10580 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10581 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10583 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10584 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10585 # but it's more convenient here to set LD_RUN_PATH
10586 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10587 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10588 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10592 if test "${opsys}" = "gnu-linux"; then
10593 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10594 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10605 XOpenDisplay ("foo");
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 xlinux_first_failure
=no
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.
$ac_ext >&5
10633 xlinux_first_failure
=yes
10636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10637 conftest
$ac_exeext conftest.
$ac_ext
10638 if test "${xlinux_first_failure}" = "yes"; then
10639 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10640 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10641 OLD_CPPFLAGS
="$CPPFLAGS"
10643 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10644 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10645 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10646 LIBS
="$LIBS -b i486-linuxaout"
10647 cat >conftest.
$ac_ext <<_ACEOF
10650 cat confdefs.h
>>conftest.
$ac_ext
10651 cat >>conftest.
$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10657 XOpenDisplay ("foo");
10662 rm -f conftest.
$ac_objext conftest
$ac_exeext
10663 if { (ac_try
="$ac_link"
10664 case "(($ac_try" in
10665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_link") 2>conftest.er1
10671 grep -v '^ *+' conftest.er1 >conftest.err
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest$ac_exeext &&
10679 $as_test_x conftest$ac_exeext; then
10680 xlinux_second_failure=no
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10685 xlinux_second_failure=yes
10688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10689 conftest$ac_exeext conftest.$ac_ext
10690 if test "${xlinux_second_failure}" = "yes"; then
10691 # If we get the same failure with -b, there is no use adding -b.
10692 # So take it out. This plays safe.
10693 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10694 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10695 CPPFLAGS="$OLD_CPPFLAGS"
10697 { echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6; }
10700 { echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6; }
10704 { echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6; }
10709 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10710 # header files included from there.
10711 { echo "$as_me:$LINENO: checking for Xkb" >&5
10712 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10713 cat >conftest.$ac_ext <<_ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 #include <X11/Xlib.h>
10720 #include <X11/XKBlib.h>
10724 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (ac_try="$ac_link"
10731 case "(($ac_try" in
10732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10733 *) ac_try_echo
=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_link") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1
>conftest.err
10740 cat conftest.err
>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest
$ac_exeext &&
10746 $as_test_x conftest
$ac_exeext; then
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.
$ac_ext >&5
10755 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10756 conftest
$ac_exeext conftest.
$ac_ext
10757 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10758 echo "${ECHO_T}$emacs_xkb" >&6; }
10759 if test $emacs_xkb = yes; then
10761 cat >>confdefs.h
<<\_ACEOF
10762 #define HAVE_XKBGETKEYBOARD 1
10771 for ac_func
in XrmSetDatabase XScreenResourceString \
10772 XScreenNumberOfScreen XSetWMProtocols
10774 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10777 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 cat >conftest.
$ac_ext <<_ACEOF
10783 cat confdefs.h
>>conftest.
$ac_ext
10784 cat >>conftest.
$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10788 #define $ac_func innocuous_$ac_func
10790 /* System header to define __stub macros and hopefully few prototypes,
10791 which can conflict with char $ac_func (); below.
10792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10793 <limits.h> exists even on freestanding compilers. */
10796 # include <limits.h>
10798 # include <assert.h>
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10810 /* The GNU C library defines this for functions which it implements
10811 to always fail with ENOSYS. Some functions are actually named
10812 something starting with __ and the normal name is an alias. */
10813 #if defined __stub_$ac_func || defined __stub___$ac_func
10820 return $ac_func ();
10825 rm -f conftest.
$ac_objext conftest
$ac_exeext
10826 if { (ac_try
="$ac_link"
10827 case "(($ac_try" in
10828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest$ac_exeext &&
10842 $as_test_x conftest$ac_exeext; then
10843 eval "$as_ac_var=yes"
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10848 eval "$as_ac_var=no"
10851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10852 conftest$ac_exeext conftest.$ac_ext
10854 ac_res=`eval echo '${'$as_ac_var'}'`
10855 { echo "$as_me:$LINENO: result: $ac_res" >&5
10856 echo "${ECHO_T}$ac_res" >&6; }
10857 if test `eval echo '${'$as_ac_var'}'` = yes; then
10858 cat >>confdefs.h <<_ACEOF
10859 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10867 if test "${window_system}" = "x11"; then
10868 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10869 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10870 if test "${emacs_cv_x11_version_6+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <X11/Xlib.h>
10883 #if XlibSpecificationRelease < 6
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10895 *) ac_try_echo
=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1
>conftest.err
10902 cat conftest.err
>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest
$ac_exeext &&
10908 $as_test_x conftest
$ac_exeext; then
10909 emacs_cv_x11_version_6
=yes
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.
$ac_ext >&5
10914 emacs_cv_x11_version_6
=no
10917 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10918 conftest
$ac_exeext conftest.
$ac_ext
10921 if test $emacs_cv_x11_version_6 = yes; then
10922 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10923 echo "${ECHO_T}6 or newer" >&6; }
10925 cat >>confdefs.h
<<\_ACEOF
10926 #define HAVE_X11R6 1
10930 { echo "$as_me:$LINENO: result: before 6" >&5
10931 echo "${ECHO_T}before 6" >&6; }
10936 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10938 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10939 if test "${with_rsvg}" != "no"; then
10940 RSVG_REQUIRED
=2.0.0
10941 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10946 # Extract the first word of "pkg-config", so it can be a program name with args.
10947 set dummy pkg-config
; ac_word
=$2
10948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10950 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 case $PKG_CONFIG in
10955 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10959 for as_dir
in $PATH
10962 test -z "$as_dir" && as_dir
=.
10963 for ac_exec_ext
in '' $ac_executable_extensions; do
10964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10965 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10977 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10978 if test -n "$PKG_CONFIG"; then
10979 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10980 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10982 { echo "$as_me:$LINENO: result: no" >&5
10983 echo "${ECHO_T}no" >&6; }
10988 if test "$PKG_CONFIG" = "no" ; then
10991 PKG_CONFIG_MIN_VERSION
=0.9.0
10992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10993 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10994 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10996 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10997 { echo "$as_me:$LINENO: result: yes" >&5
10998 echo "${ECHO_T}yes" >&6; }
11001 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11002 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11003 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11004 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11005 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11007 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11008 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11009 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11010 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11011 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11013 { echo "$as_me:$LINENO: result: no" >&5
11014 echo "${ECHO_T}no" >&6; }
11017 ## If we have a custom action on failure, don't print errors, but
11018 ## do set a variable so people can do so.
11019 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11031 if test $succeeded = yes; then
11040 if test ".${RSVG_CFLAGS}" != "."; then
11043 cat >>confdefs.h
<<\_ACEOF
11044 #define HAVE_RSVG 1
11047 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11048 LIBS
="$RSVG_LIBS $LIBS"
11055 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11058 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11063 # Extract the first word of "pkg-config", so it can be a program name with args.
11064 set dummy pkg-config
; ac_word
=$2
11065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 case $PKG_CONFIG in
11072 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11076 for as_dir
in $PATH
11079 test -z "$as_dir" && as_dir
=.
11080 for ac_exec_ext
in '' $ac_executable_extensions; do
11081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11082 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11094 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11095 if test -n "$PKG_CONFIG"; then
11096 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11097 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11099 { echo "$as_me:$LINENO: result: no" >&5
11100 echo "${ECHO_T}no" >&6; }
11105 if test "$PKG_CONFIG" = "no" ; then
11108 PKG_CONFIG_MIN_VERSION
=0.9.0
11109 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11110 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11111 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11113 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11114 { echo "$as_me:$LINENO: result: yes" >&5
11115 echo "${ECHO_T}yes" >&6; }
11118 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11119 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11120 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11121 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11122 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11124 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11125 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11126 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11127 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11128 echo "${ECHO_T}$GTK_LIBS" >&6; }
11130 { echo "$as_me:$LINENO: result: no" >&5
11131 echo "${ECHO_T}no" >&6; }
11134 ## If we have a custom action on failure, don't print errors, but
11135 ## do set a variable so people can do so.
11136 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11143 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11144 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11148 if test $succeeded = yes; then
11154 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11155 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11156 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11157 { (exit 1); exit 1; }; }
11162 if test x
"$pkg_check_gtk" = xyes
; then
11166 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11167 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11168 LIBS
="$GTK_LIBS $LIBS"
11171 for ac_func
in gtk_main
11173 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11176 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 cat >conftest.
$ac_ext <<_ACEOF
11182 cat confdefs.h
>>conftest.
$ac_ext
11183 cat >>conftest.
$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11187 #define $ac_func innocuous_$ac_func
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below.
11191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192 <limits.h> exists even on freestanding compilers. */
11195 # include <limits.h>
11197 # include <assert.h>
11202 /* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined __stub_$ac_func || defined __stub___$ac_func
11219 return $ac_func ();
11224 rm -f conftest.
$ac_objext conftest
$ac_exeext
11225 if { (ac_try
="$ac_link"
11226 case "(($ac_try" in
11227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11233 grep -v '^ *+' conftest.er1 >conftest.err
11235 cat conftest.err >&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest$ac_exeext &&
11241 $as_test_x conftest$ac_exeext; then
11242 eval "$as_ac_var=yes"
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11247 eval "$as_ac_var=no"
11250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11251 conftest$ac_exeext conftest.$ac_ext
11253 ac_res=`eval echo '${'$as_ac_var'}'`
11254 { echo "$as_me:$LINENO: result: $ac_res" >&5
11255 echo "${ECHO_T}$ac_res" >&6; }
11256 if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h <<_ACEOF
11258 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11264 if test "${GTK_COMPILES}" != "yes"; then
11265 if test "$USE_X_TOOLKIT" != "maybe"; then
11266 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11267 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11268 { (exit 1); exit 1; }; };
11273 cat >>confdefs.h <<\_ACEOF
11278 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11281 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11282 closing open displays. This is no problem if you just use
11283 one display, but if you use more than one and close one of them
11284 Emacs may crash." >&5
11285 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11286 closing open displays. This is no problem if you just use
11287 one display, but if you use more than one and close one of them
11288 Emacs may crash." >&2;}
11296 if test "${HAVE_GTK}" = "yes"; then
11298 if test "$with_toolkit_scroll_bars" != no; then
11299 with_toolkit_scroll_bars=yes
11302 HAVE_GTK_MULTIDISPLAY=no
11304 for ac_func in gdk_display_open
11306 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11320 #define $ac_func innocuous_$ac_func
11322 /* System header to define __stub macros and hopefully few prototypes,
11323 which can conflict with char $ac_func (); below.
11324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11325 <limits.h> exists even on freestanding compilers. */
11328 # include <limits.h>
11330 # include <assert.h>
11335 /* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11342 /* The GNU C library defines this for functions which it implements
11343 to always fail with ENOSYS. Some functions are actually named
11344 something starting with __ and the normal name is an alias. */
11345 #if defined __stub_$ac_func || defined __stub___$ac_func
11352 return $ac_func ();
11357 rm -f conftest.$ac_objext conftest$ac_exeext
11358 if { (ac_try="$ac_link"
11359 case "(($ac_try" in
11360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11361 *) ac_try_echo
=$ac_try;;
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_link") 2>conftest.er1
11366 grep -v '^ *+' conftest.er1
>conftest.err
11368 cat conftest.err
>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } && {
11371 test -z "$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 } && test -s conftest
$ac_exeext &&
11374 $as_test_x conftest
$ac_exeext; then
11375 eval "$as_ac_var=yes"
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.
$ac_ext >&5
11380 eval "$as_ac_var=no"
11383 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11384 conftest
$ac_exeext conftest.
$ac_ext
11386 ac_res
=`eval echo '${'$as_ac_var'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_var'}'` = yes; then
11390 cat >>confdefs.h
<<_ACEOF
11391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11393 HAVE_GTK_MULTIDISPLAY
=yes
11397 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11399 cat >>confdefs.h
<<\_ACEOF
11400 #define HAVE_GTK_MULTIDISPLAY 1
11405 HAVE_GTK_FILE_SELECTION
=no
11407 for ac_func
in gtk_file_selection_new
11409 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11412 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 cat >conftest.
$ac_ext <<_ACEOF
11418 cat confdefs.h
>>conftest.
$ac_ext
11419 cat >>conftest.
$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423 #define $ac_func innocuous_$ac_func
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11431 # include <limits.h>
11433 # include <assert.h>
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11445 /* The GNU C library defines this for functions which it implements
11446 to always fail with ENOSYS. Some functions are actually named
11447 something starting with __ and the normal name is an alias. */
11448 #if defined __stub_$ac_func || defined __stub___$ac_func
11455 return $ac_func ();
11460 rm -f conftest.
$ac_objext conftest
$ac_exeext
11461 if { (ac_try
="$ac_link"
11462 case "(($ac_try" in
11463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
11469 grep -v '^ *+' conftest.er1 >conftest.err
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest$ac_exeext &&
11477 $as_test_x conftest$ac_exeext; then
11478 eval "$as_ac_var=yes"
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 eval "$as_ac_var=no"
11486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11487 conftest$ac_exeext conftest.$ac_ext
11489 ac_res=`eval echo '${'$as_ac_var'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 if test `eval echo '${'$as_ac_var'}'` = yes; then
11493 cat >>confdefs.h <<_ACEOF
11494 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11496 HAVE_GTK_FILE_SELECTION=yes
11501 HAVE_GTK_FILE_CHOOSER=no
11503 for ac_func in gtk_file_chooser_dialog_new
11505 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11519 #define $ac_func innocuous_$ac_func
11521 /* System header to define __stub macros and hopefully few prototypes,
11522 which can conflict with char $ac_func (); below.
11523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11524 <limits.h> exists even on freestanding compilers. */
11527 # include <limits.h>
11529 # include <assert.h>
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11541 /* The GNU C library defines this for functions which it implements
11542 to always fail with ENOSYS. Some functions are actually named
11543 something starting with __ and the normal name is an alias. */
11544 #if defined __stub_$ac_func || defined __stub___$ac_func
11551 return $ac_func ();
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (ac_try="$ac_link"
11558 case "(($ac_try" in
11559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11560 *) ac_try_echo
=$ac_try;;
11562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11563 (eval "$ac_link") 2>conftest.er1
11565 grep -v '^ *+' conftest.er1
>conftest.err
11567 cat conftest.err
>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } && {
11570 test -z "$ac_c_werror_flag" ||
11571 test ! -s conftest.err
11572 } && test -s conftest
$ac_exeext &&
11573 $as_test_x conftest
$ac_exeext; then
11574 eval "$as_ac_var=yes"
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.
$ac_ext >&5
11579 eval "$as_ac_var=no"
11582 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11583 conftest
$ac_exeext conftest.
$ac_ext
11585 ac_res
=`eval echo '${'$as_ac_var'}'`
11586 { echo "$as_me:$LINENO: result: $ac_res" >&5
11587 echo "${ECHO_T}$ac_res" >&6; }
11588 if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h
<<_ACEOF
11590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11592 HAVE_GTK_FILE_CHOOSER
=yes
11597 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11598 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11600 cat >>confdefs.h
<<\_ACEOF
11601 #define HAVE_GTK_FILE_BOTH 1
11606 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11607 HAVE_GTK_AND_PTHREAD
=no
11609 for ac_header
in pthread.h
11611 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11612 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11615 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 ac_res
=`eval echo '${'$as_ac_Header'}'`
11619 { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11622 # Is the header compilable?
11623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11625 cat >conftest.
$ac_ext <<_ACEOF
11628 cat confdefs.h
>>conftest.
$ac_ext
11629 cat >>conftest.
$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631 $ac_includes_default
11632 #include <$ac_header>
11634 rm -f conftest.
$ac_objext
11635 if { (ac_try
="$ac_compile"
11636 case "(($ac_try" in
11637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_compile") 2>conftest.er1
11643 grep -v '^ *+' conftest.er1 >conftest.err
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && {
11648 test -z "$ac_c_werror_flag" ||
11649 test ! -s conftest.err
11650 } && test -s conftest.$ac_objext; then
11651 ac_header_compiler=yes
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_header_compiler=no
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11661 echo "${ECHO_T}$ac_header_compiler" >&6; }
11663 # Is the header present?
11664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 #include <$ac_header>
11674 if { (ac_try="$ac_cpp conftest.$ac_ext"
11675 case "(($ac_try" in
11676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11677 *) ac_try_echo
=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11682 grep -v '^ *+' conftest.er1
>conftest.err
11684 cat conftest.err
>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } >/dev
/null
&& {
11687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11690 ac_header_preproc
=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.
$ac_ext >&5
11695 ac_header_preproc
=no
11698 rm -f conftest.err conftest.
$ac_ext
11699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11700 echo "${ECHO_T}$ac_header_preproc" >&6; }
11702 # So? What about this header?
11703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11709 ac_header_preproc
=yes
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11729 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 eval "$as_ac_Header=\$ac_header_preproc"
11734 ac_res
=`eval echo '${'$as_ac_Header'}'`
11735 { echo "$as_me:$LINENO: result: $ac_res" >&5
11736 echo "${ECHO_T}$ac_res" >&6; }
11739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11740 cat >>confdefs.h
<<_ACEOF
11741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11748 if test "$ac_cv_header_pthread_h"; then
11749 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11750 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11751 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_check_lib_save_LIBS
=$LIBS
11755 LIBS
="-lpthread $LIBS"
11756 cat >conftest.
$ac_ext <<_ACEOF
11759 cat confdefs.h
>>conftest.
$ac_ext
11760 cat >>conftest.
$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11769 char pthread_self ();
11773 return pthread_self ();
11778 rm -f conftest.
$ac_objext conftest
$ac_exeext
11779 if { (ac_try
="$ac_link"
11780 case "(($ac_try" in
11781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_link") 2>conftest.er1
11787 grep -v '^ *+' conftest.er1 >conftest.err
11789 cat conftest.err >&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest$ac_exeext &&
11795 $as_test_x conftest$ac_exeext; then
11796 ac_cv_lib_pthread_pthread_self=yes
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_cv_lib_pthread_pthread_self=no
11804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11805 conftest$ac_exeext conftest.$ac_ext
11806 LIBS=$ac_check_lib_save_LIBS
11808 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11809 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11810 if test $ac_cv_lib_pthread_pthread_self = yes; then
11811 HAVE_GTK_AND_PTHREAD=yes
11815 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11816 case "${canonical}" in
11818 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_GTK_AND_PTHREAD 1
11830 if test "${with_dbus}" = "yes"; then
11834 # Extract the first word of "pkg-config", so it can be a program name with args.
11835 set dummy pkg-config; ac_word=$2
11836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11838 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11841 case $PKG_CONFIG in
11843 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11853 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11861 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11865 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11866 if test -n "$PKG_CONFIG"; then
11867 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11868 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11870 { echo "$as_me:$LINENO: result: no" >&5
11871 echo "${ECHO_T}no" >&6; }
11876 if test "$PKG_CONFIG" = "no" ; then
11879 PKG_CONFIG_MIN_VERSION=0.9.0
11880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11881 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11882 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11884 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11885 { echo "$as_me:$LINENO: result: yes" >&5
11886 echo "${ECHO_T}yes" >&6; }
11889 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11890 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11891 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11892 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11893 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11895 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11896 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11897 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11898 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11899 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11901 { echo "$as_me:$LINENO: result: no" >&5
11902 echo "${ECHO_T}no" >&6; }
11905 ## If we have a custom action on failure, don't print errors, but
11906 ## do set a variable so people can do so.
11907 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11919 if test $succeeded = yes; then
11925 if test "$HAVE_DBUS" = yes; then
11927 cat >>confdefs.h <<\_ACEOF
11928 #define HAVE_DBUS 1
11935 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11936 if test "$with_xaw3d" != no; then
11937 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11938 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11939 if test "${emacs_cv_xaw3d+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11949 #include <X11/Intrinsic.h>
11950 #include <X11/Xaw3d/Simple.h>
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11963 *) ac_try_echo
=$ac_try;;
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11968 grep -v '^ *+' conftest.er1
>conftest.err
11970 cat conftest.err
>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } && {
11973 test -z "$ac_c_werror_flag" ||
11974 test ! -s conftest.err
11975 } && test -s conftest
$ac_exeext &&
11976 $as_test_x conftest
$ac_exeext; then
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.
$ac_ext >&5
11985 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11986 conftest
$ac_exeext conftest.
$ac_ext
11992 if test $emacs_cv_xaw3d = yes; then
11993 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11994 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11995 USE_X_TOOLKIT
=LUCID
11998 cat >>confdefs.h
<<\_ACEOF
11999 #define HAVE_XAW3D 1
12003 { echo "$as_me:$LINENO: result: no" >&5
12004 echo "${ECHO_T}no" >&6; }
12005 { echo "$as_me:$LINENO: checking for libXaw" >&5
12006 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12007 if test "${emacs_cv_xaw+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 cat >conftest.
$ac_ext <<_ACEOF
12013 cat confdefs.h
>>conftest.
$ac_ext
12014 cat >>conftest.
$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12017 #include <X11/Intrinsic.h>
12018 #include <X11/Xaw/Simple.h>
12027 rm -f conftest.
$ac_objext conftest
$ac_exeext
12028 if { (ac_try
="$ac_link"
12029 case "(($ac_try" in
12030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext &&
12044 $as_test_x conftest$ac_exeext; then
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12057 if test $emacs_cv_xaw = yes; then
12058 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12059 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12060 USE_X_TOOLKIT=LUCID
12061 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12062 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12063 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12064 { (exit 1); exit 1; }; }
12066 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12067 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12073 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12075 if test "${USE_X_TOOLKIT}" != "none"; then
12076 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12077 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12078 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h. */
12087 #include <X11/Intrinsic.h>
12091 #if XtSpecificationRelease < 6
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12103 *) ac_try_echo
=$ac_try;;
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_link") 2>conftest.er1
12108 grep -v '^ *+' conftest.er1
>conftest.err
12110 cat conftest.err
>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } && {
12113 test -z "$ac_c_werror_flag" ||
12114 test ! -s conftest.err
12115 } && test -s conftest
$ac_exeext &&
12116 $as_test_x conftest
$ac_exeext; then
12117 emacs_cv_x11_toolkit_version_6
=yes
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.
$ac_ext >&5
12122 emacs_cv_x11_toolkit_version_6
=no
12125 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12126 conftest
$ac_exeext conftest.
$ac_ext
12129 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12130 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12131 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12132 echo "${ECHO_T}6 or newer" >&6; }
12134 cat >>confdefs.h
<<\_ACEOF
12135 #define HAVE_X11XTR6 1
12139 { echo "$as_me:$LINENO: result: before 6" >&5
12140 echo "${ECHO_T}before 6" >&6; }
12144 if test x
$HAVE_X11XTR6 = xyes
; then
12145 LIBS
="-lXt -lSM -lICE $LIBS"
12150 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12151 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12152 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_check_lib_save_LIBS
=$LIBS
12157 cat >conftest.
$ac_ext <<_ACEOF
12160 cat confdefs.h
>>conftest.
$ac_ext
12161 cat >>conftest.
$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12170 char XmuConvertStandardSelection ();
12174 return XmuConvertStandardSelection ();
12179 rm -f conftest.
$ac_objext conftest
$ac_exeext
12180 if { (ac_try
="$ac_link"
12181 case "(($ac_try" in
12182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest$ac_exeext &&
12196 $as_test_x conftest$ac_exeext; then
12197 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12210 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12211 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12212 cat >>confdefs.h <<_ACEOF
12213 #define HAVE_LIBXMU 1
12220 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12223 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12224 if test "${HAVE_X11}" = "yes"; then
12225 if test "${USE_X_TOOLKIT}" != "none"; then
12227 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12228 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12229 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lXext $LIBS"
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12247 char XShapeQueryExtension ();
12251 return XShapeQueryExtension ();
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12260 *) ac_try_echo
=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1
>conftest.err
12267 cat conftest.err
>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest
$ac_exeext &&
12273 $as_test_x conftest
$ac_exeext; then
12274 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.
$ac_ext >&5
12279 ac_cv_lib_Xext_XShapeQueryExtension
=no
12282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12283 conftest
$ac_exeext conftest.
$ac_ext
12284 LIBS
=$ac_check_lib_save_LIBS
12286 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12287 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12288 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12289 cat >>confdefs.h
<<_ACEOF
12290 #define HAVE_LIBXEXT 1
12293 LIBS
="-lXext $LIBS"
12300 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12301 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12302 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12303 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 cat >conftest.
$ac_ext <<_ACEOF
12309 cat confdefs.h
>>conftest.
$ac_ext
12310 cat >>conftest.
$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12316 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12319 Motif version prior to 2.1.
12325 rm -f conftest.
$ac_objext
12326 if { (ac_try
="$ac_compile"
12327 case "(($ac_try" in
12328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_compile") 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest.$ac_objext; then
12342 emacs_cv_motif_version_2_1=yes
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 emacs_cv_motif_version_2_1=no
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12353 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12354 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12355 if test $emacs_cv_motif_version_2_1 = yes; then
12358 cat >>confdefs.h <<\_ACEOF
12359 #define HAVE_MOTIF_2_1 1
12362 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12363 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12364 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 ac_check_lib_save_LIBS=$LIBS
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12376 /* Override any GCC internal prototype to avoid an error.
12377 Use char because int might match the return type of a GCC
12378 builtin and then its argument prototype would still apply. */
12382 char XpCreateContext ();
12386 return XpCreateContext ();
12391 rm -f conftest.$ac_objext conftest$ac_exeext
12392 if { (ac_try="$ac_link"
12393 case "(($ac_try" in
12394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12395 *) ac_try_echo
=$ac_try;;
12397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12398 (eval "$ac_link") 2>conftest.er1
12400 grep -v '^ *+' conftest.er1
>conftest.err
12402 cat conftest.err
>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest
$ac_exeext &&
12408 $as_test_x conftest
$ac_exeext; then
12409 ac_cv_lib_Xp_XpCreateContext
=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.
$ac_ext >&5
12414 ac_cv_lib_Xp_XpCreateContext
=no
12417 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12418 conftest
$ac_exeext conftest.
$ac_ext
12419 LIBS
=$ac_check_lib_save_LIBS
12421 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12422 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12423 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12427 if test ${HAVE_LIBXP} = yes; then
12429 cat >>confdefs.h
<<\_ACEOF
12430 #define HAVE_LIBXP 1
12435 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12436 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12437 if test "${emacs_cv_lesstif+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 # We put this in CFLAGS temporarily to precede other -I options
12441 # that might be in CFLAGS temporarily.
12442 # We put this in CPPFLAGS where it precedes the other -I options.
12443 OLD_CPPFLAGS
=$CPPFLAGS
12445 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12446 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12447 cat >conftest.
$ac_ext <<_ACEOF
12450 cat confdefs.h
>>conftest.
$ac_ext
12451 cat >>conftest.
$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12462 rm -f conftest.
$ac_objext
12463 if { (ac_try
="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12471 grep -v '^ *+' conftest.er1 >conftest.err
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
12479 emacs_cv_lesstif=yes
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12484 emacs_cv_lesstif=no
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12490 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12491 if test $emacs_cv_lesstif = yes; then
12492 # Make sure this -I option remains in CPPFLAGS after it is set
12493 # back to REAL_CPPFLAGS.
12494 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12495 # have those other -I options anyway. Ultimately, having this
12496 # directory ultimately in CPPFLAGS will be enough.
12497 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12498 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12501 CPPFLAGS=$OLD_CPPFLAGS
12508 USE_TOOLKIT_SCROLL_BARS=no
12509 if test "${with_toolkit_scroll_bars}" != "no"; then
12510 if test "${USE_X_TOOLKIT}" != "none"; then
12511 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define USE_TOOLKIT_SCROLL_BARS 1
12517 USE_TOOLKIT_SCROLL_BARS=yes
12518 elif test "${HAVE_XAW3D}" = "yes"; then
12519 cat >>confdefs.h <<\_ACEOF
12520 #define USE_TOOLKIT_SCROLL_BARS 1
12523 USE_TOOLKIT_SCROLL_BARS=yes
12525 elif test "${HAVE_GTK}" = "yes"; then
12526 cat >>confdefs.h <<\_ACEOF
12527 #define USE_TOOLKIT_SCROLL_BARS 1
12530 USE_TOOLKIT_SCROLL_BARS=yes
12531 elif test "${HAVE_CARBON}" = "yes"; then
12532 cat >>confdefs.h <<\_ACEOF
12533 #define USE_TOOLKIT_SCROLL_BARS 1
12536 USE_TOOLKIT_SCROLL_BARS=yes
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12547 #include <X11/Xlib.h>
12548 #include <X11/Xresource.h>
12557 rm -f conftest.$ac_objext
12558 if { (ac_try="$ac_compile"
12559 case "(($ac_try" in
12560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12561 *) ac_try_echo
=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_compile") 2>conftest.er1
12566 grep -v '^ *+' conftest.er1
>conftest.err
12568 cat conftest.err
>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && {
12571 test -z "$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 } && test -s conftest.
$ac_objext; then
12576 cat >>confdefs.h
<<\_ACEOF
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.
$ac_ext >&5
12587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12590 if test "${with_xim}" != "no"; then
12592 cat >>confdefs.h
<<\_ACEOF
12599 if test "${HAVE_XIM}" != "no"; then
12600 late_CFLAGS
=$CFLAGS
12601 if test "$GCC" = yes; then
12602 CFLAGS
="$CFLAGS --pedantic-errors"
12604 cat >conftest.
$ac_ext <<_ACEOF
12607 cat confdefs.h
>>conftest.
$ac_ext
12608 cat >>conftest.
$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12611 #include <X11/Xlib.h>
12612 #include <X11/Xresource.h>
12621 XPointer *client_data;
12623 /* If we're not using GCC, it's probably not XFree86, and this is
12624 probably right, but we can't use something like --pedantic-errors. */
12625 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12626 char*, XIMProc, XPointer*);
12628 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12634 rm -f conftest.
$ac_objext
12635 if { (ac_try
="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12643 grep -v '^ *+' conftest.er1 >conftest.err
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12651 emacs_cv_arg6_star=yes
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12661 if test "$emacs_cv_arg6_star" = yes; then
12662 cat >>confdefs.h <<\_ACEOF
12663 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12667 cat >>confdefs.h <<\_ACEOF
12668 #define XRegisterIMInstantiateCallback_arg6 XPointer
12672 CFLAGS=$late_CFLAGS
12675 ### Start of font-backend section.
12676 if test "${HAVE_X11}" != "yes"; then
12677 USE_FONT_BACKEND=no
12680 if test "${USE_FONT_BACKEND}" = "yes"; then
12682 cat >>confdefs.h <<\_ACEOF
12683 #define USE_FONT_BACKEND 1
12687 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12689 if test "x${with_freetype}" = "xno"; then
12692 if test "x${with_xft}" != "xno"; then
12697 # Extract the first word of "pkg-config", so it can be a program name with args.
12698 set dummy pkg-config
; ac_word
=$2
12699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 case $PKG_CONFIG in
12706 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12710 for as_dir
in $PATH
12713 test -z "$as_dir" && as_dir
=.
12714 for ac_exec_ext
in '' $ac_executable_extensions; do
12715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12716 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12728 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12729 if test -n "$PKG_CONFIG"; then
12730 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12731 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12733 { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12739 if test "$PKG_CONFIG" = "no" ; then
12742 PKG_CONFIG_MIN_VERSION
=0.9.0
12743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12744 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12745 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12747 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12748 { echo "$as_me:$LINENO: result: yes" >&5
12749 echo "${ECHO_T}yes" >&6; }
12752 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12753 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12754 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12755 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12756 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12758 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12759 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12760 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12761 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12762 echo "${ECHO_T}$XFT_LIBS" >&6; }
12764 { echo "$as_me:$LINENO: result: no" >&5
12765 echo "${ECHO_T}no" >&6; }
12768 ## If we have a custom action on failure, don't print errors, but
12769 ## do set a variable so people can do so.
12770 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12782 if test $succeeded = yes; then
12788 if test "$HAVE_XFT" != no
; then
12789 OLD_CPPFLAGS
="$CPPFLAGS"
12790 OLD_CFLAGS
="$CFLAGS"
12792 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12793 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12794 LIBS
="$XFT_LIBS $LIBS"
12795 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12796 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12797 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12798 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12802 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12804 # Is the header compilable?
12805 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12806 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12807 cat >conftest.
$ac_ext <<_ACEOF
12810 cat confdefs.h
>>conftest.
$ac_ext
12811 cat >>conftest.
$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813 $ac_includes_default
12814 #include <X11/Xft/Xft.h>
12816 rm -f conftest.
$ac_objext
12817 if { (ac_try
="$ac_compile"
12818 case "(($ac_try" in
12819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_compile") 2>conftest.er1
12825 grep -v '^ *+' conftest.er1 >conftest.err
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && {
12830 test -z "$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12832 } && test -s conftest.$ac_objext; then
12833 ac_header_compiler=yes
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_header_compiler=no
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12843 echo "${ECHO_T}$ac_header_compiler" >&6; }
12845 # Is the header present?
12846 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12847 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 #include <X11/Xft/Xft.h>
12856 if { (ac_try="$ac_cpp conftest.$ac_ext"
12857 case "(($ac_try" in
12858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12859 *) ac_try_echo
=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12864 grep -v '^ *+' conftest.er1
>conftest.err
12866 cat conftest.err
>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev
/null
&& {
12869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12870 test ! -s conftest.err
12872 ac_header_preproc
=yes
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.
$ac_ext >&5
12877 ac_header_preproc
=no
12880 rm -f conftest.err conftest.
$ac_ext
12881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12882 echo "${ECHO_T}$ac_header_preproc" >&6; }
12884 # So? What about this header?
12885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12887 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12888 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12890 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12891 ac_header_preproc
=yes
12894 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12895 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12897 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12898 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12899 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12901 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12903 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12904 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12905 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12909 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12910 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12911 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12916 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12917 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12920 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12921 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12922 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12923 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 ac_check_lib_save_LIBS
=$LIBS
12927 LIBS
="-lXft $XFT_LIBS $LIBS"
12928 cat >conftest.
$ac_ext <<_ACEOF
12931 cat confdefs.h
>>conftest.
$ac_ext
12932 cat >>conftest.
$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12935 /* Override any GCC internal prototype to avoid an error.
12936 Use char because int might match the return type of a GCC
12937 builtin and then its argument prototype would still apply. */
12941 char XftFontOpen ();
12945 return XftFontOpen ();
12950 rm -f conftest.
$ac_objext conftest
$ac_exeext
12951 if { (ac_try
="$ac_link"
12952 case "(($ac_try" in
12953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12954 *) ac_try_echo=$ac_try;;
12956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12957 (eval "$ac_link") 2>conftest.er1
12959 grep -v '^ *+' conftest.er1 >conftest.err
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && {
12964 test -z "$ac_c_werror_flag" ||
12965 test ! -s conftest.err
12966 } && test -s conftest$ac_exeext &&
12967 $as_test_x conftest$ac_exeext; then
12968 ac_cv_lib_Xft_XftFontOpen=yes
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_cv_lib_Xft_XftFontOpen=no
12976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LIBS=$ac_check_lib_save_LIBS
12980 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12981 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12982 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12990 if test "${HAVE_XFT}" = "yes"; then
12992 cat >>confdefs.h <<\_ACEOF
12997 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12999 CPPFLAGS="$OLD_CPPFLAGS"
13000 CFLAGS="$OLD_CFLAGS"
13002 fi # "${HAVE_XFT}" = "yes"
13003 fi # "$HAVE_XFT" != no
13004 fi # "x${with_xft}" != "xno"
13006 if test "$HAVE_XFT" != "yes"; then
13012 ### Use -lfreetype if available, unless `--with-freetype=no
'.
13013 if test "${HAVE_XFT}" = "yes"; then
13015 elif test "x${with_freetype}" != "xno"; then
13020 # Extract the first word of "pkg-config", so it can be a program name with args.
13021 set dummy pkg-config; ac_word=$2
13022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 case $PKG_CONFIG in
13029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13052 if test -n "$PKG_CONFIG"; then
13053 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13054 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13056 { echo "$as_me:$LINENO: result: no" >&5
13057 echo "${ECHO_T}no" >&6; }
13062 if test "$PKG_CONFIG" = "no" ; then
13065 PKG_CONFIG_MIN_VERSION=0.9.0
13066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13067 { echo "$as_me:$LINENO: checking for freetype2" >&5
13068 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13070 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13071 { echo "$as_me:$LINENO: result: yes" >&5
13072 echo "${ECHO_T}yes" >&6; }
13075 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13076 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13077 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13078 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13079 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13081 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13082 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13083 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13084 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13085 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13087 { echo "$as_me:$LINENO: result: no" >&5
13088 echo "${ECHO_T}no" >&6; }
13091 ## If we have a custom action on failure, don't print errors
, but
13092 ## do set a variable so people can do so.
13093 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13105 if test $succeeded = yes; then
13111 if test "${HAVE_FREETYPE}" = "yes"; then
13115 # Extract the first word of "pkg-config", so it can be a program name with args.
13116 set dummy pkg-config
; ac_word
=$2
13117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13119 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 case $PKG_CONFIG in
13124 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13128 for as_dir
in $PATH
13131 test -z "$as_dir" && as_dir
=.
13132 for ac_exec_ext
in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13142 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13146 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13147 if test -n "$PKG_CONFIG"; then
13148 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13149 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13151 { echo "$as_me:$LINENO: result: no" >&5
13152 echo "${ECHO_T}no" >&6; }
13157 if test "$PKG_CONFIG" = "no" ; then
13160 PKG_CONFIG_MIN_VERSION
=0.9.0
13161 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13162 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13163 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13165 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13166 { echo "$as_me:$LINENO: result: yes" >&5
13167 echo "${ECHO_T}yes" >&6; }
13170 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13171 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13172 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13173 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13174 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13176 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13177 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13178 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13179 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13180 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13182 { echo "$as_me:$LINENO: result: no" >&5
13183 echo "${ECHO_T}no" >&6; }
13184 FONTCONFIG_CFLAGS
=""
13186 ## If we have a custom action on failure, don't print errors, but
13187 ## do set a variable so people can do so.
13188 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13195 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13196 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13200 if test $succeeded = yes; then
13206 if test "${HAVE_FC}" = "no"; then
13213 if test "${HAVE_FREETYPE}" = "yes"; then
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define HAVE_FREETYPE 1
13219 if test "${with_libotf}" != "no"; then
13223 # Extract the first word of "pkg-config", so it can be a program name with args.
13224 set dummy pkg-config
; ac_word
=$2
13225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 case $PKG_CONFIG in
13232 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13236 for as_dir
in $PATH
13239 test -z "$as_dir" && as_dir
=.
13240 for ac_exec_ext
in '' $ac_executable_extensions; do
13241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13242 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13254 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13255 if test -n "$PKG_CONFIG"; then
13256 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13257 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13259 { echo "$as_me:$LINENO: result: no" >&5
13260 echo "${ECHO_T}no" >&6; }
13265 if test "$PKG_CONFIG" = "no" ; then
13268 PKG_CONFIG_MIN_VERSION
=0.9.0
13269 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13270 { echo "$as_me:$LINENO: checking for libotf" >&5
13271 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13273 if $PKG_CONFIG --exists "libotf" 2>&5; then
13274 { echo "$as_me:$LINENO: result: yes" >&5
13275 echo "${ECHO_T}yes" >&6; }
13278 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13279 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13280 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13281 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13282 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13284 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13285 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13286 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13287 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13288 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13290 { echo "$as_me:$LINENO: result: no" >&5
13291 echo "${ECHO_T}no" >&6; }
13294 ## If we have a custom action on failure, don't print errors, but
13295 ## do set a variable so people can do so.
13296 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13303 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13304 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13308 if test $succeeded = yes; then
13314 if test "$HAVE_LIBOTF" = "yes"; then
13316 cat >>confdefs.h
<<\_ACEOF
13317 #define HAVE_LIBOTF 1
13325 if test "${with_m17n_flt}" != "no"; then
13329 # Extract the first word of "pkg-config", so it can be a program name with args.
13330 set dummy pkg-config
; ac_word
=$2
13331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13333 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 case $PKG_CONFIG in
13338 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13342 for as_dir
in $PATH
13345 test -z "$as_dir" && as_dir
=.
13346 for ac_exec_ext
in '' $ac_executable_extensions; do
13347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13348 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13360 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13361 if test -n "$PKG_CONFIG"; then
13362 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13363 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13365 { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13371 if test "$PKG_CONFIG" = "no" ; then
13374 PKG_CONFIG_MIN_VERSION
=0.9.0
13375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13376 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13377 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13379 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13380 { echo "$as_me:$LINENO: result: yes" >&5
13381 echo "${ECHO_T}yes" >&6; }
13384 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13385 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13386 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13387 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13388 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13390 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13391 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13392 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13393 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13394 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13396 { echo "$as_me:$LINENO: result: no" >&5
13397 echo "${ECHO_T}no" >&6; }
13400 ## If we have a custom action on failure, don't print errors, but
13401 ## do set a variable so people can do so.
13402 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13414 if test $succeeded = yes; then
13420 if test "$HAVE_M17N_FLT" = "yes"; then
13422 cat >>confdefs.h
<<\_ACEOF
13423 #define HAVE_M17N_FLT 1
13438 fi # "${USE_FONT_BACKEND}" = "yes"
13439 ### End of font-backend section.
13441 ### Use -lXpm if available, unless `--with-xpm=no'.
13443 if test "${HAVE_X11}" = "yes"; then
13444 if test "${with_xpm}" != "no"; then
13445 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13446 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13447 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13448 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13452 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13454 # Is the header compilable?
13455 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13456 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13457 cat >conftest.
$ac_ext <<_ACEOF
13460 cat confdefs.h
>>conftest.
$ac_ext
13461 cat >>conftest.
$ac_ext <<_ACEOF
13462 /* end confdefs.h. */
13463 $ac_includes_default
13464 #include <X11/xpm.h>
13466 rm -f conftest.
$ac_objext
13467 if { (ac_try
="$ac_compile"
13468 case "(($ac_try" in
13469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13470 *) ac_try_echo=$ac_try;;
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473 (eval "$ac_compile") 2>conftest.er1
13475 grep -v '^ *+' conftest.er1 >conftest.err
13477 cat conftest.err >&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && {
13480 test -z "$ac_c_werror_flag" ||
13481 test ! -s conftest.err
13482 } && test -s conftest.$ac_objext; then
13483 ac_header_compiler=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_header_compiler=no
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 echo "${ECHO_T}$ac_header_compiler" >&6; }
13495 # Is the header present?
13496 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13497 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include <X11/xpm.h>
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13509 *) ac_try_echo
=$ac_try;;
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13514 grep -v '^ *+' conftest.er1
>conftest.err
13516 cat conftest.err
>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } >/dev
/null
&& {
13519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13522 ac_header_preproc
=yes
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.
$ac_ext >&5
13527 ac_header_preproc
=no
13530 rm -f conftest.err conftest.
$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532 echo "${ECHO_T}$ac_header_preproc" >&6; }
13534 # So? What about this header?
13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13537 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13538 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13540 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13541 ac_header_preproc
=yes
13544 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13545 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13547 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13549 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13551 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13553 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13555 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13559 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13560 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13561 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13570 if test $ac_cv_header_X11_xpm_h = yes; then
13571 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13572 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13573 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 ac_check_lib_save_LIBS
=$LIBS
13577 LIBS
="-lXpm -lX11 $LIBS"
13578 cat >conftest.
$ac_ext <<_ACEOF
13581 cat confdefs.h
>>conftest.
$ac_ext
13582 cat >>conftest.
$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13591 char XpmReadFileToPixmap ();
13595 return XpmReadFileToPixmap ();
13600 rm -f conftest.
$ac_objext conftest
$ac_exeext
13601 if { (ac_try
="$ac_link"
13602 case "(($ac_try" in
13603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest$ac_exeext &&
13617 $as_test_x conftest$ac_exeext; then
13618 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13623 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13630 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13631 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13632 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13639 if test "${HAVE_XPM}" = "yes"; then
13640 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13641 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include "X11/xpm.h"
13649 #ifndef XpmReturnAllocPixels
13650 no_return_alloc_pixels
13654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13655 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13663 if test "${HAVE_XPM}" = "yes"; then
13664 { echo "$as_me:$LINENO: result: yes" >&5
13665 echo "${ECHO_T}yes" >&6; }
13667 { echo "$as_me:$LINENO: result: no" >&5
13668 echo "${ECHO_T}no" >&6; }
13673 if test "${HAVE_XPM}" = "yes"; then
13675 cat >>confdefs.h <<\_ACEOF
13682 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13684 if test "${HAVE_X11}" = "yes"; then
13685 if test "${with_jpeg}" != "no"; then
13686 if test "${ac_cv_header_jerror_h+set}" = set; then
13687 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13688 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13689 if test "${ac_cv_header_jerror_h+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13693 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13695 # Is the header compilable?
13696 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13697 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13705 #include <jerror.h>
13707 rm -f conftest.$ac_objext
13708 if { (ac_try="$ac_compile"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_compile") 2>conftest.er1
13716 grep -v '^
*+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && {
13721 test -z "$ac_c_werror_flag" ||
13722 test ! -s conftest.err
13723 } && test -s conftest.$ac_objext; then
13724 ac_header_compiler=yes
13726 echo "$as_me: failed program was:" >&5
13727 sed 's
/^
/|
/' conftest.$ac_ext >&5
13729 ac_header_compiler=no
13732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13734 echo "${ECHO_T}$ac_header_compiler" >&6; }
13736 # Is the header present?
13737 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13738 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13739 cat >conftest.$ac_ext <<_ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 #include <jerror.h>
13747 if { (ac_try="$ac_cpp conftest.$ac_ext"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13755 grep -v '^
*+' conftest.er1 >conftest.err
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } >/dev/null && {
13760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13763 ac_header_preproc=yes
13765 echo "$as_me: failed program was:" >&5
13766 sed 's
/^
/|
/' conftest.$ac_ext >&5
13768 ac_header_preproc=no
13771 rm -f conftest.err conftest.$ac_ext
13772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13773 echo "${ECHO_T}$ac_header_preproc" >&6; }
13775 # So? What about this header?
13776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13778 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13779 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13781 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13782 ac_header_preproc=yes
13785 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13786 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13788 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13789 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13790 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13792 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13794 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13796 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13800 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13801 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13802 if test "${ac_cv_header_jerror_h+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 ac_cv_header_jerror_h=$ac_header_preproc
13807 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13808 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13811 if test $ac_cv_header_jerror_h = yes; then
13812 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13813 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13814 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 ac_check_lib_save_LIBS=$LIBS
13818 LIBS="-ljpeg $LIBS"
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13826 /* Override any GCC internal prototype to avoid an error.
13827 Use char because int might match the return type of a GCC
13828 builtin and then its argument prototype would still apply. */
13832 char jpeg_destroy_compress ();
13836 return jpeg_destroy_compress ();
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (ac_try="$ac_link"
13843 case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13850 grep -v '^
*+' conftest.er1 >conftest.err
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } && {
13855 test -z "$ac_c_werror_flag" ||
13856 test ! -s conftest.err
13857 } && test -s conftest$ac_exeext &&
13858 $as_test_x conftest$ac_exeext; then
13859 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13861 echo "$as_me: failed program was:" >&5
13862 sed 's
/^
/|
/' conftest.$ac_ext >&5
13864 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13868 conftest$ac_exeext conftest.$ac_ext
13869 LIBS=$ac_check_lib_save_LIBS
13871 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13872 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13873 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13883 if test "${HAVE_JPEG}" = "yes"; then
13884 cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_JPEG 1
13888 cat >conftest.$ac_ext <<_ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 #include <jpeglib.h>
13895 version=JPEG_LIB_VERSION
13898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13899 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13900 cat >>confdefs.h <<\_ACEOF
13901 #define HAVE_JPEG 1
13905 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13906 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13914 ### Use -lpng if available, unless `--with-png=no'.
13916 if test "${HAVE_X11}" = "yes"; then
13917 if test "${with_png}" != "no"; then
13918 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13919 # in /usr/include/libpng.
13922 for ac_header
in png.h libpng
/png.h
13924 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13928 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 ac_res
=`eval echo '${'$as_ac_Header'}'`
13932 { echo "$as_me:$LINENO: result: $ac_res" >&5
13933 echo "${ECHO_T}$ac_res" >&6; }
13935 # Is the header compilable?
13936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13938 cat >conftest.
$ac_ext <<_ACEOF
13941 cat confdefs.h
>>conftest.
$ac_ext
13942 cat >>conftest.
$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 $ac_includes_default
13945 #include <$ac_header>
13947 rm -f conftest.
$ac_objext
13948 if { (ac_try
="$ac_compile"
13949 case "(($ac_try" in
13950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_compile") 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest.$ac_objext; then
13964 ac_header_compiler=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13969 ac_header_compiler=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13974 echo "${ECHO_T}$ac_header_compiler" >&6; }
13976 # Is the header present?
13977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <$ac_header>
13987 if { (ac_try="$ac_cpp conftest.$ac_ext"
13988 case "(($ac_try" in
13989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13990 *) ac_try_echo
=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1
>conftest.err
13997 cat conftest.err
>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } >/dev
/null
&& {
14000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14003 ac_header_preproc
=yes
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.
$ac_ext >&5
14008 ac_header_preproc
=no
14011 rm -f conftest.err conftest.
$ac_ext
14012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14013 echo "${ECHO_T}$ac_header_preproc" >&6; }
14015 # So? What about this header?
14016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14022 ac_header_preproc
=yes
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14042 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 eval "$as_ac_Header=\$ac_header_preproc"
14047 ac_res
=`eval echo '${'$as_ac_Header'}'`
14048 { echo "$as_me:$LINENO: result: $ac_res" >&5
14049 echo "${ECHO_T}$ac_res" >&6; }
14052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14053 cat >>confdefs.h
<<_ACEOF
14054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14061 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14062 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14063 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14064 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 ac_check_lib_save_LIBS
=$LIBS
14068 LIBS
="-lpng -lz -lm $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 png_get_channels ();
14086 return png_get_channels ();
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_png_png_get_channels=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_cv_lib_png_png_get_channels=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_png_png_get_channels" >&5
14122 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14123 if test $ac_cv_lib_png_png_get_channels = yes; then
14130 if test "${HAVE_PNG}" = "yes"; then
14132 cat >>confdefs.h <<\_ACEOF
14139 ### Use -ltiff if available, unless `--with-tiff=no
'.
14141 if test "${HAVE_X11}" = "yes"; then
14142 if test "${with_tiff}" != "no"; then
14143 if test "${ac_cv_header_tiffio_h+set}" = set; then
14144 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14145 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14146 if test "${ac_cv_header_tiffio_h+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14150 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14152 # Is the header compilable?
14153 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14154 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14155 cat >conftest.$ac_ext <<_ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 $ac_includes_default
14162 #include <tiffio.h>
14164 rm -f conftest.$ac_objext
14165 if { (ac_try="$ac_compile"
14166 case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_compile") 2>conftest.er1
14173 grep -v '^
*+' conftest.er1 >conftest.err
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } && {
14178 test -z "$ac_c_werror_flag" ||
14179 test ! -s conftest.err
14180 } && test -s conftest.$ac_objext; then
14181 ac_header_compiler=yes
14183 echo "$as_me: failed program was:" >&5
14184 sed 's
/^
/|
/' conftest.$ac_ext >&5
14186 ac_header_compiler=no
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14191 echo "${ECHO_T}$ac_header_compiler" >&6; }
14193 # Is the header present?
14194 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14195 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14196 cat >conftest.$ac_ext <<_ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 #include <tiffio.h>
14204 if { (ac_try="$ac_cpp conftest.$ac_ext"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14212 grep -v '^
*+' conftest.er1 >conftest.err
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } >/dev/null && {
14217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14218 test ! -s conftest.err
14220 ac_header_preproc=yes
14222 echo "$as_me: failed program was:" >&5
14223 sed 's
/^
/|
/' conftest.$ac_ext >&5
14225 ac_header_preproc=no
14228 rm -f conftest.err conftest.$ac_ext
14229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14230 echo "${ECHO_T}$ac_header_preproc" >&6; }
14232 # So? What about this header?
14233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14235 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14236 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14238 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14239 ac_header_preproc=yes
14242 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14243 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14245 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14247 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14249 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14251 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14253 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14257 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14258 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14259 if test "${ac_cv_header_tiffio_h+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 ac_cv_header_tiffio_h=$ac_header_preproc
14264 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14265 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14268 if test $ac_cv_header_tiffio_h = yes; then
14270 # At least one tiff package requires the jpeg library.
14271 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14272 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14273 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14274 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 ac_check_lib_save_LIBS=$LIBS
14278 LIBS="-ltiff $tifflibs $LIBS"
14279 cat >conftest.$ac_ext <<_ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14286 /* Override any GCC internal prototype to avoid an error.
14287 Use char because int might match the return type of a GCC
14288 builtin and then its argument prototype would still apply. */
14292 char TIFFGetVersion ();
14296 return TIFFGetVersion ();
14301 rm -f conftest.$ac_objext conftest$ac_exeext
14302 if { (ac_try="$ac_link"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_link") 2>conftest.er1
14310 grep -v '^
*+' conftest.er1 >conftest.err
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest$ac_exeext &&
14318 $as_test_x conftest$ac_exeext; then
14319 ac_cv_lib_tiff_TIFFGetVersion=yes
14321 echo "$as_me: failed program was:" >&5
14322 sed 's
/^
/|
/' conftest.$ac_ext >&5
14324 ac_cv_lib_tiff_TIFFGetVersion=no
14327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14328 conftest$ac_exeext conftest.$ac_ext
14329 LIBS=$ac_check_lib_save_LIBS
14331 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14332 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14333 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14342 if test "${HAVE_TIFF}" = "yes"; then
14344 cat >>confdefs.h <<\_ACEOF
14345 #define HAVE_TIFF 1
14351 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14353 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14354 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14355 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14356 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14357 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14361 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14363 # Is the header compilable?
14364 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14365 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14366 cat >conftest.
$ac_ext <<_ACEOF
14369 cat confdefs.h
>>conftest.
$ac_ext
14370 cat >>conftest.
$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 $ac_includes_default
14373 #include <gif_lib.h>
14375 rm -f conftest.
$ac_objext
14376 if { (ac_try
="$ac_compile"
14377 case "(($ac_try" in
14378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_compile") 2>conftest.er1
14384 grep -v '^ *+' conftest.er1 >conftest.err
14386 cat conftest.err >&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } && {
14389 test -z "$ac_c_werror_flag" ||
14390 test ! -s conftest.err
14391 } && test -s conftest.$ac_objext; then
14392 ac_header_compiler=yes
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 ac_header_compiler=no
14400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14402 echo "${ECHO_T}$ac_header_compiler" >&6; }
14404 # Is the header present?
14405 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14406 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14407 cat >conftest.$ac_ext <<_ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h. */
14413 #include <gif_lib.h>
14415 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
14428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14431 ac_header_preproc
=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.
$ac_ext >&5
14436 ac_header_preproc
=no
14439 rm -f conftest.err conftest.
$ac_ext
14440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14441 echo "${ECHO_T}$ac_header_preproc" >&6; }
14443 # So? What about this header?
14444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14446 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14447 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14449 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14450 ac_header_preproc
=yes
14453 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14454 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14455 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14456 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14457 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14458 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14460 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14462 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14464 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14468 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14469 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14470 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14471 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 ac_cv_header_gif_lib_h
=$ac_header_preproc
14475 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14476 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14479 if test $ac_cv_header_gif_lib_h = yes; then
14480 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14481 # Earlier versions can crash Emacs.
14482 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14483 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14484 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14487 ac_check_lib_save_LIBS
=$LIBS
14489 cat >conftest.
$ac_ext <<_ACEOF
14492 cat confdefs.h
>>conftest.
$ac_ext
14493 cat >>conftest.
$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14496 /* Override any GCC internal prototype to avoid an error.
14497 Use char because int might match the return type of a GCC
14498 builtin and then its argument prototype would still apply. */
14502 char EGifPutExtensionLast ();
14506 return EGifPutExtensionLast ();
14511 rm -f conftest.
$ac_objext conftest
$ac_exeext
14512 if { (ac_try
="$ac_link"
14513 case "(($ac_try" in
14514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_link") 2>conftest.er1
14520 grep -v '^ *+' conftest.er1 >conftest.err
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } && {
14525 test -z "$ac_c_werror_flag" ||
14526 test ! -s conftest.err
14527 } && test -s conftest$ac_exeext &&
14528 $as_test_x conftest$ac_exeext; then
14529 ac_cv_lib_gif_EGifPutExtensionLast=yes
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_lib_gif_EGifPutExtensionLast=no
14537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14538 conftest$ac_exeext conftest.$ac_ext
14539 LIBS=$ac_check_lib_save_LIBS
14541 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14542 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14543 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14553 if test "$HAVE_GIF" = yes; then
14554 ac_gif_lib_name="-lgif"
14557 # If gif_lib.h but no libgif, try libungif.
14558 if test x"$try_libungif" = xyes; then
14559 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14560 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14561 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 ac_check_lib_save_LIBS=$LIBS
14565 LIBS="-lungif $LIBS"
14566 cat >conftest.$ac_ext <<_ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14573 /* Override any GCC internal prototype to avoid an error.
14574 Use char because int might match the return type of a GCC
14575 builtin and then its argument prototype would still apply. */
14579 char EGifPutExtensionLast ();
14583 return EGifPutExtensionLast ();
14588 rm -f conftest.$ac_objext conftest$ac_exeext
14589 if { (ac_try="$ac_link"
14590 case "(($ac_try" in
14591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14592 *) ac_try_echo
=$ac_try;;
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_link") 2>conftest.er1
14597 grep -v '^ *+' conftest.er1
>conftest.err
14599 cat conftest.err
>&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && {
14602 test -z "$ac_c_werror_flag" ||
14603 test ! -s conftest.err
14604 } && test -s conftest
$ac_exeext &&
14605 $as_test_x conftest
$ac_exeext; then
14606 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14608 echo "$as_me: failed program was:" >&5
14609 sed 's/^/| /' conftest.
$ac_ext >&5
14611 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14614 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14615 conftest
$ac_exeext conftest.
$ac_ext
14616 LIBS
=$ac_check_lib_save_LIBS
14618 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14619 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14620 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14625 if test "$HAVE_GIF" = yes; then
14627 cat >>confdefs.h
<<\_ACEOF
14628 #define LIBGIF -lungif
14631 ac_gif_lib_name
="-lungif"
14635 if test "${HAVE_GIF}" = "yes"; then
14637 cat >>confdefs.h
<<\_ACEOF
14644 if test "${HAVE_X11}" = "yes"; then
14647 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14648 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14649 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14650 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14651 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14652 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14653 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14654 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14655 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14656 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14658 if test "X${MISSING}" != X
; then
14659 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14661 Maybe some development libraries/packages are missing?
14662 If you don't want to link with them give
14664 as options to configure" >&5
14665 echo "$as_me: error: The following required libraries were not found:
14667 Maybe some development libraries/packages are missing?
14668 If you don't want to link with them give
14670 as options to configure" >&2;}
14671 { (exit 1); exit 1; }; }
14675 ### Use -lgpm if available, unless `--with-gpm=no'.
14677 if test "${with_gpm}" != "no"; then
14678 if test "${ac_cv_header_gpm_h+set}" = set; then
14679 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14680 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14681 if test "${ac_cv_header_gpm_h+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14685 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14687 # Is the header compilable?
14688 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14689 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14690 cat >conftest.
$ac_ext <<_ACEOF
14693 cat confdefs.h
>>conftest.
$ac_ext
14694 cat >>conftest.
$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 $ac_includes_default
14699 rm -f conftest.
$ac_objext
14700 if { (ac_try
="$ac_compile"
14701 case "(($ac_try" in
14702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_compile") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && {
14713 test -z "$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 } && test -s conftest.$ac_objext; then
14716 ac_header_compiler=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_compiler=no
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14726 echo "${ECHO_T}$ac_header_compiler" >&6; }
14728 # Is the header present?
14729 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14730 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14731 cat >conftest.$ac_ext <<_ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14739 if { (ac_try="$ac_cpp conftest.$ac_ext"
14740 case "(($ac_try" in
14741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14742 *) ac_try_echo
=$ac_try;;
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14747 grep -v '^ *+' conftest.er1
>conftest.err
14749 cat conftest.err
>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } >/dev
/null
&& {
14752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14753 test ! -s conftest.err
14755 ac_header_preproc
=yes
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.
$ac_ext >&5
14760 ac_header_preproc
=no
14763 rm -f conftest.err conftest.
$ac_ext
14764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14765 echo "${ECHO_T}$ac_header_preproc" >&6; }
14767 # So? What about this header?
14768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14770 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14771 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14773 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14774 ac_header_preproc
=yes
14777 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14778 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14779 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14780 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14781 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14782 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14784 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14786 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14787 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14788 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14792 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14793 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14794 if test "${ac_cv_header_gpm_h+set}" = set; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 ac_cv_header_gpm_h
=$ac_header_preproc
14799 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14800 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14803 if test $ac_cv_header_gpm_h = yes; then
14804 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14805 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14806 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_check_lib_save_LIBS
=$LIBS
14811 cat >conftest.
$ac_ext <<_ACEOF
14814 cat confdefs.h
>>conftest.
$ac_ext
14815 cat >>conftest.
$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14828 return Gpm_Open ();
14833 rm -f conftest.
$ac_objext conftest
$ac_exeext
14834 if { (ac_try
="$ac_link"
14835 case "(($ac_try" in
14836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest$ac_exeext &&
14850 $as_test_x conftest$ac_exeext; then
14851 ac_cv_lib_gpm_Gpm_Open=yes
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_cv_lib_gpm_Gpm_Open=no
14859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14860 conftest$ac_exeext conftest.$ac_ext
14861 LIBS=$ac_check_lib_save_LIBS
14863 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14864 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14865 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14874 if test "${HAVE_GPM}" = "yes"; then
14876 cat >>confdefs.h <<\_ACEOF
14882 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14883 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14884 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14885 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14889 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14891 # Is the header compilable?
14892 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14893 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14894 cat >conftest.$ac_ext <<_ACEOF
14897 cat confdefs.h >>conftest.$ac_ext
14898 cat >>conftest.$ac_ext <<_ACEOF
14899 /* end confdefs.h. */
14900 $ac_includes_default
14901 #include <malloc/malloc.h>
14903 rm -f conftest.$ac_objext
14904 if { (ac_try="$ac_compile"
14905 case "(($ac_try" in
14906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14907 *) ac_try_echo
=$ac_try;;
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1
>conftest.err
14914 cat conftest.err
>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest.
$ac_objext; then
14920 ac_header_compiler
=yes
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.
$ac_ext >&5
14925 ac_header_compiler
=no
14928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14930 echo "${ECHO_T}$ac_header_compiler" >&6; }
14932 # Is the header present?
14933 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14934 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14935 cat >conftest.
$ac_ext <<_ACEOF
14938 cat confdefs.h
>>conftest.
$ac_ext
14939 cat >>conftest.
$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <malloc/malloc.h>
14943 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14944 case "(($ac_try" in
14945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14951 grep -v '^ *+' conftest.er1 >conftest.err
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } >/dev/null && {
14956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14959 ac_header_preproc=yes
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 ac_header_preproc=no
14967 rm -f conftest.err conftest.$ac_ext
14968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14969 echo "${ECHO_T}$ac_header_preproc" >&6; }
14971 # So? What about this header?
14972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14974 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14975 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14977 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14978 ac_header_preproc=yes
14981 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14982 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14984 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14986 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14988 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14990 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14992 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14996 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14997 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14998 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15003 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15004 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15007 if test $ac_cv_header_malloc_malloc_h = yes; then
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_MALLOC_MALLOC_H 1
15017 ### Use Mac OS X Carbon API to implement GUI.
15018 if test "${HAVE_CARBON}" = "yes"; then
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_CARBON 1
15025 for ac_header in AvailabilityMacros.h
15027 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 ac_res=`eval echo '${'$as_ac_Header'}'`
15035 { echo "$as_me:$LINENO: result: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15038 # Is the header compilable?
15039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <$ac_header>
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15054 *) ac_try_echo
=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1
>conftest.err
15061 cat conftest.err
>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.
$ac_objext; then
15067 ac_header_compiler
=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.
$ac_ext >&5
15072 ac_header_compiler
=no
15075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15082 cat >conftest.
$ac_ext <<_ACEOF
15085 cat confdefs.h
>>conftest.
$ac_ext
15086 cat >>conftest.
$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <$ac_header>
15090 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev/null && {
15103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15106 ac_header_preproc=yes
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15111 ac_header_preproc=no
15114 rm -f conftest.err conftest.$ac_ext
15115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15148 eval "$as_ac_Header=\$ac_header_preproc"
15150 ac_res=`eval echo '${'$as_ac_Header'}'`
15151 { echo "$as_me:$LINENO: result: $ac_res" >&5
15152 echo "${ECHO_T}$ac_res" >&6; }
15155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15156 cat >>confdefs.h <<_ACEOF
15157 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15164 ## Specify the install directory
15166 if test "${carbon_appdir_x}" != ""; then
15167 case ${carbon_appdir_x} in
15168 y | ye | yes) carbon_appdir=/Applications ;;
15169 * ) carbon_appdir=${carbon_appdir_x} ;;
15172 # We also have mouse menus.
15176 ### Use session management (-lSM -lICE) if available
15178 if test "${HAVE_X11}" = "yes"; then
15179 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15180 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15181 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15182 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15186 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15188 # Is the header compilable?
15189 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15190 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15191 cat >conftest.$ac_ext <<_ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 $ac_includes_default
15198 #include <X11/SM/SMlib.h>
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15204 *) ac_try_echo
=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1
>conftest.err
15211 cat conftest.err
>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest.
$ac_objext; then
15217 ac_header_compiler
=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.
$ac_ext >&5
15222 ac_header_compiler
=no
15225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15227 echo "${ECHO_T}$ac_header_compiler" >&6; }
15229 # Is the header present?
15230 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15231 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15232 cat >conftest.
$ac_ext <<_ACEOF
15235 cat confdefs.h
>>conftest.
$ac_ext
15236 cat >>conftest.
$ac_ext <<_ACEOF
15237 /* end confdefs.h. */
15238 #include <X11/SM/SMlib.h>
15240 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15241 case "(($ac_try" in
15242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15248 grep -v '^ *+' conftest.er1 >conftest.err
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } >/dev/null && {
15253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15254 test ! -s conftest.err
15256 ac_header_preproc=yes
15258 echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 ac_header_preproc=no
15264 rm -f conftest.err conftest.$ac_ext
15265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15266 echo "${ECHO_T}$ac_header_preproc" >&6; }
15268 # So? What about this header?
15269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15271 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15272 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15273 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15274 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15275 ac_header_preproc=yes
15278 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15279 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15281 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15282 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15283 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15284 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15285 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15286 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15287 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15289 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15293 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15294 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15295 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15300 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15301 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15304 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15305 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15306 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15307 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15308 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 ac_check_lib_save_LIBS=$LIBS
15311 LIBS="-lSM -lICE $LIBS"
15312 cat >conftest.$ac_ext <<_ACEOF
15315 cat confdefs.h >>conftest.$ac_ext
15316 cat >>conftest.$ac_ext <<_ACEOF
15317 /* end confdefs.h. */
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15325 char SmcOpenConnection ();
15329 return SmcOpenConnection ();
15334 rm -f conftest.$ac_objext conftest$ac_exeext
15335 if { (ac_try="$ac_link"
15336 case "(($ac_try" in
15337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15338 *) ac_try_echo
=$ac_try;;
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_link") 2>conftest.er1
15343 grep -v '^ *+' conftest.er1
>conftest.err
15345 cat conftest.err
>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && {
15348 test -z "$ac_c_werror_flag" ||
15349 test ! -s conftest.err
15350 } && test -s conftest
$ac_exeext &&
15351 $as_test_x conftest
$ac_exeext; then
15352 ac_cv_lib_SM_SmcOpenConnection
=yes
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.
$ac_ext >&5
15357 ac_cv_lib_SM_SmcOpenConnection
=no
15360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15361 conftest
$ac_exeext conftest.
$ac_ext
15362 LIBS
=$ac_check_lib_save_LIBS
15364 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15365 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15366 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15374 if test "${HAVE_X_SM}" = "yes"; then
15376 cat >>confdefs.h
<<\_ACEOF
15377 #define HAVE_X_SM 1
15382 *) LIBS
="-lSM -lICE $LIBS" ;;
15387 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15388 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15389 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15390 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15391 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 cat >conftest.
$ac_ext <<_ACEOF
15396 cat confdefs.h
>>conftest.
$ac_ext
15397 cat >>conftest.
$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15408 rm -f conftest.
$ac_objext conftest
$ac_exeext
15409 if { (ac_try
="$ac_link"
15410 case "(($ac_try" in
15411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15412 *) ac_try_echo=$ac_try;;
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415 (eval "$ac_link") 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } && {
15422 test -z "$ac_c_werror_flag" ||
15423 test ! -s conftest.err
15424 } && test -s conftest$ac_exeext &&
15425 $as_test_x conftest$ac_exeext; then
15426 emacs_cv_netdb_declares_h_errno=yes
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 emacs_cv_netdb_declares_h_errno=no
15434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15435 conftest$ac_exeext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15438 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15439 if test $emacs_cv_netdb_declares_h_errno = yes; then
15441 cat >>confdefs.h <<\_ACEOF
15442 #define HAVE_H_ERRNO 1
15447 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15448 # for constant arguments. Useless!
15449 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15450 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15451 if test "${ac_cv_working_alloca_h+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15454 cat >conftest.$ac_ext <<_ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #include <alloca.h>
15464 char *p = (char *) alloca (2 * sizeof (int));
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15474 *) ac_try_echo
=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1
>conftest.err
15481 cat conftest.err
>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest
$ac_exeext &&
15487 $as_test_x conftest
$ac_exeext; then
15488 ac_cv_working_alloca_h
=yes
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.
$ac_ext >&5
15493 ac_cv_working_alloca_h
=no
15496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15497 conftest
$ac_exeext conftest.
$ac_ext
15499 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15500 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15501 if test $ac_cv_working_alloca_h = yes; then
15503 cat >>confdefs.h
<<\_ACEOF
15504 #define HAVE_ALLOCA_H 1
15509 { echo "$as_me:$LINENO: checking for alloca" >&5
15510 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15511 if test "${ac_cv_func_alloca_works+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 cat >conftest.
$ac_ext <<_ACEOF
15517 cat confdefs.h
>>conftest.
$ac_ext
15518 cat >>conftest.
$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15521 # define alloca __builtin_alloca
15524 # include <malloc.h>
15525 # define alloca _alloca
15527 # ifdef HAVE_ALLOCA_H
15528 # include <alloca.h>
15533 # ifndef alloca /* predefined by HP cc +Olibcalls */
15544 char *p = (char *) alloca (1);
15550 rm -f conftest.
$ac_objext conftest
$ac_exeext
15551 if { (ac_try
="$ac_link"
15552 case "(($ac_try" in
15553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 ac_cv_func_alloca_works=yes
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 ac_cv_func_alloca_works=no
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
15579 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15580 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15582 if test $ac_cv_func_alloca_works = yes; then
15584 cat >>confdefs.h <<\_ACEOF
15585 #define HAVE_ALLOCA 1
15589 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15590 # that cause trouble. Some versions do not even contain alloca or
15591 # contain a buggy version. If you still want to use their alloca,
15592 # use ar to extract alloca.o from them instead of compiling alloca.c.
15594 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15596 cat >>confdefs.h <<\_ACEOF
15601 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15602 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15603 if test "${ac_cv_os_cray+set}" = set; then
15604 echo $ECHO_N "(cached
) $ECHO_C" >&6
15606 cat >conftest.$ac_ext <<_ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #if defined CRAY && ! defined CRAY2
15619 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15620 $EGREP "webecray
" >/dev/null 2>&1; then
15628 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15629 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15630 if test $ac_cv_os_cray = yes; then
15631 for ac_func in _getb67 GETB67 getb67; do
15632 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15633 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15634 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15635 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15636 echo $ECHO_N "(cached
) $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15646 #define $ac_func innocuous_$ac_func
15648 /* System header to define __stub macros and hopefully few prototypes,
15649 which can conflict with char $ac_func (); below.
15650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15651 <limits.h> exists even on freestanding compilers. */
15654 # include <limits.h>
15656 # include <assert.h>
15661 /* Override any GCC internal prototype to avoid an error.
15662 Use char because int might match the return type of a GCC
15663 builtin and then its argument prototype would still apply. */
15668 /* The GNU C library defines this for functions which it implements
15669 to always fail with ENOSYS. Some functions are actually named
15670 something starting with __ and the normal name is an alias. */
15671 #if defined __stub_$ac_func || defined __stub___$ac_func
15678 return $ac_func ();
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15690 (eval "$ac_link") 2>conftest.er1
15692 grep -v '^ *+' conftest.er1 >conftest.err
15694 cat conftest.err >&5
15695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15696 (exit $ac_status); } && {
15697 test -z "$ac_c_werror_flag" ||
15698 test ! -s conftest.err
15699 } && test -s conftest$ac_exeext &&
15700 $as_test_x conftest$ac_exeext; then
15701 eval "$as_ac_var=yes"
15703 echo "$as_me: failed program was
:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 eval "$as_ac_var=no
"
15709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15710 conftest$ac_exeext conftest.$ac_ext
15712 ac_res=`eval echo '${'$as_ac_var'}'`
15713 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15714 echo "${ECHO_T}$ac_res" >&6; }
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define CRAY_STACKSEG_END $ac_func
15727 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15728 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15729 if test "${ac_cv_c_stack_direction+set}" = set; then
15730 echo $ECHO_N "(cached
) $ECHO_C" >&6
15732 if test "$cross_compiling" = yes; then
15733 ac_cv_c_stack_direction=0
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15743 find_stack_direction ()
15745 static char *addr = 0;
15750 return find_stack_direction ();
15753 return (&dummy > addr) ? 1 : -1;
15759 return find_stack_direction () < 0;
15762 rm -f conftest$ac_exeext
15763 if { (ac_try="$ac_link"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_link") 2>&5
15771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15773 { (case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_try") 2>&5
15780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_cv_c_stack_direction=1
15784 echo "$as_me: program exited with status
$ac_status" >&5
15785 echo "$as_me: failed program was
:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ( exit $ac_status )
15789 ac_cv_c_stack_direction=-1
15791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15796 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15797 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15799 cat >>confdefs.h <<_ACEOF
15800 #define STACK_DIRECTION $ac_cv_c_stack_direction
15807 if test x"$ac_cv_func_alloca_works" != xyes; then
15808 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15809 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15810 { (exit 1); exit 1; }; }
15813 # fmod, logb, and frexp are found in -lm on most systems.
15814 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15816 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15817 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15818 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15819 echo $ECHO_N "(cached
) $ECHO_C" >&6
15821 ac_check_lib_save_LIBS=$LIBS
15823 cat >conftest.$ac_ext <<_ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15830 /* Override any GCC internal prototype to avoid an error.
15831 Use char because int might match the return type of a GCC
15832 builtin and then its argument prototype would still apply. */
15845 rm -f conftest.$ac_objext conftest$ac_exeext
15846 if { (ac_try="$ac_link"
15847 case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_link") 2>conftest.er1
15854 grep -v '^ *+' conftest.er1 >conftest.err
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15858 (exit $ac_status); } && {
15859 test -z "$ac_c_werror_flag" ||
15860 test ! -s conftest.err
15861 } && test -s conftest$ac_exeext &&
15862 $as_test_x conftest$ac_exeext; then
15863 ac_cv_lib_m_sqrt=yes
15865 echo "$as_me: failed program was
:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_cv_lib_m_sqrt=no
15871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15872 conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15875 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15876 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15877 if test $ac_cv_lib_m_sqrt = yes; then
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_LIBM 1
15887 # Check for mail-locking functions in a "mail" library. Probably this should
15888 # have the same check as for liblockfile below.
15890 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15891 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15892 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15893 echo $ECHO_N "(cached
) $ECHO_C" >&6
15895 ac_check_lib_save_LIBS=$LIBS
15896 LIBS="-lmail $LIBS"
15897 cat >conftest.$ac_ext <<_ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15914 return maillock ();
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_link") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext &&
15936 $as_test_x conftest$ac_exeext; then
15937 ac_cv_lib_mail_maillock=yes
15939 echo "$as_me: failed program was
:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_cv_lib_mail_maillock=no
15945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15946 conftest$ac_exeext conftest.$ac_ext
15947 LIBS=$ac_check_lib_save_LIBS
15949 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15950 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15951 if test $ac_cv_lib_mail_maillock = yes; then
15952 cat >>confdefs.h <<_ACEOF
15953 #define HAVE_LIBMAIL 1
15956 LIBS="-lmail $LIBS"
15961 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15962 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15963 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15964 echo $ECHO_N "(cached
) $ECHO_C" >&6
15966 ac_check_lib_save_LIBS=$LIBS
15967 LIBS="-llockfile $LIBS"
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15975 /* Override any GCC internal prototype to avoid an error.
15976 Use char because int might match the return type of a GCC
15977 builtin and then its argument prototype would still apply. */
15985 return maillock ();
15990 rm -f conftest.$ac_objext conftest$ac_exeext
15991 if { (ac_try="$ac_link"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_link") 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16003 (exit $ac_status); } && {
16004 test -z "$ac_c_werror_flag" ||
16005 test ! -s conftest.err
16006 } && test -s conftest$ac_exeext &&
16007 $as_test_x conftest$ac_exeext; then
16008 ac_cv_lib_lockfile_maillock=yes
16010 echo "$as_me: failed program was
:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_cv_lib_lockfile_maillock=no
16016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16020 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16021 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16022 if test $ac_cv_lib_lockfile_maillock = yes; then
16023 cat >>confdefs.h <<_ACEOF
16024 #define HAVE_LIBLOCKFILE 1
16027 LIBS="-llockfile $LIBS"
16031 # If we have the shared liblockfile, assume we must use it for mail
16032 # locking (e.g. Debian). If we couldn't link against liblockfile
16033 # (no liblockfile.a installed), ensure that we don't need to.
16034 if test "$ac_cv_lib_lockfile_maillock" = no; then
16035 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16036 set dummy liblockfile.so; ac_word=$2
16037 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
16038 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
16039 if test "${ac_cv_prog_liblockfile+set}" = set; then
16040 echo $ECHO_N "(cached
) $ECHO_C" >&6
16042 if test -n "$liblockfile"; then
16043 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16046 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16047 for as_dir in $as_dummy
16050 test -z "$as_dir" && as_dir=.
16051 for ac_exec_ext in '' $ac_executable_extensions; do
16052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16053 ac_cv_prog_liblockfile="yes"
16054 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16061 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16064 liblockfile=$ac_cv_prog_liblockfile
16065 if test -n "$liblockfile"; then
16066 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
16067 echo "${ECHO_T}$liblockfile" >&6; }
16069 { echo "$as_me:$LINENO: result
: no
" >&5
16070 echo "${ECHO_T}no
" >&6; }
16074 if test $ac_cv_prog_liblockfile = yes; then
16075 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16076 This probably means that movemail could lose mail.
16077 There may be a \`development' package to
install containing liblockfile.
" >&5
16078 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16079 This probably means that movemail could lose mail.
16080 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16081 { (exit 1); exit 1; }; }
16086 for ac_func in touchlock
16088 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16089 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16090 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16091 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16092 echo $ECHO_N "(cached
) $ECHO_C" >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16102 #define $ac_func innocuous_$ac_func
16104 /* System header to define __stub macros and hopefully few prototypes,
16105 which can conflict with char $ac_func (); below.
16106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16107 <limits.h> exists even on freestanding compilers. */
16110 # include <limits.h>
16112 # include <assert.h>
16117 /* Override any GCC internal prototype to avoid an error.
16118 Use char because int might match the return type of a GCC
16119 builtin and then its argument prototype would still apply. */
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined __stub_$ac_func || defined __stub___$ac_func
16134 return $ac_func ();
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_link") 2>conftest.er1
16148 grep -v '^ *+' conftest.er1 >conftest.err
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16152 (exit $ac_status); } && {
16153 test -z "$ac_c_werror_flag" ||
16154 test ! -s conftest.err
16155 } && test -s conftest$ac_exeext &&
16156 $as_test_x conftest$ac_exeext; then
16157 eval "$as_ac_var=yes"
16159 echo "$as_me: failed program was
:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 eval "$as_ac_var=no
"
16165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16166 conftest$ac_exeext conftest.$ac_ext
16168 ac_res=`eval echo '${'$as_ac_var'}'`
16169 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16170 echo "${ECHO_T}$ac_res" >&6; }
16171 if test `eval echo '${'$as_ac_var'}'` = yes; then
16172 cat >>confdefs.h <<_ACEOF
16173 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16180 for ac_header in maillock.h
16182 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16183 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16184 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16185 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16186 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16187 echo $ECHO_N "(cached
) $ECHO_C" >&6
16189 ac_res=`eval echo '${'$as_ac_Header'}'`
16190 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16191 echo "${ECHO_T}$ac_res" >&6; }
16193 # Is the header compilable?
16194 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16195 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16196 cat >conftest.$ac_ext <<_ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16202 $ac_includes_default
16203 #include <$ac_header>
16205 rm -f conftest.$ac_objext
16206 if { (ac_try="$ac_compile"
16207 case "(($ac_try" in
16208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209 *) ac_try_echo=$ac_try;;
16211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16212 (eval "$ac_compile") 2>conftest.er1
16214 grep -v '^ *+' conftest.er1 >conftest.err
16216 cat conftest.err >&5
16217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest.$ac_objext; then
16222 ac_header_compiler=yes
16224 echo "$as_me: failed program was
:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16227 ac_header_compiler=no
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16232 echo "${ECHO_T}$ac_header_compiler" >&6; }
16234 # Is the header present?
16235 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16236 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <$ac_header>
16245 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16253 grep -v '^ *+' conftest.er1 >conftest.err
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16257 (exit $ac_status); } >/dev/null && {
16258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16259 test ! -s conftest.err
16261 ac_header_preproc=yes
16263 echo "$as_me: failed program was
:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_header_preproc=no
16269 rm -f conftest.err conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16273 # So? What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16276 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16277 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16280 ac_header_preproc=yes
16283 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16284 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16285 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16286 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16287 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16288 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16289 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16290 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16293 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16294 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16298 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16299 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached
) $ECHO_C" >&6
16303 eval "$as_ac_Header=\
$ac_header_preproc"
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16388 for ac_func in gethostname getdomainname dup2 \
16389 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16390 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16391 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16392 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16393 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16394 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16395 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16396 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16398 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16399 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16400 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16401 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16402 echo $ECHO_N "(cached
) $ECHO_C" >&6
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16412 #define $ac_func innocuous_$ac_func
16414 /* System header to define __stub macros and hopefully few prototypes,
16415 which can conflict with char $ac_func (); below.
16416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16417 <limits.h> exists even on freestanding compilers. */
16420 # include <limits.h>
16422 # include <assert.h>
16427 /* Override any GCC internal prototype to avoid an error.
16428 Use char because int might match the return type of a GCC
16429 builtin and then its argument prototype would still apply. */
16434 /* The GNU C library defines this for functions which it implements
16435 to always fail with ENOSYS. Some functions are actually named
16436 something starting with __ and the normal name is an alias. */
16437 #if defined __stub_$ac_func || defined __stub___$ac_func
16444 return $ac_func ();
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (ac_try="$ac_link"
16451 case "(($ac_try" in
16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453 *) ac_try_echo=$ac_try;;
16455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16456 (eval "$ac_link") 2>conftest.er1
16458 grep -v '^ *+' conftest.er1 >conftest.err
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest$ac_exeext &&
16466 $as_test_x conftest$ac_exeext; then
16467 eval "$as_ac_var=yes"
16469 echo "$as_me: failed program was
:" >&5
16470 sed 's/^/| /' conftest.$ac_ext >&5
16472 eval "$as_ac_var=no
"
16475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16476 conftest$ac_exeext conftest.$ac_ext
16478 ac_res=`eval echo '${'$as_ac_var'}'`
16479 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16480 echo "${ECHO_T}$ac_res" >&6; }
16481 if test `eval echo '${'$as_ac_var'}'` = yes; then
16482 cat >>confdefs.h <<_ACEOF
16483 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16491 for ac_header in sys/un.h
16493 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16495 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16496 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16497 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached
) $ECHO_C" >&6
16500 ac_res=`eval echo '${'$as_ac_Header'}'`
16501 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16504 # Is the header compilable?
16505 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16506 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 $ac_includes_default
16514 #include <$ac_header>
16516 rm -f conftest.$ac_objext
16517 if { (ac_try="$ac_compile"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_compile") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1 >conftest.err
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest.$ac_objext; then
16533 ac_header_compiler=yes
16535 echo "$as_me: failed program was
:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_header_compiler=no
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16543 echo "${ECHO_T}$ac_header_compiler" >&6; }
16545 # Is the header present?
16546 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16547 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 #include <$ac_header>
16556 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16564 grep -v '^ *+' conftest.er1 >conftest.err
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16568 (exit $ac_status); } >/dev/null && {
16569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16572 ac_header_preproc=yes
16574 echo "$as_me: failed program was
:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_header_preproc=no
16580 rm -f conftest.err conftest.$ac_ext
16581 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16582 echo "${ECHO_T}$ac_header_preproc" >&6; }
16584 # So? What about this header?
16585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16587 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16588 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16591 ac_header_preproc=yes
16594 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16595 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16596 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16597 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16598 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16599 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16600 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16601 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16602 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16604 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16605 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16609 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16610 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16612 echo $ECHO_N "(cached
) $ECHO_C" >&6
16614 eval "$as_ac_Header=\
$ac_header_preproc"
16616 ac_res=`eval echo '${'$as_ac_Header'}'`
16617 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16618 echo "${ECHO_T}$ac_res" >&6; }
16621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16635 for ac_header in $ac_header_list
16637 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16638 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16639 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16640 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16641 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16642 echo $ECHO_N "(cached
) $ECHO_C" >&6
16644 ac_res=`eval echo '${'$as_ac_Header'}'`
16645 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16646 echo "${ECHO_T}$ac_res" >&6; }
16648 # Is the header compilable?
16649 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16650 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 $ac_includes_default
16658 #include <$ac_header>
16660 rm -f conftest.$ac_objext
16661 if { (ac_try="$ac_compile"
16662 case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_compile") 2>conftest.er1
16669 grep -v '^ *+' conftest.er1 >conftest.err
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16673 (exit $ac_status); } && {
16674 test -z "$ac_c_werror_flag" ||
16675 test ! -s conftest.err
16676 } && test -s conftest.$ac_objext; then
16677 ac_header_compiler=yes
16679 echo "$as_me: failed program was
:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ac_header_compiler=no
16685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16686 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16687 echo "${ECHO_T}$ac_header_compiler" >&6; }
16689 # Is the header present?
16690 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16691 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16692 cat >conftest.$ac_ext <<_ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16698 #include <$ac_header>
16700 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16701 case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16706 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16708 grep -v '^ *+' conftest.er1 >conftest.err
16710 cat conftest.err >&5
16711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16712 (exit $ac_status); } >/dev/null && {
16713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16716 ac_header_preproc=yes
16718 echo "$as_me: failed program was
:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16721 ac_header_preproc=no
16724 rm -f conftest.err conftest.$ac_ext
16725 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16726 echo "${ECHO_T}$ac_header_preproc" >&6; }
16728 # So? What about this header?
16729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16731 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16732 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16733 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16735 ac_header_preproc=yes
16738 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16739 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16740 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16741 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16742 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16743 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16744 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16745 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16746 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16748 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16749 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16753 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16754 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16755 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached
) $ECHO_C" >&6
16758 eval "$as_ac_Header=\
$ac_header_preproc"
16760 ac_res=`eval echo '${'$as_ac_Header'}'`
16761 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16762 echo "${ECHO_T}$ac_res" >&6; }
16765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16782 for ac_func in $ac_func_list
16784 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16785 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16786 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16787 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16788 echo $ECHO_N "(cached
) $ECHO_C" >&6
16790 cat >conftest.$ac_ext <<_ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16798 #define $ac_func innocuous_$ac_func
16800 /* System header to define __stub macros and hopefully few prototypes,
16801 which can conflict with char $ac_func (); below.
16802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16803 <limits.h> exists even on freestanding compilers. */
16806 # include <limits.h>
16808 # include <assert.h>
16813 /* Override any GCC internal prototype to avoid an error.
16814 Use char because int might match the return type of a GCC
16815 builtin and then its argument prototype would still apply. */
16820 /* The GNU C library defines this for functions which it implements
16821 to always fail with ENOSYS. Some functions are actually named
16822 something starting with __ and the normal name is an alias. */
16823 #if defined __stub_$ac_func || defined __stub___$ac_func
16830 return $ac_func ();
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (ac_try="$ac_link"
16837 case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_link") 2>conftest.er1
16844 grep -v '^ *+' conftest.er1 >conftest.err
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest$ac_exeext &&
16852 $as_test_x conftest$ac_exeext; then
16853 eval "$as_ac_var=yes"
16855 echo "$as_me: failed program was
:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 eval "$as_ac_var=no
"
16861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16862 conftest$ac_exeext conftest.$ac_ext
16864 ac_res=`eval echo '${'$as_ac_var'}'`
16865 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 if test `eval echo '${'$as_ac_var'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16891 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16892 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16893 if test "${ac_cv_func_working_mktime+set}" = set; then
16894 echo $ECHO_N "(cached
) $ECHO_C" >&6
16896 if test "$cross_compiling" = yes; then
16897 ac_cv_func_working_mktime=no
16899 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 /* Test program from Paul Eggert and Tony Leneis. */
16906 #ifdef TIME_WITH_SYS_TIME
16907 # include <sys/time.h>
16910 # ifdef HAVE_SYS_TIME_H
16911 # include <sys/time.h>
16917 #include <stdlib.h>
16919 #ifdef HAVE_UNISTD_H
16920 # include <unistd.h>
16924 # define alarm(X) /* empty */
16927 /* Work around redefinition to rpl_putenv by other config tests. */
16930 static time_t time_t_max;
16931 static time_t time_t_min;
16933 /* Values we'll use to set the TZ environment variable. */
16934 static char *tz_strings[] = {
16935 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16936 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16938 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16940 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16941 Based on a problem report from Andreas Jaeger. */
16943 spring_forward_gap ()
16945 /* glibc (up to about 1998-10-07) failed this test. */
16948 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16949 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16950 on systems that don't support the Olson extension, or don't have the
16951 full zoneinfo tables installed. */
16952 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16961 return mktime (&tm) != (time_t) -1;
16969 return ! (lt = localtime (&now)) || mktime (lt) == now;
16976 return (mktime_test1 (now)
16977 && mktime_test1 ((time_t) (time_t_max - now))
16978 && mktime_test1 ((time_t) (time_t_min + now)));
16984 /* Based on code from Ariel Faigon. */
16994 return tm.tm_mon == 2 && tm.tm_mday == 31;
17003 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17004 now = mktime (&tm);
17005 if (now != (time_t) -1)
17007 struct tm *lt = localtime (&now);
17009 && lt->tm_year == tm.tm_year
17010 && lt->tm_mon == tm.tm_mon
17011 && lt->tm_mday == tm.tm_mday
17012 && lt->tm_hour == tm.tm_hour
17013 && lt->tm_min == tm.tm_min
17014 && lt->tm_sec == tm.tm_sec
17015 && lt->tm_yday == tm.tm_yday
17016 && lt->tm_wday == tm.tm_wday
17017 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17018 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17027 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17028 ignoring leap seconds. */
17029 unsigned long int answer = 2527315200UL;
17033 tm.tm_year = 2050 - 1900;
17036 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17039 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17040 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17041 on systems that don't support the Olson extension, or don't have the
17042 full zoneinfo tables installed. */
17043 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17047 /* Check that the result is either a failure, or close enough
17048 to the correct answer that we can assume the discrepancy is
17049 due to leap seconds. */
17050 return (t == (time_t) -1
17051 || (0 < t && answer - 120 <= t && t <= answer + 120));
17060 /* This test makes some buggy mktime implementations loop.
17061 Give up after 60 seconds; a mktime slower than that
17062 isn't worth using anyway. */
17065 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17068 if ((time_t) -1 < 0)
17069 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17071 delta = time_t_max / 997; /* a suitable prime number */
17072 for (i = 0; i < N_STRINGS; i++)
17075 putenv (tz_strings[i]);
17077 for (t = 0; t <= time_t_max - delta; t += delta)
17078 if (! mktime_test (t))
17080 if (! (mktime_test ((time_t) 1)
17081 && mktime_test ((time_t) (60 * 60))
17082 && mktime_test ((time_t) (60 * 60 * 24))))
17085 for (j = 1; 0 < j; j *= 2)
17086 if (! bigtime_test (j))
17088 if (! bigtime_test (j - 1))
17091 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17094 rm -f conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_link") 2>&5
17103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_cv_func_working_mktime=yes
17116 echo "$as_me: program exited with status
$ac_status" >&5
17117 echo "$as_me: failed program was
:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17120 ( exit $ac_status )
17121 ac_cv_func_working_mktime=no
17123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17128 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17129 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17130 if test $ac_cv_func_working_mktime = no; then
17131 case " $LIBOBJS " in
17132 *" mktime.
$ac_objext "* ) ;;
17133 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17139 if test "$ac_cv_func_working_mktime" = no; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define BROKEN_MKTIME 1
17147 ac_have_func=no # yes means we've found a way to get the load average.
17149 # Make sure getloadavg.c is where it belongs, at configure-time.
17150 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17151 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17152 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17153 { (exit 1); exit 1; }; }
17157 # Check for getloadavg, but be sure not to touch the cache variable.
17158 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17159 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17160 if test "${ac_cv_func_getloadavg+set}" = set; then
17161 echo $ECHO_N "(cached
) $ECHO_C" >&6
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171 #define getloadavg innocuous_getloadavg
17173 /* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char getloadavg (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17179 # include <limits.h>
17181 # include <assert.h>
17186 /* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17192 char getloadavg ();
17193 /* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196 #if defined __stub_getloadavg || defined __stub___getloadavg
17203 return getloadavg ();
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17217 grep -v '^ *+' conftest.er1 >conftest.err
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17221 (exit $ac_status); } && {
17222 test -z "$ac_c_werror_flag" ||
17223 test ! -s conftest.err
17224 } && test -s conftest$ac_exeext &&
17225 $as_test_x conftest$ac_exeext; then
17226 ac_cv_func_getloadavg=yes
17228 echo "$as_me: failed program was
:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17231 ac_cv_func_getloadavg=no
17234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17235 conftest$ac_exeext conftest.$ac_ext
17237 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17238 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17239 if test $ac_cv_func_getloadavg = yes; then
17244 ) && ac_have_func=yes
17246 # On HPUX9, an unprivileged user can get load averages through this function.
17248 for ac_func in pstat_getdynamic
17250 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17252 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17254 echo $ECHO_N "(cached
) $ECHO_C" >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17264 #define $ac_func innocuous_$ac_func
17266 /* System header to define __stub macros and hopefully few prototypes,
17267 which can conflict with char $ac_func (); below.
17268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269 <limits.h> exists even on freestanding compilers. */
17272 # include <limits.h>
17274 # include <assert.h>
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply. */
17286 /* The GNU C library defines this for functions which it implements
17287 to always fail with ENOSYS. Some functions are actually named
17288 something starting with __ and the normal name is an alias. */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17296 return $ac_func ();
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_link") 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17314 (exit $ac_status); } && {
17315 test -z "$ac_c_werror_flag" ||
17316 test ! -s conftest.err
17317 } && test -s conftest$ac_exeext &&
17318 $as_test_x conftest$ac_exeext; then
17319 eval "$as_ac_var=yes"
17321 echo "$as_me: failed program was
:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 eval "$as_ac_var=no
"
17327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17328 conftest$ac_exeext conftest.$ac_ext
17330 ac_res=`eval echo '${'$as_ac_var'}'`
17331 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17332 echo "${ECHO_T}$ac_res" >&6; }
17333 if test `eval echo '${'$as_ac_var'}'` = yes; then
17334 cat >>confdefs.h <<_ACEOF
17335 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17342 # Solaris has libkstat which does not require root.
17344 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17345 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17346 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17347 echo $ECHO_N "(cached
) $ECHO_C" >&6
17349 ac_check_lib_save_LIBS=$LIBS
17350 LIBS="-lkstat $LIBS"
17351 cat >conftest.$ac_ext <<_ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17358 /* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
17364 char kstat_open ();
17368 return kstat_open ();
17373 rm -f conftest.$ac_objext conftest$ac_exeext
17374 if { (ac_try="$ac_link"
17375 case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17386 (exit $ac_status); } && {
17387 test -z "$ac_c_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest$ac_exeext &&
17390 $as_test_x conftest$ac_exeext; then
17391 ac_cv_lib_kstat_kstat_open=yes
17393 echo "$as_me: failed program was
:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 ac_cv_lib_kstat_kstat_open=no
17399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17400 conftest$ac_exeext conftest.$ac_ext
17401 LIBS=$ac_check_lib_save_LIBS
17403 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17404 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17405 if test $ac_cv_lib_kstat_kstat_open = yes; then
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_LIBKSTAT 1
17410 LIBS="-lkstat $LIBS"
17414 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17416 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17417 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17418 # to get the right answer into the cache.
17419 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17420 if test $ac_have_func = no; then
17421 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17422 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17423 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17424 echo $ECHO_N "(cached
) $ECHO_C" >&6
17426 ac_check_lib_save_LIBS=$LIBS
17428 cat >conftest.$ac_ext <<_ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17435 /* Override any GCC internal prototype to avoid an error.
17436 Use char because int might match the return type of a GCC
17437 builtin and then its argument prototype would still apply. */
17445 return elf_begin ();
17450 rm -f conftest.$ac_objext conftest$ac_exeext
17451 if { (ac_try="$ac_link"
17452 case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17457 (eval "$ac_link") 2>conftest.er1
17459 grep -v '^ *+' conftest.er1 >conftest.err
17461 cat conftest.err >&5
17462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17463 (exit $ac_status); } && {
17464 test -z "$ac_c_werror_flag" ||
17465 test ! -s conftest.err
17466 } && test -s conftest$ac_exeext &&
17467 $as_test_x conftest$ac_exeext; then
17468 ac_cv_lib_elf_elf_begin=yes
17470 echo "$as_me: failed program was
:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_cv_lib_elf_elf_begin=no
17476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17477 conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17480 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17481 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17482 if test $ac_cv_lib_elf_elf_begin = yes; then
17487 if test $ac_have_func = no; then
17488 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17489 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17490 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17491 echo $ECHO_N "(cached
) $ECHO_C" >&6
17493 ac_check_lib_save_LIBS=$LIBS
17495 cat >conftest.$ac_ext <<_ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17502 /* Override any GCC internal prototype to avoid an error.
17503 Use char because int might match the return type of a GCC
17504 builtin and then its argument prototype would still apply. */
17512 return kvm_open ();
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17526 grep -v '^ *+' conftest.er1 >conftest.err
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17530 (exit $ac_status); } && {
17531 test -z "$ac_c_werror_flag" ||
17532 test ! -s conftest.err
17533 } && test -s conftest$ac_exeext &&
17534 $as_test_x conftest$ac_exeext; then
17535 ac_cv_lib_kvm_kvm_open=yes
17537 echo "$as_me: failed program was
:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 ac_cv_lib_kvm_kvm_open=no
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17545 LIBS=$ac_check_lib_save_LIBS
17547 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17548 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17549 if test $ac_cv_lib_kvm_kvm_open = yes; then
17553 # Check for the 4.4BSD definition of getloadavg.
17554 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17555 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17556 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17557 echo $ECHO_N "(cached
) $ECHO_C" >&6
17559 ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-lutil $LIBS"
17561 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 /* Override any GCC internal prototype to avoid an error.
17569 Use char because int might match the return type of a GCC
17570 builtin and then its argument prototype would still apply. */
17574 char getloadavg ();
17578 return getloadavg ();
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17592 grep -v '^ *+' conftest.er1 >conftest.err
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17596 (exit $ac_status); } && {
17597 test -z "$ac_c_werror_flag" ||
17598 test ! -s conftest.err
17599 } && test -s conftest$ac_exeext &&
17600 $as_test_x conftest$ac_exeext; then
17601 ac_cv_lib_util_getloadavg=yes
17603 echo "$as_me: failed program was
:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_util_getloadavg=no
17609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17613 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17614 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17615 if test $ac_cv_lib_util_getloadavg = yes; then
17616 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17621 if test $ac_have_func = no; then
17622 # There is a commonly available library for RS/6000 AIX.
17623 # Since it is not a standard part of AIX, it might be installed locally.
17624 ac_getloadavg_LIBS=$LIBS
17625 LIBS="-L/usr
/local
/lib
$LIBS"
17626 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17627 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17628 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17629 echo $ECHO_N "(cached
) $ECHO_C" >&6
17631 ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-lgetloadavg $LIBS"
17633 cat >conftest.$ac_ext <<_ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h. */
17640 /* Override any GCC internal prototype to avoid an error.
17641 Use char because int might match the return type of a GCC
17642 builtin and then its argument prototype would still apply. */
17646 char getloadavg ();
17650 return getloadavg ();
17655 rm -f conftest.$ac_objext conftest$ac_exeext
17656 if { (ac_try="$ac_link"
17657 case "(($ac_try" in
17658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17659 *) ac_try_echo=$ac_try;;
17661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_link") 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest$ac_exeext &&
17672 $as_test_x conftest$ac_exeext; then
17673 ac_cv_lib_getloadavg_getloadavg=yes
17675 echo "$as_me: failed program was
:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_cv_lib_getloadavg_getloadavg=no
17681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17682 conftest$ac_exeext conftest.$ac_ext
17683 LIBS=$ac_check_lib_save_LIBS
17685 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17686 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17687 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17688 LIBS="-lgetloadavg $LIBS"
17690 LIBS=$ac_getloadavg_LIBS
17695 # Make sure it is really in the library, if we think we found it,
17696 # otherwise set up the replacement function.
17698 for ac_func in getloadavg
17700 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17701 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17702 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17703 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17704 echo $ECHO_N "(cached
) $ECHO_C" >&6
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17714 #define $ac_func innocuous_$ac_func
17716 /* System header to define __stub macros and hopefully few prototypes,
17717 which can conflict with char $ac_func (); below.
17718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17719 <limits.h> exists even on freestanding compilers. */
17722 # include <limits.h>
17724 # include <assert.h>
17729 /* Override any GCC internal prototype to avoid an error.
17730 Use char because int might match the return type of a GCC
17731 builtin and then its argument prototype would still apply. */
17736 /* The GNU C library defines this for functions which it implements
17737 to always fail with ENOSYS. Some functions are actually named
17738 something starting with __ and the normal name is an alias. */
17739 #if defined __stub_$ac_func || defined __stub___$ac_func
17746 return $ac_func ();
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (ac_try="$ac_link"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_link") 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest$ac_exeext &&
17768 $as_test_x conftest$ac_exeext; then
17769 eval "$as_ac_var=yes"
17771 echo "$as_me: failed program was
:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17774 eval "$as_ac_var=no
"
17777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17778 conftest$ac_exeext conftest.$ac_ext
17780 ac_res=`eval echo '${'$as_ac_var'}'`
17781 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17782 echo "${ECHO_T}$ac_res" >&6; }
17783 if test `eval echo '${'$as_ac_var'}'` = yes; then
17784 cat >>confdefs.h <<_ACEOF
17785 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17789 case " $LIBOBJS " in
17790 *" getloadavg.
$ac_objext "* ) ;;
17791 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17796 cat >>confdefs.h <<\_ACEOF
17797 #define C_GETLOADAVG 1
17800 # Figure out what our getloadavg.c needs.
17802 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17803 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17804 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17805 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17806 echo $ECHO_N "(cached
) $ECHO_C" >&6
17808 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17809 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17811 # Is the header compilable?
17812 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17813 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17814 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 $ac_includes_default
17821 #include <sys/dg_sys_info.h>
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_compile") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest.$ac_objext; then
17840 ac_header_compiler=yes
17842 echo "$as_me: failed program was
:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_header_compiler=no
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17850 echo "${ECHO_T}$ac_header_compiler" >&6; }
17852 # Is the header present?
17853 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17854 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17855 cat >conftest.$ac_ext <<_ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17861 #include <sys/dg_sys_info.h>
17863 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17864 case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17875 (exit $ac_status); } >/dev/null && {
17876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17877 test ! -s conftest.err
17879 ac_header_preproc=yes
17881 echo "$as_me: failed program was
:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 ac_header_preproc=no
17887 rm -f conftest.err conftest.$ac_ext
17888 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17889 echo "${ECHO_T}$ac_header_preproc" >&6; }
17891 # So? What about this header?
17892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17894 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17895 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17896 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17897 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17898 ac_header_preproc=yes
17901 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17902 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17903 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17904 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17905 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17906 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17907 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17908 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17909 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17910 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17911 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17912 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17916 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17917 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17918 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17919 echo $ECHO_N "(cached
) $ECHO_C" >&6
17921 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17923 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17924 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17927 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17930 cat >>confdefs.h <<\_ACEOF
17935 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17936 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17937 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17938 echo $ECHO_N "(cached
) $ECHO_C" >&6
17940 ac_check_lib_save_LIBS=$LIBS
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17955 char dg_sys_info ();
17959 return dg_sys_info ();
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17973 grep -v '^ *+' conftest.er1 >conftest.err
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17977 (exit $ac_status); } && {
17978 test -z "$ac_c_werror_flag" ||
17979 test ! -s conftest.err
17980 } && test -s conftest$ac_exeext &&
17981 $as_test_x conftest$ac_exeext; then
17982 ac_cv_lib_dgc_dg_sys_info=yes
17984 echo "$as_me: failed program was
:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 ac_cv_lib_dgc_dg_sys_info=no
17990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17991 conftest$ac_exeext conftest.$ac_ext
17992 LIBS=$ac_check_lib_save_LIBS
17994 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17995 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17996 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17997 cat >>confdefs.h <<_ACEOF
17998 #define HAVE_LIBDGC 1
18009 if test "${ac_cv_header_locale_h+set}" = set; then
18010 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18011 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18012 if test "${ac_cv_header_locale_h+set}" = set; then
18013 echo $ECHO_N "(cached
) $ECHO_C" >&6
18015 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18016 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18018 # Is the header compilable?
18019 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18020 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18021 cat >conftest.$ac_ext <<_ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h. */
18027 $ac_includes_default
18028 #include <locale.h>
18030 rm -f conftest.$ac_objext
18031 if { (ac_try="$ac_compile"
18032 case "(($ac_try" in
18033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034 *) ac_try_echo=$ac_try;;
18036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18037 (eval "$ac_compile") 2>conftest.er1
18039 grep -v '^ *+' conftest.er1 >conftest.err
18041 cat conftest.err >&5
18042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18043 (exit $ac_status); } && {
18044 test -z "$ac_c_werror_flag" ||
18045 test ! -s conftest.err
18046 } && test -s conftest.$ac_objext; then
18047 ac_header_compiler=yes
18049 echo "$as_me: failed program was
:" >&5
18050 sed 's/^/| /' conftest.$ac_ext >&5
18052 ac_header_compiler=no
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18057 echo "${ECHO_T}$ac_header_compiler" >&6; }
18059 # Is the header present?
18060 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18061 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18062 cat >conftest.$ac_ext <<_ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068 #include <locale.h>
18070 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18078 grep -v '^ *+' conftest.er1 >conftest.err
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18082 (exit $ac_status); } >/dev/null && {
18083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18086 ac_header_preproc=yes
18088 echo "$as_me: failed program was
:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 ac_header_preproc=no
18094 rm -f conftest.err conftest.$ac_ext
18095 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18096 echo "${ECHO_T}$ac_header_preproc" >&6; }
18098 # So? What about this header?
18099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18101 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18102 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18103 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18104 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18105 ac_header_preproc=yes
18108 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18109 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18110 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18111 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18112 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18113 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18114 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18115 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18116 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18117 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18118 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18119 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18123 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18124 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18125 if test "${ac_cv_header_locale_h+set}" = set; then
18126 echo $ECHO_N "(cached
) $ECHO_C" >&6
18128 ac_cv_header_locale_h=$ac_header_preproc
18130 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18131 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18137 for ac_func in setlocale
18139 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18140 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18141 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18142 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18143 echo $ECHO_N "(cached
) $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18153 #define $ac_func innocuous_$ac_func
18155 /* System header to define __stub macros and hopefully few prototypes,
18156 which can conflict with char $ac_func (); below.
18157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18158 <limits.h> exists even on freestanding compilers. */
18161 # include <limits.h>
18163 # include <assert.h>
18168 /* Override any GCC internal prototype to avoid an error.
18169 Use char because int might match the return type of a GCC
18170 builtin and then its argument prototype would still apply. */
18175 /* The GNU C library defines this for functions which it implements
18176 to always fail with ENOSYS. Some functions are actually named
18177 something starting with __ and the normal name is an alias. */
18178 #if defined __stub_$ac_func || defined __stub___$ac_func
18185 return $ac_func ();
18190 rm -f conftest.$ac_objext conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
18199 grep -v '^ *+' conftest.er1 >conftest.err
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18203 (exit $ac_status); } && {
18204 test -z "$ac_c_werror_flag" ||
18205 test ! -s conftest.err
18206 } && test -s conftest$ac_exeext &&
18207 $as_test_x conftest$ac_exeext; then
18208 eval "$as_ac_var=yes"
18210 echo "$as_me: failed program was
:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 eval "$as_ac_var=no
"
18216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18217 conftest$ac_exeext conftest.$ac_ext
18219 ac_res=`eval echo '${'$as_ac_var'}'`
18220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18221 echo "${ECHO_T}$ac_res" >&6; }
18222 if test `eval echo '${'$as_ac_var'}'` = yes; then
18223 cat >>confdefs.h <<_ACEOF
18224 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18231 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18232 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18233 # Irix 4.0.5F has the header but not the library.
18234 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18237 cat >>confdefs.h <<\_ACEOF
18243 if test $ac_have_func = no; then
18244 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18245 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18246 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18247 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18248 echo $ECHO_N "(cached
) $ECHO_C" >&6
18250 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18251 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18253 # Is the header compilable?
18254 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18255 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18256 cat >conftest.$ac_ext <<_ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18262 $ac_includes_default
18263 #include <inq_stats/cpustats.h>
18265 rm -f conftest.$ac_objext
18266 if { (ac_try="$ac_compile"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_compile") 2>conftest.er1
18274 grep -v '^ *+' conftest.er1 >conftest.err
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18278 (exit $ac_status); } && {
18279 test -z "$ac_c_werror_flag" ||
18280 test ! -s conftest.err
18281 } && test -s conftest.$ac_objext; then
18282 ac_header_compiler=yes
18284 echo "$as_me: failed program was
:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18287 ac_header_compiler=no
18290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18291 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18292 echo "${ECHO_T}$ac_header_compiler" >&6; }
18294 # Is the header present?
18295 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18296 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18297 cat >conftest.$ac_ext <<_ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 #include <inq_stats/cpustats.h>
18305 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18306 case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18313 grep -v '^ *+' conftest.er1 >conftest.err
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18317 (exit $ac_status); } >/dev/null && {
18318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18319 test ! -s conftest.err
18321 ac_header_preproc=yes
18323 echo "$as_me: failed program was
:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 ac_header_preproc=no
18329 rm -f conftest.err conftest.$ac_ext
18330 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18331 echo "${ECHO_T}$ac_header_preproc" >&6; }
18333 # So? What about this header?
18334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18336 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18337 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18338 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18339 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18340 ac_header_preproc=yes
18343 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18344 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18345 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18346 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18347 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18348 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18349 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18350 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18351 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18352 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18353 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18354 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18358 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18359 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18360 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18361 echo $ECHO_N "(cached
) $ECHO_C" >&6
18363 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18365 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18366 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18369 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18372 cat >>confdefs.h <<\_ACEOF
18377 cat >>confdefs.h <<\_ACEOF
18386 if test $ac_have_func = no; then
18387 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18388 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18389 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18390 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18391 echo $ECHO_N "(cached
) $ECHO_C" >&6
18393 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18394 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18396 # Is the header compilable?
18397 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18398 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 $ac_includes_default
18406 #include <sys/cpustats.h>
18408 rm -f conftest.$ac_objext
18409 if { (ac_try="$ac_compile"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_compile") 2>conftest.er1
18417 grep -v '^ *+' conftest.er1 >conftest.err
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18421 (exit $ac_status); } && {
18422 test -z "$ac_c_werror_flag" ||
18423 test ! -s conftest.err
18424 } && test -s conftest.$ac_objext; then
18425 ac_header_compiler=yes
18427 echo "$as_me: failed program was
:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18430 ac_header_compiler=no
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18435 echo "${ECHO_T}$ac_header_compiler" >&6; }
18437 # Is the header present?
18438 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18439 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 #include <sys/cpustats.h>
18448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18456 grep -v '^ *+' conftest.er1 >conftest.err
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18460 (exit $ac_status); } >/dev/null && {
18461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18464 ac_header_preproc=yes
18466 echo "$as_me: failed program was
:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 ac_header_preproc=no
18472 rm -f conftest.err conftest.$ac_ext
18473 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18474 echo "${ECHO_T}$ac_header_preproc" >&6; }
18476 # So? What about this header?
18477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18479 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18480 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18481 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18482 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18483 ac_header_preproc=yes
18486 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18487 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18488 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18489 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18490 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18491 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18492 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18493 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18494 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18495 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18496 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18497 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18501 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18502 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18503 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18504 echo $ECHO_N "(cached
) $ECHO_C" >&6
18506 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18508 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18509 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18512 if test $ac_cv_header_sys_cpustats_h = yes; then
18513 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18522 if test $ac_have_func = no; then
18524 for ac_header in mach/mach.h
18526 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18527 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18528 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18529 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18531 echo $ECHO_N "(cached
) $ECHO_C" >&6
18533 ac_res=`eval echo '${'$as_ac_Header'}'`
18534 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18535 echo "${ECHO_T}$ac_res" >&6; }
18537 # Is the header compilable?
18538 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18539 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18540 cat >conftest.$ac_ext <<_ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18546 $ac_includes_default
18547 #include <$ac_header>
18549 rm -f conftest.$ac_objext
18550 if { (ac_try="$ac_compile"
18551 case "(($ac_try" in
18552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18553 *) ac_try_echo=$ac_try;;
18555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_compile") 2>conftest.er1
18558 grep -v '^ *+' conftest.er1 >conftest.err
18560 cat conftest.err >&5
18561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest.$ac_objext; then
18566 ac_header_compiler=yes
18568 echo "$as_me: failed program was
:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18571 ac_header_compiler=no
18574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18575 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18576 echo "${ECHO_T}$ac_header_compiler" >&6; }
18578 # Is the header present?
18579 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18580 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18581 cat >conftest.$ac_ext <<_ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18587 #include <$ac_header>
18589 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18601 (exit $ac_status); } >/dev/null && {
18602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18605 ac_header_preproc=yes
18607 echo "$as_me: failed program was
:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_header_preproc=no
18613 rm -f conftest.err conftest.$ac_ext
18614 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18615 echo "${ECHO_T}$ac_header_preproc" >&6; }
18617 # So? What about this header?
18618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18620 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18621 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18622 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18624 ac_header_preproc=yes
18627 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18628 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18629 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18630 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18631 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18632 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18633 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18634 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18635 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18637 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18638 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18642 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18643 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18644 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18645 echo $ECHO_N "(cached
) $ECHO_C" >&6
18647 eval "$as_ac_Header=\
$ac_header_preproc"
18649 ac_res=`eval echo '${'$as_ac_Header'}'`
18650 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18651 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18666 for ac_header in nlist.h
18668 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18669 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18670 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18671 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18673 echo $ECHO_N "(cached
) $ECHO_C" >&6
18675 ac_res=`eval echo '${'$as_ac_Header'}'`
18676 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18677 echo "${ECHO_T}$ac_res" >&6; }
18679 # Is the header compilable?
18680 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18681 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 $ac_includes_default
18689 #include <$ac_header>
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_compile") 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest.$ac_objext; then
18708 ac_header_compiler=yes
18710 echo "$as_me: failed program was
:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_header_compiler=no
18716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18718 echo "${ECHO_T}$ac_header_compiler" >&6; }
18720 # Is the header present?
18721 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18722 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 #include <$ac_header>
18731 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18743 (exit $ac_status); } >/dev/null && {
18744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18747 ac_header_preproc=yes
18749 echo "$as_me: failed program was
:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_header_preproc=no
18755 rm -f conftest.err conftest.$ac_ext
18756 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18757 echo "${ECHO_T}$ac_header_preproc" >&6; }
18759 # So? What about this header?
18760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18762 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18763 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18764 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18766 ac_header_preproc=yes
18769 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18770 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18771 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18772 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18773 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18774 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18775 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18776 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18777 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18779 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18780 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18784 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18785 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18786 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18787 echo $ECHO_N "(cached
) $ECHO_C" >&6
18789 eval "$as_ac_Header=\
$ac_header_preproc"
18791 ac_res=`eval echo '${'$as_ac_Header'}'`
18792 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18793 echo "${ECHO_T}$ac_res" >&6; }
18796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18797 cat >>confdefs.h <<_ACEOF
18798 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18800 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18801 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18802 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18803 echo $ECHO_N "(cached
) $ECHO_C" >&6
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18816 static struct nlist ac_aggr;
18817 if (ac_aggr.n_un.n_name)
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_compile") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest.$ac_objext; then
18840 ac_cv_member_struct_nlist_n_un_n_name=yes
18842 echo "$as_me: failed program was
:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18856 static struct nlist ac_aggr;
18857 if (sizeof ac_aggr.n_un.n_name)
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_compile") 2>conftest.er1
18872 grep -v '^ *+' conftest.er1 >conftest.err
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18876 (exit $ac_status); } && {
18877 test -z "$ac_c_werror_flag" ||
18878 test ! -s conftest.err
18879 } && test -s conftest.$ac_objext; then
18880 ac_cv_member_struct_nlist_n_un_n_name=yes
18882 echo "$as_me: failed program was
:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 ac_cv_member_struct_nlist_n_un_n_name=no
18888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18894 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18895 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18902 cat >>confdefs.h <<\_ACEOF
18903 #define NLIST_NAME_UNION 1
18917 # Some definitions of getloadavg require that the program be installed setgid.
18918 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18919 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18920 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18921 echo $ECHO_N "(cached
) $ECHO_C" >&6
18923 cat >conftest.$ac_ext <<_ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18929 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18930 #ifdef LDAV_PRIVILEGED
18931 Yowza Am I SETGID yet
18934 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18935 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18936 ac_cv_func_getloadavg_setgid=yes
18938 ac_cv_func_getloadavg_setgid=no
18943 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18944 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18945 if test $ac_cv_func_getloadavg_setgid = yes; then
18948 cat >>confdefs.h <<\_ACEOF
18949 #define GETLOADAVG_PRIVILEGED 1
18956 if test $ac_cv_func_getloadavg_setgid = yes; then
18957 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18958 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18959 if test "${ac_cv_group_kmem+set}" = set; then
18960 echo $ECHO_N "(cached
) $ECHO_C" >&6
18962 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18963 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18964 # If we got an error (system does not support symlinks), try without -L.
18965 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18966 ac_cv_group_kmem=`echo $ac_ls_output \
18967 | sed -ne 's/[ ][ ]*/ /g;
18968 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18972 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18973 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18974 KMEM_GROUP=$ac_cv_group_kmem
18976 if test "x
$ac_save_LIBS" = x; then
18977 GETLOADAVG_LIBS=$LIBS
18979 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18985 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18986 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18987 if test "${ac_cv_sys_largefile_source+set}" = set; then
18988 echo $ECHO_N "(cached
) $ECHO_C" >&6
18991 cat >conftest.$ac_ext <<_ACEOF
18994 cat confdefs.h >>conftest.$ac_ext
18995 cat >>conftest.$ac_ext <<_ACEOF
18996 /* end confdefs.h. */
19001 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19006 rm -f conftest.$ac_objext conftest$ac_exeext
19007 if { (ac_try="$ac_link"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_link") 2>conftest.er1
19015 grep -v '^ *+' conftest.er1 >conftest.err
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19019 (exit $ac_status); } && {
19020 test -z "$ac_c_werror_flag" ||
19021 test ! -s conftest.err
19022 } && test -s conftest$ac_exeext &&
19023 $as_test_x conftest$ac_exeext; then
19024 ac_cv_sys_largefile_source=no; break
19026 echo "$as_me: failed program was
:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19033 conftest$ac_exeext conftest.$ac_ext
19034 cat >conftest.$ac_ext <<_ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19040 #define _LARGEFILE_SOURCE 1
19045 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_link") 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19063 (exit $ac_status); } && {
19064 test -z "$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19066 } && test -s conftest$ac_exeext &&
19067 $as_test_x conftest$ac_exeext; then
19068 ac_cv_sys_largefile_source=1; break
19070 echo "$as_me: failed program was
:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19077 conftest$ac_exeext conftest.$ac_ext
19078 ac_cv_sys_largefile_source=unknown
19082 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19083 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19084 case $ac_cv_sys_largefile_source in #(
19087 cat >>confdefs.h <<_ACEOF
19088 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19094 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19095 # in glibc 2.1.3, but that breaks too many other things.
19096 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19097 if test $ac_cv_sys_largefile_source != unknown; then
19099 cat >>confdefs.h <<\_ACEOF
19100 #define HAVE_FSEEKO 1
19106 # Configure getopt.
19107 # getopt.m4 serial 10
19109 # The getopt module assume you want GNU getopt, with getopt_long etc,
19110 # rather than vanilla POSIX getopt. This means your your code should
19111 # always include <getopt.h> for the getopt prototypes.
19123 # Prerequisites of lib/getopt*.
19130 for ac_header in getopt.h
19132 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19133 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19134 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19135 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19136 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19137 echo $ECHO_N "(cached
) $ECHO_C" >&6
19139 ac_res=`eval echo '${'$as_ac_Header'}'`
19140 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19141 echo "${ECHO_T}$ac_res" >&6; }
19143 # Is the header compilable?
19144 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19145 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 $ac_includes_default
19153 #include <$ac_header>
19155 rm -f conftest.$ac_objext
19156 if { (ac_try="$ac_compile"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19162 (eval "$ac_compile") 2>conftest.er1
19164 grep -v '^ *+' conftest.er1 >conftest.err
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest.$ac_objext; then
19172 ac_header_compiler=yes
19174 echo "$as_me: failed program was
:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_header_compiler=no
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19182 echo "${ECHO_T}$ac_header_compiler" >&6; }
19184 # Is the header present?
19185 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19186 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <$ac_header>
19195 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19207 (exit $ac_status); } >/dev/null && {
19208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19211 ac_header_preproc=yes
19213 echo "$as_me: failed program was
:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_header_preproc=no
19219 rm -f conftest.err conftest.$ac_ext
19220 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19221 echo "${ECHO_T}$ac_header_preproc" >&6; }
19223 # So? What about this header?
19224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19226 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19227 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19228 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19230 ac_header_preproc=yes
19233 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19234 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19235 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19236 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19237 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19238 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19239 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19240 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19241 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19243 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19244 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
19255 ac_res=`eval echo '${'$as_ac_Header'}'`
19256 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19257 echo "${ECHO_T}$ac_res" >&6; }
19260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19261 cat >>confdefs.h <<_ACEOF
19262 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19271 if test -z "$GETOPT_H"; then
19273 for ac_func in getopt_long_only
19275 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19276 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19277 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19278 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19279 echo $ECHO_N "(cached
) $ECHO_C" >&6
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19289 #define $ac_func innocuous_$ac_func
19291 /* System header to define __stub macros and hopefully few prototypes,
19292 which can conflict with char $ac_func (); below.
19293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19294 <limits.h> exists even on freestanding compilers. */
19297 # include <limits.h>
19299 # include <assert.h>
19304 /* Override any GCC internal prototype to avoid an error.
19305 Use char because int might match the return type of a GCC
19306 builtin and then its argument prototype would still apply. */
19311 /* The GNU C library defines this for functions which it implements
19312 to always fail with ENOSYS. Some functions are actually named
19313 something starting with __ and the normal name is an alias. */
19314 #if defined __stub_$ac_func || defined __stub___$ac_func
19321 return $ac_func ();
19326 rm -f conftest.$ac_objext conftest$ac_exeext
19327 if { (ac_try="$ac_link"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_link") 2>conftest.er1
19335 grep -v '^ *+' conftest.er1 >conftest.err
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19339 (exit $ac_status); } && {
19340 test -z "$ac_c_werror_flag" ||
19341 test ! -s conftest.err
19342 } && test -s conftest$ac_exeext &&
19343 $as_test_x conftest$ac_exeext; then
19344 eval "$as_ac_var=yes"
19346 echo "$as_me: failed program was
:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 eval "$as_ac_var=no
"
19352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19353 conftest$ac_exeext conftest.$ac_ext
19355 ac_res=`eval echo '${'$as_ac_var'}'`
19356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19357 echo "${ECHO_T}$ac_res" >&6; }
19358 if test `eval echo '${'$as_ac_var'}'` = yes; then
19359 cat >>confdefs.h <<_ACEOF
19360 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19370 if test -z "$GETOPT_H"; then
19371 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19372 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19373 if test "${ac_cv_have_decl_optreset+set}" = set; then
19374 echo $ECHO_N "(cached
) $ECHO_C" >&6
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 #include <getopt.h>
19395 rm -f conftest.$ac_objext
19396 if { (ac_try="$ac_compile"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_compile") 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19408 (exit $ac_status); } && {
19409 test -z "$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19411 } && test -s conftest.$ac_objext; then
19412 ac_cv_have_decl_optreset=yes
19414 echo "$as_me: failed program was
:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19417 ac_cv_have_decl_optreset=no
19420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19423 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19424 if test $ac_cv_have_decl_optreset = yes; then
19430 if test -z "$GETOPT_H"; then
19431 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19432 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19433 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19434 echo $ECHO_N "(cached
) $ECHO_C" >&6
19436 if test "$cross_compiling" = yes; then
19437 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19438 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19439 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19440 echo $ECHO_N "(cached
) $ECHO_C" >&6
19442 cat >conftest.$ac_ext <<_ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 #include <getopt.h>
19453 #ifndef getopt_clip
19454 (void) getopt_clip;
19461 rm -f conftest.$ac_objext
19462 if { (ac_try="$ac_compile"
19463 case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_compile") 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest.$ac_objext; then
19478 ac_cv_have_decl_getopt_clip=yes
19480 echo "$as_me: failed program was
:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_cv_have_decl_getopt_clip=no
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19488 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19489 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19490 if test $ac_cv_have_decl_getopt_clip = yes; then
19491 gl_cv_func_gnu_getopt=no
19493 gl_cv_func_gnu_getopt=yes
19497 cat >conftest.$ac_ext <<_ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <getopt.h>
19509 myargv[0] = "conftest
";
19512 return getopt (2, myargv, "+a
") != '?';
19518 rm -f conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19525 (eval "$ac_link") 2>&5
19527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19529 { (case "(($ac_try" in
19530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19531 *) ac_try_echo=$ac_try;;
19533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19534 (eval "$ac_try") 2>&5
19536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 gl_cv_func_gnu_getopt=yes
19540 echo "$as_me: program exited with status
$ac_status" >&5
19541 echo "$as_me: failed program was
:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ( exit $ac_status )
19545 gl_cv_func_gnu_getopt=no
19547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19552 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19553 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19554 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19561 if test -n "$GETOPT_H"; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define __GETOPT_PREFIX rpl_
19573 GETOPTOBJS='getopt.o getopt1.o'
19580 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19581 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19582 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19583 echo $ECHO_N "(cached
) $ECHO_C" >&6
19585 # Use it with a single arg.
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 $ac_includes_default
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19610 grep -v '^ *+' conftest.er1 >conftest.err
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_cv_func_getpgrp_void=no
19620 echo "$as_me: failed program was
:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_cv_func_getpgrp_void=yes
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19630 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19631 if test $ac_cv_func_getpgrp_void = yes; then
19633 cat >>confdefs.h <<\_ACEOF
19634 #define GETPGRP_VOID 1
19641 for ac_func in strftime
19643 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19645 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached
) $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19657 #define $ac_func innocuous_$ac_func
19659 /* System header to define __stub macros and hopefully few prototypes,
19660 which can conflict with char $ac_func (); below.
19661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662 <limits.h> exists even on freestanding compilers. */
19665 # include <limits.h>
19667 # include <assert.h>
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19679 /* The GNU C library defines this for functions which it implements
19680 to always fail with ENOSYS. Some functions are actually named
19681 something starting with __ and the normal name is an alias. */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19689 return $ac_func ();
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 eval "$as_ac_var=yes"
19714 echo "$as_me: failed program was
:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 eval "$as_ac_var=no
"
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19723 ac_res=`eval echo '${'$as_ac_var'}'`
19724 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19726 if test `eval echo '${'$as_ac_var'}'` = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19732 # strftime is in -lintl on SCO UNIX.
19733 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19734 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19735 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19736 echo $ECHO_N "(cached
) $ECHO_C" >&6
19738 ac_check_lib_save_LIBS=$LIBS
19739 LIBS="-lintl $LIBS"
19740 cat >conftest.$ac_ext <<_ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19747 /* Override any GCC internal prototype to avoid an error.
19748 Use char because int might match the return type of a GCC
19749 builtin and then its argument prototype would still apply. */
19757 return strftime ();
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_link") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest$ac_exeext &&
19779 $as_test_x conftest$ac_exeext; then
19780 ac_cv_lib_intl_strftime=yes
19782 echo "$as_me: failed program was
:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 ac_cv_lib_intl_strftime=no
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789 conftest$ac_exeext conftest.$ac_ext
19790 LIBS=$ac_check_lib_save_LIBS
19792 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19793 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19794 if test $ac_cv_lib_intl_strftime = yes; then
19795 cat >>confdefs.h <<\_ACEOF
19796 #define HAVE_STRFTIME 1
19799 LIBS="-lintl $LIBS"
19808 for ac_func in grantpt
19810 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19811 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19812 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19813 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19814 echo $ECHO_N "(cached
) $ECHO_C" >&6
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19824 #define $ac_func innocuous_$ac_func
19826 /* System header to define __stub macros and hopefully few prototypes,
19827 which can conflict with char $ac_func (); below.
19828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19829 <limits.h> exists even on freestanding compilers. */
19832 # include <limits.h>
19834 # include <assert.h>
19839 /* Override any GCC internal prototype to avoid an error.
19840 Use char because int might match the return type of a GCC
19841 builtin and then its argument prototype would still apply. */
19846 /* The GNU C library defines this for functions which it implements
19847 to always fail with ENOSYS. Some functions are actually named
19848 something starting with __ and the normal name is an alias. */
19849 #if defined __stub_$ac_func || defined __stub___$ac_func
19856 return $ac_func ();
19861 rm -f conftest.$ac_objext conftest$ac_exeext
19862 if { (ac_try="$ac_link"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_link") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest$ac_exeext &&
19878 $as_test_x conftest$ac_exeext; then
19879 eval "$as_ac_var=yes"
19881 echo "$as_me: failed program was
:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 eval "$as_ac_var=no
"
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888 conftest$ac_exeext conftest.$ac_ext
19890 ac_res=`eval echo '${'$as_ac_var'}'`
19891 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19892 echo "${ECHO_T}$ac_res" >&6; }
19893 if test `eval echo '${'$as_ac_var'}'` = yes; then
19894 cat >>confdefs.h <<_ACEOF
19895 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19902 # PTY-related GNU extensions.
19904 for ac_func in getpt
19906 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19907 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19908 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19909 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached
) $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19920 #define $ac_func innocuous_$ac_func
19922 /* System header to define __stub macros and hopefully few prototypes,
19923 which can conflict with char $ac_func (); below.
19924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19925 <limits.h> exists even on freestanding compilers. */
19928 # include <limits.h>
19930 # include <assert.h>
19935 /* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19942 /* The GNU C library defines this for functions which it implements
19943 to always fail with ENOSYS. Some functions are actually named
19944 something starting with __ and the normal name is an alias. */
19945 #if defined __stub_$ac_func || defined __stub___$ac_func
19952 return $ac_func ();
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_link") 2>conftest.er1
19966 grep -v '^ *+' conftest.er1 >conftest.err
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19970 (exit $ac_status); } && {
19971 test -z "$ac_c_werror_flag" ||
19972 test ! -s conftest.err
19973 } && test -s conftest$ac_exeext &&
19974 $as_test_x conftest$ac_exeext; then
19975 eval "$as_ac_var=yes"
19977 echo "$as_me: failed program was
:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19980 eval "$as_ac_var=no
"
19983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19984 conftest$ac_exeext conftest.$ac_ext
19986 ac_res=`eval echo '${'$as_ac_var'}'`
19987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19989 if test `eval echo '${'$as_ac_var'}'` = yes; then
19990 cat >>confdefs.h <<_ACEOF
19991 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19998 # Check this now, so that we will NOT find the above functions in ncurses.
19999 # That is because we have not set up to link ncurses in lib-src.
20000 # It's better to believe a function is not available
20001 # than to expect to find it in ncurses.
20003 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20004 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
20005 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20006 echo $ECHO_N "(cached
) $ECHO_C" >&6
20008 ac_check_lib_save_LIBS=$LIBS
20009 LIBS="-lncurses $LIBS"
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20017 /* Override any GCC internal prototype to avoid an error.
20018 Use char because int might match the return type of a GCC
20019 builtin and then its argument prototype would still apply. */
20032 rm -f conftest.$ac_objext conftest$ac_exeext
20033 if { (ac_try="$ac_link"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_link") 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20045 (exit $ac_status); } && {
20046 test -z "$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20048 } && test -s conftest$ac_exeext &&
20049 $as_test_x conftest$ac_exeext; then
20050 ac_cv_lib_ncurses_tparm=yes
20052 echo "$as_me: failed program was
:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20055 ac_cv_lib_ncurses_tparm=no
20058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20059 conftest$ac_exeext conftest.$ac_ext
20060 LIBS=$ac_check_lib_save_LIBS
20062 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20063 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20064 if test $ac_cv_lib_ncurses_tparm = yes; then
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_LIBNCURSES 1
20069 LIBS="-lncurses $LIBS"
20074 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 #include <netinet/in.h>
20084 #include <arpa/nameser.h>
20085 #include <resolv.h>
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest$ac_exeext &&
20111 $as_test_x conftest$ac_exeext; then
20114 echo "$as_me: failed program was
:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121 conftest$ac_exeext conftest.$ac_ext
20122 if test "$have_res_init" = no; then
20124 LIBS="$LIBS -lresolv"
20125 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20126 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
20127 cat >conftest.$ac_ext <<_ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 #include <netinet/in.h>
20134 #include <arpa/nameser.h>
20135 #include <resolv.h>
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (ac_try="$ac_link"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_link") 2>conftest.er1
20153 grep -v '^ *+' conftest.er1 >conftest.err
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20157 (exit $ac_status); } && {
20158 test -z "$ac_c_werror_flag" ||
20159 test ! -s conftest.err
20160 } && test -s conftest$ac_exeext &&
20161 $as_test_x conftest$ac_exeext; then
20164 echo "$as_me: failed program was
:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20171 conftest$ac_exeext conftest.$ac_ext
20172 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20173 echo "${ECHO_T}$have_res_init" >&6; }
20174 if test "$have_res_init" = yes ; then
20180 if test "$have_res_init" = yes; then
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_RES_INIT 1
20188 # Do we need the Hesiod library to provide the support routines?
20189 if test "$with_hesiod" = yes ; then
20190 # Don't set $LIBS here -- see comments above.
20191 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20192 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20193 if test "${ac_cv_func_res_send+set}" = set; then
20194 echo $ECHO_N "(cached
) $ECHO_C" >&6
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20204 #define res_send innocuous_res_send
20206 /* System header to define __stub macros and hopefully few prototypes,
20207 which can conflict with char res_send (); below.
20208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20209 <limits.h> exists even on freestanding compilers. */
20212 # include <limits.h>
20214 # include <assert.h>
20219 /* Override any GCC internal prototype to avoid an error.
20220 Use char because int might match the return type of a GCC
20221 builtin and then its argument prototype would still apply. */
20226 /* The GNU C library defines this for functions which it implements
20227 to always fail with ENOSYS. Some functions are actually named
20228 something starting with __ and the normal name is an alias. */
20229 #if defined __stub_res_send || defined __stub___res_send
20236 return res_send ();
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20250 grep -v '^ *+' conftest.er1 >conftest.err
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest$ac_exeext &&
20258 $as_test_x conftest$ac_exeext; then
20259 ac_cv_func_res_send=yes
20261 echo "$as_me: failed program was
:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_cv_func_res_send=no
20267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20268 conftest$ac_exeext conftest.$ac_ext
20270 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20271 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20272 if test $ac_cv_func_res_send = yes; then
20275 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20276 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20277 if test "${ac_cv_func___res_send+set}" = set; then
20278 echo $ECHO_N "(cached
) $ECHO_C" >&6
20280 cat >conftest.$ac_ext <<_ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20288 #define __res_send innocuous___res_send
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char __res_send (); below.
20292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 <limits.h> exists even on freestanding compilers. */
20296 # include <limits.h>
20298 # include <assert.h>
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20309 char __res_send ();
20310 /* The GNU C library defines this for functions which it implements
20311 to always fail with ENOSYS. Some functions are actually named
20312 something starting with __ and the normal name is an alias. */
20313 #if defined __stub___res_send || defined __stub_____res_send
20320 return __res_send ();
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (ac_try="$ac_link"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
20343 ac_cv_func___res_send=yes
20345 echo "$as_me: failed program was
:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_func___res_send=no
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20354 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20355 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20356 if test $ac_cv_func___res_send = yes; then
20359 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20360 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20361 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20362 echo $ECHO_N "(cached
) $ECHO_C" >&6
20364 ac_check_lib_save_LIBS=$LIBS
20365 LIBS="-lresolv $LIBS"
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20383 return res_send ();
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (ac_try="$ac_link"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1 >conftest.err
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext &&
20405 $as_test_x conftest$ac_exeext; then
20406 ac_cv_lib_resolv_res_send=yes
20408 echo "$as_me: failed program was
:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_cv_lib_resolv_res_send=no
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20418 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20419 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20420 if test $ac_cv_lib_resolv_res_send = yes; then
20423 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20424 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20425 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20426 echo $ECHO_N "(cached
) $ECHO_C" >&6
20428 ac_check_lib_save_LIBS=$LIBS
20429 LIBS="-lresolv $LIBS"
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20437 /* Override any GCC internal prototype to avoid an error.
20438 Use char because int might match the return type of a GCC
20439 builtin and then its argument prototype would still apply. */
20443 char __res_send ();
20447 return __res_send ();
20452 rm -f conftest.$ac_objext conftest$ac_exeext
20453 if { (ac_try="$ac_link"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_link") 2>conftest.er1
20461 grep -v '^ *+' conftest.er1 >conftest.err
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest$ac_exeext &&
20469 $as_test_x conftest$ac_exeext; then
20470 ac_cv_lib_resolv___res_send=yes
20472 echo "$as_me: failed program was
:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20475 ac_cv_lib_resolv___res_send=no
20478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20479 conftest$ac_exeext conftest.$ac_ext
20480 LIBS=$ac_check_lib_save_LIBS
20482 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20483 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20484 if test $ac_cv_lib_resolv___res_send = yes; then
20494 if test "$resolv" = yes ; then
20499 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20500 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20501 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20502 echo $ECHO_N "(cached
) $ECHO_C" >&6
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20512 #define hes_getmailhost innocuous_hes_getmailhost
20514 /* System header to define __stub macros and hopefully few prototypes,
20515 which can conflict with char hes_getmailhost (); below.
20516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20517 <limits.h> exists even on freestanding compilers. */
20520 # include <limits.h>
20522 # include <assert.h>
20525 #undef hes_getmailhost
20527 /* Override any GCC internal prototype to avoid an error.
20528 Use char because int might match the return type of a GCC
20529 builtin and then its argument prototype would still apply. */
20533 char hes_getmailhost ();
20534 /* The GNU C library defines this for functions which it implements
20535 to always fail with ENOSYS. Some functions are actually named
20536 something starting with __ and the normal name is an alias. */
20537 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20544 return hes_getmailhost ();
20549 rm -f conftest.$ac_objext conftest$ac_exeext
20550 if { (ac_try="$ac_link"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20556 (eval "$ac_link") 2>conftest.er1
20558 grep -v '^ *+' conftest.er1 >conftest.err
20560 cat conftest.err >&5
20561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20562 (exit $ac_status); } && {
20563 test -z "$ac_c_werror_flag" ||
20564 test ! -s conftest.err
20565 } && test -s conftest$ac_exeext &&
20566 $as_test_x conftest$ac_exeext; then
20567 ac_cv_func_hes_getmailhost=yes
20569 echo "$as_me: failed program was
:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20572 ac_cv_func_hes_getmailhost=no
20575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20576 conftest$ac_exeext conftest.$ac_ext
20578 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20579 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20580 if test $ac_cv_func_hes_getmailhost = yes; then
20583 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20584 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20585 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20586 echo $ECHO_N "(cached
) $ECHO_C" >&6
20588 ac_check_lib_save_LIBS=$LIBS
20589 LIBS="-lhesiod $RESOLVLIB $LIBS"
20590 cat >conftest.$ac_ext <<_ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h. */
20597 /* Override any GCC internal prototype to avoid an error.
20598 Use char because int might match the return type of a GCC
20599 builtin and then its argument prototype would still apply. */
20603 char hes_getmailhost ();
20607 return hes_getmailhost ();
20612 rm -f conftest.$ac_objext conftest$ac_exeext
20613 if { (ac_try="$ac_link"
20614 case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_link") 2>conftest.er1
20621 grep -v '^ *+' conftest.er1 >conftest.err
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20625 (exit $ac_status); } && {
20626 test -z "$ac_c_werror_flag" ||
20627 test ! -s conftest.err
20628 } && test -s conftest$ac_exeext &&
20629 $as_test_x conftest$ac_exeext; then
20630 ac_cv_lib_hesiod_hes_getmailhost=yes
20632 echo "$as_me: failed program was
:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20635 ac_cv_lib_hesiod_hes_getmailhost=no
20638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20639 conftest$ac_exeext conftest.$ac_ext
20640 LIBS=$ac_check_lib_save_LIBS
20642 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20643 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20644 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20646 cat >>confdefs.h <<\_ACEOF
20647 #define HAVE_LIBHESIOD 1
20658 # Do we need libresolv (due to res_init or Hesiod)?
20659 if test "$resolv" = yes ; then
20661 cat >>confdefs.h <<\_ACEOF
20662 #define HAVE_LIBRESOLV 1
20667 # These tell us which Kerberos-related libraries to use.
20668 if test "${with_kerberos+set}" = set; then
20670 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20671 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20672 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20673 echo $ECHO_N "(cached
) $ECHO_C" >&6
20675 ac_check_lib_save_LIBS=$LIBS
20676 LIBS="-lcom_err $LIBS"
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20684 /* Override any GCC internal prototype to avoid an error.
20685 Use char because int might match the return type of a GCC
20686 builtin and then its argument prototype would still apply. */
20699 rm -f conftest.$ac_objext conftest$ac_exeext
20700 if { (ac_try="$ac_link"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_link") 2>conftest.er1
20708 grep -v '^ *+' conftest.er1 >conftest.err
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest$ac_exeext &&
20716 $as_test_x conftest$ac_exeext; then
20717 ac_cv_lib_com_err_com_err=yes
20719 echo "$as_me: failed program was
:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_lib_com_err_com_err=no
20725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20726 conftest$ac_exeext conftest.$ac_ext
20727 LIBS=$ac_check_lib_save_LIBS
20729 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20730 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20731 if test $ac_cv_lib_com_err_com_err = yes; then
20732 cat >>confdefs.h <<_ACEOF
20733 #define HAVE_LIBCOM_ERR 1
20736 LIBS="-lcom_err $LIBS"
20741 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20742 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20743 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20744 echo $ECHO_N "(cached
) $ECHO_C" >&6
20746 ac_check_lib_save_LIBS=$LIBS
20747 LIBS="-lk5crypto $LIBS"
20748 cat >conftest.$ac_ext <<_ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20761 char mit_des_cbc_encrypt ();
20765 return mit_des_cbc_encrypt ();
20770 rm -f conftest.$ac_objext conftest$ac_exeext
20771 if { (ac_try="$ac_link"
20772 case "(($ac_try" in
20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20774 *) ac_try_echo=$ac_try;;
20776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20777 (eval "$ac_link") 2>conftest.er1
20779 grep -v '^ *+' conftest.er1 >conftest.err
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest$ac_exeext &&
20787 $as_test_x conftest$ac_exeext; then
20788 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20790 echo "$as_me: failed program was
:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20797 conftest$ac_exeext conftest.$ac_ext
20798 LIBS=$ac_check_lib_save_LIBS
20800 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20801 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20802 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define HAVE_LIBK5CRYPTO 1
20807 LIBS="-lk5crypto $LIBS"
20812 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20813 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20814 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20815 echo $ECHO_N "(cached
) $ECHO_C" >&6
20817 ac_check_lib_save_LIBS=$LIBS
20818 LIBS="-lcrypto $LIBS"
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20826 /* Override any GCC internal prototype to avoid an error.
20827 Use char because int might match the return type of a GCC
20828 builtin and then its argument prototype would still apply. */
20832 char mit_des_cbc_encrypt ();
20836 return mit_des_cbc_encrypt ();
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (ac_try="$ac_link"
20843 case "(($ac_try" in
20844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845 *) ac_try_echo=$ac_try;;
20847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20848 (eval "$ac_link") 2>conftest.er1
20850 grep -v '^ *+' conftest.er1 >conftest.err
20852 cat conftest.err >&5
20853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20854 (exit $ac_status); } && {
20855 test -z "$ac_c_werror_flag" ||
20856 test ! -s conftest.err
20857 } && test -s conftest$ac_exeext &&
20858 $as_test_x conftest$ac_exeext; then
20859 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20861 echo "$as_me: failed program was
:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20868 conftest$ac_exeext conftest.$ac_ext
20869 LIBS=$ac_check_lib_save_LIBS
20871 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20872 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20873 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20874 cat >>confdefs.h <<_ACEOF
20875 #define HAVE_LIBCRYPTO 1
20878 LIBS="-lcrypto $LIBS"
20883 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20884 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20885 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20886 echo $ECHO_N "(cached
) $ECHO_C" >&6
20888 ac_check_lib_save_LIBS=$LIBS
20889 LIBS="-lkrb5 $LIBS"
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20903 char krb5_init_context ();
20907 return krb5_init_context ();
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20919 (eval "$ac_link") 2>conftest.er1
20921 grep -v '^ *+' conftest.er1 >conftest.err
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20925 (exit $ac_status); } && {
20926 test -z "$ac_c_werror_flag" ||
20927 test ! -s conftest.err
20928 } && test -s conftest$ac_exeext &&
20929 $as_test_x conftest$ac_exeext; then
20930 ac_cv_lib_krb5_krb5_init_context=yes
20932 echo "$as_me: failed program was
:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_cv_lib_krb5_krb5_init_context=no
20938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20940 LIBS=$ac_check_lib_save_LIBS
20942 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20943 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20944 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define HAVE_LIBKRB5 1
20949 LIBS="-lkrb5 $LIBS"
20953 if test "${with_kerberos5+set}" != set; then
20955 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20956 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20957 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20958 echo $ECHO_N "(cached
) $ECHO_C" >&6
20960 ac_check_lib_save_LIBS=$LIBS
20961 LIBS="-ldes425 $LIBS"
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20969 /* Override any GCC internal prototype to avoid an error.
20970 Use char because int might match the return type of a GCC
20971 builtin and then its argument prototype would still apply. */
20975 char des_cbc_encrypt ();
20979 return des_cbc_encrypt ();
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (ac_try="$ac_link"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_link") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1 >conftest.err
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest$ac_exeext &&
21001 $as_test_x conftest$ac_exeext; then
21002 ac_cv_lib_des425_des_cbc_encrypt=yes
21004 echo "$as_me: failed program was
:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ac_cv_lib_des425_des_cbc_encrypt=no
21010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21011 conftest$ac_exeext conftest.$ac_ext
21012 LIBS=$ac_check_lib_save_LIBS
21014 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21015 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21016 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21017 cat >>confdefs.h <<_ACEOF
21018 #define HAVE_LIBDES425 1
21021 LIBS="-ldes425 $LIBS"
21025 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21026 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
21027 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21028 echo $ECHO_N "(cached
) $ECHO_C" >&6
21030 ac_check_lib_save_LIBS=$LIBS
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21039 /* Override any GCC internal prototype to avoid an error.
21040 Use char because int might match the return type of a GCC
21041 builtin and then its argument prototype would still apply. */
21045 char des_cbc_encrypt ();
21049 return des_cbc_encrypt ();
21054 rm -f conftest.$ac_objext conftest$ac_exeext
21055 if { (ac_try="$ac_link"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_link") 2>conftest.er1
21063 grep -v '^ *+' conftest.er1 >conftest.err
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21067 (exit $ac_status); } && {
21068 test -z "$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 } && test -s conftest$ac_exeext &&
21071 $as_test_x conftest$ac_exeext; then
21072 ac_cv_lib_des_des_cbc_encrypt=yes
21074 echo "$as_me: failed program was
:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21077 ac_cv_lib_des_des_cbc_encrypt=no
21080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21081 conftest$ac_exeext conftest.$ac_ext
21082 LIBS=$ac_check_lib_save_LIBS
21084 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
21085 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21086 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21087 cat >>confdefs.h <<_ACEOF
21088 #define HAVE_LIBDES 1
21098 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
21099 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
21100 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21101 echo $ECHO_N "(cached
) $ECHO_C" >&6
21103 ac_check_lib_save_LIBS=$LIBS
21104 LIBS="-lkrb4 $LIBS"
21105 cat >conftest.$ac_ext <<_ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 /* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
21118 char krb_get_cred ();
21122 return krb_get_cred ();
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest$ac_exeext &&
21144 $as_test_x conftest$ac_exeext; then
21145 ac_cv_lib_krb4_krb_get_cred=yes
21147 echo "$as_me: failed program was
:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_cv_lib_krb4_krb_get_cred=no
21153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21154 conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21157 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21158 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21159 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define HAVE_LIBKRB4 1
21164 LIBS="-lkrb4 $LIBS"
21168 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21169 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21170 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21171 echo $ECHO_N "(cached
) $ECHO_C" >&6
21173 ac_check_lib_save_LIBS=$LIBS
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21182 /* Override any GCC internal prototype to avoid an error.
21183 Use char because int might match the return type of a GCC
21184 builtin and then its argument prototype would still apply. */
21188 char krb_get_cred ();
21192 return krb_get_cred ();
21197 rm -f conftest.$ac_objext conftest$ac_exeext
21198 if { (ac_try="$ac_link"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_link") 2>conftest.er1
21206 grep -v '^ *+' conftest.er1 >conftest.err
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest$ac_exeext &&
21214 $as_test_x conftest$ac_exeext; then
21215 ac_cv_lib_krb_krb_get_cred=yes
21217 echo "$as_me: failed program was
:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_cv_lib_krb_krb_get_cred=no
21223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21224 conftest$ac_exeext conftest.$ac_ext
21225 LIBS=$ac_check_lib_save_LIBS
21227 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21228 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21229 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_LIBKRB 1
21242 if test "${with_kerberos5+set}" = set; then
21244 for ac_header in krb5.h
21246 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21251 echo $ECHO_N "(cached
) $ECHO_C" >&6
21253 ac_res=`eval echo '${'$as_ac_Header'}'`
21254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21255 echo "${ECHO_T}$ac_res" >&6; }
21257 # Is the header compilable?
21258 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21259 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 $ac_includes_default
21267 #include <$ac_header>
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21278 grep -v '^ *+' conftest.er1 >conftest.err
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21286 ac_header_compiler=yes
21288 echo "$as_me: failed program was
:" >&5
21289 sed 's/^/| /' conftest.$ac_ext >&5
21291 ac_header_compiler=no
21294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21296 echo "${ECHO_T}$ac_header_compiler" >&6; }
21298 # Is the header present?
21299 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21300 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21301 cat >conftest.$ac_ext <<_ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #include <$ac_header>
21309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21321 (exit $ac_status); } >/dev/null && {
21322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21325 ac_header_preproc=yes
21327 echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_preproc=no
21333 rm -f conftest.err conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21335 echo "${ECHO_T}$ac_header_preproc" >&6; }
21337 # So? What about this header?
21338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21340 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21341 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21344 ac_header_preproc=yes
21347 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21348 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21349 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21350 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21351 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21352 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21353 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21354 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21358 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21385 for ac_header in des.h
21387 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21388 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21389 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21390 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21392 echo $ECHO_N "(cached
) $ECHO_C" >&6
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21398 # Is the header compilable?
21399 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21400 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 $ac_includes_default
21408 #include <$ac_header>
21410 rm -f conftest.$ac_objext
21411 if { (ac_try="$ac_compile"
21412 case "(($ac_try" in
21413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21414 *) ac_try_echo=$ac_try;;
21416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21417 (eval "$ac_compile") 2>conftest.er1
21419 grep -v '^ *+' conftest.er1 >conftest.err
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21423 (exit $ac_status); } && {
21424 test -z "$ac_c_werror_flag" ||
21425 test ! -s conftest.err
21426 } && test -s conftest.$ac_objext; then
21427 ac_header_compiler=yes
21429 echo "$as_me: failed program was
:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_header_compiler=no
21435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21436 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21437 echo "${ECHO_T}$ac_header_compiler" >&6; }
21439 # Is the header present?
21440 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21441 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <$ac_header>
21450 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21456 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21458 grep -v '^ *+' conftest.er1 >conftest.err
21460 cat conftest.err >&5
21461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21462 (exit $ac_status); } >/dev/null && {
21463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21464 test ! -s conftest.err
21466 ac_header_preproc=yes
21468 echo "$as_me: failed program was
:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 ac_header_preproc=no
21474 rm -f conftest.err conftest.$ac_ext
21475 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21476 echo "${ECHO_T}$ac_header_preproc" >&6; }
21478 # So? What about this header?
21479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21481 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21482 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21483 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21485 ac_header_preproc=yes
21488 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21489 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21490 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21491 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21492 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21493 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21494 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21495 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21496 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21498 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21499 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
21510 ac_res=`eval echo '${'$as_ac_Header'}'`
21511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21512 echo "${ECHO_T}$ac_res" >&6; }
21515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21516 cat >>confdefs.h <<_ACEOF
21517 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21522 for ac_header in kerberosIV/des.h
21524 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21525 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21526 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21527 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21528 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21529 echo $ECHO_N "(cached
) $ECHO_C" >&6
21531 ac_res=`eval echo '${'$as_ac_Header'}'`
21532 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21533 echo "${ECHO_T}$ac_res" >&6; }
21535 # Is the header compilable?
21536 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21537 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 $ac_includes_default
21545 #include <$ac_header>
21547 rm -f conftest.$ac_objext
21548 if { (ac_try="$ac_compile"
21549 case "(($ac_try" in
21550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551 *) ac_try_echo=$ac_try;;
21553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21554 (eval "$ac_compile") 2>conftest.er1
21556 grep -v '^ *+' conftest.er1 >conftest.err
21558 cat conftest.err >&5
21559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21560 (exit $ac_status); } && {
21561 test -z "$ac_c_werror_flag" ||
21562 test ! -s conftest.err
21563 } && test -s conftest.$ac_objext; then
21564 ac_header_compiler=yes
21566 echo "$as_me: failed program was
:" >&5
21567 sed 's/^/| /' conftest.$ac_ext >&5
21569 ac_header_compiler=no
21572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21573 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6; }
21576 # Is the header present?
21577 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21578 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <$ac_header>
21587 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21593 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21595 grep -v '^ *+' conftest.er1 >conftest.err
21597 cat conftest.err >&5
21598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21599 (exit $ac_status); } >/dev/null && {
21600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21601 test ! -s conftest.err
21603 ac_header_preproc=yes
21605 echo "$as_me: failed program was
:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608 ac_header_preproc=no
21611 rm -f conftest.err conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21613 echo "${ECHO_T}$ac_header_preproc" >&6; }
21615 # So? What about this header?
21616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21618 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21619 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21620 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21622 ac_header_preproc=yes
21625 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21626 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21627 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21628 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21630 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21631 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21632 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21633 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21635 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21636 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
21647 ac_res=`eval echo '${'$as_ac_Header'}'`
21648 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21649 echo "${ECHO_T}$ac_res" >&6; }
21652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21653 cat >>confdefs.h <<_ACEOF
21654 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21659 for ac_header in kerberos/des.h
21661 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21663 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21664 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21666 echo $ECHO_N "(cached
) $ECHO_C" >&6
21668 ac_res=`eval echo '${'$as_ac_Header'}'`
21669 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21672 # Is the header compilable?
21673 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21674 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21681 $ac_includes_default
21682 #include <$ac_header>
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_compile") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest.$ac_objext; then
21701 ac_header_compiler=yes
21703 echo "$as_me: failed program was
:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21706 ac_header_compiler=no
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21711 echo "${ECHO_T}$ac_header_compiler" >&6; }
21713 # Is the header present?
21714 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21715 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 #include <$ac_header>
21724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21725 case "(($ac_try" in
21726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727 *) ac_try_echo=$ac_try;;
21729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21732 grep -v '^ *+' conftest.er1 >conftest.err
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21736 (exit $ac_status); } >/dev/null && {
21737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21738 test ! -s conftest.err
21740 ac_header_preproc=yes
21742 echo "$as_me: failed program was
:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 ac_header_preproc=no
21748 rm -f conftest.err conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6; }
21752 # So? What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21755 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21756 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21757 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21759 ac_header_preproc=yes
21762 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21763 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21764 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21765 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21766 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21767 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21768 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21769 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21770 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21772 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21773 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
21784 ac_res=`eval echo '${'$as_ac_Header'}'`
21785 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21786 echo "${ECHO_T}$ac_res" >&6; }
21789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21807 for ac_header in krb.h
21809 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21810 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21811 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21812 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21813 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21814 echo $ECHO_N "(cached
) $ECHO_C" >&6
21816 ac_res=`eval echo '${'$as_ac_Header'}'`
21817 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21818 echo "${ECHO_T}$ac_res" >&6; }
21820 # Is the header compilable?
21821 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21822 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 $ac_includes_default
21830 #include <$ac_header>
21832 rm -f conftest.$ac_objext
21833 if { (ac_try="$ac_compile"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_compile") 2>conftest.er1
21841 grep -v '^ *+' conftest.er1 >conftest.err
21843 cat conftest.err >&5
21844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest.$ac_objext; then
21849 ac_header_compiler=yes
21851 echo "$as_me: failed program was
:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21854 ac_header_compiler=no
21857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21858 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21859 echo "${ECHO_T}$ac_header_compiler" >&6; }
21861 # Is the header present?
21862 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21863 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21864 cat >conftest.$ac_ext <<_ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 #include <$ac_header>
21872 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21873 case "(($ac_try" in
21874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875 *) ac_try_echo=$ac_try;;
21877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21878 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21880 grep -v '^ *+' conftest.er1 >conftest.err
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21884 (exit $ac_status); } >/dev/null && {
21885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21886 test ! -s conftest.err
21888 ac_header_preproc=yes
21890 echo "$as_me: failed program was
:" >&5
21891 sed 's/^/| /' conftest.$ac_ext >&5
21893 ac_header_preproc=no
21896 rm -f conftest.err conftest.$ac_ext
21897 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21898 echo "${ECHO_T}$ac_header_preproc" >&6; }
21900 # So? What about this header?
21901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21903 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21904 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21905 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21907 ac_header_preproc=yes
21910 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21911 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21912 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21913 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21914 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21915 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21917 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21918 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21920 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21921 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
21932 ac_res=`eval echo '${'$as_ac_Header'}'`
21933 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21934 echo "${ECHO_T}$ac_res" >&6; }
21937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21938 cat >>confdefs.h <<_ACEOF
21939 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21944 for ac_header in kerberosIV/krb.h
21946 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21947 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21948 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21949 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21950 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21951 echo $ECHO_N "(cached
) $ECHO_C" >&6
21953 ac_res=`eval echo '${'$as_ac_Header'}'`
21954 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21955 echo "${ECHO_T}$ac_res" >&6; }
21957 # Is the header compilable?
21958 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21959 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21960 cat >conftest.$ac_ext <<_ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21966 $ac_includes_default
21967 #include <$ac_header>
21969 rm -f conftest.$ac_objext
21970 if { (ac_try="$ac_compile"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_compile") 2>conftest.er1
21978 grep -v '^ *+' conftest.er1 >conftest.err
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21982 (exit $ac_status); } && {
21983 test -z "$ac_c_werror_flag" ||
21984 test ! -s conftest.err
21985 } && test -s conftest.$ac_objext; then
21986 ac_header_compiler=yes
21988 echo "$as_me: failed program was
:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21991 ac_header_compiler=no
21994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21995 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21996 echo "${ECHO_T}$ac_header_compiler" >&6; }
21998 # Is the header present?
21999 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22000 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22001 cat >conftest.$ac_ext <<_ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 #include <$ac_header>
22009 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22021 (exit $ac_status); } >/dev/null && {
22022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22025 ac_header_preproc=yes
22027 echo "$as_me: failed program was
:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_header_preproc=no
22033 rm -f conftest.err conftest.$ac_ext
22034 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22035 echo "${ECHO_T}$ac_header_preproc" >&6; }
22037 # So? What about this header?
22038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22040 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22041 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22042 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22044 ac_header_preproc=yes
22047 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22048 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22049 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22050 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22051 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22052 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22053 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22054 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22055 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22057 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22058 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
22069 ac_res=`eval echo '${'$as_ac_Header'}'`
22070 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22071 echo "${ECHO_T}$ac_res" >&6; }
22074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22075 cat >>confdefs.h <<_ACEOF
22076 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22081 for ac_header in kerberos/krb.h
22083 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22084 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22085 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22086 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached
) $ECHO_C" >&6
22090 ac_res=`eval echo '${'$as_ac_Header'}'`
22091 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22092 echo "${ECHO_T}$ac_res" >&6; }
22094 # Is the header compilable?
22095 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22096 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22097 cat >conftest.$ac_ext <<_ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 $ac_includes_default
22104 #include <$ac_header>
22106 rm -f conftest.$ac_objext
22107 if { (ac_try="$ac_compile"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_compile") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22119 (exit $ac_status); } && {
22120 test -z "$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22122 } && test -s conftest.$ac_objext; then
22123 ac_header_compiler=yes
22125 echo "$as_me: failed program was
:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_header_compiler=no
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22133 echo "${ECHO_T}$ac_header_compiler" >&6; }
22135 # Is the header present?
22136 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22137 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <$ac_header>
22146 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22158 (exit $ac_status); } >/dev/null && {
22159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22162 ac_header_preproc=yes
22164 echo "$as_me: failed program was
:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_header_preproc=no
22170 rm -f conftest.err conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22172 echo "${ECHO_T}$ac_header_preproc" >&6; }
22174 # So? What about this header?
22175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22177 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22178 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22179 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22181 ac_header_preproc=yes
22184 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22185 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22186 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22187 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22188 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22189 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22190 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22191 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22192 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22194 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22195 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
22206 ac_res=`eval echo '${'$as_ac_Header'}'`
22207 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22208 echo "${ECHO_T}$ac_res" >&6; }
22211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22212 cat >>confdefs.h <<_ACEOF
22213 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22230 for ac_header in com_err.h
22232 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22237 echo $ECHO_N "(cached
) $ECHO_C" >&6
22239 ac_res=`eval echo '${'$as_ac_Header'}'`
22240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22241 echo "${ECHO_T}$ac_res" >&6; }
22243 # Is the header compilable?
22244 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22245 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22246 cat >conftest.$ac_ext <<_ACEOF
22249 cat confdefs.h >>conftest.$ac_ext
22250 cat >>conftest.$ac_ext <<_ACEOF
22251 /* end confdefs.h. */
22252 $ac_includes_default
22253 #include <$ac_header>
22255 rm -f conftest.$ac_objext
22256 if { (ac_try="$ac_compile"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_compile") 2>conftest.er1
22264 grep -v '^ *+' conftest.er1 >conftest.err
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest.$ac_objext; then
22272 ac_header_compiler=yes
22274 echo "$as_me: failed program was
:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22277 ac_header_compiler=no
22280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22282 echo "${ECHO_T}$ac_header_compiler" >&6; }
22284 # Is the header present?
22285 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22286 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22287 cat >conftest.$ac_ext <<_ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 #include <$ac_header>
22295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22303 grep -v '^ *+' conftest.er1 >conftest.err
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22307 (exit $ac_status); } >/dev/null && {
22308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22309 test ! -s conftest.err
22311 ac_header_preproc=yes
22313 echo "$as_me: failed program was
:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ac_header_preproc=no
22319 rm -f conftest.err conftest.$ac_ext
22320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22321 echo "${ECHO_T}$ac_header_preproc" >&6; }
22323 # So? What about this header?
22324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22326 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22327 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22330 ac_header_preproc=yes
22333 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22334 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22335 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22336 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22337 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22338 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22339 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22340 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22343 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22344 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
22355 ac_res=`eval echo '${'$as_ac_Header'}'`
22356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22357 echo "${ECHO_T}$ac_res" >&6; }
22360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22361 cat >>confdefs.h <<_ACEOF
22362 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22371 # Solaris requires -lintl if you want strerror (which calls dgettext)
22372 # to return localized messages.
22374 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22375 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22376 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22377 echo $ECHO_N "(cached
) $ECHO_C" >&6
22379 ac_check_lib_save_LIBS=$LIBS
22380 LIBS="-lintl $LIBS"
22381 cat >conftest.$ac_ext <<_ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22388 /* Override any GCC internal prototype to avoid an error.
22389 Use char because int might match the return type of a GCC
22390 builtin and then its argument prototype would still apply. */
22398 return dgettext ();
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (ac_try="$ac_link"
22405 case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_link") 2>conftest.er1
22412 grep -v '^ *+' conftest.er1 >conftest.err
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest$ac_exeext &&
22420 $as_test_x conftest$ac_exeext; then
22421 ac_cv_lib_intl_dgettext=yes
22423 echo "$as_me: failed program was
:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22426 ac_cv_lib_intl_dgettext=no
22429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22430 conftest$ac_exeext conftest.$ac_ext
22431 LIBS=$ac_check_lib_save_LIBS
22433 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22434 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22435 if test $ac_cv_lib_intl_dgettext = yes; then
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_LIBINTL 1
22440 LIBS="-lintl $LIBS"
22445 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22446 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22447 if test "${emacs_cv_localtime_cache+set}" = set; then
22448 echo $ECHO_N "(cached
) $ECHO_C" >&6
22450 if test x$ac_cv_func_tzset = xyes; then
22451 if test "$cross_compiling" = yes; then
22452 # If we have tzset, assume the worst when cross-compiling.
22453 emacs_cv_localtime_cache=yes
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22462 extern char **environ;
22466 for (to = from = environ; (*to = *from); from++)
22467 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22470 char TZ_GMT0[] = "TZ
=GMT0
";
22471 char TZ_PST8[] = "TZ
=PST8
";
22474 time_t now = time ((time_t *) 0);
22475 int hour_GMT0, hour_unset;
22476 if (putenv (TZ_GMT0) != 0)
22478 hour_GMT0 = localtime (&now)->tm_hour;
22480 hour_unset = localtime (&now)->tm_hour;
22481 if (putenv (TZ_PST8) != 0)
22483 if (localtime (&now)->tm_hour == hour_GMT0)
22486 if (localtime (&now)->tm_hour != hour_unset)
22491 rm -f conftest$ac_exeext
22492 if { (ac_try="$ac_link"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_link") 2>&5
22500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22502 { (case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_try") 2>&5
22509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22510 (exit $ac_status); }; }; then
22511 emacs_cv_localtime_cache=no
22513 echo "$as_me: program exited with status
$ac_status" >&5
22514 echo "$as_me: failed program was
:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22517 ( exit $ac_status )
22518 emacs_cv_localtime_cache=yes
22520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22525 # If we lack tzset, report that localtime does not cache TZ,
22526 # since we can't invalidate the cache if we don't have tzset.
22527 emacs_cv_localtime_cache=no
22530 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22531 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22532 if test $emacs_cv_localtime_cache = yes; then
22534 cat >>confdefs.h <<\_ACEOF
22535 #define LOCALTIME_CACHE 1
22540 if test "x
$HAVE_TIMEVAL" = xyes; then
22542 for ac_func in gettimeofday
22544 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22545 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22546 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22547 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22548 echo $ECHO_N "(cached
) $ECHO_C" >&6
22550 cat >conftest.$ac_ext <<_ACEOF
22553 cat confdefs.h >>conftest.$ac_ext
22554 cat >>conftest.$ac_ext <<_ACEOF
22555 /* end confdefs.h. */
22556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22558 #define $ac_func innocuous_$ac_func
22560 /* System header to define __stub macros and hopefully few prototypes,
22561 which can conflict with char $ac_func (); below.
22562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22563 <limits.h> exists even on freestanding compilers. */
22566 # include <limits.h>
22568 # include <assert.h>
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22580 /* The GNU C library defines this for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583 #if defined __stub_$ac_func || defined __stub___$ac_func
22590 return $ac_func ();
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_link") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest$ac_exeext &&
22612 $as_test_x conftest$ac_exeext; then
22613 eval "$as_ac_var=yes"
22615 echo "$as_me: failed program was
:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 eval "$as_ac_var=no
"
22621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622 conftest$ac_exeext conftest.$ac_ext
22624 ac_res=`eval echo '${'$as_ac_var'}'`
22625 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22626 echo "${ECHO_T}$ac_res" >&6; }
22627 if test `eval echo '${'$as_ac_var'}'` = yes; then
22628 cat >>confdefs.h <<_ACEOF
22629 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22635 if test $ac_cv_func_gettimeofday = yes; then
22636 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22637 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22638 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22639 echo $ECHO_N "(cached
) $ECHO_C" >&6
22641 cat >conftest.$ac_ext <<_ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22648 #ifdef TIME_WITH_SYS_TIME
22649 #include <sys/time.h>
22652 #ifdef HAVE_SYS_TIME_H
22653 #include <sys/time.h>
22661 struct timeval time;
22662 gettimeofday (&time, 0);
22667 rm -f conftest.$ac_objext
22668 if { (ac_try="$ac_compile"
22669 case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22674 (eval "$ac_compile") 2>conftest.er1
22676 grep -v '^ *+' conftest.er1 >conftest.err
22678 cat conftest.err >&5
22679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22680 (exit $ac_status); } && {
22681 test -z "$ac_c_werror_flag" ||
22682 test ! -s conftest.err
22683 } && test -s conftest.$ac_objext; then
22684 emacs_cv_gettimeofday_two_arguments=yes
22686 echo "$as_me: failed program was
:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22689 emacs_cv_gettimeofday_two_arguments=no
22692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22695 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22696 if test $emacs_cv_gettimeofday_two_arguments = no; then
22698 cat >>confdefs.h <<\_ACEOF
22699 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22707 { echo "$as_me:$LINENO: checking
for socket
" >&5
22708 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22709 if test "${ac_cv_func_socket+set}" = set; then
22710 echo $ECHO_N "(cached
) $ECHO_C" >&6
22712 cat >conftest.$ac_ext <<_ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22718 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22720 #define socket innocuous_socket
22722 /* System header to define __stub macros and hopefully few prototypes,
22723 which can conflict with char socket (); below.
22724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22725 <limits.h> exists even on freestanding compilers. */
22728 # include <limits.h>
22730 # include <assert.h>
22735 /* Override any GCC internal prototype to avoid an error.
22736 Use char because int might match the return type of a GCC
22737 builtin and then its argument prototype would still apply. */
22742 /* The GNU C library defines this for functions which it implements
22743 to always fail with ENOSYS. Some functions are actually named
22744 something starting with __ and the normal name is an alias. */
22745 #if defined __stub_socket || defined __stub___socket
22757 rm -f conftest.$ac_objext conftest$ac_exeext
22758 if { (ac_try="$ac_link"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_link") 2>conftest.er1
22766 grep -v '^ *+' conftest.er1 >conftest.err
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest$ac_exeext &&
22774 $as_test_x conftest$ac_exeext; then
22775 ac_cv_func_socket=yes
22777 echo "$as_me: failed program was
:" >&5
22778 sed 's/^/| /' conftest.$ac_ext >&5
22780 ac_cv_func_socket=no
22783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22784 conftest$ac_exeext conftest.$ac_ext
22786 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22787 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22788 if test $ac_cv_func_socket = yes; then
22794 if test $ok_so_far = yes; then
22795 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22796 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22797 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22798 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22799 echo $ECHO_N "(cached
) $ECHO_C" >&6
22801 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22802 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22804 # Is the header compilable?
22805 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22806 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22807 cat >conftest.$ac_ext <<_ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22813 $ac_includes_default
22814 #include <netinet/in.h>
22816 rm -f conftest.$ac_objext
22817 if { (ac_try="$ac_compile"
22818 case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_compile") 2>conftest.er1
22825 grep -v '^ *+' conftest.er1 >conftest.err
22827 cat conftest.err >&5
22828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22829 (exit $ac_status); } && {
22830 test -z "$ac_c_werror_flag" ||
22831 test ! -s conftest.err
22832 } && test -s conftest.$ac_objext; then
22833 ac_header_compiler=yes
22835 echo "$as_me: failed program was
:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 ac_header_compiler=no
22841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22843 echo "${ECHO_T}$ac_header_compiler" >&6; }
22845 # Is the header present?
22846 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22847 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22848 cat >conftest.$ac_ext <<_ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22854 #include <netinet/in.h>
22856 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22857 case "(($ac_try" in
22858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859 *) ac_try_echo=$ac_try;;
22861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22862 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22864 grep -v '^ *+' conftest.er1 >conftest.err
22866 cat conftest.err >&5
22867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22868 (exit $ac_status); } >/dev/null && {
22869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22870 test ! -s conftest.err
22872 ac_header_preproc=yes
22874 echo "$as_me: failed program was
:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22877 ac_header_preproc=no
22880 rm -f conftest.err conftest.$ac_ext
22881 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22882 echo "${ECHO_T}$ac_header_preproc" >&6; }
22884 # So? What about this header?
22885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22887 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22888 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22889 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22890 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22891 ac_header_preproc=yes
22894 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22895 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22896 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22897 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22898 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22899 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22900 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22901 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22902 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22903 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22904 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22905 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22909 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22910 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22911 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22912 echo $ECHO_N "(cached
) $ECHO_C" >&6
22914 ac_cv_header_netinet_in_h=$ac_header_preproc
22916 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22917 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22920 if test $ac_cv_header_netinet_in_h = yes; then
22928 if test $ok_so_far = yes; then
22929 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22930 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22931 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22932 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22933 echo $ECHO_N "(cached
) $ECHO_C" >&6
22935 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22936 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22938 # Is the header compilable?
22939 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22940 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22941 cat >conftest.$ac_ext <<_ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 $ac_includes_default
22948 #include <arpa/inet.h>
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22967 ac_header_compiler=yes
22969 echo "$as_me: failed program was
:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_header_compiler=no
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22977 echo "${ECHO_T}$ac_header_compiler" >&6; }
22979 # Is the header present?
22980 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22981 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22982 cat >conftest.$ac_ext <<_ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h. */
22988 #include <arpa/inet.h>
22990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22991 case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1 >conftest.err
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23002 (exit $ac_status); } >/dev/null && {
23003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23006 ac_header_preproc=yes
23008 echo "$as_me: failed program was
:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23011 ac_header_preproc=no
23014 rm -f conftest.err conftest.$ac_ext
23015 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23016 echo "${ECHO_T}$ac_header_preproc" >&6; }
23018 # So? What about this header?
23019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23021 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23022 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23023 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
23024 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
23025 ac_header_preproc=yes
23028 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
23029 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
23030 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
23031 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
23032 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
23033 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
23034 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23035 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23036 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
23037 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
23038 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
23039 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
23043 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23044 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23045 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23046 echo $ECHO_N "(cached
) $ECHO_C" >&6
23048 ac_cv_header_arpa_inet_h=$ac_header_preproc
23050 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23051 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23054 if test $ac_cv_header_arpa_inet_h = yes; then
23062 if test $ok_so_far = yes; then
23064 cat >>confdefs.h <<\_ACEOF
23065 #define HAVE_INET_SOCKETS 1
23071 for ac_header in sys/ioctl.h
23073 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23075 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23076 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23078 echo $ECHO_N "(cached
) $ECHO_C" >&6
23080 ac_res=`eval echo '${'$as_ac_Header'}'`
23081 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23082 echo "${ECHO_T}$ac_res" >&6; }
23084 # Is the header compilable?
23085 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23086 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 $ac_includes_default
23094 #include <$ac_header>
23096 rm -f conftest.$ac_objext
23097 if { (ac_try="$ac_compile"
23098 case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_compile") 2>conftest.er1
23105 grep -v '^ *+' conftest.er1 >conftest.err
23107 cat conftest.err >&5
23108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23109 (exit $ac_status); } && {
23110 test -z "$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23112 } && test -s conftest.$ac_objext; then
23113 ac_header_compiler=yes
23115 echo "$as_me: failed program was
:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_header_compiler=no
23121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23123 echo "${ECHO_T}$ac_header_compiler" >&6; }
23125 # Is the header present?
23126 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23127 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23128 cat >conftest.$ac_ext <<_ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 #include <$ac_header>
23136 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23137 case "(($ac_try" in
23138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139 *) ac_try_echo=$ac_try;;
23141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23142 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23144 grep -v '^ *+' conftest.er1 >conftest.err
23146 cat conftest.err >&5
23147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23148 (exit $ac_status); } >/dev/null && {
23149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23150 test ! -s conftest.err
23152 ac_header_preproc=yes
23154 echo "$as_me: failed program was
:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23157 ac_header_preproc=no
23160 rm -f conftest.err conftest.$ac_ext
23161 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23162 echo "${ECHO_T}$ac_header_preproc" >&6; }
23164 # So? What about this header?
23165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23167 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23168 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23169 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23171 ac_header_preproc=yes
23174 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23175 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23176 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23177 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23178 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23179 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23180 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23181 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23182 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23184 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23185 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
23196 ac_res=`eval echo '${'$as_ac_Header'}'`
23197 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23198 echo "${ECHO_T}$ac_res" >&6; }
23201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23202 cat >>confdefs.h <<_ACEOF
23203 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23211 if test -f /usr/lpp/X11/bin/smt.exp; then
23213 cat >>confdefs.h <<\_ACEOF
23214 #define HAVE_AIX_SMT_EXP 1
23219 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23220 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23221 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23222 { echo "$as_me:$LINENO: result
: yes" >&5
23223 echo "${ECHO_T}yes" >&6; }
23225 cat >>confdefs.h <<\_ACEOF
23226 #define HAVE_DEV_PTMX 1
23230 { echo "$as_me:$LINENO: result
: no
" >&5
23231 echo "${ECHO_T}no
" >&6; }
23234 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23235 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23236 if test "${ac_cv_type_pid_t+set}" = set; then
23237 echo $ECHO_N "(cached
) $ECHO_C" >&6
23239 cat >conftest.$ac_ext <<_ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 $ac_includes_default
23246 typedef pid_t ac__type_new_;
23250 if ((ac__type_new_ *) 0)
23252 if (sizeof (ac__type_new_))
23258 rm -f conftest.$ac_objext
23259 if { (ac_try="$ac_compile"
23260 case "(($ac_try" in
23261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262 *) ac_try_echo=$ac_try;;
23264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23265 (eval "$ac_compile") 2>conftest.er1
23267 grep -v '^ *+' conftest.er1 >conftest.err
23269 cat conftest.err >&5
23270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23271 (exit $ac_status); } && {
23272 test -z "$ac_c_werror_flag" ||
23273 test ! -s conftest.err
23274 } && test -s conftest.$ac_objext; then
23275 ac_cv_type_pid_t=yes
23277 echo "$as_me: failed program was
:" >&5
23278 sed 's/^/| /' conftest.$ac_ext >&5
23280 ac_cv_type_pid_t=no
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23286 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23287 if test $ac_cv_type_pid_t = yes; then
23291 cat >>confdefs.h <<_ACEOF
23298 for ac_header in vfork.h
23300 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23302 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23303 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23305 echo $ECHO_N "(cached
) $ECHO_C" >&6
23307 ac_res=`eval echo '${'$as_ac_Header'}'`
23308 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23309 echo "${ECHO_T}$ac_res" >&6; }
23311 # Is the header compilable?
23312 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23313 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 $ac_includes_default
23321 #include <$ac_header>
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327 *) ac_try_echo=$ac_try;;
23329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23332 grep -v '^ *+' conftest.er1 >conftest.err
23334 cat conftest.err >&5
23335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_header_compiler=yes
23342 echo "$as_me: failed program was
:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 ac_header_compiler=no
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23350 echo "${ECHO_T}$ac_header_compiler" >&6; }
23352 # Is the header present?
23353 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23354 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23355 cat >conftest.$ac_ext <<_ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 #include <$ac_header>
23363 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23371 grep -v '^ *+' conftest.er1 >conftest.err
23373 cat conftest.err >&5
23374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23375 (exit $ac_status); } >/dev/null && {
23376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23377 test ! -s conftest.err
23379 ac_header_preproc=yes
23381 echo "$as_me: failed program was
:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23384 ac_header_preproc=no
23387 rm -f conftest.err conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23389 echo "${ECHO_T}$ac_header_preproc" >&6; }
23391 # So? What about this header?
23392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23394 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23395 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23396 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23398 ac_header_preproc=yes
23401 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23402 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23403 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23404 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23405 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23406 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23407 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23408 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23409 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23411 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23412 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
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 eval "$as_ac_Header=\
$ac_header_preproc"
23423 ac_res=`eval echo '${'$as_ac_Header'}'`
23424 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23425 echo "${ECHO_T}$ac_res" >&6; }
23428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23429 cat >>confdefs.h <<_ACEOF
23430 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23439 for ac_func in fork vfork
23441 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23442 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23443 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23444 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23445 echo $ECHO_N "(cached
) $ECHO_C" >&6
23447 cat >conftest.$ac_ext <<_ACEOF
23450 cat confdefs.h >>conftest.$ac_ext
23451 cat >>conftest.$ac_ext <<_ACEOF
23452 /* end confdefs.h. */
23453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23455 #define $ac_func innocuous_$ac_func
23457 /* System header to define __stub macros and hopefully few prototypes,
23458 which can conflict with char $ac_func (); below.
23459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23460 <limits.h> exists even on freestanding compilers. */
23463 # include <limits.h>
23465 # include <assert.h>
23470 /* Override any GCC internal prototype to avoid an error.
23471 Use char because int might match the return type of a GCC
23472 builtin and then its argument prototype would still apply. */
23477 /* The GNU C library defines this for functions which it implements
23478 to always fail with ENOSYS. Some functions are actually named
23479 something starting with __ and the normal name is an alias. */
23480 #if defined __stub_$ac_func || defined __stub___$ac_func
23487 return $ac_func ();
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (ac_try="$ac_link"
23494 case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_link") 2>conftest.er1
23501 grep -v '^ *+' conftest.er1 >conftest.err
23503 cat conftest.err >&5
23504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23505 (exit $ac_status); } && {
23506 test -z "$ac_c_werror_flag" ||
23507 test ! -s conftest.err
23508 } && test -s conftest$ac_exeext &&
23509 $as_test_x conftest$ac_exeext; then
23510 eval "$as_ac_var=yes"
23512 echo "$as_me: failed program was
:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23515 eval "$as_ac_var=no
"
23518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23519 conftest$ac_exeext conftest.$ac_ext
23521 ac_res=`eval echo '${'$as_ac_var'}'`
23522 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23523 echo "${ECHO_T}$ac_res" >&6; }
23524 if test `eval echo '${'$as_ac_var'}'` = yes; then
23525 cat >>confdefs.h <<_ACEOF
23526 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23532 if test "x
$ac_cv_func_fork" = xyes; then
23533 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23534 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23535 if test "${ac_cv_func_fork_works+set}" = set; then
23536 echo $ECHO_N "(cached
) $ECHO_C" >&6
23538 if test "$cross_compiling" = yes; then
23539 ac_cv_func_fork_works=cross
23541 cat >conftest.$ac_ext <<_ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h. */
23547 $ac_includes_default
23552 /* By Ruediger Kuhlmann. */
23553 return fork () < 0;
23559 rm -f conftest$ac_exeext
23560 if { (ac_try="$ac_link"
23561 case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_link") 2>&5
23568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23570 { (case "(($ac_try" in
23571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23572 *) ac_try_echo=$ac_try;;
23574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23575 (eval "$ac_try") 2>&5
23577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 ac_cv_func_fork_works=yes
23581 echo "$as_me: program exited with status
$ac_status" >&5
23582 echo "$as_me: failed program was
:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23585 ( exit $ac_status )
23586 ac_cv_func_fork_works=no
23588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23593 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23594 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23597 ac_cv_func_fork_works=$ac_cv_func_fork
23599 if test "x
$ac_cv_func_fork_works" = xcross; then
23601 *-*-amigaos* | *-*-msdosdjgpp*)
23602 # Override, as these systems have only a dummy fork() stub
23603 ac_cv_func_fork_works=no
23606 ac_cv_func_fork_works=yes
23609 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23610 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23612 ac_cv_func_vfork_works=$ac_cv_func_vfork
23613 if test "x
$ac_cv_func_vfork" = xyes; then
23614 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23615 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23616 if test "${ac_cv_func_vfork_works+set}" = set; then
23617 echo $ECHO_N "(cached
) $ECHO_C" >&6
23619 if test "$cross_compiling" = yes; then
23620 ac_cv_func_vfork_works=cross
23622 cat >conftest.$ac_ext <<_ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23628 /* Thanks to Paul Eggert for this test. */
23629 $ac_includes_default
23630 #include <sys/wait.h>
23631 #ifdef HAVE_VFORK_H
23632 # include <vfork.h>
23634 /* On some sparc systems, changes by the child to local and incoming
23635 argument registers are propagated back to the parent. The compiler
23636 is told about this with #include <vfork.h>, but some compilers
23637 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23638 static variable whose address is put into a register that is
23639 clobbered by the vfork. */
23642 sparc_address_test (int arg)
23644 sparc_address_test (arg) int arg;
23647 static pid_t child;
23665 pid_t parent = getpid ();
23668 sparc_address_test (0);
23673 /* Here is another test for sparc vfork register problems. This
23674 test uses lots of local variables, at least as many local
23675 variables as main has allocated so far including compiler
23676 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23677 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23678 reuse the register of parent for one of the local variables,
23679 since it will think that parent can't possibly be used any more
23680 in this routine. Assigning to the local variable will thus
23681 munge parent in the parent process. */
23683 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23684 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23685 /* Convince the compiler that p..p7 are live; otherwise, it might
23686 use the same hardware register for all 8 local variables. */
23687 if (p != p1 || p != p2 || p != p3 || p != p4
23688 || p != p5 || p != p6 || p != p7)
23691 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23692 from child file descriptors. If the child closes a descriptor
23693 before it execs or exits, this munges the parent's descriptor
23694 as well. Test for this by closing stdout in the child. */
23695 _exit(close(fileno(stdout)) != 0);
23700 while (wait(&status) != child)
23703 /* Was there some problem with vforking? */
23706 /* Did the child fail? (This shouldn't happen.) */
23709 /* Did the vfork/compiler bug occur? */
23710 || parent != getpid()
23712 /* Did the file descriptor bug occur? */
23713 || fstat(fileno(stdout), &st) != 0
23718 rm -f conftest$ac_exeext
23719 if { (ac_try="$ac_link"
23720 case "(($ac_try" in
23721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23722 *) ac_try_echo=$ac_try;;
23724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23725 (eval "$ac_link") 2>&5
23727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23729 { (case "(($ac_try" in
23730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731 *) ac_try_echo=$ac_try;;
23733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23734 (eval "$ac_try") 2>&5
23736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23737 (exit $ac_status); }; }; then
23738 ac_cv_func_vfork_works=yes
23740 echo "$as_me: program exited with status
$ac_status" >&5
23741 echo "$as_me: failed program was
:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23744 ( exit $ac_status )
23745 ac_cv_func_vfork_works=no
23747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23752 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23753 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23756 if test "x
$ac_cv_func_fork_works" = xcross; then
23757 ac_cv_func_vfork_works=$ac_cv_func_vfork
23758 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23759 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23762 if test "x
$ac_cv_func_vfork_works" = xyes; then
23764 cat >>confdefs.h <<\_ACEOF
23765 #define HAVE_WORKING_VFORK 1
23770 cat >>confdefs.h <<\_ACEOF
23775 if test "x
$ac_cv_func_fork_works" = xyes; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_WORKING_FORK 1
23784 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23785 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23786 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23787 echo $ECHO_N "(cached
) $ECHO_C" >&6
23789 cat >conftest.$ac_ext <<_ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23795 #include <langinfo.h>
23799 char* cs = nl_langinfo(CODESET);
23804 rm -f conftest.$ac_objext conftest$ac_exeext
23805 if { (ac_try="$ac_link"
23806 case "(($ac_try" in
23807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808 *) ac_try_echo=$ac_try;;
23810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23811 (eval "$ac_link") 2>conftest.er1
23813 grep -v '^ *+' conftest.er1 >conftest.err
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23817 (exit $ac_status); } && {
23818 test -z "$ac_c_werror_flag" ||
23819 test ! -s conftest.err
23820 } && test -s conftest$ac_exeext &&
23821 $as_test_x conftest$ac_exeext; then
23822 emacs_cv_langinfo_codeset=yes
23824 echo "$as_me: failed program was
:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 emacs_cv_langinfo_codeset=no
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831 conftest$ac_exeext conftest.$ac_ext
23834 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23835 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23836 if test $emacs_cv_langinfo_codeset = yes; then
23838 cat >>confdefs.h <<\_ACEOF
23839 #define HAVE_LANGINFO_CODESET 1
23844 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23845 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23846 if test "${ac_cv_type_size_t+set}" = set; then
23847 echo $ECHO_N "(cached
) $ECHO_C" >&6
23849 cat >conftest.$ac_ext <<_ACEOF
23852 cat confdefs.h >>conftest.$ac_ext
23853 cat >>conftest.$ac_ext <<_ACEOF
23854 /* end confdefs.h. */
23855 $ac_includes_default
23856 typedef size_t ac__type_new_;
23860 if ((ac__type_new_ *) 0)
23862 if (sizeof (ac__type_new_))
23868 rm -f conftest.$ac_objext
23869 if { (ac_try="$ac_compile"
23870 case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_compile") 2>conftest.er1
23877 grep -v '^ *+' conftest.er1 >conftest.err
23879 cat conftest.err >&5
23880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23881 (exit $ac_status); } && {
23882 test -z "$ac_c_werror_flag" ||
23883 test ! -s conftest.err
23884 } && test -s conftest.$ac_objext; then
23885 ac_cv_type_size_t=yes
23887 echo "$as_me: failed program was
:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ac_cv_type_size_t=no
23893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23895 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23896 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23897 if test $ac_cv_type_size_t = yes; then
23899 cat >>confdefs.h <<_ACEOF
23900 #define HAVE_SIZE_T 1
23907 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23908 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23909 if test "${ac_cv_type_mbstate_t+set}" = set; then
23910 echo $ECHO_N "(cached
) $ECHO_C" >&6
23912 cat >conftest.$ac_ext <<_ACEOF
23915 cat confdefs.h >>conftest.$ac_ext
23916 cat >>conftest.$ac_ext <<_ACEOF
23917 /* end confdefs.h. */
23918 $ac_includes_default
23919 # include <wchar.h>
23923 mbstate_t x; return sizeof x;
23928 rm -f conftest.$ac_objext
23929 if { (ac_try="$ac_compile"
23930 case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_compile") 2>conftest.er1
23937 grep -v '^ *+' conftest.er1 >conftest.err
23939 cat conftest.err >&5
23940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23941 (exit $ac_status); } && {
23942 test -z "$ac_c_werror_flag" ||
23943 test ! -s conftest.err
23944 } && test -s conftest.$ac_objext; then
23945 ac_cv_type_mbstate_t=yes
23947 echo "$as_me: failed program was
:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 ac_cv_type_mbstate_t=no
23953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23956 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23957 if test $ac_cv_type_mbstate_t = yes; then
23959 cat >>confdefs.h <<\_ACEOF
23960 #define HAVE_MBSTATE_T 1
23965 cat >>confdefs.h <<\_ACEOF
23966 #define mbstate_t int
23971 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23972 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23973 if test "${emacs_cv_c_restrict+set}" = set; then
23974 echo $ECHO_N "(cached
) $ECHO_C" >&6
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 void fred (int *restrict x);
23991 rm -f conftest.$ac_objext
23992 if { (ac_try="$ac_compile"
23993 case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23998 (eval "$ac_compile") 2>conftest.er1
24000 grep -v '^ *+' conftest.er1 >conftest.err
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24004 (exit $ac_status); } && {
24005 test -z "$ac_c_werror_flag" ||
24006 test ! -s conftest.err
24007 } && test -s conftest.$ac_objext; then
24008 emacs_cv_c_restrict=yes
24010 echo "$as_me: failed program was
:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24013 cat >conftest.$ac_ext <<_ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 void fred (int *__restrict x);
24028 rm -f conftest.$ac_objext
24029 if { (ac_try="$ac_compile"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24035 (eval "$ac_compile") 2>conftest.er1
24037 grep -v '^ *+' conftest.er1 >conftest.err
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24041 (exit $ac_status); } && {
24042 test -z "$ac_c_werror_flag" ||
24043 test ! -s conftest.err
24044 } && test -s conftest.$ac_objext; then
24045 emacs_cv_c_restrict=__restrict
24047 echo "$as_me: failed program was
:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24050 emacs_cv_c_restrict=no
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24059 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24060 case "$emacs_cv_c_restrict" in
24061 yes) emacs_restrict=restrict;;
24062 no) emacs_restrict="";;
24063 *) emacs_restrict="$emacs_cv_c_restrict";;
24065 if test "$emacs_restrict" != __restrict; then
24067 cat >>confdefs.h <<_ACEOF
24068 #define __restrict $emacs_restrict
24073 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24074 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24075 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24076 echo $ECHO_N "(cached
) $ECHO_C" >&6
24078 cat >conftest.$ac_ext <<_ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h. */
24084 void fred (int x[__restrict]);
24093 rm -f conftest.$ac_objext
24094 if { (ac_try="$ac_compile"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24100 (eval "$ac_compile") 2>conftest.er1
24102 grep -v '^ *+' conftest.er1 >conftest.err
24104 cat conftest.err >&5
24105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24106 (exit $ac_status); } && {
24107 test -z "$ac_c_werror_flag" ||
24108 test ! -s conftest.err
24109 } && test -s conftest.$ac_objext; then
24110 emacs_cv_c_restrict_arr=yes
24112 echo "$as_me: failed program was
:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24115 emacs_cv_c_restrict_arr=no
24118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24120 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24121 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24122 if test "$emacs_cv_c_restrict_arr" = yes; then
24124 cat >>confdefs.h <<\_ACEOF
24125 #define __restrict_arr __restrict
24132 # Set up the CFLAGS for real compilation, so we can substitute it.
24133 CFLAGS="$REAL_CFLAGS"
24134 CPPFLAGS="$REAL_CPPFLAGS"
24136 #### Find out which version of Emacs this is.
24137 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24138 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24139 if test x"${version}" = x; then
24140 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24141 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24142 { (exit 1); exit 1; }; }
24145 ### Specify what sort of things we'll be editing into Makefile and config.h.
24146 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24182 cat >>confdefs.h <<_ACEOF
24183 #define EMACS_CONFIGURATION "${canonical}"
24187 cat >>confdefs.h <<_ACEOF
24188 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24192 cat >>confdefs.h <<_ACEOF
24193 #define config_machfile "${machfile}"
24197 cat >>confdefs.h <<_ACEOF
24198 #define config_opsysfile "${opsysfile}"
24202 cat >>confdefs.h <<_ACEOF
24203 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24207 cat >>confdefs.h <<_ACEOF
24208 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24212 cat >>confdefs.h <<_ACEOF
24213 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24217 cat >>confdefs.h <<_ACEOF
24218 #define UNEXEC_SRC ${UNEXEC_SRC}
24222 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24224 cat >>confdefs.h <<\_ACEOF
24225 #define HAVE_X_WINDOWS 1
24229 if test "${USE_X_TOOLKIT}" != "none
" ; then
24231 cat >>confdefs.h <<\_ACEOF
24232 #define USE_X_TOOLKIT 1
24235 if test "${USE_X_TOOLKIT}" == "LUCID
"; then
24237 cat >>confdefs.h <<\_ACEOF
24238 #define USE_LUCID 1
24241 elif test "${USE_X_TOOLKIT}" == "MOTIF
"; then
24243 cat >>confdefs.h <<\_ACEOF
24244 #define USE_MOTIF 1
24249 if test "${HAVE_X11}" = "yes" ; then
24251 cat >>confdefs.h <<\_ACEOF
24256 if test "${HAVE_MENUS}" = "yes" ; then
24258 cat >>confdefs.h <<\_ACEOF
24259 #define HAVE_MENUS 1
24263 if test "${GNU_MALLOC}" = "yes" ; then
24265 cat >>confdefs.h <<\_ACEOF
24266 #define GNU_MALLOC 1
24270 if test "${REL_ALLOC}" = "yes" ; then
24272 cat >>confdefs.h <<\_ACEOF
24273 #define REL_ALLOC 1
24283 #### Report on what we decided to do.
24284 #### Report GTK as a toolkit, even if it doesn't use Xt.
24285 #### It makes printing result more understandable as using GTK sets
24286 #### toolkit_scroll_bars to yes by default.
24287 if test "${HAVE_GTK}" = "yes"; then
24292 Configured
for \
`${canonical}'.
24294 Where should the build process find the source code? ${srcdir}
24295 What operating system and machine description files should Emacs use?
24296 \`${opsysfile}' and \`${machfile}'
24297 What compiler should emacs be built with?
${CC} ${CFLAGS}
24298 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24299 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24300 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24301 What window system should Emacs use?
${window_system}
24302 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24304 if test -n "${x_includes}"; then
24305 echo " Where
do we
find X Windows header files?
${x_includes}"
24307 echo " Where
do we
find X Windows header files? Standard
dirs"
24309 if test -n "${x_libraries}"; then
24310 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24312 echo " Where
do we
find X Windows libraries? Standard
dirs"
24315 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24316 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24317 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24318 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24319 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24320 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24321 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24322 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24323 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24324 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
24326 if test "${USE_FONT_BACKEND}" = "yes"; then
24327 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24328 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24329 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24330 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24332 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24335 if test $USE_XASSERTS = yes; then
24336 echo " Compiling with asserts turned on.
"
24337 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24342 if test "$USE_X_TOOLKIT" = GTK; then
24343 case "$canonical" in
24345 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24346 will probably get a crash on startup. If this happens
, please use another
24347 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24353 if test "$HAVE_CARBON" = "yes"; then
24355 echo "Warning
: The Mac Carbon port is currently unsupported and has
24356 known problems. It is not recommended
for use by non-developers.
24357 Read the emacs-devel archives
for more information.
"
24361 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24362 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24367 # Remove any trailing slashes in these variables.
24368 test "${prefix}" != NONE &&
24369 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24370 test "${exec_prefix}" != NONE &&
24371 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24373 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24374 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24375 ## from Makefile.c can correctly provide the arg `-traditional' to the
24378 cat >conftest.$ac_ext <<_ACEOF
24381 cat confdefs.h >>conftest.$ac_ext
24382 cat >>conftest.$ac_ext <<_ACEOF
24383 /* end confdefs.h. */
24386 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24387 $EGREP "yes..
yes" >/dev/null 2>&1; then
24388 CPP_NEED_TRADITIONAL=no
24390 CPP_NEED_TRADITIONAL=yes
24395 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
"
24397 ac_config_commands="$ac_config_commands default
"
24399 cat >confcache <<\_ACEOF
24400 # This file is a shell script that caches the results of configure
24401 # tests run on this system so they can be shared between configure
24402 # scripts and configure runs, see configure's option --config-cache.
24403 # It is not useful on other systems. If it contains results you don't
24404 # want to keep, you may remove or edit it.
24406 # config.status only pays attention to the cache file if you give it
24407 # the --recheck option to rerun configure.
24409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24411 # following values.
24415 # The following way of writing the cache mishandles newlines in values,
24416 # but we know of no workaround that is simple, portable, and efficient.
24417 # So, we kill variables containing newlines.
24418 # Ultrix sh set writes to stderr and can't be redirected directly,
24419 # and sets the high bit in the cache file unless we assign to the vars.
24421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24422 eval ac_val=\$$ac_var
24426 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24427 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24430 _ | IFS | as_nl) ;; #(
24431 *) $as_unset $ac_var ;;
24437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24438 *${as_nl}ac_space=\ *)
24439 # `set' does not quote correctly, so add quotes (double-quote
24440 # substitution turns \\\\ into \\, and sed turns \\ into \).
24443 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24446 # `set' quotes correctly as required by POSIX, so do not add quotes.
24447 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24461 if test -w "$cache_file"; then
24462 test "x
$cache_file" != "x
/dev
/null
" &&
24463 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24464 echo "$as_me: updating cache
$cache_file" >&6;}
24465 cat confcache >$cache_file
24467 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24468 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24473 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24474 # Let make expand exec_prefix.
24475 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24477 DEFS=-DHAVE_CONFIG_H
24481 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24482 # 1. Remove the extension, and $U if already installed.
24483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24484 ac_i=`echo "$ac_i" | sed "$ac_script"`
24485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24486 # will be set to the directory where LIBOBJS objects are built.
24487 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24488 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24490 LIBOBJS=$ac_libobjs
24492 LTLIBOBJS=$ac_ltlibobjs
24496 : ${CONFIG_STATUS=./config.status}
24497 ac_clean_files_save=$ac_clean_files
24498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24499 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24500 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24501 cat >$CONFIG_STATUS <<_ACEOF
24503 # Generated by $as_me.
24504 # Run this file to recreate the current configuration.
24505 # Compiler output produced by configure, useful for debugging
24506 # configure, is in config.log if it exists.
24509 ac_cs_recheck=false
24511 SHELL=\${CONFIG_SHELL-$SHELL}
24514 cat >>$CONFIG_STATUS <<\_ACEOF
24515 ## --------------------- ##
24516 ## M4sh Initialization. ##
24517 ## --------------------- ##
24519 # Be more Bourne compatible
24520 DUALCASE=1; export DUALCASE # for MKS sh
24521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24525 # is contrary to our usage. Disable this feature.
24526 alias -g '${1+"$@"}'='"$@
"'
24527 setopt NO_GLOB_SUBST
24529 case `(set -o) 2>/dev/null` in
24530 *posix*) set -o posix ;;
24539 # Avoid depending upon Character Ranges.
24540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24543 as_cr_digits='0123456789'
24544 as_cr_alnum=$as_cr_Letters$as_cr_digits
24546 # The user is always right.
24547 if test "${PATH_SEPARATOR+set}" != set; then
24548 echo "#! /bin/sh" >conf$$.sh
24549 echo "exit 0" >>conf$$.sh
24551 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24559 # Support unset when possible.
24560 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24568 # We need space, tab and new line, in precisely that order. Quoting is
24569 # there to prevent editors from complaining about space-tab.
24570 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24571 # splitting by setting IFS to empty value.)
24576 # Find who we are. Look in the path if we contain no directory separator.
24578 *[\\/]* ) as_myself
=$0 ;;
24579 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24580 for as_dir
in $PATH
24583 test -z "$as_dir" && as_dir
=.
24584 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24590 # We did not find ourselves, most probably we were run as `sh COMMAND'
24591 # in which case we are not to be found in the path.
24592 if test "x$as_myself" = x
; then
24595 if test ! -f "$as_myself"; then
24596 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24597 { (exit 1); exit 1; }
24600 # Work around bugs in pre-3.0 UWIN ksh.
24601 for as_var
in ENV MAIL MAILPATH
24602 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24610 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24611 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24612 LC_TELEPHONE LC_TIME
24614 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24615 eval $as_var=C
; export $as_var
24617 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24621 # Required to use basename.
24622 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24623 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24629 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24630 as_basename
=basename
24636 # Name of the executable.
24637 as_me
=`$as_basename -- "$0" ||
24638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24639 X"$0" : 'X\(//\)$' \| \
24640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24642 sed '/^.*\/\([^/][^/]*\)\/*$/{
24661 as_lineno_1
=$LINENO
24662 as_lineno_2
=$LINENO
24663 test "x$as_lineno_1" != "x$as_lineno_2" &&
24664 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24666 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24667 # uniformly replaced by the line number. The first 'sed' inserts a
24668 # line-number line after each line using $LINENO; the second 'sed'
24669 # does the real work. The second script uses 'N' to pair each
24670 # line-number line with the line containing $LINENO, and appends
24671 # trailing '-' during substitution so that $LINENO is not a special
24672 # case at line end.
24673 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24674 # scripts with optimization help from Paolo Bonzini. Blame Lee
24675 # E. McMahon (1931-1989) for sed's syntax. :-)
24687 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24690 ' >$as_me.lineno
&&
24691 chmod +x
"$as_me.lineno" ||
24692 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24693 { (exit 1); exit 1; }; }
24695 # Don't try to exec as it changes $[0], causing all sort of problems
24696 # (the dirname of $[0] is not the place where we might find the
24697 # original and so on. Autoconf is especially sensitive to this).
24698 .
"./$as_me.lineno"
24699 # Exit status is that of the last command.
24704 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24710 ECHO_C
= ECHO_N
= ECHO_T
=
24711 case `echo -n x` in
24713 case `echo 'x\c'` in
24714 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24721 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24722 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24728 rm -f conf$$ conf$$.exe conf$$.
file
24729 if test -d conf$$.dir
; then
24730 rm -f conf$$.dir
/conf$$.
file
24736 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24738 # ... but there are two gotchas:
24739 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24740 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24741 # In both cases, we have to default to `cp -p'.
24742 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24744 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24749 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24750 rmdir conf$$.dir
2>/dev
/null
24752 if mkdir
-p .
2>/dev
/null
; then
24755 test -d .
/-p && rmdir .
/-p
24759 if test -x / >/dev
/null
2>&1; then
24760 as_test_x
='test -x'
24762 if ls -dL / >/dev
/null
2>&1; then
24769 if test -d "$1"; then
24775 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24776 ???[sx]*):;;*)false;;esac;fi
24780 as_executable_p
=$as_test_x
24782 # Sed expression to map a string onto a valid CPP name.
24783 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24785 # Sed expression to map a string onto a valid variable name.
24786 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24791 # Save the log message, to keep $[0] and so on meaningful, and to
24792 # report actual input values of CONFIG_FILES etc. instead of their
24793 # values after options handling.
24795 This file was extended by emacs $as_me 23.0.60, which was
24796 generated by GNU Autoconf 2.61. Invocation command line was
24798 CONFIG_FILES = $CONFIG_FILES
24799 CONFIG_HEADERS = $CONFIG_HEADERS
24800 CONFIG_LINKS = $CONFIG_LINKS
24801 CONFIG_COMMANDS = $CONFIG_COMMANDS
24804 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24809 cat >>$CONFIG_STATUS <<_ACEOF
24810 # Files that config.status was made for.
24811 config_files="$ac_config_files"
24812 config_headers="$ac_config_headers"
24813 config_commands="$ac_config_commands"
24817 cat >>$CONFIG_STATUS <<\_ACEOF
24819 \`$as_me' instantiates files from templates according to the
24820 current configuration.
24822 Usage: $0 [OPTIONS] [FILE]...
24824 -h, --help print this help, then exit
24825 -V, --version print version number and configuration settings, then exit
24826 -q, --quiet do not print progress messages
24827 -d, --debug don't remove temporary files
24828 --recheck update $as_me by reconfiguring in the same conditions
24829 --file=FILE[:TEMPLATE]
24830 instantiate the configuration file FILE
24831 --header=FILE[:TEMPLATE]
24832 instantiate the configuration header FILE
24834 Configuration files:
24837 Configuration headers:
24840 Configuration commands:
24843 Report bugs to <bug-autoconf@gnu.org>."
24846 cat >>$CONFIG_STATUS <<_ACEOF
24848 emacs config.status 23.0.60
24849 configured by $0, generated by GNU Autoconf 2.61,
24850 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24852 Copyright (C) 2006 Free Software Foundation, Inc.
24853 This config.status script is free software; the Free Software Foundation
24854 gives unlimited permission to copy, distribute and modify it."
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24862 # If no file are specified by the user, then we need to provide default
24863 # value. By we need to know if files were specified by the user.
24869 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24870 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24881 # Handling of the options.
24882 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24884 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24885 echo "$ac_cs_version"; exit ;;
24886 --debug |
--debu |
--deb |
--de |
--d |
-d )
24888 --file |
--fil |
--fi |
--f )
24890 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24891 ac_need_defaults
=false
;;
24892 --header |
--heade |
--head |
--hea )
24894 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24895 ac_need_defaults
=false
;;
24897 # Conflict between --help and --header
24898 { echo "$as_me: error: ambiguous option: $1
24899 Try \`$0 --help' for more information." >&2
24900 { (exit 1); exit 1; }; };;
24901 --help |
--hel |
-h )
24902 echo "$ac_cs_usage"; exit ;;
24903 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24904 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24907 # This is an error.
24908 -*) { echo "$as_me: error: unrecognized option: $1
24909 Try \`$0 --help' for more information." >&2
24910 { (exit 1); exit 1; }; } ;;
24912 *) ac_config_targets
="$ac_config_targets $1"
24913 ac_need_defaults
=false
;;
24919 ac_configure_extra_args
=
24921 if $ac_cs_silent; then
24923 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24927 cat >>$CONFIG_STATUS <<_ACEOF
24928 if \$ac_cs_recheck; then
24929 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24930 CONFIG_SHELL=$SHELL
24931 export CONFIG_SHELL
24932 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24936 cat >>$CONFIG_STATUS <<\_ACEOF
24940 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24941 ## Running $as_me. ##
24947 cat >>$CONFIG_STATUS <<_ACEOF
24951 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24955 cat >>$CONFIG_STATUS <<\_ACEOF
24957 # Handling of arguments.
24958 for ac_config_target
in $ac_config_targets
24960 case $ac_config_target in
24961 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24962 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24963 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24964 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24965 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24966 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24967 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24968 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24969 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24970 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24971 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24972 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24973 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24975 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24976 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24977 { (exit 1); exit 1; }; };;
24982 # If the user did not use the arguments to specify the items to instantiate,
24983 # then the envvar interface is used. Set only those that are not.
24984 # We use the long form for the default assignment because of an extremely
24985 # bizarre bug on SunOS 4.1.3.
24986 if $ac_need_defaults; then
24987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24992 # Have a temporary directory for convenience. Make it in the build tree
24993 # simply because there is no reason against having it here, and in addition,
24994 # creating and moving files from /tmp can sometimes cause problems.
24995 # Hook for its removal unless debugging.
24996 # Note that there is a small window in which the directory will not be cleaned:
24997 # after its creation but before its name has been assigned to `$tmp'.
25001 trap 'exit_status=$?
25002 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25004 trap '{ (exit 1); exit 1; }' 1 2 13 15
25006 # Create a (secure) tmp directory for tmp files.
25009 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25010 test -n "$tmp" && test -d "$tmp"
25013 tmp
=.
/conf$$
-$RANDOM
25014 (umask 077 && mkdir
"$tmp")
25017 echo "$me: cannot create a temporary directory in ." >&2
25018 { (exit 1); exit 1; }
25022 # Set up the sed scripts for CONFIG_FILES section.
25025 # No need to generate the scripts if there are no CONFIG_FILES.
25026 # This happens for instance when ./config.status config.h
25027 if test -n "$CONFIG_FILES"; then
25034 for ac_last_try
in false false false false false
:; do
25035 cat >conf$
$subs.
sed <<_ACEOF
25036 SHELL!$SHELL$ac_delim
25037 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25038 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25039 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25040 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25041 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25042 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25043 exec_prefix!$exec_prefix$ac_delim
25044 prefix!$prefix$ac_delim
25045 program_transform_name!$program_transform_name$ac_delim
25046 bindir!$bindir$ac_delim
25047 sbindir!$sbindir$ac_delim
25048 libexecdir!$libexecdir$ac_delim
25049 datarootdir!$datarootdir$ac_delim
25050 datadir!$datadir$ac_delim
25051 sysconfdir!$sysconfdir$ac_delim
25052 sharedstatedir!$sharedstatedir$ac_delim
25053 localstatedir!$localstatedir$ac_delim
25054 includedir!$includedir$ac_delim
25055 oldincludedir!$oldincludedir$ac_delim
25056 docdir!$docdir$ac_delim
25057 infodir!$infodir$ac_delim
25058 htmldir!$htmldir$ac_delim
25059 dvidir!$dvidir$ac_delim
25060 pdfdir!$pdfdir$ac_delim
25061 psdir!$psdir$ac_delim
25062 libdir!$libdir$ac_delim
25063 localedir!$localedir$ac_delim
25064 mandir!$mandir$ac_delim
25065 DEFS!$DEFS$ac_delim
25066 ECHO_C!$ECHO_C$ac_delim
25067 ECHO_N!$ECHO_N$ac_delim
25068 ECHO_T!$ECHO_T$ac_delim
25069 LIBS!$LIBS$ac_delim
25070 build_alias!$build_alias$ac_delim
25071 host_alias!$host_alias$ac_delim
25072 target_alias!$target_alias$ac_delim
25073 MAINT!$MAINT$ac_delim
25074 build!$build$ac_delim
25075 build_cpu!$build_cpu$ac_delim
25076 build_vendor!$build_vendor$ac_delim
25077 build_os!$build_os$ac_delim
25078 host!$host$ac_delim
25079 host_cpu!$host_cpu$ac_delim
25080 host_vendor!$host_vendor$ac_delim
25081 host_os!$host_os$ac_delim
25083 CFLAGS!$CFLAGS$ac_delim
25084 LDFLAGS!$LDFLAGS$ac_delim
25085 CPPFLAGS!$CPPFLAGS$ac_delim
25086 ac_ct_CC!$ac_ct_CC$ac_delim
25087 EXEEXT!$EXEEXT$ac_delim
25088 OBJEXT!$OBJEXT$ac_delim
25090 GREP!$GREP$ac_delim
25091 EGREP!$EGREP$ac_delim
25092 LN_S!$LN_S$ac_delim
25093 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25094 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25095 INSTALL_DATA!$INSTALL_DATA$ac_delim
25096 RANLIB!$RANLIB$ac_delim
25097 INSTALL_INFO!$INSTALL_INFO$ac_delim
25098 GZIP_PROG!$GZIP_PROG$ac_delim
25099 MAKEINFO!$MAKEINFO$ac_delim
25100 LIBSOUND!$LIBSOUND$ac_delim
25101 PKG_CONFIG!$PKG_CONFIG$ac_delim
25102 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25103 ALSA_LIBS!$ALSA_LIBS$ac_delim
25104 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25105 SET_MAKE!$SET_MAKE$ac_delim
25106 XMKMF!$XMKMF$ac_delim
25107 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25108 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25109 RSVG_LIBS!$RSVG_LIBS$ac_delim
25110 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25111 GTK_LIBS!$GTK_LIBS$ac_delim
25112 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25113 DBUS_LIBS!$DBUS_LIBS$ac_delim
25114 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25115 XFT_LIBS!$XFT_LIBS$ac_delim
25116 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25117 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25118 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25119 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25120 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25121 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25122 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25123 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25124 ALLOCA!$ALLOCA$ac_delim
25125 liblockfile!$liblockfile$ac_delim
25126 LIBOBJS!$LIBOBJS$ac_delim
25127 NEED_SETGID!$NEED_SETGID$ac_delim
25128 KMEM_GROUP!$KMEM_GROUP$ac_delim
25129 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25130 GETOPT_H!$GETOPT_H$ac_delim
25131 GETOPTOBJS!$GETOPTOBJS$ac_delim
25132 version!$version$ac_delim
25135 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25137 elif $ac_last_try; then
25138 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25139 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25140 { (exit 1); exit 1; }; }
25142 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25146 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25147 if test -n "$ac_eof"; then
25148 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25149 ac_eof
=`expr $ac_eof + 1`
25152 cat >>$CONFIG_STATUS <<_ACEOF
25153 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25157 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25158 s/^/s,@/; s/!/@,|#_!!_#|/
25161 s/'"$ac_delim"'$/,g/; t
25163 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25164 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25165 rm -f conf$
$subs.
sed
25166 cat >>$CONFIG_STATUS <<_ACEOF
25172 for ac_last_try
in false false false false false
:; do
25173 cat >conf$
$subs.
sed <<_ACEOF
25174 configuration!$configuration$ac_delim
25175 canonical!$canonical$ac_delim
25176 srcdir!$srcdir$ac_delim
25177 lispdir!$lispdir$ac_delim
25178 locallisppath!$locallisppath$ac_delim
25179 lisppath!$lisppath$ac_delim
25180 x_default_search_path!$x_default_search_path$ac_delim
25181 etcdir!$etcdir$ac_delim
25182 archlibdir!$archlibdir$ac_delim
25183 bitmapdir!$bitmapdir$ac_delim
25184 gamedir!$gamedir$ac_delim
25185 gameuser!$gameuser$ac_delim
25186 c_switch_system!$c_switch_system$ac_delim
25187 c_switch_machine!$c_switch_machine$ac_delim
25188 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25189 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25190 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25191 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25192 machfile!$machfile$ac_delim
25193 opsysfile!$opsysfile$ac_delim
25194 carbon_appdir!$carbon_appdir$ac_delim
25195 LTLIBOBJS!$LTLIBOBJS$ac_delim
25198 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25200 elif $ac_last_try; then
25201 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25202 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25203 { (exit 1); exit 1; }; }
25205 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25209 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25210 if test -n "$ac_eof"; then
25211 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25212 ac_eof
=`expr $ac_eof + 1`
25215 cat >>$CONFIG_STATUS <<_ACEOF
25216 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25217 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25220 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25221 s/^/s,@/; s/!/@,|#_!!_#|/
25224 s/'"$ac_delim"'$/,g/; t
25226 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25227 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25228 rm -f conf$
$subs.
sed
25229 cat >>$CONFIG_STATUS <<_ACEOF
25236 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25237 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25238 # trailing colons and then remove the whole line if VPATH becomes empty
25239 # (actually we leave an empty line to preserve line numbers).
25240 if test "x$srcdir" = x.
; then
25241 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25242 s/:*\$(srcdir):*/:/
25243 s/:*\${srcdir}:*/:/
25245 s/^\([^=]*=[ ]*\):*/\1/
25251 cat >>$CONFIG_STATUS <<\_ACEOF
25252 fi # test -n "$CONFIG_FILES"
25255 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25258 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25260 case $ac_mode$ac_tag in
25262 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25263 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25264 { (exit 1); exit 1; }; };;
25265 :[FH
]-) ac_tag
=-:-;;
25266 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25283 -) ac_f
="$tmp/stdin";;
25284 *) # Look for the file first in the build tree, then in the source tree
25285 # (if the path is not absolute). The absolute path cannot be DOS-style,
25286 # because $ac_f cannot contain `:'.
25290 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25292 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25293 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25294 { (exit 1); exit 1; }; };;
25296 ac_file_inputs
="$ac_file_inputs $ac_f"
25299 # Let's still pretend it is `configure' which instantiates (i.e., don't
25300 # use $as_me), people would be surprised to read:
25301 # /* config.h. Generated by config.status. */
25302 configure_input
="Generated from "`IFS=:
25303 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25304 if test x
"$ac_file" != x-
; then
25305 configure_input
="$ac_file. $configure_input"
25306 { echo "$as_me:$LINENO: creating $ac_file" >&5
25307 echo "$as_me: creating $ac_file" >&6;}
25311 *:-:* |
*:-) cat >"$tmp/stdin";;
25316 ac_dir
=`$as_dirname -- "$ac_file" ||
25317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25318 X"$ac_file" : 'X\(//\)[^/]' \| \
25319 X"$ac_file" : 'X\(//\)$' \| \
25320 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25326 /^X\(\/\/\)[^/].*/{
25341 -*) as_dir
=.
/$as_dir;;
25343 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25347 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25348 *) as_qdir
=$as_dir;;
25350 as_dirs
="'$as_qdir' $as_dirs"
25351 as_dir
=`$as_dirname -- "$as_dir" ||
25352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25353 X"$as_dir" : 'X\(//\)[^/]' \| \
25354 X"$as_dir" : 'X\(//\)$' \| \
25355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25361 /^X\(\/\/\)[^/].*/{
25374 test -d "$as_dir" && break
25376 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25377 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25378 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25379 { (exit 1); exit 1; }; }; }
25383 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25385 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25386 # A ".." for each directory in $ac_dir_suffix.
25387 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25388 case $ac_top_builddir_sub in
25389 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25390 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25393 ac_abs_top_builddir
=$ac_pwd
25394 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25395 # for backward compatibility:
25396 ac_top_builddir
=$ac_top_build_prefix
25399 .
) # We are building in place.
25401 ac_top_srcdir
=$ac_top_builddir_sub
25402 ac_abs_top_srcdir
=$ac_pwd ;;
25403 [\\/]* | ?
:[\\/]* ) # Absolute name.
25404 ac_srcdir
=$srcdir$ac_dir_suffix;
25405 ac_top_srcdir
=$srcdir
25406 ac_abs_top_srcdir
=$srcdir ;;
25407 *) # Relative name.
25408 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25409 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25410 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25412 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25422 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25423 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25427 cat >>$CONFIG_STATUS <<\_ACEOF
25428 # If the template does not know about datarootdir, expand it.
25429 # FIXME: This hack should be removed a few years after 2.60.
25430 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25432 case `sed -n '/datarootdir/ {
25441 ' $ac_file_inputs` in
25442 *datarootdir
*) ac_datarootdir_seen
=yes;;
25443 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25444 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25445 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25447 cat >>$CONFIG_STATUS <<_ACEOF
25448 ac_datarootdir_hack='
25449 s&@datadir@&$datadir&g
25450 s&@docdir@&$docdir&g
25451 s&@infodir@&$infodir&g
25452 s&@localedir@&$localedir&g
25453 s&@mandir@&$mandir&g
25454 s&\\\${datarootdir}&$datarootdir&g' ;;
25458 # Neutralize VPATH when `$srcdir' = `.'.
25459 # Shell code in configure.ac might set extrasub.
25460 # FIXME: do we really want to maintain this feature?
25461 cat >>$CONFIG_STATUS <<_ACEOF
25465 cat >>$CONFIG_STATUS <<\_ACEOF
25467 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25468 s
&@configure_input@
&$configure_input&;t t
25469 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25470 s
&@srcdir@
&$ac_srcdir&;t t
25471 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25472 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25473 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25474 s
&@builddir@
&$ac_builddir&;t t
25475 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25476 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25477 s
&@INSTALL@
&$ac_INSTALL&;t t
25478 $ac_datarootdir_hack
25479 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25484 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25485 which seems to be undefined. Please make sure it is defined." >&5
25486 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25487 which seems to be undefined. Please make sure it is defined." >&2;}
25491 -) cat "$tmp/out"; rm -f "$tmp/out";;
25492 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25501 # Transform confdefs.h into a sed script `conftest.defines', that
25502 # substitutes the proper values into config.h.in to produce config.h.
25503 rm -f conftest.defines conftest.
tail
25504 # First, append a space to every undef/define line, to ease matching.
25505 echo 's/$/ /' >conftest.defines
25506 # Then, protect against being on the right side of a sed subst, or in
25507 # an unquoted here document, in config.status. If some macros were
25508 # called several times there might be several #defines for the same
25509 # symbol, which is useless. But do not sort them, since the last
25510 # AC_DEFINE must be honored.
25511 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25512 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25513 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25514 # PARAMS is the parameter list in the macro definition--in most cases, it's
25515 # just an empty string.
25516 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25517 ac_dB
='\\)[ (].*,\\1define\\2'
25525 s/^[ ]*#[ ]*define[ ][ ]*//
25530 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25531 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25532 ' >>conftest.defines
25534 # Remove the space that was appended to ease matching.
25535 # Then replace #undef with comments. This is necessary, for
25536 # example, in the case of _POSIX_SOURCE, which is predefined and required
25537 # on some systems where configure will not decide to define it.
25538 # (The regexp can be short, since the line contains either #define or #undef.)
25540 s,^[ #]*u.*,/* & */,' >>conftest.defines
25542 # Break up conftest.defines:
25543 ac_max_sed_lines
=50
25545 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25546 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25547 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25549 ac_in
='$ac_file_inputs'
25550 ac_out
='"$tmp/out1"'
25551 ac_nxt
='"$tmp/out2"'
25555 # Write a here document:
25556 cat >>$CONFIG_STATUS <<_ACEOF
25557 # First, check the format of the line:
25558 cat >"\$tmp/defines.sed" <<\\CEOF
25559 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25560 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25564 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25566 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25567 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25568 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25569 grep . conftest.
tail >/dev
/null ||
break
25570 rm -f conftest.defines
25571 mv conftest.
tail conftest.defines
25573 rm -f conftest.defines conftest.
tail
25575 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25576 cat >>$CONFIG_STATUS <<\_ACEOF
25577 if test x
"$ac_file" != x-
; then
25578 echo "/* $configure_input */" >"$tmp/config.h"
25579 cat "$ac_result" >>"$tmp/config.h"
25580 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25581 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25582 echo "$as_me: $ac_file is unchanged" >&6;}
25585 mv "$tmp/config.h" $ac_file
25588 echo "/* $configure_input */"
25594 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25595 echo "$as_me: executing $ac_file commands" >&6;}
25600 case $ac_file$ac_mode in
25603 ### Make the necessary directories, if they don't exist.
25604 for dir
in etc lisp
; do
25605 test -d ${dir} || mkdir
${dir}
25608 # Build src/Makefile from ${srcdir}/src/Makefile.c
25609 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25610 # This must be done after src/config.h is built, since we rely on that file.
25612 # Now get this: Some word that is part of the ${srcdir} directory name
25613 # or the ${configuration} value might, just might, happen to be an
25614 # identifier like `sun4' or `i386' or something, and be predefined by
25615 # the C preprocessor to some helpful value like 1, or maybe the empty
25616 # string. Needless to say consequent macro substitutions are less
25617 # than conducive to the makefile finding the correct directory.
25618 undefs
="`echo $top_srcdir $configuration $canonical |
25619 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25620 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25623 echo creating src
/epaths.h
25624 ${MAKE-make} epaths-force
25626 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25627 # `..' to `. .' unless invoked with -traditional
25629 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25630 CPPFLAGS
="$CPPFLAGS -traditional"
25633 echo creating lib-src
/Makefile
25635 rm -f junk.c junk1.c junk2.c
25636 sed -e '/start of cpp stuff/q' \
25637 < Makefile.c
> junk1.c
25638 sed -e '1,/start of cpp stuff/d'\
25639 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25640 < Makefile.c
> junk.c
25641 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25642 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25643 cat junk1.c junk2.c
> Makefile.new
25644 rm -f junk.c junk1.c junk2.c
25645 chmod 444 Makefile.new
25646 mv -f Makefile.new Makefile
25649 echo creating src
/Makefile
25651 rm -f junk.c junk1.c junk2.c
25652 sed -e '/start of cpp stuff/q' \
25653 < Makefile.c
> junk1.c
25654 sed -e '1,/start of cpp stuff/d'\
25655 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25656 < Makefile.c
> junk.c
25657 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25658 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25659 cat junk1.c junk2.c
> Makefile.new
25660 rm -f junk.c junk1.c junk2.c
25661 chmod 444 Makefile.new
25662 mv -f Makefile.new Makefile
25665 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25666 echo creating src
/.gdbinit
25667 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25670 # This is how we know whether to re-run configure in certain cases.
25671 touch src
/config.stamp
25679 { (exit 0); exit 0; }
25681 chmod +x
$CONFIG_STATUS
25682 ac_clean_files
=$ac_clean_files_save
25685 # configure is writing to config.log, and then calls config.status.
25686 # config.status does its own redirection, appending to config.log.
25687 # Unfortunately, on DOS this fails, as config.log is still kept open
25688 # by configure, so config.status won't be able to write to it; its
25689 # output is simply discarded. So we exec the FD to /dev/null,
25690 # effectively closing config.log, so it can be properly (re)opened and
25691 # appended to by config.status. When coming back to configure, we
25692 # need to make the FD available again.
25693 if test "$no_create" != yes; then
25695 ac_config_status_args
=
25696 test "$silent" = yes &&
25697 ac_config_status_args
="$ac_config_status_args --quiet"
25699 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25701 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25702 # would make configure fail if this is the last instruction.
25703 $ac_cs_success ||
{ (exit 1); exit 1; }