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
744 ac_precious_vars
='build_alias
756 # Initialize some variables set by options.
758 ac_init_version
=false
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
768 program_transform_name
=s
,x
,x
,
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir
='${exec_prefix}/bin'
783 sbindir
='${exec_prefix}/sbin'
784 libexecdir
='${exec_prefix}/libexec'
785 datarootdir
='${prefix}/share'
786 datadir
='${datarootdir}'
787 sysconfdir
='${prefix}/etc'
788 sharedstatedir
='${prefix}/com'
789 localstatedir
='${prefix}/var'
790 includedir
='${prefix}/include'
791 oldincludedir
='/usr/include'
792 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir
='${datarootdir}/info'
798 libdir
='${exec_prefix}/lib'
799 localedir
='${datarootdir}/locale'
800 mandir
='${datarootdir}/man'
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\
$ac_option
814 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
824 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
826 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
829 -build |
--build |
--buil |
--bui |
--bu)
830 ac_prev
=build_alias
;;
831 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
832 build_alias
=$ac_optarg ;;
834 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
835 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
836 ac_prev
=cache_file
;;
837 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
838 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
839 cache_file
=$ac_optarg ;;
842 cache_file
=config.cache
;;
844 -datadir |
--datadir |
--datadi |
--datad)
846 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
847 datadir
=$ac_optarg ;;
849 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
850 |
--dataroo |
--dataro |
--datar)
851 ac_prev
=datarootdir
;;
852 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
853 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
854 datarootdir
=$ac_optarg ;;
856 -disable-* |
--disable-*)
857 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_
$ac_feature=no
;;
865 -docdir |
--docdir |
--docdi |
--doc |
--do)
867 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
870 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
872 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
875 -enable-* |
--enable-*)
876 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
879 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
880 { (exit 1); exit 1; }; }
881 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
882 eval enable_
$ac_feature=\
$ac_optarg ;;
884 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
885 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
886 |
--exec |
--exe |
--ex)
887 ac_prev
=exec_prefix
;;
888 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
889 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
890 |
--exec=* |
--exe=* |
--ex=*)
891 exec_prefix
=$ac_optarg ;;
893 -gas |
--gas |
--ga |
--g)
894 # Obsolete; use --with-gas.
897 -help |
--help |
--hel |
--he |
-h)
899 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
900 ac_init_help
=recursive
;;
901 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
902 ac_init_help
=short
;;
904 -host |
--host |
--hos |
--ho)
905 ac_prev
=host_alias
;;
906 -host=* |
--host=* |
--hos=* |
--ho=*)
907 host_alias
=$ac_optarg ;;
909 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
911 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
913 htmldir
=$ac_optarg ;;
915 -includedir |
--includedir |
--includedi |
--included |
--include \
916 |
--includ |
--inclu |
--incl |
--inc)
917 ac_prev
=includedir
;;
918 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
919 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
920 includedir
=$ac_optarg ;;
922 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
924 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
925 infodir
=$ac_optarg ;;
927 -libdir |
--libdir |
--libdi |
--libd)
929 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
932 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
933 |
--libexe |
--libex |
--libe)
934 ac_prev
=libexecdir
;;
935 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
936 |
--libexe=* |
--libex=* |
--libe=*)
937 libexecdir
=$ac_optarg ;;
939 -localedir |
--localedir |
--localedi |
--localed |
--locale)
941 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
942 localedir
=$ac_optarg ;;
944 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
945 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
946 ac_prev
=localstatedir
;;
947 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
948 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
949 localstatedir
=$ac_optarg ;;
951 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
953 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
957 # Obsolete; use --without-fp.
960 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
961 |
--no-cr |
--no-c |
-n)
964 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
965 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
968 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
969 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
970 |
--oldin |
--oldi |
--old |
--ol |
--o)
971 ac_prev
=oldincludedir
;;
972 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
973 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
974 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
975 oldincludedir
=$ac_optarg ;;
977 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
979 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
982 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
983 |
--program-pre |
--program-pr |
--program-p)
984 ac_prev
=program_prefix
;;
985 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
986 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
987 program_prefix
=$ac_optarg ;;
989 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
990 |
--program-suf |
--program-su |
--program-s)
991 ac_prev
=program_suffix
;;
992 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
993 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
994 program_suffix
=$ac_optarg ;;
996 -program-transform-name |
--program-transform-name \
997 |
--program-transform-nam |
--program-transform-na \
998 |
--program-transform-n |
--program-transform- \
999 |
--program-transform |
--program-transfor \
1000 |
--program-transfo |
--program-transf \
1001 |
--program-trans |
--program-tran \
1002 |
--progr-tra |
--program-tr |
--program-t)
1003 ac_prev
=program_transform_name
;;
1004 -program-transform-name=* |
--program-transform-name=* \
1005 |
--program-transform-nam=* |
--program-transform-na=* \
1006 |
--program-transform-n=* |
--program-transform-=* \
1007 |
--program-transform=* |
--program-transfor=* \
1008 |
--program-transfo=* |
--program-transf=* \
1009 |
--program-trans=* |
--program-tran=* \
1010 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1011 program_transform_name
=$ac_optarg ;;
1013 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1015 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1016 pdfdir
=$ac_optarg ;;
1018 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1020 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1023 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1024 |
-silent |
--silent |
--silen |
--sile |
--sil)
1027 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1029 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1031 sbindir
=$ac_optarg ;;
1033 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1034 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1035 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1037 ac_prev
=sharedstatedir
;;
1038 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1039 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1040 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1042 sharedstatedir
=$ac_optarg ;;
1044 -site |
--site |
--sit)
1046 -site=* |
--site=* |
--sit=*)
1049 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1051 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1052 srcdir
=$ac_optarg ;;
1054 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1055 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1056 ac_prev
=sysconfdir
;;
1057 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1058 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1059 sysconfdir
=$ac_optarg ;;
1061 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1062 ac_prev
=target_alias
;;
1063 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1064 target_alias
=$ac_optarg ;;
1066 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1069 -version |
--version |
--versio |
--versi |
--vers |
-V)
1070 ac_init_version
=: ;;
1073 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_
$ac_package=\
$ac_optarg ;;
1081 -without-* |
--without-*)
1082 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1085 { echo "$as_me: error: invalid package name: $ac_package" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1088 eval with_
$ac_package=no
;;
1091 # Obsolete; use --with-x.
1094 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1095 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1096 ac_prev
=x_includes
;;
1097 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1098 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1099 x_includes
=$ac_optarg ;;
1101 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1102 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1103 ac_prev
=x_libraries
;;
1104 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1105 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1106 x_libraries
=$ac_optarg ;;
1108 -*) { echo "$as_me: error: unrecognized option: $ac_option
1109 Try \`$0 --help' for more information." >&2
1110 { (exit 1); exit 1; }; }
1114 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1117 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1118 { (exit 1); exit 1; }; }
1119 eval $ac_envvar=\
$ac_optarg
1120 export $ac_envvar ;;
1123 # FIXME: should be removed in autoconf 3.0.
1124 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1126 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 if test -n "$ac_prev"; then
1134 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1135 { echo "$as_me: error: missing argument to $ac_option" >&2
1136 { (exit 1); exit 1; }; }
1139 # Be sure to have absolute directory names.
1140 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1141 datadir sysconfdir sharedstatedir localstatedir includedir \
1142 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1143 libdir localedir mandir
1145 eval ac_val
=\$
$ac_var
1147 [\\/$
]* | ?
:[\\/]* ) continue;;
1148 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1150 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1151 { (exit 1); exit 1; }; }
1154 # There might be people who depend on the old broken behavior: `$host'
1155 # used to hold the argument of --host etc.
1156 # FIXME: To remove some day.
1159 target
=$target_alias
1161 # FIXME: To remove some day.
1162 if test "x$host_alias" != x
; then
1163 if test "x$build_alias" = x
; then
1164 cross_compiling
=maybe
1165 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1166 If a cross compiler is detected then cross compile mode will be used." >&2
1167 elif test "x$build_alias" != "x$host_alias"; then
1173 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1175 test "$silent" = yes && exec 6>/dev
/null
1178 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1179 ac_ls_di
=`ls -di .` &&
1180 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1181 { echo "$as_me: error: Working directory cannot be determined" >&2
1182 { (exit 1); exit 1; }; }
1183 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1184 { echo "$as_me: error: pwd does not report name of working directory" >&2
1185 { (exit 1); exit 1; }; }
1188 # Find the source files, if location was not specified.
1189 if test -z "$srcdir"; then
1190 ac_srcdir_defaulted
=yes
1191 # Try the directory containing this script, then the parent directory.
1192 ac_confdir
=`$as_dirname -- "$0" ||
1193 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1194 X"$0" : 'X\(//\)[^/]' \| \
1195 X"$0" : 'X\(//\)$' \| \
1196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1220 ac_srcdir_defaulted
=no
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1224 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1225 { (exit 1); exit 1; }; }
1227 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1230 { (exit 1); exit 1; }; }
1232 # When building in place, set srcdir=.
1233 if test "$ac_abs_confdir" = "$ac_pwd"; then
1236 # Remove unnecessary trailing slashes from srcdir.
1237 # Double slashes in file names in object file debugging info
1238 # mess up M-x gdb in Emacs.
1240 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242 for ac_var
in $ac_precious_vars; do
1243 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1244 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1245 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1246 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1250 # Report the --help message.
1252 if test "$ac_init_help" = "long"; then
1253 # Omit some internal or obsolete options to make the list less imposing.
1254 # This message is too long to be a string in the A/UX 3.1 sh.
1256 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1258 Usage: $0 [OPTION]... [VAR=VALUE]...
1260 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261 VAR=VALUE. See below for descriptions of some of the useful variables.
1263 Defaults for the options are specified in brackets.
1266 -h, --help display this help and exit
1267 --help=short display options specific to this package
1268 --help=recursive display the short help of all the included packages
1269 -V, --version display version information and exit
1270 -q, --quiet, --silent do not print \`checking...' messages
1271 --cache-file=FILE cache test results in FILE [disabled]
1272 -C, --config-cache alias for \`--cache-file=config.cache'
1273 -n, --no-create do not create output files
1274 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1276 Installation directories:
1277 --prefix=PREFIX install architecture-independent files in PREFIX
1278 [$ac_default_prefix]
1279 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1282 By default, \`make install' will install all the files in
1283 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1284 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285 for instance \`--prefix=\$HOME'.
1287 For better control, use the options below.
1289 Fine tuning of the installation directories:
1290 --bindir=DIR user executables [EPREFIX/bin]
1291 --sbindir=DIR system admin executables [EPREFIX/sbin]
1292 --libexecdir=DIR program executables [EPREFIX/libexec]
1293 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1294 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1295 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1296 --libdir=DIR object code libraries [EPREFIX/lib]
1297 --includedir=DIR C header files [PREFIX/include]
1298 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1299 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1300 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1301 --infodir=DIR info documentation [DATAROOTDIR/info]
1302 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1303 --mandir=DIR man documentation [DATAROOTDIR/man]
1304 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1305 --htmldir=DIR html documentation [DOCDIR]
1306 --dvidir=DIR dvi documentation [DOCDIR]
1307 --pdfdir=DIR pdf documentation [DOCDIR]
1308 --psdir=DIR ps documentation [DOCDIR]
1314 --program-prefix=PREFIX prepend PREFIX to installed program names
1315 --program-suffix=SUFFIX append SUFFIX to installed program names
1316 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1319 --x-includes=DIR X include files are
in DIR
1320 --x-libraries=DIR X library files are
in DIR
1323 --build=BUILD configure
for building on BUILD
[guessed
]
1324 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1328 if test -n "$ac_init_help"; then
1329 case $ac_init_help in
1330 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1335 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1336 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1337 --enable-carbon-app[=DIR
]
1338 specify
install directory
for Emacs.app on Mac OS X
1340 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1341 --disable-ns-self-contained disable self contained build under NS
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful
(and
1345 sometimes confusing
) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search
for lisp files
1348 specific to this site
1349 --disable-largefile omit support
for large files
1352 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1353 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1354 --without-pop don
't support POP mail retrieval with movemail
1355 --with-kerberos support Kerberos-authenticated POP
1356 --with-kerberos5 support Kerberos version 5 authenticated POP
1357 --with-hesiod support Hesiod to get the POP server host
1358 --without-sound don't compile with sound support
1359 --without-sync-input Process async input synchronously
1360 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1362 --without-xpm don
't compile with XPM image support
1363 --without-jpeg don't compile with JPEG image support
1364 --without-tiff don
't compile with TIFF image support
1365 --without-gif don't compile with GIF image support
1366 --without-png don
't compile with PNG image support
1367 --without-rsvg don't compile with SVG image support
1368 --without-freetype don
't use Freetype for local font support
1369 --without-xft don't use XFT
for anti aliased fonts
1370 --without-libotf don
't use libotf for OpenType font support
1371 --without-m17n-flt don't use m17n-flt
for text shaping
1372 --without-toolkit-scroll-bars
1373 don
't use Motif or Xaw3d scroll bars
1374 --without-xaw3d don't use Xaw3d
1375 --without-xim don
't use X11 XIM
1376 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1377 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1378 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1380 --without-dbus don
't compile with D-Bus support
1381 --without-makeinfo don't require makeinfo
for building manuals
1383 --with-pkg-config-prog=PATH
1384 Path to pkg-config
for finding GTK and librsvg
1385 --with-x use the X Window System
1387 Some influential environment variables
:
1388 CC C compiler
command
1389 CFLAGS C compiler flags
1390 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1391 nonstandard directory
<lib dir
>
1392 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1393 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1394 you have headers
in a nonstandard directory
<include dir
>
1396 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1398 Use these variables to override the choices made by
`configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" || continue
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1415 # A ".." for each directory in $ac_dir_suffix.
1416 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1417 case $ac_top_builddir_sub in
1418 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1428 .) # We are building in place.
1430 ac_top_srcdir=$ac_top_builddir_sub
1431 ac_abs_top_srcdir=$ac_pwd ;;
1432 [\\/]* | ?:[\\/]* ) # Absolute name.
1433 ac_srcdir=$srcdir$ac_dir_suffix;
1434 ac_top_srcdir=$srcdir
1435 ac_abs_top_srcdir=$srcdir ;;
1437 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438 ac_top_srcdir=$ac_top_build_prefix$srcdir
1439 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443 cd "$ac_dir" || { ac_status=$?; continue; }
1444 # Check for guested configure.
1445 if test -f "$ac_srcdir/configure.gnu"; then
1447 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448 elif test -f "$ac_srcdir/configure"; then
1450 $SHELL "$ac_srcdir/configure" --help=recursive
1452 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 cd "$ac_pwd" || { ac_status=$?; break; }
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1461 emacs configure 23.0.60
1462 generated by GNU Autoconf 2.61
1464 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1465 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1466 This configure script is free software; the Free Software Foundation
1467 gives unlimited permission to copy, distribute and modify it.
1471 cat >config.log <<_ACEOF
1472 This file contains any messages produced by compilers while
1473 running configure, to aid debugging if configure makes a mistake.
1475 It was created by emacs $as_me 23.0.60, which was
1476 generated by GNU Autoconf 2.61. Invocation command line was
1488 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1489 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1490 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1491 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1492 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1494 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1495 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1497 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1498 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1499 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1500 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1501 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1502 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1503 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 test -z "$as_dir" && as_dir=.
1512 echo "PATH: $as_dir"
1528 # Keep a trace of the command line.
1529 # Strip out --no-create and --no-recursion so they do not pile up.
1530 # Strip out --silent because we don't want to record it for future runs.
1531 # Also quote any args containing shell meta-characters.
1532 # Make two passes to allow for proper duplicate-argument suppression.
1536 ac_must_keep_next=false
1542 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1544 | -silent | --silent | --silen | --sile | --sil)
1547 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1550 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1552 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1553 if test $ac_must_keep_next = true; then
1554 ac_must_keep_next=false # Got value, back to normal.
1557 *=* | --config-cache | -C | -disable-* | --disable-* \
1558 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1559 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1560 | -with-* | --with-* | -without-* | --without-* | --x)
1561 case "$ac_configure_args0 " in
1562 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1565 -* ) ac_must_keep_next=true ;;
1568 ac_configure_args="$ac_configure_args '$ac_arg'"
1573 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1574 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1576 # When interrupted or exit'd, cleanup temporary files, and complete
1577 # config.log. We remove comments because anyway the quotes in there
1578 # would cause problems or look ugly.
1579 # WARNING: Use '\'' to represent an apostrophe within the trap.
1580 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1581 trap 'exit_status=$?
1582 # Save into config.log some information that might help in debugging.
1587 ## ---------------- ##
1588 ## Cache variables. ##
1589 ## ---------------- ##
1592 # The following way of writing the cache mishandles newlines in values,
1594 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1595 eval ac_val=\$$ac_var
1599 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1600 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1603 _ | IFS | as_nl) ;; #(
1604 *) $as_unset $ac_var ;;
1609 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1610 *${as_nl}ac_space=\ *)
1612 "s/'\''/'\''\\\\'\'''\''/g;
1613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1624 ## ----------------- ##
1625 ## Output variables. ##
1626 ## ----------------- ##
1629 for ac_var in $ac_subst_vars
1631 eval ac_val=\$$ac_var
1633 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 echo "$ac_var='\''$ac_val'\''"
1639 if test -n "$ac_subst_files"; then
1641 ## ------------------- ##
1642 ## File substitutions. ##
1643 ## ------------------- ##
1646 for ac_var in $ac_subst_files
1648 eval ac_val=\$$ac_var
1650 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 echo "$ac_var='\''$ac_val'\''"
1657 if test -s confdefs.h; then
1667 test "$ac_signal" != 0 &&
1668 echo "$as_me: caught signal $ac_signal"
1669 echo "$as_me: exit $exit_status"
1671 rm -f core *.core core.conftest.* &&
1672 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1675 for ac_signal in 1 2 13 15; do
1676 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1680 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1681 rm -f -r conftest* confdefs.h
1683 # Predefined preprocessor variables.
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_NAME "$PACKAGE_NAME"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_STRING "$PACKAGE_STRING"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1710 # Let the site file select an alternate cache file if it wants to.
1711 # Prefer explicitly selected file to automatically selected ones.
1712 if test -n "$CONFIG_SITE"; then
1713 set x "$CONFIG_SITE"
1714 elif test "x$prefix" != xNONE; then
1715 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1717 set x "$ac_default_prefix/share/config.site" \
1718 "$ac_default_prefix/etc/config.site"
1723 if test -r "$ac_site_file"; then
1724 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1725 echo "$as_me: loading site script $ac_site_file" >&6;}
1726 sed 's/^/| /' "$ac_site_file" >&5
1731 if test -r "$cache_file"; then
1732 # Some versions of bash will fail to source /dev/null (special
1733 # files actually), so we avoid doing that.
1734 if test -f "$cache_file"; then
1735 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1736 echo "$as_me: loading cache $cache_file" >&6;}
1738 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1739 *) . "./$cache_file";;
1743 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1744 echo "$as_me: creating cache $cache_file" >&6;}
1748 ac_header_list="$ac_header_list sys/time.h"
1749 ac_header_list="$ac_header_list unistd.h"
1750 ac_func_list="$ac_func_list alarm"
1751 # Check that the precious variables saved in the cache have kept the same
1753 ac_cache_corrupted=false
1754 for ac_var in $ac_precious_vars; do
1755 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1756 eval ac_new_set=\$ac_env_${ac_var}_set
1757 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1758 eval ac_new_val=\$ac_env_${ac_var}_value
1759 case $ac_old_set,$ac_new_set in
1761 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1762 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1763 ac_cache_corrupted=: ;;
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1766 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1770 if test "x$ac_old_val" != "x$ac_new_val"; then
1771 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1772 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1773 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1774 echo "$as_me: former value
: $ac_old_val" >&2;}
1775 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1776 echo "$as_me: current value
: $ac_new_val" >&2;}
1777 ac_cache_corrupted=:
1780 # Pass precious variables to config.status.
1781 if test "$ac_new_set" = set; then
1783 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1784 *) ac_arg=$ac_var=$ac_new_val ;;
1786 case " $ac_configure_args " in
1787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1788 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1792 if $ac_cache_corrupted; then
1793 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1794 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1795 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1796 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1797 { (exit 1); exit 1; }; }
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1835 test "$program_prefix" != NONE &&
1836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1837 # Use a double $ so make ignores it.
1838 test "$program_suffix" != NONE &&
1839 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1840 # Double any \ or $. echo might interpret backslashes.
1841 # By default was `s
,x
,x
', remove it if useless.
1842 cat <<\_ACEOF >conftest.sed
1843 s/[\\$]/&&/g;s/;s,x,x,$//
1845 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1849 lispdir='${datadir}/emacs
/${version}/lisp
'
1850 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1851 '${datadir}/emacs
/site-lisp
'
1852 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1853 etcdir='${datadir}/emacs
/${version}/etc
'
1854 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1855 docdir='${datadir}/emacs
/${version}/etc
'
1856 gamedir='${localstatedir}/games
/emacs
'
1863 # Check whether --with-pop was given.
1864 if test "${with_pop+set}" = set; then
1870 if test "$with_pop" = yes; then
1871 cat >>confdefs.h <<\_ACEOF
1872 #define MAIL_USE_POP 1
1879 # Check whether --with-kerberos was given.
1880 if test "${with_kerberos+set}" = set; then
1881 withval=$with_kerberos;
1886 if test "$with_kerberos" != no; then
1887 cat >>confdefs.h <<\_ACEOF
1895 # Check whether --with-kerberos5 was given.
1896 if test "${with_kerberos5+set}" = set; then
1897 withval=$with_kerberos5;
1902 if test "${with_kerberos5}" != no; then
1903 if test "${with_kerberos}" = no; then
1905 cat >>confdefs.h <<\_ACEOF
1911 cat >>confdefs.h <<\_ACEOF
1918 # Check whether --with-hesiod was given.
1919 if test "${with_hesiod+set}" = set; then
1920 withval=$with_hesiod;
1925 if test "$with_hesiod" != no; then
1927 cat >>confdefs.h <<\_ACEOF
1934 # Check whether --with-sound was given.
1935 if test "${with_sound+set}" = set; then
1936 withval=$with_sound;
1943 # Check whether --with-sync-input was given.
1944 if test "${with_sync_input+set}" = set; then
1945 withval=$with_sync_input;
1950 if test "$with_sync_input" = yes; then
1952 cat >>confdefs.h <<\_ACEOF
1953 #define SYNC_INPUT 1
1959 # Check whether --with-x-toolkit was given.
1960 if test "${with_x_toolkit+set}" = set; then
1961 withval=$with_x_toolkit; case "${withval}" in
1962 y | ye | yes ) val=gtk ;;
1964 l | lu | luc | luci | lucid ) val=lucid ;;
1965 a | at | ath | athe | athen | athena ) val=athena ;;
1966 m | mo | mot | moti | motif ) val=motif ;;
1967 g | gt | gtk ) val=gtk ;;
1969 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1970 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1971 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1972 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1973 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1974 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1975 { (exit 1); exit 1; }; }
1984 # Check whether --with-xpm was given.
1985 if test "${with_xpm+set}" = set; then
1992 # Check whether --with-jpeg was given.
1993 if test "${with_jpeg+set}" = set; then
2000 # Check whether --with-tiff was given.
2001 if test "${with_tiff+set}" = set; then
2008 # Check whether --with-gif was given.
2009 if test "${with_gif+set}" = set; then
2016 # Check whether --with-png was given.
2017 if test "${with_png+set}" = set; then
2024 # Check whether --with-rsvg was given.
2025 if test "${with_rsvg+set}" = set; then
2033 # Check whether --with-freetype was given.
2034 if test "${with_freetype+set}" = set; then
2035 withval=$with_freetype;
2041 # Check whether --with-xft was given.
2042 if test "${with_xft+set}" = set; then
2049 # Check whether --with-libotf was given.
2050 if test "${with_libotf+set}" = set; then
2051 withval=$with_libotf;
2057 # Check whether --with-m17n-flt was given.
2058 if test "${with_m17n_flt+set}" = set; then
2059 withval=$with_m17n_flt;
2066 # Check whether --with-toolkit-scroll-bars was given.
2067 if test "${with_toolkit_scroll_bars+set}" = set; then
2068 withval=$with_toolkit_scroll_bars;
2070 with_toolkit_scroll_bars=yes
2074 # Check whether --with-xaw3d was given.
2075 if test "${with_xaw3d+set}" = set; then
2076 withval=$with_xaw3d;
2082 # Check whether --with-xim was given.
2083 if test "${with_xim+set}" = set; then
2090 # Check whether --with-carbon was given.
2091 if test "${with_carbon+set}" = set; then
2092 withval=$with_carbon;
2098 # Check whether --with-ns was given.
2099 if test "${with_ns+set}" = set; then
2107 # Check whether --with-gpm was given.
2108 if test "${with_gpm+set}" = set; then
2115 # Check whether --with-dbus was given.
2116 if test "${with_dbus+set}" = set; then
2123 ## For the times when you want to build Emacs but don't have
2124 ## a suitable makeinfo, and can live without the manuals.
2126 # Check whether --with-makeinfo was given.
2127 if test "${with_makeinfo+set}" = set; then
2128 withval
=$with_makeinfo;
2135 # Check whether --with-gtk was given.
2136 if test "${with_gtk+set}" = set; then
2137 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2138 specify a toolkit." >&5
2139 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2140 specify a toolkit." >&2;}
2141 { (exit 1); exit 1; }; }
2146 # Check whether --with-gcc was given.
2147 if test "${with_gcc+set}" = set; then
2148 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2149 variable to specify a compiler." >&5
2150 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2151 variable to specify a compiler." >&2;}
2152 { (exit 1); exit 1; }; }
2157 # Check whether --with-pkg-config-prog was given.
2158 if test "${with_pkg_config_prog+set}" = set; then
2159 withval
=$with_pkg_config_prog;
2162 if test "X${with_pkg_config_prog}" != X
; then
2163 if test "${with_pkg_config_prog}" != yes; then
2164 PKG_CONFIG
="${with_pkg_config_prog}"
2168 # Check whether --enable-carbon-app was given.
2169 if test "${enable_carbon_app+set}" = set; then
2170 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2174 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2175 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2176 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=yes
2178 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2182 # Check whether --enable-ns-self-contained was given.
2183 if test "${enable_ns_self_contained+set}" = set; then
2184 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=no
2186 EN_NS_SELF_CONTAINED
=yes
2190 # Check whether --enable-asserts was given.
2191 if test "${enable_asserts+set}" = set; then
2192 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2198 # Check whether --enable-maintainer-mode was given.
2199 if test "${enable_maintainer_mode+set}" = set; then
2200 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2202 USE_MAINTAINER_MODE
=no
2205 if test $USE_MAINTAINER_MODE = yes; then
2212 # Check whether --enable-locallisppath was given.
2213 if test "${enable_locallisppath+set}" = set; then
2214 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2216 elif test "${enableval}" != "yes"; then
2217 locallisppath
=${enableval}
2222 #### Make srcdir absolute, if it isn't already. It's important to
2223 #### avoid running the path through pwd unnecessarily, since pwd can
2224 #### give you automounter prefixes, which can go away. We do all this
2225 #### so Emacs can find its files when run uninstalled.
2226 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2231 ## We may be able to use the $PWD environment variable to make this
2232 ## absolute. But sometimes PWD is inaccurate.
2233 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2234 ## but that tested only for a well-formed and valid PWD,
2235 ## it did not object when PWD was well-formed and valid but just wrong.
2236 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2240 srcdir
="`(cd ${srcdir}; pwd)`"
2243 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2246 #### Check if the source directory already has a configured system in it.
2247 if test `pwd` != `(cd ${srcdir} && pwd)` \
2248 && test -f "${srcdir}/src/config.h" ; then
2249 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2250 as a build directory right now; it has been configured in its own
2251 right. To configure in another directory as well, you MUST
2252 use GNU make. If you do not have GNU make, then you must
2253 now do \`make distclean' in ${srcdir},
2254 and then run $0 again." >&5
2255 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2256 as a build directory right now; it has been configured in its own
2257 right. To configure in another directory as well, you MUST
2258 use GNU make. If you do not have GNU make, then you must
2259 now do \`make distclean' in ${srcdir},
2260 and then run $0 again." >&2;}
2263 #### Given the configuration name, set machfile and opsysfile to the
2264 #### names of the m/*.h and s/*.h files we should use.
2266 ### Canonicalize the configuration name.
2269 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2270 if test -f "$ac_dir/install-sh"; then
2272 ac_install_sh
="$ac_aux_dir/install-sh -c"
2274 elif test -f "$ac_dir/install.sh"; then
2276 ac_install_sh
="$ac_aux_dir/install.sh -c"
2278 elif test -f "$ac_dir/shtool"; then
2280 ac_install_sh
="$ac_aux_dir/shtool install -c"
2284 if test -z "$ac_aux_dir"; then
2285 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2286 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2287 { (exit 1); exit 1; }; }
2290 # These three variables are undocumented and unsupported,
2291 # and are intended to be withdrawn in a future Autoconf release.
2292 # They can cause serious problems if a builder's source tree is in a directory
2293 # whose full name contains unusual characters.
2294 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2295 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2296 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2299 # Make sure we can run config.sub.
2300 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2301 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2302 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2303 { (exit 1); exit 1; }; }
2305 { echo "$as_me:$LINENO: checking build system type" >&5
2306 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2307 if test "${ac_cv_build+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 ac_build_alias
=$build_alias
2311 test "x$ac_build_alias" = x
&&
2312 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2313 test "x$ac_build_alias" = x
&&
2314 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2315 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2316 { (exit 1); exit 1; }; }
2317 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2318 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2319 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2320 { (exit 1); exit 1; }; }
2323 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2324 echo "${ECHO_T}$ac_cv_build" >&6; }
2325 case $ac_cv_build in
2327 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2328 echo "$as_me: error: invalid value of canonical build" >&2;}
2329 { (exit 1); exit 1; }; };;
2332 ac_save_IFS
=$IFS; IFS
='-'
2338 # Remember, the first character of IFS is used to create $*,
2339 # except with old shells:
2342 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2345 { echo "$as_me:$LINENO: checking host system type" >&5
2346 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2347 if test "${ac_cv_host+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 if test "x$host_alias" = x
; then
2351 ac_cv_host
=$ac_cv_build
2353 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2354 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2355 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2356 { (exit 1); exit 1; }; }
2360 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2361 echo "${ECHO_T}$ac_cv_host" >&6; }
2364 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2365 echo "$as_me: error: invalid value of canonical host" >&2;}
2366 { (exit 1); exit 1; }; };;
2369 ac_save_IFS
=$IFS; IFS
='-'
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2379 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2383 configuration
=${host_alias-${build_alias-$host}}
2387 ### If you add support for a new configuration, add code to this
2388 ### switch statement to recognize your configuration name and select
2389 ### the appropriate operating system and machine description files.
2391 ### You would hope that you could choose an m/*.h file pretty much
2392 ### based on the machine portion of the configuration name, and an s-
2393 ### file based on the operating system portion. However, it turns out
2394 ### that each m/*.h file is pretty manufacturer-specific - for
2395 ### example mips.h is MIPS
2396 ### So we basically have to have a special case for each
2397 ### configuration name.
2399 ### As far as handling version numbers on operating systems is
2400 ### concerned, make sure things will fail in a fixable way. If
2401 ### /etc/MACHINES doesn't say anything about version numbers, be
2402 ### prepared to handle anything reasonably. If version numbers
2403 ### matter, be sure /etc/MACHINES says something about it.
2405 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2406 ### "System V Release 4"; he writes, "The old convention encouraged
2407 ### confusion between `system' and `release' levels'."
2409 machine
='' opsys
='' unported
=no
2410 case "${canonical}" in
2415 case "${canonical}" in
2416 alpha
*-*-freebsd*) machine
=alpha
;;
2417 arm
*-*-freebsd*) machine
=arm
;;
2418 ia64-
*-freebsd*) machine
=ia64
;;
2419 sparc-
*-freebsd*) machine
=sparc
;;
2420 sparc64-
*-freebsd*) machine
=sparc
;;
2421 powerpc-
*-freebsd*) machine
=macppc
;;
2422 i
[3456]86-*-freebsd*) machine
=intel386
;;
2423 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2427 ## FreeBSD kernel + glibc based userland
2430 case "${canonical}" in
2431 alpha
*-*-kfreebsd*) machine
=alpha
;;
2432 ia64-
*-kfreebsd*) machine
=ia64
;;
2433 sparc-
*-kfreebsd*) machine
=sparc
;;
2434 sparc64-
*-kfreebsd*) machine
=sparc
;;
2435 powerpc-
*-kfreebsd*) machine
=macppc
;;
2436 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2437 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2444 if test -f /usr
/lib
/crti.o
; then
2446 cat >>confdefs.h
<<\_ACEOF
2452 case "${canonical}" in
2453 alpha
*-*-netbsd*) machine
=alpha
;;
2454 i
[3456]86-*-netbsd*) machine
=intel386
;;
2455 powerpc-
*-netbsd*) machine
=macppc
;;
2456 sparc
*-*-netbsd*) machine
=sparc
;;
2457 vax-
*-netbsd*) machine
=vax
;;
2458 arm-
*-netbsd*) machine
=arm
;;
2459 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2460 hppa-
*-netbsd*) machine
=hp800
;;
2467 case "${canonical}" in
2468 alpha
*-*-openbsd*) machine
=alpha
;;
2469 arm-
*-openbsd*) machine
=arm
;;
2470 i386-
*-openbsd*) machine
=intel386
;;
2471 powerpc-
*-openbsd*) machine
=macppc
;;
2472 sparc
*-*-openbsd*) machine
=sparc
;;
2473 vax-
*-openbsd*) machine
=vax
;;
2474 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2481 case "${canonical}" in
2482 i
[3456]86-*-lynxos*) machine
=intel386
;;
2483 powerpc-
*-lynxos*) machine
=powerpc
;;
2487 alpha
*-*-linux-gnu* )
2488 machine
=alpha opsys
=gnu-linux
2492 machine
=arm opsys
=gnu-linux
2495 ## Apple Darwin / Mac OS X
2497 case "${canonical}" in
2498 i
[3456]86-* ) machine
=intel386
;;
2499 powerpc-
* ) machine
=macppc
;;
2503 # Define CPP as follows to make autoconf work correctly.
2504 CPP
="${CC-cc} -E -no-cpp-precomp"
2505 # Use fink packages if available.
2506 if test -d /sw
/include
&& test -d /sw
/lib
; then
2507 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2508 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2509 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2513 ## HP 9000 series 700 and 800, running HP/UX
2514 hppa
*-hp-hpux10.2
* )
2515 machine
=hp800 opsys
=hpux10-20
2517 hppa
*-hp-hpux1[1-9]* )
2518 machine
=hp800 opsys
=hpux11
2519 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2522 hppa
*-*-linux-gnu* )
2523 machine
=hp800 opsys
=gnu-linux
2528 machine
=ibms390 opsys
=gnu-linux
2530 s390x-
*-linux-gnu* )
2531 machine
=ibms390x opsys
=gnu-linux
2533 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2534 machine
=ibmrs6000 opsys
=aix4-2
2536 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2537 machine
=ibmrs6000 opsys
=aix4-2
2539 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2540 machine
=ibmrs6000 opsys
=aix4-2
2542 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2543 machine
=ibmrs6000 opsys
=aix4-2
2546 ## Macintosh PowerPC
2547 powerpc
*-*-linux-gnu* )
2548 machine
=macppc opsys
=gnu-linux
2551 ## Silicon Graphics machines
2554 machine
=iris4d opsys
=irix6-5
2555 # Without defining _LANGUAGE_C, things get masked out in the headers
2556 # so that, for instance, grepping for `free' in stdlib.h fails and
2557 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2558 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2559 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2563 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2564 machine
=sparc opsys
=gnu-linux
2568 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2569 | rs6000-
*-solaris2*)
2570 case "${canonical}" in
2571 i
[3456]86-*-* ) machine
=intel386
;;
2572 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2573 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2574 sparc
* ) machine
=sparc
;;
2577 case "${canonical}" in
2578 *-sunos5.3
* |
*-solaris2.3
* )
2580 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2582 *-sunos5.4
* |
*-solaris2.4
* )
2584 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2587 *-sunos5.5
* |
*-solaris2.5
* )
2589 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2592 *-sunos5.6
* |
*-solaris2.6
* )
2594 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2597 *-sunos5* |
*-solaris* )
2599 emacs_check_sunpro_c
=yes
2600 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2603 ## Watch out for a compiler that we know will not work.
2604 case "${canonical}" in
2605 *-solaris* |
*-sunos5* )
2606 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2607 ## /usr/ucb/cc doesn't work;
2608 ## we should find some other compiler that does work.
2619 case "${canonical}" in
2620 *-vms* ) opsys
=vms
;;
2627 machine
=ia64 opsys
=gnu-linux
2630 ## Intel 386 machines where we don't care about the manufacturer
2633 case "${canonical}" in
2634 *-cygwin ) opsys
=cygwin
;;
2635 *-darwin* ) opsys
=darwin
2636 CPP
="${CC-cc} -E -no-cpp-precomp"
2638 *-linux-gnu* ) opsys
=gnu-linux
;;
2639 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2640 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2641 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2642 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2646 ## m68k Linux-based GNU system
2648 machine
=m68k opsys
=gnu-linux
2651 ## Mips Linux-based GNU system
2652 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2653 machine
=mips opsys
=gnu-linux
2656 ## AMD x86-64 Linux-based GNU system
2657 x86_64-
*-linux-gnu* )
2658 machine
=amdx86-64 opsys
=gnu-linux
2661 ## Tensilica Xtensa Linux-based GNU system
2662 xtensa
*-*-linux-gnu* )
2663 machine
=xtensa opsys
=gnu-linux
2671 ### If the code above didn't choose an operating system, just choose
2672 ### an operating system based on the configuration name. You really
2673 ### only want to use this when you have no idea what the right
2674 ### operating system is; if you know what operating systems a machine
2675 ### runs, it's cleaner to make it explicit in the case statement
2677 if test x
"${opsys}" = x
; then
2678 case "${canonical}" in
2679 *-gnu* ) opsys
=gnu
;;
2680 *-sysv4.2uw
* ) opsys
=unixware
;;
2681 *-sysv5uw* ) opsys
=unixware
;;
2682 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2683 *-sysv4.1
* |
*-sysvr4.1
* )
2684 NON_GNU_CPP
=/usr
/lib
/cpp
2686 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2687 if [ x
$NON_GNU_CPP = x
]; then
2688 if [ -f /usr
/ccs
/lib
/cpp
]; then
2689 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2691 NON_GNU_CPP
=/lib
/cpp
2695 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2704 if test $unported = yes; then
2705 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2706 Check \`etc/MACHINES' for recognized configuration names." >&5
2707 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2708 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2709 { (exit 1); exit 1; }; }
2712 machfile
="m/${machine}.h"
2713 opsysfile
="s/${opsys}.h"
2716 #### Choose a compiler.
2717 test -n "$CC" && cc_specified
=yes
2719 # Save the value of CFLAGS that the user specified.
2720 SPECIFIED_CFLAGS
="$CFLAGS"
2723 ac_cpp
='$CPP $CPPFLAGS'
2724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC
="$CC" # Let the user override the test.
2738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir
=.
2743 for ac_exec_ext
in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2766 if test -z "$ac_cv_prog_CC"; then
2768 # Extract the first word of "gcc", so it can be a program name with args.
2769 set dummy gcc
; ac_word
=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir
=.
2783 for ac_exec_ext
in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC
="gcc"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798 echo "${ECHO_T}$ac_ct_CC" >&6; }
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2804 if test "x$ac_ct_CC" = x
; then
2807 case $cross_compiling:$ac_tool_warned in
2809 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet. If you think this
2811 configuration is useful to you, please write to autoconf@gnu.org." >&5
2812 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2815 ac_tool_warned
=yes ;;
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC
="$CC" # Let the user override the test.
2835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2839 test -z "$as_dir" && as_dir
=.
2840 for ac_exec_ext
in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 if test -n "$CC"; then
2854 { echo "$as_me:$LINENO: result: $CC" >&5
2855 echo "${ECHO_T}$CC" >&6; }
2857 { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2864 if test -z "$CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc
; ac_word
=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC
="$CC" # Let the user override the test.
2876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir
=.
2881 for ac_exec_ext
in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884 ac_prog_rejected
=yes
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 if test $ac_prog_rejected = yes; then
2896 # We found a bogon in the path, so make sure we never use it.
2897 set dummy
$ac_cv_prog_CC
2899 if test $# != 0; then
2900 # We chose a different compiler from the bogus one.
2901 # However, it has the same basename, so the bogon will be chosen
2902 # first if we set CC to just the basename; use the full file name.
2904 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog
in cl.exe
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC
="$CC" # Let the user override the test.
2934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir
=.
2939 for ac_exec_ext
in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 if test -n "$CC"; then
2953 { echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6; }
2956 { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2961 test -n "$CC" && break
2964 if test -z "$CC"; then
2966 for ac_prog
in cl.exe
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy
$ac_prog; ac_word
=$2
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir
=.
2983 for ac_exec_ext
in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_CC
="$ac_prog"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2998 echo "${ECHO_T}$ac_ct_CC" >&6; }
3000 { echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6; }
3005 test -n "$ac_ct_CC" && break
3008 if test "x$ac_ct_CC" = x
; then
3011 case $cross_compiling:$ac_tool_warned in
3013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3014 whose name does not start with the host triplet. If you think this
3015 configuration is useful to you, please write to autoconf@gnu.org." >&5
3016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3017 whose name does not start with the host triplet. If you think this
3018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3019 ac_tool_warned
=yes ;;
3028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: no acceptable C compiler found in \$PATH
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3034 # Provide some information about the compiler.
3035 echo "$as_me:$LINENO: checking for C compiler version" >&5
3036 ac_compiler
=`set X $ac_compile; echo $2`
3037 { (ac_try
="$ac_compiler --version >&5"
3039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compiler --version >&5") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (ac_try="$ac_compiler -v >&5"
3049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3050 *) ac_try_echo
=$ac_try;;
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compiler -v >&5") 2>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3057 { (ac_try
="$ac_compiler -V >&5"
3059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compiler -V >&5") 2>&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }
3068 cat >conftest.$ac_ext <<_ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3088 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3089 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3090 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3092 # List of possible output files, starting from the most likely.
3093 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3094 # only as a last resort. b.out is created by i960 compilers.
3095 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3097 # The IRIX 6 linker writes into existing files which may not be
3098 # executable, retaining their permissions. Remove them first so a
3099 # subsequent execution test works.
3101 for ac_file in $ac_files
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3110 if { (ac_try="$ac_link_default"
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_link_default") 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
3120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3123 # so that the user can short-circuit this test for compilers unknown to
3125 for ac_file
in $ac_files ''
3127 test -f "$ac_file" ||
continue
3129 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3132 # We found the default executable, but exeext='' is most
3136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3138 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3140 # We set ac_cv_exeext here because the later test for it is not
3141 # safe: cross compilers may not add the suffix if given an `-o'
3142 # argument, so we may need to know it at that point already.
3143 # Even if this section looks crufty: it has the advantage of
3150 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3156 { echo "$as_me:$LINENO: result: $ac_file" >&5
3157 echo "${ECHO_T}$ac_file" >&6; }
3158 if test -z "$ac_file"; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.
$ac_ext >&5
3162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C compiler cannot create executables
3165 See \`config.log' for more details." >&2;}
3166 { (exit 77); exit 77; }; }
3169 ac_exeext
=$ac_cv_exeext
3171 # Check that the compiler produces executables we can run. If not, either
3172 # the compiler is broken, or we cross compile.
3173 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3174 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3175 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3176 # If not cross compiling, check that we can run a simple program.
3177 if test "$cross_compiling" != yes; then
3178 if { ac_try
='./$ac_file'
3179 { (case "(($ac_try" in
3180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3190 if test "$cross_compiling" = maybe; then
3193 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3194 If you meant to cross compile, use \`--host'.
3195 See \`config.log' for more details.
" >&5
3196 echo "$as_me: error
: cannot run C compiled programs.
3197 If you meant to cross compile
, use \
`--host'.
3198 See \`config.log
' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3203 { echo "$as_me:$LINENO: result: yes" >&5
3204 echo "${ECHO_T}yes" >&6; }
3206 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3207 ac_clean_files=$ac_clean_files_save
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3211 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3212 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3213 echo "${ECHO_T}$cross_compiling" >&6; }
3215 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3216 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3217 if { (ac_try="$ac_link"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link") 2>&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; then
3227 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3228 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3229 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3231 for ac_file
in conftest.exe conftest conftest.
*; do
3232 test -f "$ac_file" ||
continue
3234 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3235 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3248 rm -f conftest
$ac_cv_exeext
3249 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3250 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3252 rm -f conftest.
$ac_ext
3253 EXEEXT
=$ac_cv_exeext
3255 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3256 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3257 if test "${ac_cv_objext+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 cat >conftest.
$ac_ext <<_ACEOF
3263 cat confdefs.h
>>conftest.
$ac_ext
3264 cat >>conftest.
$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3275 rm -f conftest.o conftest.obj
3276 if { (ac_try
="$ac_compile"
3278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; then
3286 for ac_file in conftest.o conftest.obj conftest.*; do
3287 test -f "$ac_file" || continue;
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3299 See \`config.log
' for more details." >&5
3300 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details.
" >&2;}
3302 { (exit 1); exit 1; }; }
3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3307 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3308 echo "${ECHO_T}$ac_cv_objext" >&6; }
3309 OBJEXT=$ac_cv_objext
3311 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3312 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3313 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3314 echo $ECHO_N "(cached
) $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3353 echo "$as_me: failed program was
:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3363 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3365 GCC=`test $ac_compiler_gnu = yes && echo yes`
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3369 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3370 if test "${ac_cv_prog_cc_g+set}" = set; then
3371 echo $ECHO_N "(cached
) $ECHO_C" >&6
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3377 cat >conftest.$ac_ext <<_ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3392 rm -f conftest.$ac_objext
3393 if { (ac_try="$ac_compile"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3405 (exit $ac_status); } && {
3406 test -z "$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 } && test -s conftest.$ac_objext; then
3411 echo "$as_me: failed program was
:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3449 echo "$as_me: failed program was
:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3488 echo "$as_me: failed program was
:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3503 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3505 if test "$ac_test_CFLAGS" = set; then
3506 CFLAGS=$ac_save_CFLAGS
3507 elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3514 if test "$GCC" = yes; then
3520 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3521 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3522 if test "${ac_cv_prog_cc_c89+set}" = set; then
3523 echo $ECHO_N "(cached
) $ECHO_C" >&6
3525 ac_cv_prog_cc_c89=no
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3535 #include <sys/types.h>
3536 #include <sys/stat.h>
3537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3538 struct buf { int x; };
3539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3540 static char *e (p, i)
3546 static char *f (char * (*g) (char **, int), char **p, ...)
3551 s = g (p, va_arg (v,int));
3556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3557 function prototypes and stuff, but not '\xHH' hex character constants.
3558 These don't provoke an error unfortunately, instead are silently treated
3559 as 'x'. The following induces an error, until -std is added to get
3560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3561 array size at least. It's necessary to write '\x00'==0 to get something
3562 that's true only with -std. */
3563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3566 inside strings and character constants. */
3568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3570 int test (int i, double x);
3571 struct s1 {int (*f) (int a);};
3572 struct s2 {int (*f) (double a);};
3573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3585 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3587 CC="$ac_save_CC $ac_arg"
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3601 (exit $ac_status); } && {
3602 test -z "$ac_c_werror_flag" ||
3603 test ! -s conftest.err
3604 } && test -s conftest.$ac_objext; then
3605 ac_cv_prog_cc_c89=$ac_arg
3607 echo "$as_me: failed program was
:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3613 rm -f core conftest.err conftest.$ac_objext
3614 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3616 rm -f conftest.$ac_ext
3621 case "x
$ac_cv_prog_cc_c89" in
3623 { echo "$as_me:$LINENO: result
: none needed
" >&5
3624 echo "${ECHO_T}none needed
" >&6; } ;;
3626 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3627 echo "${ECHO_T}unsupported
" >&6; } ;;
3629 CC="$CC $ac_cv_prog_cc_c89"
3630 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3631 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3647 ## If not using gcc, and on Solaris, and no CPP specified, see if
3648 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3649 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3650 test x"$CPP" = x; then
3651 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3652 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3654 if test "${emacs_cv_sunpro_c+set}" = set; then
3655 echo $ECHO_N "(cached
) $ECHO_C" >&6
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3675 rm -f conftest.$ac_objext conftest$ac_exeext
3676 if { (ac_try="$ac_link"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_link") 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest$ac_exeext &&
3692 $as_test_x conftest$ac_exeext; then
3693 emacs_cv_sunpro_c=yes
3695 echo "$as_me: failed program was
:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 emacs_cv_sunpro_c=no
3701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3702 conftest$ac_exeext conftest.$ac_ext
3705 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3706 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3708 if test x"$emacs_cv_sunpro_c" = xyes; then
3709 NON_GNU_CPP="$CC -E -Xs"
3713 #### Some systems specify a CPP to use unless we are using GCC.
3714 #### Now that we know whether we are using GCC, we can decide whether
3715 #### to use that one.
3716 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3721 #### Some systems specify a CC to use unless we are using GCC.
3722 #### Now that we know whether we are using GCC, we can decide whether
3723 #### to use that one.
3724 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3725 test x$cc_specified != xyes
3730 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3732 CC="$CC $GCC_TEST_OPTIONS"
3735 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3737 CC="$CC $NON_GCC_TEST_OPTIONS"
3741 cat >>confdefs.h <<\_ACEOF
3742 #define _GNU_SOURCE 1
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3752 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3757 if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then
3759 echo $ECHO_N "(cached
) $ECHO_C" >&6
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3765 for ac_c_preproc_warn_flag in '' yes
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error
" is here to catch this case.
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3780 # include <limits.h>
3782 # include <assert.h>
3786 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3792 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3798 (exit $ac_status); } >/dev/null && {
3799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3804 echo "$as_me: failed program was
:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 # Broken: fails on valid input.
3811 rm -f conftest.err conftest.$ac_ext
3813 # OK, works on sane cases. Now check whether nonexistent headers
3814 # can be detected and how.
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 #include <ac_nonexistent.h>
3823 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3835 (exit $ac_status); } >/dev/null && {
3836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3837 test ! -s conftest.err
3839 # Broken: success on invalid input.
3842 echo "$as_me: failed program was
:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 # Passes both tests.
3850 rm -f conftest.err conftest.$ac_ext
3853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854 rm -f conftest.err conftest.$ac_ext
3855 if $ac_preproc_ok; then
3867 { echo "$as_me:$LINENO: result
: $CPP" >&5
3868 echo "${ECHO_T}$CPP" >&6; }
3870 for ac_c_preproc_warn_flag in '' yes
3872 # Use a header file that comes with gcc, so configuring glibc
3873 # with a fresh cross-compiler works.
3874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875 # <limits.h> exists even on freestanding compilers.
3876 # On the NeXT, cc -E runs the code through the compiler's parser,
3877 # not just through cpp. "Syntax error
" is here to catch this case.
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 # include <limits.h>
3887 # include <assert.h>
3891 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3903 (exit $ac_status); } >/dev/null && {
3904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3909 echo "$as_me: failed program was
:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3912 # Broken: fails on valid input.
3916 rm -f conftest.err conftest.$ac_ext
3918 # OK, works on sane cases. Now check whether nonexistent headers
3919 # can be detected and how.
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3928 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3940 (exit $ac_status); } >/dev/null && {
3941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3944 # Broken: success on invalid input.
3947 echo "$as_me: failed program was
:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 # Passes both tests.
3955 rm -f conftest.err conftest.$ac_ext
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then
3963 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3964 See \
`config.log' for more details." >&5
3965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log
' for more details." >&2;}
3967 { (exit 1); exit 1; }; }
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3973 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3978 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3979 if test "${ac_cv_path_GREP+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 # Extract the first word of "grep ggrep" to use in msg output
3983 if test -z "$GREP"; then
3984 set dummy grep ggrep; ac_prog_name=$2
3985 if test "${ac_cv_path_GREP+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 ac_path_GREP_found=false
3989 # Loop through the user's path and
test for each of PROGNAME-LIST
3990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3991 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3994 test -z "$as_dir" && as_dir
=.
3995 for ac_prog
in grep ggrep
; do
3996 for ac_exec_ext
in '' $ac_executable_extensions; do
3997 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3999 # Check for GNU ac_path_GREP and select it if it is found.
4000 # Check for GNU $ac_path_GREP
4001 case `"$ac_path_GREP" --version 2>&1` in
4003 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4006 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4009 cat "conftest.in" "conftest.in" >"conftest.tmp"
4010 mv "conftest.tmp" "conftest.in"
4011 cp "conftest.in" "conftest.nl"
4012 echo 'GREP' >> "conftest.nl"
4013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4014 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4015 ac_count
=`expr $ac_count + 1`
4016 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4017 # Best one so far, save it but keep looking for a better one
4018 ac_cv_path_GREP
="$ac_path_GREP"
4019 ac_path_GREP_max
=$ac_count
4021 # 10*(2^10) chars as input seems more than enough
4022 test $ac_count -gt 10 && break
4024 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4028 $ac_path_GREP_found && break 3
4038 GREP
="$ac_cv_path_GREP"
4039 if test -z "$GREP"; then
4040 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4042 { (exit 1); exit 1; }; }
4046 ac_cv_path_GREP
=$GREP
4051 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4052 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4053 GREP
="$ac_cv_path_GREP"
4056 { echo "$as_me:$LINENO: checking for egrep" >&5
4057 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4058 if test "${ac_cv_path_EGREP+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4062 then ac_cv_path_EGREP
="$GREP -E"
4064 # Extract the first word of "egrep" to use in msg output
4065 if test -z "$EGREP"; then
4066 set dummy
egrep; ac_prog_name
=$2
4067 if test "${ac_cv_path_EGREP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 ac_path_EGREP_found
=false
4071 # Loop through the user's path and test for each of PROGNAME-LIST
4072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4073 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4076 test -z "$as_dir" && as_dir
=.
4077 for ac_prog
in egrep; do
4078 for ac_exec_ext
in '' $ac_executable_extensions; do
4079 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4080 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4081 # Check for GNU ac_path_EGREP and select it if it is found.
4082 # Check for GNU $ac_path_EGREP
4083 case `"$ac_path_EGREP" --version 2>&1` in
4085 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4088 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4091 cat "conftest.in" "conftest.in" >"conftest.tmp"
4092 mv "conftest.tmp" "conftest.in"
4093 cp "conftest.in" "conftest.nl"
4094 echo 'EGREP' >> "conftest.nl"
4095 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4096 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4097 ac_count
=`expr $ac_count + 1`
4098 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4099 # Best one so far, save it but keep looking for a better one
4100 ac_cv_path_EGREP
="$ac_path_EGREP"
4101 ac_path_EGREP_max
=$ac_count
4103 # 10*(2^10) chars as input seems more than enough
4104 test $ac_count -gt 10 && break
4106 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4110 $ac_path_EGREP_found && break 3
4120 EGREP
="$ac_cv_path_EGREP"
4121 if test -z "$EGREP"; then
4122 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4123 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4124 { (exit 1); exit 1; }; }
4128 ac_cv_path_EGREP
=$EGREP
4134 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4135 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4136 EGREP
="$ac_cv_path_EGREP"
4140 { echo "$as_me:$LINENO: checking for AIX" >&5
4141 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4142 cat >conftest.
$ac_ext <<_ACEOF
4145 cat confdefs.h
>>conftest.
$ac_ext
4146 cat >>conftest.
$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 $EGREP "yes" >/dev
/null
2>&1; then
4155 { echo "$as_me:$LINENO: result: yes" >&5
4156 echo "${ECHO_T}yes" >&6; }
4157 cat >>confdefs.h
<<\_ACEOF
4158 #define _ALL_SOURCE 1
4162 { echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6; }
4168 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4169 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4170 if test "${ac_cv_header_stdc+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 cat >conftest.
$ac_ext <<_ACEOF
4176 cat confdefs.h
>>conftest.
$ac_ext
4177 cat >>conftest.
$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4192 rm -f conftest.
$ac_objext
4193 if { (ac_try
="$ac_compile"
4195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compile") 2>conftest.er1
4201 grep -v '^ *+' conftest.er1 >conftest.err
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && {
4206 test -z "$ac_c_werror_flag" ||
4207 test ! -s conftest.err
4208 } && test -s conftest.$ac_objext; then
4209 ac_cv_header_stdc=yes
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4214 ac_cv_header_stdc=no
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 if test $ac_cv_header_stdc = yes; then
4220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4221 cat >conftest.$ac_ext <<_ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231 $EGREP "memchr" >/dev/null 2>&1; then
4234 ac_cv_header_stdc=no
4240 if test $ac_cv_header_stdc = yes; then
4241 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4252 $EGREP "free" >/dev/null 2>&1; then
4255 ac_cv_header_stdc=no
4261 if test $ac_cv_header_stdc = yes; then
4262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4263 if test "$cross_compiling" = yes; then
4266 cat >conftest.$ac_ext <<_ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4274 #if ((' ' & 0x0FF) == 0x020)
4275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4278 # define ISLOWER(c) \
4279 (('a' <= (c) && (c) <= 'i') \
4280 || ('j' <= (c) && (c) <= 'r') \
4281 || ('s' <= (c) && (c) <= 'z'))
4282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4290 for (i = 0; i < 256; i++)
4291 if (XOR (islower (i), ISLOWER (i))
4292 || toupper (i) != TOUPPER (i))
4297 rm -f conftest$ac_exeext
4298 if { (ac_try="$ac_link"
4300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4301 *) ac_try_echo
=$ac_try;;
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_link") 2>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4308 { (case "(($ac_try" in
4309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_try") 2>&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4319 echo "$as_me: program exited with status $ac_status" >&5
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4324 ac_cv_header_stdc=no
4326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4332 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4333 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4334 if test $ac_cv_header_stdc = yes; then
4336 cat >>confdefs.h <<\_ACEOF
4337 #define STDC_HEADERS 1
4342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4353 inttypes.h stdint.h unistd.h
4355 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4367 $ac_includes_default
4369 #include <$ac_header>
4371 rm -f conftest.$ac_objext
4372 if { (ac_try="$ac_compile"
4374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4375 *) ac_try_echo
=$ac_try;;
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_compile") 2>conftest.er1
4380 grep -v '^ *+' conftest.er1
>conftest.err
4382 cat conftest.err
>&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); } && {
4385 test -z "$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4387 } && test -s conftest.
$ac_objext; then
4388 eval "$as_ac_Header=yes"
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.
$ac_ext >&5
4393 eval "$as_ac_Header=no"
4396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4398 ac_res
=`eval echo '${'$as_ac_Header'}'`
4399 { echo "$as_me:$LINENO: result: $ac_res" >&5
4400 echo "${ECHO_T}$ac_res" >&6; }
4401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4402 cat >>confdefs.h
<<_ACEOF
4403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4411 if test "${ac_cv_header_minix_config_h+set}" = set; then
4412 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4413 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4414 if test "${ac_cv_header_minix_config_h+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4418 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4420 # Is the header compilable?
4421 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4422 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4423 cat >conftest.
$ac_ext <<_ACEOF
4426 cat confdefs.h
>>conftest.
$ac_ext
4427 cat >>conftest.
$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4429 $ac_includes_default
4430 #include <minix/config.h>
4432 rm -f conftest.
$ac_objext
4433 if { (ac_try
="$ac_compile"
4435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_compile") 2>conftest.er1
4441 grep -v '^ *+' conftest.er1 >conftest.err
4443 cat conftest.err >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } && {
4446 test -z "$ac_c_werror_flag" ||
4447 test ! -s conftest.err
4448 } && test -s conftest.$ac_objext; then
4449 ac_header_compiler=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_header_compiler=no
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4459 echo "${ECHO_T}$ac_header_compiler" >&6; }
4461 # Is the header present?
4462 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4463 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4464 cat >conftest.$ac_ext <<_ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h. */
4470 #include <minix/config.h>
4472 if { (ac_try="$ac_cpp conftest.$ac_ext"
4474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4475 *) ac_try_echo
=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1
>conftest.err
4482 cat conftest.err
>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } >/dev
/null
&& {
4485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4488 ac_header_preproc
=yes
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.
$ac_ext >&5
4493 ac_header_preproc
=no
4496 rm -f conftest.err conftest.
$ac_ext
4497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4498 echo "${ECHO_T}$ac_header_preproc" >&6; }
4500 # So? What about this header?
4501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4504 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4506 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4507 ac_header_preproc
=yes
4510 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4511 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4513 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4515 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4516 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4517 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4519 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4521 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4525 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4526 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4527 if test "${ac_cv_header_minix_config_h+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 ac_cv_header_minix_config_h
=$ac_header_preproc
4532 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4533 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4536 if test $ac_cv_header_minix_config_h = yes; then
4543 if test "$MINIX" = yes; then
4545 cat >>confdefs.h
<<\_ACEOF
4546 #define _POSIX_SOURCE 1
4550 cat >>confdefs.h
<<\_ACEOF
4551 #define _POSIX_1_SOURCE 2
4555 cat >>confdefs.h
<<\_ACEOF
4571 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4572 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4573 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 cat >conftest.
$ac_ext <<_ACEOF
4579 cat confdefs.h
>>conftest.
$ac_ext
4580 cat >>conftest.
$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4583 # define __EXTENSIONS__ 1
4584 $ac_includes_default
4593 rm -f conftest.
$ac_objext
4594 if { (ac_try
="$ac_compile"
4596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4610 ac_cv_safe_to_define___extensions__=yes
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4615 ac_cv_safe_to_define___extensions__=no
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4621 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4622 test $ac_cv_safe_to_define___extensions__ = yes &&
4623 cat >>confdefs.h <<\_ACEOF
4624 #define __EXTENSIONS__ 1
4627 cat >>confdefs.h <<\_ACEOF
4628 #define _POSIX_PTHREAD_SEMANTICS 1
4631 cat >>confdefs.h <<\_ACEOF
4632 #define _TANDEM_SOURCE 1
4637 ### Use -Wno-pointer-sign if the compiler supports it
4638 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4639 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4640 SAVE_CFLAGS="$CFLAGS"
4641 CFLAGS="$CFLAGS -Wno-pointer-sign"
4642 cat >conftest.$ac_ext <<_ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4661 *) ac_try_echo
=$ac_try;;
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1
>conftest.err
4668 cat conftest.err
>&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest.
$ac_objext; then
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.
$ac_ext >&5
4682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4683 if test $has_option = yes; then
4684 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4686 { echo "$as_me:$LINENO: result: $has_option" >&5
4687 echo "${ECHO_T}$has_option" >&6; }
4688 CFLAGS
="$SAVE_CFLAGS"
4692 #### Some other nice autoconf tests.
4694 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4695 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4697 if test "$LN_S" = "ln -s"; then
4698 { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4701 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4702 echo "${ECHO_T}no, using $LN_S" >&6; }
4706 ac_cpp
='$CPP $CPPFLAGS'
4707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4710 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4711 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4712 # On Suns, sometimes $CPP names a directory.
4713 if test -n "$CPP" && test -d "$CPP"; then
4716 if test -z "$CPP"; then
4717 if test "${ac_cv_prog_CPP+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 # Double quotes because CPP needs to be expanded
4721 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4724 for ac_c_preproc_warn_flag
in '' yes
4726 # Use a header file that comes with gcc, so configuring glibc
4727 # with a fresh cross-compiler works.
4728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729 # <limits.h> exists even on freestanding compilers.
4730 # On the NeXT, cc -E runs the code through the compiler's parser,
4731 # not just through cpp. "Syntax error" is here to catch this case.
4732 cat >conftest.
$ac_ext <<_ACEOF
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4739 # include <limits.h>
4741 # include <assert.h>
4745 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753 grep -v '^ *+' conftest.er1 >conftest.err
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev/null && {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 # Broken: fails on valid input.
4770 rm -f conftest.err conftest.$ac_ext
4772 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how.
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4780 #include <ac_nonexistent.h>
4782 if { (ac_try="$ac_cpp conftest.$ac_ext"
4784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4785 *) ac_try_echo
=$ac_try;;
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1
>conftest.err
4792 cat conftest.err
>&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } >/dev
/null
&& {
4795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4798 # Broken: success on invalid input.
4801 echo "$as_me: failed program was:" >&5
4802 sed 's/^/| /' conftest.
$ac_ext >&5
4804 # Passes both tests.
4809 rm -f conftest.err conftest.
$ac_ext
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.
$ac_ext
4814 if $ac_preproc_ok; then
4826 { echo "$as_me:$LINENO: result: $CPP" >&5
4827 echo "${ECHO_T}$CPP" >&6; }
4829 for ac_c_preproc_warn_flag
in '' yes
4831 # Use a header file that comes with gcc, so configuring glibc
4832 # with a fresh cross-compiler works.
4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 # include <limits.h>
4846 # include <assert.h>
4850 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } >/dev/null && {
4863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 # Broken: fails on valid input.
4875 rm -f conftest.err conftest.$ac_ext
4877 # OK, works on sane cases. Now check whether nonexistent headers
4878 # can be detected and how.
4879 cat >conftest.$ac_ext <<_ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4887 if { (ac_try="$ac_cpp conftest.$ac_ext"
4889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4890 *) ac_try_echo
=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1
>conftest.err
4897 cat conftest.err
>&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev
/null
&& {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4903 # Broken: success on invalid input.
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.
$ac_ext >&5
4909 # Passes both tests.
4914 rm -f conftest.err conftest.
$ac_ext
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.
$ac_ext
4919 if $ac_preproc_ok; then
4922 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4923 See \`config.log' for more details." >&5
4924 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4925 See \`config.log' for more details." >&2;}
4926 { (exit 1); exit 1; }; }
4930 ac_cpp
='$CPP $CPPFLAGS'
4931 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4935 # Find a good install program. We prefer a C program (faster),
4936 # so one script is as good as another. But avoid the broken or
4937 # incompatible versions:
4938 # SysV /etc/install, /usr/sbin/install
4939 # SunOS /usr/etc/install
4940 # IRIX /sbin/install
4942 # AmigaOS /C/install, which installs bootblocks on floppy discs
4943 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4944 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4945 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4946 # OS/2's system install, which has a completely different semantic
4947 # ./install, which can be erroneously created by make from ./install.sh.
4948 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4949 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4950 if test -z "$INSTALL"; then
4951 if test "${ac_cv_path_install+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir
=.
4959 # Account for people who put trailing slashes in PATH elements.
4961 .
/ | .
// |
/cC
/* | \
4962 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4963 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4966 # OSF1 and SCO ODT 3.0 have their own names for install.
4967 # Don't use installbsd from OSF since it installs stuff as root
4969 for ac_prog
in ginstall scoinst
install; do
4970 for ac_exec_ext
in '' $ac_executable_extensions; do
4971 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4972 if test $ac_prog = install &&
4973 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4974 # AIX install. It has an incompatible calling convention.
4976 elif test $ac_prog = install &&
4977 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4978 # program-specific install script used by HP pwplus--don't use.
4981 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4994 if test "${ac_cv_path_install+set}" = set; then
4995 INSTALL
=$ac_cv_path_install
4997 # As a last resort, use the slow shell script. Don't cache a
4998 # value for INSTALL within a source directory, because that will
4999 # break other packages using the cache if that directory is
5000 # removed, or if the value is a relative name.
5001 INSTALL
=$ac_install_sh
5004 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5005 echo "${ECHO_T}$INSTALL" >&6; }
5007 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5008 # It thinks the first close brace ends the variable substitution.
5009 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5011 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5013 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5015 if test "x$RANLIB" = x
; then
5016 if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5018 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_prog_RANLIB+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 if test -n "$RANLIB"; then
5025 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir
=.
5032 for ac_exec_ext
in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 RANLIB
=$ac_cv_prog_RANLIB
5045 if test -n "$RANLIB"; then
5046 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5047 echo "${ECHO_T}$RANLIB" >&6; }
5049 { echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6; }
5055 if test -z "$ac_cv_prog_RANLIB"; then
5056 ac_ct_RANLIB
=$RANLIB
5057 # Extract the first word of "ranlib", so it can be a program name with args.
5058 set dummy ranlib
; ac_word
=$2
5059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5061 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 if test -n "$ac_ct_RANLIB"; then
5065 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir
=.
5072 for ac_exec_ext
in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5085 if test -n "$ac_ct_RANLIB"; then
5086 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5087 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5089 { echo "$as_me:$LINENO: result: no" >&5
5090 echo "${ECHO_T}no" >&6; }
5093 if test "x$ac_ct_RANLIB" = x
; then
5096 case $cross_compiling:$ac_tool_warned in
5098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5099 whose name does not start with the host triplet. If you think this
5100 configuration is useful to you, please write to autoconf@gnu.org." >&5
5101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet. If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5104 ac_tool_warned
=yes ;;
5106 RANLIB
=$ac_ct_RANLIB
5109 RANLIB
="$ac_cv_prog_RANLIB"
5113 # Extract the first word of "install-info", so it can be a program name with args.
5114 set dummy install-info
; ac_word
=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 case $INSTALL_INFO in
5122 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir
=.
5130 for ac_exec_ext
in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5144 if test -n "$INSTALL_INFO"; then
5145 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5146 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5148 { echo "$as_me:$LINENO: result: no" >&5
5149 echo "${ECHO_T}no" >&6; }
5153 # Extract the first word of "install-info", so it can be a program name with args.
5154 set dummy install-info
; ac_word
=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 case $INSTALL_INFO in
5162 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5166 for as_dir
in /usr
/sbin
5169 test -z "$as_dir" && as_dir
=.
5170 for ac_exec_ext
in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5184 if test -n "$INSTALL_INFO"; then
5185 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5186 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5188 { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5193 # Extract the first word of "install-info", so it can be a program name with args.
5194 set dummy install-info
; ac_word
=$2
5195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5197 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 case $INSTALL_INFO in
5202 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir
=.
5210 for ac_exec_ext
in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5224 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5225 if test -n "$INSTALL_INFO"; then
5226 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5227 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5234 # Extract the first word of "gzip", so it can be a program name with args.
5235 set dummy
gzip; ac_word
=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir
=.
5251 for ac_exec_ext
in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5265 if test -n "$GZIP_PROG"; then
5266 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5267 echo "${ECHO_T}$GZIP_PROG" >&6; }
5269 { echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6; }
5276 ## Need makeinfo >= 4.6 (?) to build the manuals.
5277 # Extract the first word of "makeinfo", so it can be a program name with args.
5278 set dummy makeinfo
; ac_word
=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5293 test -z "$as_dir" && as_dir
=.
5294 for ac_exec_ext
in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5308 MAKEINFO
=$ac_cv_path_MAKEINFO
5309 if test -n "$MAKEINFO"; then
5310 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5311 echo "${ECHO_T}$MAKEINFO" >&6; }
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5318 if test "$MAKEINFO" != "no" && \
5319 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
5323 ## Makeinfo is unusual. For a released Emacs, the manuals are
5324 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5325 ## therefore in the category of "special tools" not normally required, which
5326 ## configure does not have to check for (eg autoconf itself).
5327 ## In a CVS checkout on the other hand, the manuals are not included.
5328 ## So makeinfo is a requirement to build from CVS, and configure
5329 ## should test for it as it does for any other build requirement.
5330 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5331 ## with pre-built manuals, from a CVS checkout.
5332 if test "$MAKEINFO" = "no"; then
5333 if test "x${with_makeinfo}" = "xno"; then
5335 elif ! test -e $srcdir/info
/emacs
; then
5336 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5337 source tree does not seem to have pre-built manuals in the \`info' directory.
5338 Either install a suitable version of makeinfo, or re-run configure
5339 with the \`--without-makeinfo' option to build without the manuals. " >&5
5340 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5341 source tree does not seem to have pre-built manuals in the \`info' directory.
5342 Either install a suitable version of makeinfo, or re-run configure
5343 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5344 { (exit 1); exit 1; }; }
5349 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5351 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5354 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5356 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5360 late_LDFLAGS
=$LDFLAGS
5361 if test "$GCC" = yes; then
5362 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5364 LDFLAGS
="$LDFLAGS -znocombreloc"
5367 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5368 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5369 cat >conftest.
$ac_ext <<_ACEOF
5372 rm -f conftest.
$ac_objext conftest
$ac_exeext
5373 if { (ac_try
="$ac_link"
5375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
5381 grep -v '^ *+' conftest.er1 >conftest.err
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_c_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest$ac_exeext &&
5389 $as_test_x conftest$ac_exeext; then
5390 { echo "$as_me:$LINENO: result: yes" >&5
5391 echo "${ECHO_T}yes" >&6; }
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 LDFLAGS=$late_LDFLAGS
5397 { echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6; }
5401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5402 conftest$ac_exeext conftest.$ac_ext
5404 #### Extract some information from the operating system and machine files.
5406 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5407 - which libraries the lib-src programs will want, and
5408 - whether the GNU malloc routines are usable..." >&5
5409 echo "$as_me: checking the machine- and system-dependent files to find out
5410 - which libraries the lib-src programs will want, and
5411 - whether the GNU malloc routines are usable..." >&6;}
5413 ### First figure out CFLAGS (which we use for running the compiler here)
5414 ### and REAL_CFLAGS (which we use for real compilation).
5415 ### The two are the same except on a few systems, where they are made
5416 ### different to work around various lossages. For example,
5417 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5418 ### as implying static linking.
5420 ### If the CFLAGS env var is specified, we use that value
5421 ### instead of the default.
5423 ### It's not important that this name contain the PID; you can't run
5424 ### two configures in the same directory and have anything work
5426 tempcname="conftest.c"
5429 #include "'${srcdir}'/src/'${opsysfile}'"
5430 #include "'${srcdir}'/src/'${machfile}'"
5431 #ifndef LIBS_MACHINE
5432 #define LIBS_MACHINE
5437 #ifndef C_SWITCH_SYSTEM
5438 #define C_SWITCH_SYSTEM
5440 #ifndef C_SWITCH_MACHINE
5441 #define C_SWITCH_MACHINE
5443 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5444 configure___ c_switch_system=C_SWITCH_SYSTEM
5445 configure___ c_switch_machine=C_SWITCH_MACHINE
5448 #define LIB_X11_LIB -lX11
5451 #ifndef LIBX11_SYSTEM
5452 #define LIBX11_SYSTEM
5454 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5457 configure___ unexec=UNEXEC
5459 configure___ unexec=unexec.o
5462 #ifdef SYSTEM_MALLOC
5463 configure___ system_malloc=yes
5465 configure___ system_malloc=no
5468 #ifdef USE_MMAP_FOR_BUFFERS
5469 configure___ use_mmap_for_buffers=yes
5471 configure___ use_mmap_for_buffers=no
5474 #ifndef C_DEBUG_SWITCH
5475 #define C_DEBUG_SWITCH -g
5478 #ifndef C_OPTIMIZE_SWITCH
5480 #define C_OPTIMIZE_SWITCH -O2
5482 #define C_OPTIMIZE_SWITCH -O
5486 #ifndef C_WARNINGS_SWITCH
5487 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5490 #ifndef LD_SWITCH_MACHINE
5491 #define LD_SWITCH_MACHINE
5494 #ifndef LD_SWITCH_SYSTEM
5495 #define LD_SWITCH_SYSTEM
5498 #ifndef LD_SWITCH_X_SITE_AUX
5499 #define LD_SWITCH_X_SITE_AUX
5502 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5503 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5505 #ifdef THIS_IS_CONFIGURE
5507 /* Get the CFLAGS for tests in configure. */
5509 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5511 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5514 #else /* not THIS_IS_CONFIGURE */
5516 /* Get the CFLAGS for real compilation. */
5518 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5520 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5523 #endif /* not THIS_IS_CONFIGURE */
5526 # The value of CPP is a quoted variable reference, so we need to do this
5527 # to get its actual value...
5528 CPP=`eval "echo $CPP"`
5529 eval `${CPP} -Isrc ${tempcname} \
5530 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5531 if test "x$SPECIFIED_CFLAGS" = x; then
5532 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5533 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5535 REAL_CFLAGS="$CFLAGS"
5539 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5541 ### Make sure subsequent tests use flags consistent with the build flags.
5543 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5544 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5546 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5551 # Check whether --enable-largefile was given.
5552 if test "${enable_largefile+set}" = set; then
5553 enableval=$enable_largefile;
5556 if test "$enable_largefile" != no; then
5558 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5559 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5560 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 ac_cv_sys_largefile_CC=no
5564 if test "$GCC" != yes; then
5567 # IRIX 6.2 and later do not support large files by default,
5568 # so use the C compiler's -n32 option if that helps.
5569 cat >conftest.$ac_ext <<_ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h. */
5575 #include <sys/types.h>
5576 /* Check that off_t can represent 2**63 - 1 correctly.
5577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578 since some C++ compilers masquerading as C compilers
5579 incorrectly reject 9223372036854775807. */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582 && LARGE_OFF_T % 2147483647 == 1)
5592 rm -f conftest.$ac_objext
5593 if { (ac_try="$ac_compile"
5595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5596 *) ac_try_echo
=$ac_try;;
5598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599 (eval "$ac_compile") 2>conftest.er1
5601 grep -v '^ *+' conftest.er1
>conftest.err
5603 cat conftest.err
>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } && {
5606 test -z "$ac_c_werror_flag" ||
5607 test ! -s conftest.err
5608 } && test -s conftest.
$ac_objext; then
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.
$ac_ext >&5
5617 rm -f core conftest.err conftest.
$ac_objext
5619 rm -f conftest.
$ac_objext
5620 if { (ac_try
="$ac_compile"
5622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_sys_largefile_CC=' -n32'; break
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5644 rm -f core conftest.err conftest.$ac_objext
5648 rm -f conftest.$ac_ext
5651 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5652 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5653 if test "$ac_cv_sys_largefile_CC" != no; then
5654 CC=$CC$ac_cv_sys_largefile_CC
5657 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5658 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5659 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5690 *) ac_try_echo
=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1
>conftest.err
5697 cat conftest.err
>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.
$ac_objext; then
5703 ac_cv_sys_file_offset_bits
=no
; break
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.
$ac_ext >&5
5711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 cat >conftest.
$ac_ext <<_ACEOF
5715 cat confdefs.h
>>conftest.
$ac_ext
5716 cat >>conftest.
$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #define _FILE_OFFSET_BITS 64
5719 #include <sys/types.h>
5720 /* Check that off_t can represent 2**63 - 1 correctly.
5721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5722 since some C++ compilers masquerading as C compilers
5723 incorrectly reject 9223372036854775807. */
5724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5726 && LARGE_OFF_T % 2147483647 == 1)
5736 rm -f conftest.
$ac_objext
5737 if { (ac_try
="$ac_compile"
5739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_sys_file_offset_bits=64; break
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_cv_sys_file_offset_bits=unknown
5766 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5767 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5768 case $ac_cv_sys_file_offset_bits in #(
5771 cat >>confdefs.h <<_ACEOF
5772 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5777 if test $ac_cv_sys_file_offset_bits = unknown; then
5778 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5779 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5780 if test "${ac_cv_sys_large_files+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #include <sys/types.h>
5791 /* Check that off_t can represent 2**63 - 1 correctly.
5792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5793 since some C++ compilers masquerading as C compilers
5794 incorrectly reject 9223372036854775807. */
5795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5797 && LARGE_OFF_T % 2147483647 == 1)
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5811 *) ac_try_echo
=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1
>conftest.err
5818 cat conftest.err
>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.
$ac_objext; then
5824 ac_cv_sys_large_files
=no
; break
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5833 cat >conftest.
$ac_ext <<_ACEOF
5836 cat confdefs.h
>>conftest.
$ac_ext
5837 cat >>conftest.
$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 #define _LARGE_FILES 1
5840 #include <sys/types.h>
5841 /* Check that off_t can represent 2**63 - 1 correctly.
5842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5843 since some C++ compilers masquerading as C compilers
5844 incorrectly reject 9223372036854775807. */
5845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5847 && LARGE_OFF_T % 2147483647 == 1)
5857 rm -f conftest.
$ac_objext
5858 if { (ac_try
="$ac_compile"
5860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1 >conftest.err
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.$ac_objext; then
5874 ac_cv_sys_large_files=1; break
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_cv_sys_large_files=unknown
5887 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5888 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5889 case $ac_cv_sys_large_files in #(
5892 cat >>confdefs.h <<_ACEOF
5893 #define _LARGE_FILES $ac_cv_sys_large_files
5903 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5904 ### be located in either /usr/lib64 or /usr/lib.
5905 case "${canonical}" in
5906 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5907 if test -d /usr/lib64; then
5909 cat >>confdefs.h <<\_ACEOF
5910 #define HAVE_LIB64_DIR 1
5919 if test "${with_sound}" != "no"; then
5920 # Sound support for GNU/Linux and the free BSDs.
5924 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5926 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_res=`eval echo '${'$as_ac_Header'}'`
5934 { echo "$as_me:$LINENO: result: $ac_res" >&5
5935 echo "${ECHO_T}$ac_res" >&6; }
5937 # Is the header compilable?
5938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5940 cat >conftest.$ac_ext <<_ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 $ac_includes_default
5947 #include <$ac_header>
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5953 *) ac_try_echo
=$ac_try;;
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_compile") 2>conftest.er1
5958 grep -v '^ *+' conftest.er1
>conftest.err
5960 cat conftest.err
>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && {
5963 test -z "$ac_c_werror_flag" ||
5964 test ! -s conftest.err
5965 } && test -s conftest.
$ac_objext; then
5966 ac_header_compiler
=yes
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.
$ac_ext >&5
5971 ac_header_compiler
=no
5974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5976 echo "${ECHO_T}$ac_header_compiler" >&6; }
5978 # Is the header present?
5979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5981 cat >conftest.
$ac_ext <<_ACEOF
5984 cat confdefs.h
>>conftest.
$ac_ext
5985 cat >>conftest.
$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 #include <$ac_header>
5989 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } >/dev/null && {
6002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6003 test ! -s conftest.err
6005 ac_header_preproc=yes
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_header_preproc=no
6013 rm -f conftest.err conftest.$ac_ext
6014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6015 echo "${ECHO_T}$ac_header_preproc" >&6; }
6017 # So? What about this header?
6018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6024 ac_header_preproc=yes
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6034 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 eval "$as_ac_Header=\$ac_header_preproc"
6049 ac_res=`eval echo '${'$as_ac_Header'}'`
6050 { echo "$as_me:$LINENO: result: $ac_res" >&5
6051 echo "${ECHO_T}$ac_res" >&6; }
6054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6055 cat >>confdefs.h <<_ACEOF
6056 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6063 # Emulation library used on NetBSD.
6064 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6065 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6066 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 ac_check_lib_save_LIBS=$LIBS
6070 LIBS="-lossaudio $LIBS"
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6078 /* Override any GCC internal prototype to avoid an error.
6079 Use char because int might match the return type of a GCC
6080 builtin and then its argument prototype would still apply. */
6088 return _oss_ioctl ();
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (ac_try="$ac_link"
6096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6097 *) ac_try_echo
=$ac_try;;
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_link") 2>conftest.er1
6102 grep -v '^ *+' conftest.er1
>conftest.err
6104 cat conftest.err
>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest
$ac_exeext &&
6110 $as_test_x conftest
$ac_exeext; then
6111 ac_cv_lib_ossaudio__oss_ioctl
=yes
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.
$ac_ext >&5
6116 ac_cv_lib_ossaudio__oss_ioctl
=no
6119 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6120 conftest
$ac_exeext conftest.
$ac_ext
6121 LIBS
=$ac_check_lib_save_LIBS
6123 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6124 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6125 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6134 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6138 # Extract the first word of "pkg-config", so it can be a program name with args.
6139 set dummy pkg-config
; ac_word
=$2
6140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6142 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6154 test -z "$as_dir" && as_dir
=.
6155 for ac_exec_ext
in '' $ac_executable_extensions; do
6156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6169 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6170 if test -n "$PKG_CONFIG"; then
6171 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6172 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6174 { echo "$as_me:$LINENO: result: no" >&5
6175 echo "${ECHO_T}no" >&6; }
6180 if test "$PKG_CONFIG" = "no" ; then
6183 PKG_CONFIG_MIN_VERSION
=0.9.0
6184 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6185 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6186 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6188 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6189 { echo "$as_me:$LINENO: result: yes" >&5
6190 echo "${ECHO_T}yes" >&6; }
6193 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6194 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6195 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6196 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6197 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6199 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6200 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6201 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6202 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6203 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6205 { echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6; }
6209 ## If we have a custom action on failure, don't print errors, but
6210 ## do set a variable so people can do so.
6211 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6218 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6219 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6223 if test $succeeded = yes; then
6229 if test $HAVE_ALSA = yes; then
6230 SAVE_CFLAGS
="$CFLAGS"
6231 SAVE_LDFLAGS
="$LDFLAGS"
6232 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6233 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6234 cat >conftest.
$ac_ext <<_ACEOF
6237 cat confdefs.h
>>conftest.
$ac_ext
6238 cat >>conftest.
$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 #include <asoundlib.h>
6244 snd_lib_error_set_handler (0);
6249 rm -f conftest.
$ac_objext
6250 if { (ac_try
="$ac_compile"
6252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_compile") 2>conftest.er1
6258 grep -v '^ *+' conftest.er1 >conftest.err
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest.$ac_objext; then
6266 emacs_alsa_normal=yes
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 emacs_alsa_normal=no
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 if test "$emacs_alsa_normal" != yes; then
6276 cat >conftest.$ac_ext <<_ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 #include <alsa/asoundlib.h>
6286 snd_lib_error_set_handler (0);
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6295 *) ac_try_echo
=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1
>conftest.err
6302 cat conftest.err
>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest.
$ac_objext; then
6308 emacs_alsa_subdir
=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.
$ac_ext >&5
6313 emacs_alsa_subdir
=no
6316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6317 if test "$emacs_alsa_subdir" != yes; then
6318 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6319 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6320 { (exit 1); exit 1; }; }
6322 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6325 CFLAGS
="$SAVE_CFLAGS"
6326 LDFLAGS
="$SAVE_LDFLAGS"
6327 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6328 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6330 cat >>confdefs.h
<<\_ACEOF
6363 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6364 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6365 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6366 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6369 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6370 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_res
=`eval echo '${'$as_ac_Header'}'`
6377 { echo "$as_me:$LINENO: result: $ac_res" >&5
6378 echo "${ECHO_T}$ac_res" >&6; }
6380 # Is the header compilable?
6381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6383 cat >conftest.
$ac_ext <<_ACEOF
6386 cat confdefs.h
>>conftest.
$ac_ext
6387 cat >>conftest.
$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 $ac_includes_default
6390 #include <$ac_header>
6392 rm -f conftest.
$ac_objext
6393 if { (ac_try
="$ac_compile"
6395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6401 grep -v '^ *+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 ac_header_compiler=yes
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ac_header_compiler=no
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6419 echo "${ECHO_T}$ac_header_compiler" >&6; }
6421 # Is the header present?
6422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6424 cat >conftest.$ac_ext <<_ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 #include <$ac_header>
6432 if { (ac_try="$ac_cpp conftest.$ac_ext"
6434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6435 *) ac_try_echo
=$ac_try;;
6437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6440 grep -v '^ *+' conftest.er1
>conftest.err
6442 cat conftest.err
>&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); } >/dev
/null
&& {
6445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6446 test ! -s conftest.err
6448 ac_header_preproc
=yes
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.
$ac_ext >&5
6453 ac_header_preproc
=no
6456 rm -f conftest.err conftest.
$ac_ext
6457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6458 echo "${ECHO_T}$ac_header_preproc" >&6; }
6460 # So? What about this header?
6461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6467 ac_header_preproc
=yes
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 eval "$as_ac_Header=\$ac_header_preproc"
6492 ac_res
=`eval echo '${'$as_ac_Header'}'`
6493 { echo "$as_me:$LINENO: result: $ac_res" >&5
6494 echo "${ECHO_T}$ac_res" >&6; }
6497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6498 cat >>confdefs.h
<<_ACEOF
6499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6508 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6509 cat >conftest.
$ac_ext <<_ACEOF
6512 cat confdefs.h
>>conftest.
$ac_ext
6513 cat >>conftest.
$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 #include <sys/personality.h>
6519 personality (PER_LINUX32)
6524 rm -f conftest.
$ac_objext
6525 if { (ac_try
="$ac_compile"
6527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 emacs_cv_personality_linux32=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 emacs_cv_personality_linux32=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6551 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6553 if test $emacs_cv_personality_linux32 = yes; then
6555 cat >>confdefs.h <<\_ACEOF
6556 #define HAVE_PERSONALITY_LINUX32 1
6562 for ac_header in term.h
6564 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <$ac_header>
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6581 *) ac_try_echo
=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1
>conftest.err
6588 cat conftest.err
>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev
/null
&& {
6591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6594 eval "$as_ac_Header=yes"
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.
$ac_ext >&5
6599 eval "$as_ac_Header=no"
6602 rm -f conftest.err conftest.
$ac_ext
6604 ac_res
=`eval echo '${'$as_ac_Header'}'`
6605 { echo "$as_me:$LINENO: result: $ac_res" >&5
6606 echo "${ECHO_T}$ac_res" >&6; }
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h
<<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6617 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6618 if test "${ac_cv_header_stdc+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6640 rm -f conftest.
$ac_objext
6641 if { (ac_try
="$ac_compile"
6643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6649 grep -v '^ *+' conftest.er1 >conftest.err
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 ac_cv_header_stdc=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_cv_header_stdc=no
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 if test $ac_cv_header_stdc = yes; then
6668 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6669 cat >conftest.$ac_ext <<_ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6679 $EGREP "memchr" >/dev/null 2>&1; then
6682 ac_cv_header_stdc=no
6688 if test $ac_cv_header_stdc = yes; then
6689 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6700 $EGREP "free" >/dev/null 2>&1; then
6703 ac_cv_header_stdc=no
6709 if test $ac_cv_header_stdc = yes; then
6710 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6711 if test "$cross_compiling" = yes; then
6714 cat >conftest.$ac_ext <<_ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6722 #if ((' ' & 0x0FF) == 0x020)
6723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6726 # define ISLOWER(c) \
6727 (('a' <= (c) && (c) <= 'i') \
6728 || ('j' <= (c) && (c) <= 'r') \
6729 || ('s' <= (c) && (c) <= 'z'))
6730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6738 for (i = 0; i < 256; i++)
6739 if (XOR (islower (i), ISLOWER (i))
6740 || toupper (i) != TOUPPER (i))
6745 rm -f conftest$ac_exeext
6746 if { (ac_try="$ac_link"
6748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6749 *) ac_try_echo
=$ac_try;;
6751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6752 (eval "$ac_link") 2>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6756 { (case "(($ac_try" in
6757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_try") 2>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6767 echo "$as_me: program exited with status $ac_status" >&5
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6772 ac_cv_header_stdc=no
6774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6780 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6781 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6782 if test $ac_cv_header_stdc = yes; then
6784 cat >>confdefs.h <<\_ACEOF
6785 #define STDC_HEADERS 1
6790 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6791 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6792 if test "${ac_cv_header_time+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 cat >conftest.$ac_ext <<_ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 #include <sys/types.h>
6802 #include <sys/time.h>
6808 if ((struct tm *) 0)
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6818 *) ac_try_echo
=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1
>conftest.err
6825 cat conftest.err
>&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.
$ac_objext; then
6831 ac_cv_header_time
=yes
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.
$ac_ext >&5
6836 ac_cv_header_time
=no
6839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6841 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6842 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6843 if test $ac_cv_header_time = yes; then
6845 cat >>confdefs.h
<<\_ACEOF
6846 #define TIME_WITH_SYS_TIME 1
6851 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6852 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6853 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 cat >conftest.
$ac_ext <<_ACEOF
6859 cat confdefs.h
>>conftest.
$ac_ext
6860 cat >>conftest.
$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 $ac_includes_default
6874 rm -f conftest.
$ac_objext
6875 if { (ac_try
="$ac_compile"
6877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_compile") 2>conftest.er1
6883 grep -v '^ *+' conftest.er1 >conftest.err
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && {
6888 test -z "$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 } && test -s conftest.$ac_objext; then
6891 ac_cv_have_decl_sys_siglist=yes
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_have_decl_sys_siglist=no
6899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6902 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6903 if test $ac_cv_have_decl_sys_siglist = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906 #define HAVE_DECL_SYS_SIGLIST 1
6911 cat >>confdefs.h <<_ACEOF
6912 #define HAVE_DECL_SYS_SIGLIST 0
6919 if test $ac_cv_have_decl_sys_siglist != yes; then
6920 # For Tru64, at least:
6921 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6922 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6923 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6936 #ifndef __sys_siglist
6937 (void) __sys_siglist;
6944 rm -f conftest.$ac_objext
6945 if { (ac_try="$ac_compile"
6947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6948 *) ac_try_echo
=$ac_try;;
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6953 grep -v '^ *+' conftest.er1
>conftest.err
6955 cat conftest.err
>&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.
$ac_objext; then
6961 ac_cv_have_decl___sys_siglist
=yes
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.
$ac_ext >&5
6966 ac_cv_have_decl___sys_siglist
=no
6969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6972 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6973 if test $ac_cv_have_decl___sys_siglist = yes; then
6975 cat >>confdefs.h
<<_ACEOF
6976 #define HAVE_DECL___SYS_SIGLIST 1
6981 cat >>confdefs.h
<<_ACEOF
6982 #define HAVE_DECL___SYS_SIGLIST 0
6989 if test $ac_cv_have_decl___sys_siglist = yes; then
6991 cat >>confdefs.h
<<\_ACEOF
6992 #define sys_siglist __sys_siglist
6997 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6998 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6999 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 cat >conftest.
$ac_ext <<_ACEOF
7005 cat confdefs.h
>>conftest.
$ac_ext
7006 cat >>conftest.
$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7008 #include <sys/types.h>
7009 #include <sys/wait.h>
7011 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7014 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7022 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7027 rm -f conftest.
$ac_objext
7028 if { (ac_try
="$ac_compile"
7030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7034 (eval "$ac_compile") 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } && {
7041 test -z "$ac_c_werror_flag" ||
7042 test ! -s conftest.err
7043 } && test -s conftest.$ac_objext; then
7044 ac_cv_header_sys_wait_h=yes
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 ac_cv_header_sys_wait_h=no
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7055 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7056 if test $ac_cv_header_sys_wait_h = yes; then
7058 cat >>confdefs.h <<\_ACEOF
7059 #define HAVE_SYS_WAIT_H 1
7065 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7066 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7067 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 cat >conftest.$ac_ext <<_ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #ifdef TIME_WITH_SYS_TIME
7077 #include <sys/time.h>
7080 #ifdef HAVE_SYS_TIME_H
7081 #include <sys/time.h>
7092 static struct utimbuf x; x.actime = x.modtime;
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7101 *) ac_try_echo
=$ac_try;;
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7106 grep -v '^ *+' conftest.er1
>conftest.err
7108 cat conftest.err
>&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.
$ac_objext; then
7114 emacs_cv_struct_utimbuf
=yes
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7119 emacs_cv_struct_utimbuf
=no
7122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7124 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7125 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7126 if test $emacs_cv_struct_utimbuf = yes; then
7128 cat >>confdefs.h
<<\_ACEOF
7129 #define HAVE_STRUCT_UTIMBUF 1
7134 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7135 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7136 if test "${ac_cv_type_signal+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 cat >conftest.
$ac_ext <<_ACEOF
7142 cat confdefs.h
>>conftest.
$ac_ext
7143 cat >>conftest.
$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <sys/types.h>
7151 return *(signal (0, 0)) (0) == 1;
7156 rm -f conftest.
$ac_objext
7157 if { (ac_try
="$ac_compile"
7159 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7160 *) ac_try_echo=$ac_try;;
7162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7163 (eval "$ac_compile") 2>conftest.er1
7165 grep -v '^ *+' conftest.er1 >conftest.err
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } && {
7170 test -z "$ac_c_werror_flag" ||
7171 test ! -s conftest.err
7172 } && test -s conftest.$ac_objext; then
7173 ac_cv_type_signal=int
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7178 ac_cv_type_signal=void
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7184 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7186 cat >>confdefs.h <<_ACEOF
7187 #define RETSIGTYPE $ac_cv_type_signal
7192 { echo "$as_me:$LINENO: checking for speed_t" >&5
7193 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7194 if test "${emacs_cv_speed_t+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 cat >conftest.$ac_ext <<_ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 #include <termios.h>
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7216 *) ac_try_echo
=$ac_try;;
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7221 grep -v '^ *+' conftest.er1
>conftest.err
7223 cat conftest.err
>&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.
$ac_objext; then
7229 emacs_cv_speed_t
=yes
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.
$ac_ext >&5
7237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7239 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7240 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7241 if test $emacs_cv_speed_t = yes; then
7243 cat >>confdefs.h
<<\_ACEOF
7244 #define HAVE_SPEED_T 1
7249 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7250 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7251 if test "${emacs_cv_struct_timeval+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>
7273 static struct timeval x; x.tv_sec = x.tv_usec;
7278 rm -f conftest.
$ac_objext
7279 if { (ac_try
="$ac_compile"
7281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7295 emacs_cv_struct_timeval=yes
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 emacs_cv_struct_timeval=no
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7306 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7307 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7308 if test $emacs_cv_struct_timeval = yes; then
7310 cat >>confdefs.h <<\_ACEOF
7311 #define HAVE_TIMEVAL 1
7316 { echo "$as_me:$LINENO: checking for struct exception" >&5
7317 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7318 if test "${emacs_cv_struct_exception+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7331 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7336 rm -f conftest.$ac_objext
7337 if { (ac_try="$ac_compile"
7339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7340 *) ac_try_echo
=$ac_try;;
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_compile") 2>conftest.er1
7345 grep -v '^ *+' conftest.er1
>conftest.err
7347 cat conftest.err
>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } && {
7350 test -z "$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7352 } && test -s conftest.
$ac_objext; then
7353 emacs_cv_struct_exception
=yes
7355 echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.
$ac_ext >&5
7358 emacs_cv_struct_exception
=no
7361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7363 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7364 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7365 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7366 if test $emacs_cv_struct_exception != yes; then
7368 cat >>confdefs.h
<<\_ACEOF
7369 #define NO_MATHERR 1
7375 for ac_header
in sys
/socket.h
7377 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7378 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7381 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_res
=`eval echo '${'$as_ac_Header'}'`
7385 { echo "$as_me:$LINENO: result: $ac_res" >&5
7386 echo "${ECHO_T}$ac_res" >&6; }
7388 # Is the header compilable?
7389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7391 cat >conftest.
$ac_ext <<_ACEOF
7394 cat confdefs.h
>>conftest.
$ac_ext
7395 cat >>conftest.
$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7398 #include <$ac_header>
7400 rm -f conftest.
$ac_objext
7401 if { (ac_try
="$ac_compile"
7403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7417 ac_header_compiler=yes
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_header_compiler=no
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7427 echo "${ECHO_T}$ac_header_compiler" >&6; }
7429 # Is the header present?
7430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 #include <$ac_header>
7440 if { (ac_try="$ac_cpp conftest.$ac_ext"
7442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7443 *) ac_try_echo
=$ac_try;;
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7448 grep -v '^ *+' conftest.er1
>conftest.err
7450 cat conftest.err
>&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } >/dev
/null
&& {
7453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7454 test ! -s conftest.err
7456 ac_header_preproc
=yes
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.
$ac_ext >&5
7461 ac_header_preproc
=no
7464 rm -f conftest.err conftest.
$ac_ext
7465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7466 echo "${ECHO_T}$ac_header_preproc" >&6; }
7468 # So? What about this header?
7469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7475 ac_header_preproc
=yes
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7495 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 eval "$as_ac_Header=\$ac_header_preproc"
7500 ac_res
=`eval echo '${'$as_ac_Header'}'`
7501 { echo "$as_me:$LINENO: result: $ac_res" >&5
7502 echo "${ECHO_T}$ac_res" >&6; }
7505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7506 cat >>confdefs.h
<<_ACEOF
7507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 for ac_header
in net
/if.h
7517 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7520 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 cat >conftest.
$ac_ext <<_ACEOF
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 #if HAVE_SYS_SOCKET_H
7531 #include <sys/socket.h>
7534 #include <$ac_header>
7536 rm -f conftest.
$ac_objext
7537 if { (ac_try
="$ac_compile"
7539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7545 grep -v '^ *+' conftest.er1 >conftest.err
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 eval "$as_ac_Header=yes"
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 eval "$as_ac_Header=no"
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 ac_res=`eval echo '${'$as_ac_Header'}'`
7564 { echo "$as_me:$LINENO: result: $ac_res" >&5
7565 echo "${ECHO_T}$ac_res" >&6; }
7566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7567 cat >>confdefs.h <<_ACEOF
7568 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7576 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7577 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7578 if test "${ac_cv_struct_tm+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 cat >conftest.$ac_ext <<_ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 #include <sys/types.h>
7594 int *p = &tm.tm_sec;
7600 rm -f conftest.$ac_objext
7601 if { (ac_try="$ac_compile"
7603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7604 *) ac_try_echo
=$ac_try;;
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_compile") 2>conftest.er1
7609 grep -v '^ *+' conftest.er1
>conftest.err
7611 cat conftest.err
>&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && {
7614 test -z "$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7616 } && test -s conftest.
$ac_objext; then
7617 ac_cv_struct_tm
=time.h
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.
$ac_ext >&5
7622 ac_cv_struct_tm
=sys
/time.h
7625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7627 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7628 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7629 if test $ac_cv_struct_tm = sys
/time.h
; then
7631 cat >>confdefs.h
<<\_ACEOF
7632 #define TM_IN_SYS_TIME 1
7637 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7638 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7639 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 cat >conftest.
$ac_ext <<_ACEOF
7645 cat confdefs.h
>>conftest.
$ac_ext
7646 cat >>conftest.
$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <sys/types.h>
7649 #include <$ac_cv_struct_tm>
7655 static struct tm ac_aggr;
7656 if (ac_aggr.tm_zone)
7662 rm -f conftest.
$ac_objext
7663 if { (ac_try
="$ac_compile"
7665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 ac_cv_member_struct_tm_tm_zone=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 cat >conftest.$ac_ext <<_ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 #include <sys/types.h>
7691 #include <$ac_cv_struct_tm>
7697 static struct tm ac_aggr;
7698 if (sizeof ac_aggr.tm_zone)
7704 rm -f conftest.$ac_objext
7705 if { (ac_try="$ac_compile"
7707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7708 *) ac_try_echo
=$ac_try;;
7710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711 (eval "$ac_compile") 2>conftest.er1
7713 grep -v '^ *+' conftest.er1
>conftest.err
7715 cat conftest.err
>&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); } && {
7718 test -z "$ac_c_werror_flag" ||
7719 test ! -s conftest.err
7720 } && test -s conftest.
$ac_objext; then
7721 ac_cv_member_struct_tm_tm_zone
=yes
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.
$ac_ext >&5
7726 ac_cv_member_struct_tm_tm_zone
=no
7729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7734 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7735 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7736 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7738 cat >>confdefs.h
<<_ACEOF
7739 #define HAVE_STRUCT_TM_TM_ZONE 1
7745 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7747 cat >>confdefs.h
<<\_ACEOF
7748 #define HAVE_TM_ZONE 1
7752 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7753 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7754 if test "${ac_cv_have_decl_tzname+set}" = set; then
7755 echo $ECHO_N "(cached) $ECHO_C" >&6
7757 cat >conftest.
$ac_ext <<_ACEOF
7760 cat confdefs.h
>>conftest.
$ac_ext
7761 cat >>conftest.
$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7776 rm -f conftest.
$ac_objext
7777 if { (ac_try
="$ac_compile"
7779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7783 (eval "$ac_compile") 2>conftest.er1
7785 grep -v '^ *+' conftest.er1 >conftest.err
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } && {
7790 test -z "$ac_c_werror_flag" ||
7791 test ! -s conftest.err
7792 } && test -s conftest.$ac_objext; then
7793 ac_cv_have_decl_tzname=yes
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 ac_cv_have_decl_tzname=no
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7804 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7805 if test $ac_cv_have_decl_tzname = yes; then
7807 cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL_TZNAME 1
7813 cat >>confdefs.h <<_ACEOF
7814 #define HAVE_DECL_TZNAME 0
7821 { echo "$as_me:$LINENO: checking for tzname" >&5
7822 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7823 if test "${ac_cv_var_tzname+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. */
7833 #if !HAVE_DECL_TZNAME
7834 extern char *tzname[];
7840 return tzname[0][0];
7845 rm -f conftest.$ac_objext conftest$ac_exeext
7846 if { (ac_try="$ac_link"
7848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7849 *) ac_try_echo
=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_link") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1
>conftest.err
7856 cat conftest.err
>&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest
$ac_exeext &&
7862 $as_test_x conftest
$ac_exeext; then
7863 ac_cv_var_tzname
=yes
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.
$ac_ext >&5
7871 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7872 conftest
$ac_exeext conftest.
$ac_ext
7874 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7875 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7876 if test $ac_cv_var_tzname = yes; then
7878 cat >>confdefs.h
<<\_ACEOF
7879 #define HAVE_TZNAME 1
7885 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7886 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7887 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.
$ac_ext <<_ACEOF
7893 cat confdefs.h
>>conftest.
$ac_ext
7894 cat >>conftest.
$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7901 static struct tm ac_aggr;
7902 if (ac_aggr.tm_gmtoff)
7908 rm -f conftest.
$ac_objext
7909 if { (ac_try
="$ac_compile"
7911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7917 grep -v '^ *+' conftest.er1 >conftest.err
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_cv_member_struct_tm_tm_gmtoff=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7941 static struct tm ac_aggr;
7942 if (sizeof ac_aggr.tm_gmtoff)
7948 rm -f conftest.$ac_objext
7949 if { (ac_try="$ac_compile"
7951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7952 *) ac_try_echo
=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1
>conftest.err
7959 cat conftest.err
>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.
$ac_objext; then
7965 ac_cv_member_struct_tm_tm_gmtoff
=yes
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.
$ac_ext >&5
7970 ac_cv_member_struct_tm_tm_gmtoff
=no
7973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7978 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7979 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7980 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7982 cat >>confdefs.h
<<\_ACEOF
7983 #define HAVE_TM_GMTOFF 1
7988 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7989 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7990 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.
$ac_ext <<_ACEOF
7996 cat confdefs.h
>>conftest.
$ac_ext
7997 cat >>conftest.
$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8000 #if HAVE_SYS_SOCKET_H
8001 #include <sys/socket.h>
8010 static struct ifreq ac_aggr;
8011 if (ac_aggr.ifr_flags)
8017 rm -f conftest.
$ac_objext
8018 if { (ac_try
="$ac_compile"
8020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8026 grep -v '^ *+' conftest.er1 >conftest.err
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest.$ac_objext; then
8034 ac_cv_member_struct_ifreq_ifr_flags=yes
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 cat >conftest.$ac_ext <<_ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8046 #if HAVE_SYS_SOCKET_H
8047 #include <sys/socket.h>
8056 static struct ifreq ac_aggr;
8057 if (sizeof ac_aggr.ifr_flags)
8063 rm -f conftest.$ac_objext
8064 if { (ac_try="$ac_compile"
8066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8067 *) ac_try_echo
=$ac_try;;
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1
>conftest.err
8074 cat conftest.err
>&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.
$ac_objext; then
8080 ac_cv_member_struct_ifreq_ifr_flags
=yes
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.
$ac_ext >&5
8085 ac_cv_member_struct_ifreq_ifr_flags
=no
8088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8093 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8094 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8095 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8097 cat >>confdefs.h
<<_ACEOF
8098 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8103 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8104 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8105 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.
$ac_ext <<_ACEOF
8111 cat confdefs.h
>>conftest.
$ac_ext
8112 cat >>conftest.
$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8114 $ac_includes_default
8115 #if HAVE_SYS_SOCKET_H
8116 #include <sys/socket.h>
8125 static struct ifreq ac_aggr;
8126 if (ac_aggr.ifr_hwaddr)
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_ifreq_ifr_hwaddr=yes
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8154 cat >conftest.$ac_ext <<_ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160 $ac_includes_default
8161 #if HAVE_SYS_SOCKET_H
8162 #include <sys/socket.h>
8171 static struct ifreq ac_aggr;
8172 if (sizeof ac_aggr.ifr_hwaddr)
8178 rm -f conftest.$ac_objext
8179 if { (ac_try="$ac_compile"
8181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8182 *) ac_try_echo
=$ac_try;;
8184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_compile") 2>conftest.er1
8187 grep -v '^ *+' conftest.er1
>conftest.err
8189 cat conftest.err
>&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && {
8192 test -z "$ac_c_werror_flag" ||
8193 test ! -s conftest.err
8194 } && test -s conftest.
$ac_objext; then
8195 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.
$ac_ext >&5
8200 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8209 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8210 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8212 cat >>confdefs.h
<<_ACEOF
8213 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8218 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8219 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8220 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
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 (ac_aggr.ifr_netmask)
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_netmask=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 $ac_includes_default
8276 #if HAVE_SYS_SOCKET_H
8277 #include <sys/socket.h>
8286 static struct ifreq ac_aggr;
8287 if (sizeof ac_aggr.ifr_netmask)
8293 rm -f conftest.$ac_objext
8294 if { (ac_try="$ac_compile"
8296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8297 *) ac_try_echo
=$ac_try;;
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8302 grep -v '^ *+' conftest.er1
>conftest.err
8304 cat conftest.err
>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.
$ac_objext; then
8310 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.
$ac_ext >&5
8315 ac_cv_member_struct_ifreq_ifr_netmask
=no
8318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8323 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8324 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8325 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8327 cat >>confdefs.h
<<_ACEOF
8328 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8333 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8334 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8335 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
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 (ac_aggr.ifr_broadaddr)
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_broadaddr=yes
8381 echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 #if HAVE_SYS_SOCKET_H
8392 #include <sys/socket.h>
8401 static struct ifreq ac_aggr;
8402 if (sizeof ac_aggr.ifr_broadaddr)
8408 rm -f conftest.$ac_objext
8409 if { (ac_try="$ac_compile"
8411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8412 *) ac_try_echo
=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8417 grep -v '^ *+' conftest.er1
>conftest.err
8419 cat conftest.err
>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.
$ac_objext; then
8425 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.
$ac_ext >&5
8430 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8438 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8439 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8440 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8442 cat >>confdefs.h
<<_ACEOF
8443 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8448 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8449 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8450 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
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 (ac_aggr.ifr_addr)
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_addr=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8505 $ac_includes_default
8506 #if HAVE_SYS_SOCKET_H
8507 #include <sys/socket.h>
8516 static struct ifreq ac_aggr;
8517 if (sizeof ac_aggr.ifr_addr)
8523 rm -f conftest.$ac_objext
8524 if { (ac_try="$ac_compile"
8526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8527 *) ac_try_echo
=$ac_try;;
8529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_compile") 2>conftest.er1
8532 grep -v '^ *+' conftest.er1
>conftest.err
8534 cat conftest.err
>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && {
8537 test -z "$ac_c_werror_flag" ||
8538 test ! -s conftest.err
8539 } && test -s conftest.
$ac_objext; then
8540 ac_cv_member_struct_ifreq_ifr_addr
=yes
8542 echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.
$ac_ext >&5
8545 ac_cv_member_struct_ifreq_ifr_addr
=no
8548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8553 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8554 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8555 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8557 cat >>confdefs.h
<<_ACEOF
8558 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8566 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8567 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8568 if test "$ac_cv_prog_cc_c89" != no
; then
8569 { echo "$as_me:$LINENO: result: yes" >&5
8570 echo "${ECHO_T}yes" >&6; }
8572 cat >>confdefs.h
<<\_ACEOF
8573 #define PROTOTYPES 1
8577 cat >>confdefs.h
<<\_ACEOF
8578 #define __PROTOTYPES 1
8582 { echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6; }
8586 { echo "$as_me:$LINENO: checking for working volatile" >&5
8587 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8588 if test "${ac_cv_c_volatile+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 cat >conftest.
$ac_ext <<_ACEOF
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8603 int * volatile y = (int *) 0;
8609 rm -f conftest.
$ac_objext
8610 if { (ac_try
="$ac_compile"
8612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_cv_c_volatile=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8637 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8638 if test $ac_cv_c_volatile = no; then
8640 cat >>confdefs.h <<\_ACEOF
8646 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8647 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8648 if test "${ac_cv_c_const+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8661 /* FIXME: Include the comments suggested by Paul. */
8663 /* Ultrix mips cc rejects this. */
8664 typedef int charset[2];
8666 /* SunOS 4.1.1 cc rejects this. */
8667 char const *const *pcpcc;
8669 /* NEC SVR4.0.2 mips cc rejects this. */
8670 struct point {int x, y;};
8671 static struct point const zero = {0,0};
8672 /* AIX XL C 1.02.0.0 rejects this.
8673 It does not let you subtract one const X* pointer from another in
8674 an arm of an if-expression whose if-part is not a constant
8676 const char *g = "string";
8677 pcpcc = &g + (g ? g-g : 0);
8678 /* HPUX 7.0 cc rejects these. */
8680 ppc = (char**) pcpcc;
8681 pcpcc = (char const *const *) ppc;
8682 { /* SCO 3.2v4 cc rejects this. */
8684 char const *s = 0 ? (char *) 0 : (char const *) 0;
8689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8691 const int *foo = &x[0];
8694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8695 typedef const int *iptr;
8699 { /* AIX XL C 1.02.0.0 rejects this saying
8700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8701 struct s { int j; const int *ap[3]; };
8702 struct s *b; b->j = 5;
8704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8708 return !cs[0] && !zero.x;
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8719 *) ac_try_echo
=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1
>conftest.err
8726 cat conftest.err
>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.
$ac_objext; then
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8742 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8743 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8744 if test $ac_cv_c_const = no
; then
8746 cat >>confdefs.h
<<\_ACEOF
8752 { echo "$as_me:$LINENO: checking for void * support" >&5
8753 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8754 if test "${emacs_cv_void_star+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 cat >conftest.
$ac_ext <<_ACEOF
8760 cat confdefs.h
>>conftest.
$ac_ext
8761 cat >>conftest.
$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8772 rm -f conftest.
$ac_objext
8773 if { (ac_try
="$ac_compile"
8775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 emacs_cv_void_star=yes
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 emacs_cv_void_star=no
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8800 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8801 if test $emacs_cv_void_star = yes; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define POINTER_TYPE void
8807 cat >>confdefs.h <<\_ACEOF
8808 #define POINTER_TYPE char
8817 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8819 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8820 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 cat >conftest.make <<\_ACEOF
8826 @echo '@@@%%%=$(MAKE)=@@@%%%'
8828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8829 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8831 eval ac_cv_prog_make_${ac_make}_set=yes;;
8833 eval ac_cv_prog_make_${ac_make}_set=no;;
8837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8838 { echo "$as_me:$LINENO: result: yes" >&5
8839 echo "${ECHO_T}yes" >&6; }
8842 { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8844 SET_MAKE="MAKE=${MAKE-make}"
8848 { echo "$as_me:$LINENO: checking for long file names" >&5
8849 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8850 if test "${ac_cv_sys_long_file_names+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 ac_cv_sys_long_file_names=yes
8854 # Test for long file names in all the places we know might matter:
8855 # . the current directory, where building will happen
8856 # $prefix/lib where we will be installing things
8857 # $exec_prefix/lib likewise
8858 # $TMPDIR if set, where it might want to write temporary files
8859 # /tmp where it might want to write temporary files
8862 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8863 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8864 # in the usual case where exec_prefix is '${prefix}'.
8866 . | /* | ?:[\\/]*) ;; #(
8869 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8870 ac_xdir=$ac_dir/cf$$
8871 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8872 ac_tf1=$ac_xdir/conftest9012345
8873 ac_tf2=$ac_xdir/conftest9012346
8874 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8875 ac_cv_sys_long_file_names=no
8876 rm -f -r "$ac_xdir" 2>/dev/null
8877 test $ac_cv_sys_long_file_names = no && break
8880 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8881 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8882 if test $ac_cv_sys_long_file_names = yes; then
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_LONG_FILE_NAMES 1
8891 #### Choose a window system.
8893 { echo "$as_me:$LINENO: checking for X" >&5
8894 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8897 # Check whether --with-x was given.
8898 if test "${with_x+set}" = set; then
8902 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8903 if test "x$with_x" = xno; then
8904 # The user explicitly disabled X.
8907 case $x_includes,$x_libraries in #(
8908 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8909 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8910 { (exit 1); exit 1; }; };; #(
8911 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 # One or both of the vars are not set, and there is no cached value.
8915 ac_x_includes=no ac_x_libraries=no
8916 rm -f -r conftest.dir
8917 if mkdir conftest.dir; then
8919 cat >Imakefile <<'_ACEOF'
8921 @echo incroot='${INCROOT}'
8923 @echo usrlibdir='${USRLIBDIR}'
8925 @echo libdir='${LIBDIR}'
8927 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8929 for ac_var in incroot usrlibdir libdir; do
8930 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8932 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8933 for ac_extension in a so sl; do
8934 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8935 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8936 ac_im_usrlibdir=$ac_im_libdir; break
8939 # Screen out bogus values from the imake configuration. They are
8940 # bogus both because they are the default anyway, and because
8941 # using them would break gcc on systems where it needs fixed includes.
8942 case $ac_im_incroot in
8943 /usr/include) ac_x_includes= ;;
8944 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8946 case $ac_im_usrlibdir in
8948 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8952 rm -f -r conftest.dir
8955 # Standard set of common directories for X headers.
8956 # Check X11 before X11Rn because it is often a symlink to the current release.
8968 /usr/local/X11/include
8969 /usr/local/X11R6/include
8970 /usr/local/X11R5/include
8971 /usr/local/X11R4/include
8973 /usr/local/include/X11
8974 /usr/local/include/X11R6
8975 /usr/local/include/X11R5
8976 /usr/local/include/X11R4
8980 /usr/XFree86/include/X11
8984 /usr/unsupported/include
8986 /usr/local/x11r5/include
8987 /usr/lpp/Xamples/include
8989 /usr/openwin/include
8990 /usr/openwin/share/include'
8992 if test "$ac_x_includes" = no; then
8993 # Guess where to find include files, by looking for Xlib.h.
8994 # First, try using that file with no special directory specified.
8995 cat >conftest.$ac_ext <<_ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h. */
9001 #include <X11/Xlib.h>
9003 if { (ac_try="$ac_cpp conftest.$ac_ext"
9005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9006 *) ac_try_echo
=$ac_try;;
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9011 grep -v '^ *+' conftest.er1
>conftest.err
9013 cat conftest.err
>&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } >/dev
/null
&& {
9016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9017 test ! -s conftest.err
9019 # We can compile using X headers with no special include directory.
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.
$ac_ext >&5
9025 for ac_dir
in $ac_x_header_dirs; do
9026 if test -r "$ac_dir/X11/Xlib.h"; then
9027 ac_x_includes
=$ac_dir
9033 rm -f conftest.err conftest.
$ac_ext
9034 fi # $ac_x_includes = no
9036 if test "$ac_x_libraries" = no
; then
9037 # Check for the libraries.
9038 # See if we find them without any special options.
9039 # Don't add to $LIBS permanently.
9042 cat >conftest.
$ac_ext <<_ACEOF
9045 cat confdefs.h
>>conftest.
$ac_ext
9046 cat >>conftest.
$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 #include <X11/Xlib.h>
9057 rm -f conftest.
$ac_objext conftest
$ac_exeext
9058 if { (ac_try
="$ac_link"
9060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_link") 2>conftest.er1
9066 grep -v '^ *+' conftest.er1 >conftest.err
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } && {
9071 test -z "$ac_c_werror_flag" ||
9072 test ! -s conftest.err
9073 } && test -s conftest$ac_exeext &&
9074 $as_test_x conftest$ac_exeext; then
9076 # We can link X programs with no special library path.
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9083 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9085 # Don't even attempt the hair of trying to link an X program!
9086 for ac_extension in a so sl; do
9087 if test -r "$ac_dir/libX11.$ac_extension"; then
9088 ac_x_libraries=$ac_dir
9095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9096 conftest$ac_exeext conftest.$ac_ext
9097 fi # $ac_x_libraries = no
9099 case $ac_x_includes,$ac_x_libraries in #(
9101 # Didn't find X, or a directory has "'" in its name.
9102 ac_cv_have_x="have_x=no";; #(
9104 # Record where we found X for the cache.
9105 ac_cv_have_x="have_x=yes\
9106 ac_x_includes='$ac_x_includes'\
9107 ac_x_libraries='$ac_x_libraries'"
9113 eval "$ac_cv_have_x"
9116 if test "$have_x" != yes; then
9117 { echo "$as_me:$LINENO: result: $have_x" >&5
9118 echo "${ECHO_T}$have_x" >&6; }
9121 # If each of the values was on the command line, it overrides each guess.
9122 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9123 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9124 # Update the cache value to reflect the command line values.
9125 ac_cv_have_x="have_x=yes\
9126 ac_x_includes='$x_includes'\
9127 ac_x_libraries='$x_libraries'"
9128 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9129 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9132 if test "$no_x" = yes; then
9138 ## Workaround for bug in autoconf <= 2.62.
9139 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9140 ## No need to do anything special for these standard directories.
9141 ## This is an experiment, take it out if it causes problems.
9142 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9144 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9148 if test "${x_libraries}" != NONE; then
9149 if test -n "${x_libraries}"; then
9150 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9151 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9153 x_default_search_path=""
9154 x_search_path=${x_libraries}
9155 if test -z "${x_search_path}"; then
9156 x_search_path=/usr/lib
9158 for x_library in `echo ${x_search_path}: | \
9159 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9161 ${x_library}/X11/%L/%T/%N%C%S:\
9162 ${x_library}/X11/%l/%T/%N%C%S:\
9163 ${x_library}/X11/%T/%N%C%S:\
9164 ${x_library}/X11/%L/%T/%N%S:\
9165 ${x_library}/X11/%l/%T/%N%S:\
9166 ${x_library}/X11/%T/%N%S"
9167 if test x"${x_default_search_path}" = x; then
9168 x_default_search_path=${x_search_path}
9170 x_default_search_path="${x_search_path}:${x_default_search_path}"
9174 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9175 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9178 if test x"${x_includes}" = x; then
9179 bitmapdir=/usr/include/X11/bitmaps
9181 # accumulate include directories that have X11 bitmap subdirectories
9183 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9184 if test -d "${bmd}/X11/bitmaps"; then
9185 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9187 if test -d "${bmd}/bitmaps"; then
9188 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9191 if test ${bmd_acc} != "dummyval"; then
9192 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9197 if test "${with_carbon}" != no; then
9198 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9199 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9200 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9201 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9205 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9207 # Is the header compilable?
9208 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9209 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9210 cat >conftest.$ac_ext <<_ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 $ac_includes_default
9217 #include <Carbon/Carbon.h>
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9223 *) ac_try_echo
=$ac_try;;
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_compile") 2>conftest.er1
9228 grep -v '^ *+' conftest.er1
>conftest.err
9230 cat conftest.err
>&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest.
$ac_objext; then
9236 ac_header_compiler
=yes
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.
$ac_ext >&5
9241 ac_header_compiler
=no
9244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6; }
9248 # Is the header present?
9249 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9250 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9251 cat >conftest.
$ac_ext <<_ACEOF
9254 cat confdefs.h
>>conftest.
$ac_ext
9255 cat >>conftest.
$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <Carbon/Carbon.h>
9259 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } >/dev/null && {
9272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9275 ac_header_preproc=yes
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9280 ac_header_preproc=no
9283 rm -f conftest.err conftest.$ac_ext
9284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9285 echo "${ECHO_T}$ac_header_preproc" >&6; }
9287 # So? What about this header?
9288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9290 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9291 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9293 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9294 ac_header_preproc=yes
9297 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9298 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9300 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9302 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9304 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9307 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9308 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9312 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9313 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9314 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9319 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9320 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9323 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9328 test "${HAVE_CARBON}" = yes && window_system=mac
9334 tmp_CPPFLAGS="$CPPFLAGS"
9335 tmp_CFLAGS="$CFLAGS"
9336 CPPFLAGS="$CPPFLAGS -x objective-c"
9337 CFLAGS="$CFLAGS -x objective-c"
9338 if test "${with_ns}" != no; then
9339 if test "${opsys}" = darwin; then
9341 ns_appdir=`pwd`/nextstep/Emacs.app
9342 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9343 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9344 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9345 elif test -f /etc/GNUstep/GNUstep.conf; then
9347 ns_appdir=`pwd`/nextstep/Emacs.app
9348 ns_appbindir=`pwd`/nextstep/Emacs.app
9349 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9350 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9351 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9352 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9353 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9354 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9355 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9356 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9357 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9359 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9360 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9361 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9362 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9368 # Is the header compilable?
9369 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9370 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9371 cat >conftest.$ac_ext <<_ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9378 #include <AppKit/AppKit.h>
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9384 *) ac_try_echo
=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1
>conftest.err
9391 cat conftest.err
>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.
$ac_objext; then
9397 ac_header_compiler
=yes
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.
$ac_ext >&5
9402 ac_header_compiler
=no
9405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6; }
9409 # Is the header present?
9410 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9411 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9412 cat >conftest.
$ac_ext <<_ACEOF
9415 cat confdefs.h
>>conftest.
$ac_ext
9416 cat >>conftest.
$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 #include <AppKit/AppKit.h>
9420 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } >/dev/null && {
9433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9436 ac_header_preproc=yes
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_preproc=no
9444 rm -f conftest.err conftest.$ac_ext
9445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446 echo "${ECHO_T}$ac_header_preproc" >&6; }
9448 # So? What about this header?
9449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9451 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9452 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9454 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
9458 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9459 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9461 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9463 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9465 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9469 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9473 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9474 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9475 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9480 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9481 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9484 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9490 if test "${HAVE_NS}" = yes; then
9491 test "${window_system}" = mac && HAVE_CARBON=no
9492 window_system=nextstep
9495 # set up packaging dirs
9496 exec_prefix=${ns_appbindir}
9497 libexecdir=${ns_appbindir}/libexec
9498 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9499 prefix=${ns_appresdir}
9502 CFLAGS="$tmp_CFLAGS"
9503 CPPFLAGS="$tmp_CPPFLAGS"
9505 case "${window_system}" in
9509 case "${with_x_toolkit}" in
9510 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9511 motif ) USE_X_TOOLKIT=MOTIF ;;
9513 USE_X_TOOLKIT=none ;;
9514 no ) USE_X_TOOLKIT=none ;;
9515 * ) USE_X_TOOLKIT=maybe ;;
9518 nextstep | mac | none )
9525 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9526 # Extract the first word of "X", so it can be a program name with args.
9527 set dummy X; ac_word=$2
9528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9530 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 if test -n "$HAVE_XSERVER"; then
9534 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543 ac_cv_prog_HAVE_XSERVER="true"
9544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9554 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9555 if test -n "$HAVE_XSERVER"; then
9556 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9557 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9559 { echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6; }
9564 if test "$HAVE_XSERVER" = true ||
9565 test -n "$DISPLAY" ||
9566 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9567 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9568 were found. You should install the relevant development files for X
9569 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9570 sure you have development files for image handling, i.e.
9571 tiff, gif, jpeg, png and xpm.
9572 If you are sure you want Emacs compiled without X window support, pass
9575 echo "$as_me: error: You seem to be running X, but no X development libraries
9576 were found. You should install the relevant development files for X
9577 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9578 sure you have development files for image handling, i.e.
9579 tiff, gif, jpeg, png and xpm.
9580 If you are sure you want Emacs compiled without X window support, pass
9582 to configure." >&2;}
9583 { (exit 1); exit 1; }; }
9587 ### If we're using X11, we should use the X menu package.
9590 yes ) HAVE_MENUS=yes ;;
9593 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9594 # Assume not, until told otherwise.
9597 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9598 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9599 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 cat >conftest.$ac_ext <<_ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9610 #define malloc_get_state innocuous_malloc_get_state
9612 /* System header to define __stub macros and hopefully few prototypes,
9613 which can conflict with char malloc_get_state (); below.
9614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9615 <limits.h> exists even on freestanding compilers. */
9618 # include <limits.h>
9620 # include <assert.h>
9623 #undef malloc_get_state
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9631 char malloc_get_state ();
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9642 return malloc_get_state ();
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9651 *) ac_try_echo
=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1
>conftest.err
9658 cat conftest.err
>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest
$ac_exeext &&
9664 $as_test_x conftest
$ac_exeext; then
9665 ac_cv_func_malloc_get_state
=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.
$ac_ext >&5
9670 ac_cv_func_malloc_get_state
=no
9673 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9674 conftest
$ac_exeext conftest.
$ac_ext
9676 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9677 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9678 if test $ac_cv_func_malloc_get_state = yes; then
9684 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9685 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9686 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.
$ac_ext <<_ACEOF
9692 cat confdefs.h
>>conftest.
$ac_ext
9693 cat >>conftest.
$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697 #define malloc_set_state innocuous_malloc_set_state
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char malloc_set_state (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9705 # include <limits.h>
9707 # include <assert.h>
9710 #undef malloc_set_state
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9718 char malloc_set_state ();
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9729 return malloc_set_state ();
9734 rm -f conftest.
$ac_objext conftest
$ac_exeext
9735 if { (ac_try
="$ac_link"
9737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 ac_cv_func_malloc_set_state=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_func_malloc_set_state=no
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9763 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9764 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9765 if test $ac_cv_func_malloc_set_state = yes; then
9771 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9772 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9773 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 cat >conftest.$ac_ext <<_ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 extern void (* __after_morecore_hook)();
9786 __after_morecore_hook = 0
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9795 *) ac_try_echo
=$ac_try;;
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_link") 2>conftest.er1
9800 grep -v '^ *+' conftest.er1
>conftest.err
9802 cat conftest.err
>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest
$ac_exeext &&
9808 $as_test_x conftest
$ac_exeext; then
9809 emacs_cv_var___after_morecore_hook
=yes
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.
$ac_ext >&5
9814 emacs_cv_var___after_morecore_hook
=no
9817 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9818 conftest
$ac_exeext conftest.
$ac_ext
9820 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9821 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9822 if test $emacs_cv_var___after_morecore_hook = no
; then
9825 if test "${system_malloc}" = "yes"; then
9828 (The GNU allocators don't work with this system configuration.)"
9830 if test "$doug_lea_malloc" = "yes" ; then
9831 if test "$GNU_MALLOC" = yes ; then
9833 (Using Doug Lea's new malloc from the GNU C Library.)"
9836 cat >>confdefs.h
<<\_ACEOF
9837 #define DOUG_LEA_MALLOC 1
9842 if test x
"${REL_ALLOC}" = x
; then
9843 REL_ALLOC
=${GNU_MALLOC}
9849 for ac_header
in stdlib.h unistd.h
9851 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9855 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 ac_res
=`eval echo '${'$as_ac_Header'}'`
9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9860 echo "${ECHO_T}$ac_res" >&6; }
9862 # Is the header compilable?
9863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9865 cat >conftest.
$ac_ext <<_ACEOF
9868 cat confdefs.h
>>conftest.
$ac_ext
9869 cat >>conftest.
$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 $ac_includes_default
9872 #include <$ac_header>
9874 rm -f conftest.
$ac_objext
9875 if { (ac_try
="$ac_compile"
9877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_compile") 2>conftest.er1
9883 grep -v '^ *+' conftest.er1 >conftest.err
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } && {
9888 test -z "$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 } && test -s conftest.$ac_objext; then
9891 ac_header_compiler=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_header_compiler=no
9899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9901 echo "${ECHO_T}$ac_header_compiler" >&6; }
9903 # Is the header present?
9904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 #include <$ac_header>
9914 if { (ac_try="$ac_cpp conftest.$ac_ext"
9916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9917 *) ac_try_echo
=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9922 grep -v '^ *+' conftest.er1
>conftest.err
9924 cat conftest.err
>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } >/dev
/null
&& {
9927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9930 ac_header_preproc
=yes
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.
$ac_ext >&5
9935 ac_header_preproc
=no
9938 rm -f conftest.err conftest.
$ac_ext
9939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9940 echo "${ECHO_T}$ac_header_preproc" >&6; }
9942 # So? What about this header?
9943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9949 ac_header_preproc
=yes
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9969 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 eval "$as_ac_Header=\$ac_header_preproc"
9974 ac_res
=`eval echo '${'$as_ac_Header'}'`
9975 { echo "$as_me:$LINENO: result: $ac_res" >&5
9976 echo "${ECHO_T}$ac_res" >&6; }
9979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9980 cat >>confdefs.h
<<_ACEOF
9981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9989 for ac_func
in getpagesize
9991 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9994 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 cat >conftest.
$ac_ext <<_ACEOF
10000 cat confdefs.h
>>conftest.
$ac_ext
10001 cat >>conftest.
$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10005 #define $ac_func innocuous_$ac_func
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char $ac_func (); below.
10009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010 <limits.h> exists even on freestanding compilers. */
10013 # include <limits.h>
10015 # include <assert.h>
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined __stub_$ac_func || defined __stub___$ac_func
10037 return $ac_func ();
10042 rm -f conftest.
$ac_objext conftest
$ac_exeext
10043 if { (ac_try
="$ac_link"
10044 case "(($ac_try" in
10045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest$ac_exeext &&
10059 $as_test_x conftest$ac_exeext; then
10060 eval "$as_ac_var=yes"
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 eval "$as_ac_var=no"
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10071 ac_res=`eval echo '${'$as_ac_var'}'`
10072 { echo "$as_me:$LINENO: result: $ac_res" >&5
10073 echo "${ECHO_T}$ac_res" >&6; }
10074 if test `eval echo '${'$as_ac_var'}'` = yes; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10082 { echo "$as_me:$LINENO: checking for working mmap" >&5
10083 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10084 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 if test "$cross_compiling" = yes; then
10088 ac_cv_func_mmap_fixed_mapped=no
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 $ac_includes_default
10097 /* malloc might have been renamed as rpl_malloc. */
10100 /* Thanks to Mike Haertel and Jim Avera for this test.
10101 Here is a matrix of mmap possibilities:
10102 mmap private not fixed
10103 mmap private fixed at somewhere currently unmapped
10104 mmap private fixed at somewhere already mapped
10105 mmap shared not fixed
10106 mmap shared fixed at somewhere currently unmapped
10107 mmap shared fixed at somewhere already mapped
10108 For private mappings, we should verify that changes cannot be read()
10109 back from the file, nor mmap's back from the file at a different
10110 address. (There have been systems where private was not correctly
10111 implemented like the infamous i386 svr4.0, and systems where the
10112 VM page cache was not coherent with the file system buffer cache
10113 like early versions of FreeBSD and possibly contemporary NetBSD.)
10114 For shared mappings, we should conversely verify that changes get
10115 propagated back to all the places they're supposed to be.
10117 Grep wants private fixed already mapped.
10118 The main things grep needs to know about mmap are:
10119 * does it exist and is it safe to write into the mmap'd area
10120 * how to use it (BSD variants) */
10123 #include <sys/mman.h>
10125 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10129 /* This mess was copied from the GNU getpagesize.h. */
10130 #ifndef HAVE_GETPAGESIZE
10131 /* Assume that all systems that can run configure have sys/param.h. */
10132 # ifndef HAVE_SYS_PARAM_H
10133 # define HAVE_SYS_PARAM_H 1
10136 # ifdef _SC_PAGESIZE
10137 # define getpagesize() sysconf(_SC_PAGESIZE)
10138 # else /* no _SC_PAGESIZE */
10139 # ifdef HAVE_SYS_PARAM_H
10140 # include <sys/param.h>
10141 # ifdef EXEC_PAGESIZE
10142 # define getpagesize() EXEC_PAGESIZE
10143 # else /* no EXEC_PAGESIZE */
10145 # define getpagesize() NBPG * CLSIZE
10148 # endif /* no CLSIZE */
10149 # else /* no NBPG */
10151 # define getpagesize() NBPC
10152 # else /* no NBPC */
10154 # define getpagesize() PAGESIZE
10155 # endif /* PAGESIZE */
10156 # endif /* no NBPC */
10157 # endif /* no NBPG */
10158 # endif /* no EXEC_PAGESIZE */
10159 # else /* no HAVE_SYS_PARAM_H */
10160 # define getpagesize() 8192 /* punt totally */
10161 # endif /* no HAVE_SYS_PARAM_H */
10162 # endif /* no _SC_PAGESIZE */
10164 #endif /* no HAVE_GETPAGESIZE */
10169 char *data, *data2, *data3;
10173 pagesize = getpagesize ();
10175 /* First, make a file with some known garbage in it. */
10176 data = (char *) malloc (pagesize);
10179 for (i = 0; i < pagesize; ++i)
10180 *(data + i) = rand ();
10182 fd = creat ("conftest.mmap", 0600);
10185 if (write (fd, data, pagesize) != pagesize)
10189 /* Next, try to mmap the file at a fixed address which already has
10190 something else allocated at it. If we can, also make sure that
10191 we see the same garbage. */
10192 fd = open ("conftest.mmap", O_RDWR);
10195 data2 = (char *) malloc (2 * pagesize);
10198 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10200 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10202 for (i = 0; i < pagesize; ++i)
10203 if (*(data + i) != *(data2 + i))
10206 /* Finally, make sure that changes to the mapped area do not
10207 percolate back to the file as seen by read(). (This is a bug on
10208 some variants of i386 svr4.0.) */
10209 for (i = 0; i < pagesize; ++i)
10210 *(data2 + i) = *(data2 + i) + 1;
10211 data3 = (char *) malloc (pagesize);
10214 if (read (fd, data3, pagesize) != pagesize)
10216 for (i = 0; i < pagesize; ++i)
10217 if (*(data + i) != *(data3 + i))
10223 rm -f conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10227 *) ac_try_echo
=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>&5
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10234 { (case "(($ac_try" in
10235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_try") 2>&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_func_mmap_fixed_mapped=yes
10245 echo "$as_me: program exited with status $ac_status" >&5
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ( exit $ac_status )
10250 ac_cv_func_mmap_fixed_mapped=no
10252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10257 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10258 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10259 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10261 cat >>confdefs.h <<\_ACEOF
10262 #define HAVE_MMAP 1
10266 rm -f conftest.mmap
10268 if test $use_mmap_for_buffers = yes; then
10272 LIBS="$libsrc_libs $LIBS"
10275 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10276 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10277 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-ldnet $LIBS"
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10299 return dnet_ntoa ();
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (ac_try="$ac_link"
10306 case "(($ac_try" in
10307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10308 *) ac_try_echo
=$ac_try;;
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_link") 2>conftest.er1
10313 grep -v '^ *+' conftest.er1
>conftest.err
10315 cat conftest.err
>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest
$ac_exeext &&
10321 $as_test_x conftest
$ac_exeext; then
10322 ac_cv_lib_dnet_dnet_ntoa
=yes
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.
$ac_ext >&5
10327 ac_cv_lib_dnet_dnet_ntoa
=no
10330 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10331 conftest
$ac_exeext conftest.
$ac_ext
10332 LIBS
=$ac_check_lib_save_LIBS
10334 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10335 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10336 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10337 cat >>confdefs.h
<<_ACEOF
10338 #define HAVE_LIBDNET 1
10341 LIBS
="-ldnet $LIBS"
10346 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10347 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10351 ac_check_lib_save_LIBS
=$LIBS
10352 LIBS
="-lXbsd $LIBS"
10353 cat >conftest.
$ac_ext <<_ACEOF
10356 cat confdefs.h
>>conftest.
$ac_ext
10357 cat >>conftest.
$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10369 rm -f conftest.
$ac_objext conftest
$ac_exeext
10370 if { (ac_try
="$ac_link"
10371 case "(($ac_try" in
10372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest$ac_exeext &&
10386 $as_test_x conftest$ac_exeext; then
10387 ac_cv_lib_Xbsd_main=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_lib_Xbsd_main=no
10395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10396 conftest$ac_exeext conftest.$ac_ext
10397 LIBS=$ac_check_lib_save_LIBS
10399 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10400 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10401 if test $ac_cv_lib_Xbsd_main = yes; then
10402 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10407 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10408 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10409 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lpthreads $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10421 /* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
10431 return cma_open ();
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10440 *) ac_try_echo
=$ac_try;;
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_link") 2>conftest.er1
10445 grep -v '^ *+' conftest.er1
>conftest.err
10447 cat conftest.err
>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } && {
10450 test -z "$ac_c_werror_flag" ||
10451 test ! -s conftest.err
10452 } && test -s conftest
$ac_exeext &&
10453 $as_test_x conftest
$ac_exeext; then
10454 ac_cv_lib_pthreads_cma_open
=yes
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.
$ac_ext >&5
10459 ac_cv_lib_pthreads_cma_open
=no
10462 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10463 conftest
$ac_exeext conftest.
$ac_ext
10464 LIBS
=$ac_check_lib_save_LIBS
10466 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10467 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10468 if test $ac_cv_lib_pthreads_cma_open = yes; then
10469 cat >>confdefs.h
<<_ACEOF
10470 #define HAVE_LIBPTHREADS 1
10473 LIBS
="-lpthreads $LIBS"
10481 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10482 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10483 if test "${gdb_cv_bigtoc+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10489 *) gdb_cv_bigtoc
=-bbigtoc ;;
10492 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10493 cat >conftest.
$ac_ext <<_ACEOF
10496 cat confdefs.h
>>conftest.
$ac_ext
10497 cat >>conftest.
$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10508 rm -f conftest.
$ac_objext conftest
$ac_exeext
10509 if { (ac_try
="$ac_link"
10510 case "(($ac_try" in
10511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext &&
10525 $as_test_x conftest$ac_exeext; then
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10535 conftest$ac_exeext conftest.$ac_ext
10538 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10539 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10543 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10544 # used for the tests that follow. We set them back to REAL_CFLAGS and
10545 # REAL_CPPFLAGS later on.
10547 REAL_CPPFLAGS="$CPPFLAGS"
10549 if test "${HAVE_X11}" = "yes"; then
10550 DEFS="$C_SWITCH_X_SITE $DEFS"
10551 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10553 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10554 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10556 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10557 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10558 # but it's more convenient here to set LD_RUN_PATH
10559 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10560 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10561 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10565 if test "${opsys}" = "gnu-linux"; then
10566 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10567 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10578 XOpenDisplay ("foo");
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10587 *) ac_try_echo
=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10592 grep -v '^ *+' conftest.er1
>conftest.err
10594 cat conftest.err
>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && {
10597 test -z "$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 } && test -s conftest
$ac_exeext &&
10600 $as_test_x conftest
$ac_exeext; then
10601 xlinux_first_failure
=no
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.
$ac_ext >&5
10606 xlinux_first_failure
=yes
10609 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10610 conftest
$ac_exeext conftest.
$ac_ext
10611 if test "${xlinux_first_failure}" = "yes"; then
10612 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10613 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10614 OLD_CPPFLAGS
="$CPPFLAGS"
10616 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10617 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10618 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10619 LIBS
="$LIBS -b i486-linuxaout"
10620 cat >conftest.
$ac_ext <<_ACEOF
10623 cat confdefs.h
>>conftest.
$ac_ext
10624 cat >>conftest.
$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10630 XOpenDisplay ("foo");
10635 rm -f conftest.
$ac_objext conftest
$ac_exeext
10636 if { (ac_try
="$ac_link"
10637 case "(($ac_try" in
10638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_link") 2>conftest.er1
10644 grep -v '^ *+' conftest.er1 >conftest.err
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && {
10649 test -z "$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 } && test -s conftest$ac_exeext &&
10652 $as_test_x conftest$ac_exeext; then
10653 xlinux_second_failure=no
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 xlinux_second_failure=yes
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662 conftest$ac_exeext conftest.$ac_ext
10663 if test "${xlinux_second_failure}" = "yes"; then
10664 # If we get the same failure with -b, there is no use adding -b.
10665 # So take it out. This plays safe.
10666 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10667 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10668 CPPFLAGS="$OLD_CPPFLAGS"
10670 { echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6; }
10673 { echo "$as_me:$LINENO: result: yes" >&5
10674 echo "${ECHO_T}yes" >&6; }
10677 { echo "$as_me:$LINENO: result: no" >&5
10678 echo "${ECHO_T}no" >&6; }
10682 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10683 # header files included from there.
10684 { echo "$as_me:$LINENO: checking for Xkb" >&5
10685 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <X11/Xlib.h>
10693 #include <X11/XKBlib.h>
10697 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10706 *) ac_try_echo
=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>conftest.er1
10711 grep -v '^ *+' conftest.er1
>conftest.err
10713 cat conftest.err
>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_c_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest
$ac_exeext &&
10719 $as_test_x conftest
$ac_exeext; then
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.
$ac_ext >&5
10728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10729 conftest
$ac_exeext conftest.
$ac_ext
10730 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10731 echo "${ECHO_T}$emacs_xkb" >&6; }
10732 if test $emacs_xkb = yes; then
10734 cat >>confdefs.h
<<\_ACEOF
10735 #define HAVE_XKBGETKEYBOARD 1
10744 for ac_func
in XrmSetDatabase XScreenResourceString \
10745 XScreenNumberOfScreen XSetWMProtocols
10747 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10750 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.
$ac_ext <<_ACEOF
10756 cat confdefs.h
>>conftest.
$ac_ext
10757 cat >>conftest.
$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10761 #define $ac_func innocuous_$ac_func
10763 /* System header to define __stub macros and hopefully few prototypes,
10764 which can conflict with char $ac_func (); below.
10765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766 <limits.h> exists even on freestanding compilers. */
10769 # include <limits.h>
10771 # include <assert.h>
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined __stub_$ac_func || defined __stub___$ac_func
10793 return $ac_func ();
10798 rm -f conftest.
$ac_objext conftest
$ac_exeext
10799 if { (ac_try
="$ac_link"
10800 case "(($ac_try" in
10801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_link") 2>conftest.er1
10807 grep -v '^ *+' conftest.er1 >conftest.err
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } && {
10812 test -z "$ac_c_werror_flag" ||
10813 test ! -s conftest.err
10814 } && test -s conftest$ac_exeext &&
10815 $as_test_x conftest$ac_exeext; then
10816 eval "$as_ac_var=yes"
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 eval "$as_ac_var=no"
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10827 ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10830 if test `eval echo '${'$as_ac_var'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10840 if test "${window_system}" = "x11"; then
10841 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10842 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10843 if test "${emacs_cv_x11_version_6+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 #include <X11/Xlib.h>
10856 #if XlibSpecificationRelease < 6
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10868 *) ac_try_echo
=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_link") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1
>conftest.err
10875 cat conftest.err
>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest
$ac_exeext &&
10881 $as_test_x conftest
$ac_exeext; then
10882 emacs_cv_x11_version_6
=yes
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.
$ac_ext >&5
10887 emacs_cv_x11_version_6
=no
10890 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10891 conftest
$ac_exeext conftest.
$ac_ext
10894 if test $emacs_cv_x11_version_6 = yes; then
10895 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10896 echo "${ECHO_T}6 or newer" >&6; }
10898 cat >>confdefs.h
<<\_ACEOF
10899 #define HAVE_X11R6 1
10903 { echo "$as_me:$LINENO: result: before 6" >&5
10904 echo "${ECHO_T}before 6" >&6; }
10909 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10911 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10912 if test "${with_rsvg}" != "no"; then
10913 RSVG_REQUIRED
=2.0.0
10914 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10919 # Extract the first word of "pkg-config", so it can be a program name with args.
10920 set dummy pkg-config
; ac_word
=$2
10921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 case $PKG_CONFIG in
10928 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10932 for as_dir
in $PATH
10935 test -z "$as_dir" && as_dir
=.
10936 for ac_exec_ext
in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10950 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10951 if test -n "$PKG_CONFIG"; then
10952 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10953 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10955 { echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6; }
10961 if test "$PKG_CONFIG" = "no" ; then
10964 PKG_CONFIG_MIN_VERSION
=0.9.0
10965 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10966 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10967 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10969 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10970 { echo "$as_me:$LINENO: result: yes" >&5
10971 echo "${ECHO_T}yes" >&6; }
10974 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10975 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10976 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10977 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10978 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10980 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10981 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10982 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10983 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10984 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10986 { echo "$as_me:$LINENO: result: no" >&5
10987 echo "${ECHO_T}no" >&6; }
10990 ## If we have a custom action on failure, don't print errors, but
10991 ## do set a variable so people can do so.
10992 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10999 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11000 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11004 if test $succeeded = yes; then
11013 if test ".${RSVG_CFLAGS}" != "."; then
11016 cat >>confdefs.h
<<\_ACEOF
11017 #define HAVE_RSVG 1
11020 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11021 LIBS
="$RSVG_LIBS $LIBS"
11028 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11031 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11036 # Extract the first word of "pkg-config", so it can be a program name with args.
11037 set dummy pkg-config
; ac_word
=$2
11038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11040 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 case $PKG_CONFIG in
11045 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11049 for as_dir
in $PATH
11052 test -z "$as_dir" && as_dir
=.
11053 for ac_exec_ext
in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11067 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11068 if test -n "$PKG_CONFIG"; then
11069 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11070 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11072 { echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6; }
11078 if test "$PKG_CONFIG" = "no" ; then
11081 PKG_CONFIG_MIN_VERSION
=0.9.0
11082 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11083 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11084 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11086 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11087 { echo "$as_me:$LINENO: result: yes" >&5
11088 echo "${ECHO_T}yes" >&6; }
11091 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11092 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11093 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11094 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11095 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11097 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11098 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11099 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11100 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11101 echo "${ECHO_T}$GTK_LIBS" >&6; }
11103 { echo "$as_me:$LINENO: result: no" >&5
11104 echo "${ECHO_T}no" >&6; }
11107 ## If we have a custom action on failure, don't print errors, but
11108 ## do set a variable so people can do so.
11109 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11116 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11117 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11121 if test $succeeded = yes; then
11127 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11128 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11129 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11130 { (exit 1); exit 1; }; }
11135 if test x
"$pkg_check_gtk" = xyes
; then
11139 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11140 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11141 LIBS
="$GTK_LIBS $LIBS"
11144 for ac_func
in gtk_main
11146 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11149 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 cat >conftest.
$ac_ext <<_ACEOF
11155 cat confdefs.h
>>conftest.
$ac_ext
11156 cat >>conftest.
$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11160 #define $ac_func innocuous_$ac_func
11162 /* System header to define __stub macros and hopefully few prototypes,
11163 which can conflict with char $ac_func (); below.
11164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11165 <limits.h> exists even on freestanding compilers. */
11168 # include <limits.h>
11170 # include <assert.h>
11175 /* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11182 /* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185 #if defined __stub_$ac_func || defined __stub___$ac_func
11192 return $ac_func ();
11197 rm -f conftest.
$ac_objext conftest
$ac_exeext
11198 if { (ac_try
="$ac_link"
11199 case "(($ac_try" in
11200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_link") 2>conftest.er1
11206 grep -v '^ *+' conftest.er1 >conftest.err
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && {
11211 test -z "$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 } && test -s conftest$ac_exeext &&
11214 $as_test_x conftest$ac_exeext; then
11215 eval "$as_ac_var=yes"
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 eval "$as_ac_var=no"
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext conftest.$ac_ext
11226 ac_res=`eval echo '${'$as_ac_var'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_var'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11237 if test "${GTK_COMPILES}" != "yes"; then
11238 if test "$USE_X_TOOLKIT" != "maybe"; then
11239 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11240 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11241 { (exit 1); exit 1; }; };
11246 cat >>confdefs.h <<\_ACEOF
11251 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11254 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11255 closing open displays. This is no problem if you just use
11256 one display, but if you use more than one and close one of them
11257 Emacs may crash." >&5
11258 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11259 closing open displays. This is no problem if you just use
11260 one display, but if you use more than one and close one of them
11261 Emacs may crash." >&2;}
11269 if test "${HAVE_GTK}" = "yes"; then
11271 if test "$with_toolkit_scroll_bars" != no; then
11272 with_toolkit_scroll_bars=yes
11275 HAVE_GTK_MULTIDISPLAY=no
11277 for ac_func in gdk_display_open
11279 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define $ac_func innocuous_$ac_func
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11301 # include <limits.h>
11303 # include <assert.h>
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11325 return $ac_func ();
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11334 *) ac_try_echo
=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1
>conftest.err
11341 cat conftest.err
>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest
$ac_exeext &&
11347 $as_test_x conftest
$ac_exeext; then
11348 eval "$as_ac_var=yes"
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.
$ac_ext >&5
11353 eval "$as_ac_var=no"
11356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11357 conftest
$ac_exeext conftest.
$ac_ext
11359 ac_res
=`eval echo '${'$as_ac_var'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h
<<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11366 HAVE_GTK_MULTIDISPLAY
=yes
11370 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11372 cat >>confdefs.h
<<\_ACEOF
11373 #define HAVE_GTK_MULTIDISPLAY 1
11378 HAVE_GTK_FILE_SELECTION
=no
11380 for ac_func
in gtk_file_selection_new
11382 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11385 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 cat >conftest.
$ac_ext <<_ACEOF
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11396 #define $ac_func innocuous_$ac_func
11398 /* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func (); below.
11400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11401 <limits.h> exists even on freestanding compilers. */
11404 # include <limits.h>
11406 # include <assert.h>
11411 /* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
11418 /* The GNU C library defines this for functions which it implements
11419 to always fail with ENOSYS. Some functions are actually named
11420 something starting with __ and the normal name is an alias. */
11421 #if defined __stub_$ac_func || defined __stub___$ac_func
11428 return $ac_func ();
11433 rm -f conftest.
$ac_objext conftest
$ac_exeext
11434 if { (ac_try
="$ac_link"
11435 case "(($ac_try" in
11436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_link") 2>conftest.er1
11442 grep -v '^ *+' conftest.er1 >conftest.err
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest$ac_exeext &&
11450 $as_test_x conftest$ac_exeext; then
11451 eval "$as_ac_var=yes"
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 eval "$as_ac_var=no"
11459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11460 conftest$ac_exeext conftest.$ac_ext
11462 ac_res=`eval echo '${'$as_ac_var'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11465 if test `eval echo '${'$as_ac_var'}'` = yes; then
11466 cat >>confdefs.h <<_ACEOF
11467 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11469 HAVE_GTK_FILE_SELECTION=yes
11474 HAVE_GTK_FILE_CHOOSER=no
11476 for ac_func in gtk_file_chooser_dialog_new
11478 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11492 #define $ac_func innocuous_$ac_func
11494 /* System header to define __stub macros and hopefully few prototypes,
11495 which can conflict with char $ac_func (); below.
11496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11497 <limits.h> exists even on freestanding compilers. */
11500 # include <limits.h>
11502 # include <assert.h>
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11514 /* The GNU C library defines this for functions which it implements
11515 to always fail with ENOSYS. Some functions are actually named
11516 something starting with __ and the normal name is an alias. */
11517 #if defined __stub_$ac_func || defined __stub___$ac_func
11524 return $ac_func ();
11529 rm -f conftest.$ac_objext conftest$ac_exeext
11530 if { (ac_try="$ac_link"
11531 case "(($ac_try" in
11532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11533 *) ac_try_echo
=$ac_try;;
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_link") 2>conftest.er1
11538 grep -v '^ *+' conftest.er1
>conftest.err
11540 cat conftest.err
>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest
$ac_exeext &&
11546 $as_test_x conftest
$ac_exeext; then
11547 eval "$as_ac_var=yes"
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.
$ac_ext >&5
11552 eval "$as_ac_var=no"
11555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11556 conftest
$ac_exeext conftest.
$ac_ext
11558 ac_res
=`eval echo '${'$as_ac_var'}'`
11559 { echo "$as_me:$LINENO: result: $ac_res" >&5
11560 echo "${ECHO_T}$ac_res" >&6; }
11561 if test `eval echo '${'$as_ac_var'}'` = yes; then
11562 cat >>confdefs.h
<<_ACEOF
11563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 HAVE_GTK_FILE_CHOOSER
=yes
11570 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11571 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11573 cat >>confdefs.h
<<\_ACEOF
11574 #define HAVE_GTK_FILE_BOTH 1
11579 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11580 HAVE_GTK_AND_PTHREAD
=no
11582 for ac_header
in pthread.h
11584 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 ac_res
=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593 echo "${ECHO_T}$ac_res" >&6; }
11595 # Is the header compilable?
11596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11598 cat >conftest.
$ac_ext <<_ACEOF
11601 cat confdefs.h
>>conftest.
$ac_ext
11602 cat >>conftest.
$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 #include <$ac_header>
11607 rm -f conftest.
$ac_objext
11608 if { (ac_try
="$ac_compile"
11609 case "(($ac_try" in
11610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11616 grep -v '^ *+' conftest.er1 >conftest.err
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest.$ac_objext; then
11624 ac_header_compiler=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_header_compiler=no
11632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11634 echo "${ECHO_T}$ac_header_compiler" >&6; }
11636 # Is the header present?
11637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <$ac_header>
11647 if { (ac_try="$ac_cpp conftest.$ac_ext"
11648 case "(($ac_try" in
11649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11650 *) ac_try_echo
=$ac_try;;
11652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11655 grep -v '^ *+' conftest.er1
>conftest.err
11657 cat conftest.err
>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } >/dev
/null
&& {
11660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11661 test ! -s conftest.err
11663 ac_header_preproc
=yes
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.
$ac_ext >&5
11668 ac_header_preproc
=no
11671 rm -f conftest.err conftest.
$ac_ext
11672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673 echo "${ECHO_T}$ac_header_preproc" >&6; }
11675 # So? What about this header?
11676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11682 ac_header_preproc
=yes
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11702 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 eval "$as_ac_Header=\$ac_header_preproc"
11707 ac_res
=`eval echo '${'$as_ac_Header'}'`
11708 { echo "$as_me:$LINENO: result: $ac_res" >&5
11709 echo "${ECHO_T}$ac_res" >&6; }
11712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11713 cat >>confdefs.h
<<_ACEOF
11714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11721 if test "$ac_cv_header_pthread_h"; then
11722 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11723 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11724 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 ac_check_lib_save_LIBS
=$LIBS
11728 LIBS
="-lpthread $LIBS"
11729 cat >conftest.
$ac_ext <<_ACEOF
11732 cat confdefs.h
>>conftest.
$ac_ext
11733 cat >>conftest.
$ac_ext <<_ACEOF
11734 /* end confdefs.h. */
11736 /* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11742 char pthread_self ();
11746 return pthread_self ();
11751 rm -f conftest.
$ac_objext conftest
$ac_exeext
11752 if { (ac_try
="$ac_link"
11753 case "(($ac_try" in
11754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_link") 2>conftest.er1
11760 grep -v '^ *+' conftest.er1 >conftest.err
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest$ac_exeext &&
11768 $as_test_x conftest$ac_exeext; then
11769 ac_cv_lib_pthread_pthread_self=yes
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_cv_lib_pthread_pthread_self=no
11777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11778 conftest$ac_exeext conftest.$ac_ext
11779 LIBS=$ac_check_lib_save_LIBS
11781 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11782 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11783 if test $ac_cv_lib_pthread_pthread_self = yes; then
11784 HAVE_GTK_AND_PTHREAD=yes
11788 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11789 case "${canonical}" in
11791 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11794 cat >>confdefs.h <<\_ACEOF
11795 #define HAVE_GTK_AND_PTHREAD 1
11803 if test "${with_dbus}" = "yes"; then
11807 # Extract the first word of "pkg-config", so it can be a program name with args.
11808 set dummy pkg-config; ac_word=$2
11809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11811 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 case $PKG_CONFIG in
11816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11839 if test -n "$PKG_CONFIG"; then
11840 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11841 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11843 { echo "$as_me:$LINENO: result: no" >&5
11844 echo "${ECHO_T}no" >&6; }
11849 if test "$PKG_CONFIG" = "no" ; then
11852 PKG_CONFIG_MIN_VERSION=0.9.0
11853 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11854 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11855 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11857 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11858 { echo "$as_me:$LINENO: result: yes" >&5
11859 echo "${ECHO_T}yes" >&6; }
11862 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11863 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11864 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11865 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11866 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11868 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11869 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11870 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11871 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11872 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11874 { echo "$as_me:$LINENO: result: no" >&5
11875 echo "${ECHO_T}no" >&6; }
11878 ## If we have a custom action on failure, don't print errors, but
11879 ## do set a variable so people can do so.
11880 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11887 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11888 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11892 if test $succeeded = yes; then
11898 if test "$HAVE_DBUS" = yes; then
11900 cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_DBUS 1
11908 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11909 if test "$with_xaw3d" != no; then
11910 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11911 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11912 if test "${emacs_cv_xaw3d+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 #include <X11/Intrinsic.h>
11923 #include <X11/Xaw3d/Simple.h>
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11936 *) ac_try_echo
=$ac_try;;
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
11941 grep -v '^ *+' conftest.er1
>conftest.err
11943 cat conftest.err
>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest
$ac_exeext &&
11949 $as_test_x conftest
$ac_exeext; then
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.
$ac_ext >&5
11958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11959 conftest
$ac_exeext conftest.
$ac_ext
11965 if test $emacs_cv_xaw3d = yes; then
11966 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11967 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11968 USE_X_TOOLKIT
=LUCID
11971 cat >>confdefs.h
<<\_ACEOF
11972 #define HAVE_XAW3D 1
11976 { echo "$as_me:$LINENO: result: no" >&5
11977 echo "${ECHO_T}no" >&6; }
11978 { echo "$as_me:$LINENO: checking for libXaw" >&5
11979 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11980 if test "${emacs_cv_xaw+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 cat >conftest.
$ac_ext <<_ACEOF
11986 cat confdefs.h
>>conftest.
$ac_ext
11987 cat >>conftest.
$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11990 #include <X11/Intrinsic.h>
11991 #include <X11/Xaw/Simple.h>
12000 rm -f conftest.
$ac_objext conftest
$ac_exeext
12001 if { (ac_try
="$ac_link"
12002 case "(($ac_try" in
12003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_link") 2>conftest.er1
12009 grep -v '^ *+' conftest.er1 >conftest.err
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } && {
12014 test -z "$ac_c_werror_flag" ||
12015 test ! -s conftest.err
12016 } && test -s conftest$ac_exeext &&
12017 $as_test_x conftest$ac_exeext; then
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12027 conftest$ac_exeext conftest.$ac_ext
12030 if test $emacs_cv_xaw = yes; then
12031 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12032 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12033 USE_X_TOOLKIT=LUCID
12034 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12035 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12036 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12037 { (exit 1); exit 1; }; }
12039 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12040 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12046 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12048 if test "${USE_X_TOOLKIT}" != "none"; then
12049 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12050 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12051 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <X11/Intrinsic.h>
12064 #if XtSpecificationRelease < 6
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (ac_try="$ac_link"
12074 case "(($ac_try" in
12075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12076 *) ac_try_echo
=$ac_try;;
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_link") 2>conftest.er1
12081 grep -v '^ *+' conftest.er1
>conftest.err
12083 cat conftest.err
>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest
$ac_exeext &&
12089 $as_test_x conftest
$ac_exeext; then
12090 emacs_cv_x11_toolkit_version_6
=yes
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.
$ac_ext >&5
12095 emacs_cv_x11_toolkit_version_6
=no
12098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12099 conftest
$ac_exeext conftest.
$ac_ext
12102 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12103 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12104 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12105 echo "${ECHO_T}6 or newer" >&6; }
12107 cat >>confdefs.h
<<\_ACEOF
12108 #define HAVE_X11XTR6 1
12112 { echo "$as_me:$LINENO: result: before 6" >&5
12113 echo "${ECHO_T}before 6" >&6; }
12117 if test x
$HAVE_X11XTR6 = xyes
; then
12118 LIBS
="-lXt -lSM -lICE $LIBS"
12123 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12124 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12125 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 ac_check_lib_save_LIBS
=$LIBS
12130 cat >conftest.
$ac_ext <<_ACEOF
12133 cat confdefs.h
>>conftest.
$ac_ext
12134 cat >>conftest.
$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12143 char XmuConvertStandardSelection ();
12147 return XmuConvertStandardSelection ();
12152 rm -f conftest.
$ac_objext conftest
$ac_exeext
12153 if { (ac_try
="$ac_link"
12154 case "(($ac_try" in
12155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12156 *) ac_try_echo=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_link") 2>conftest.er1
12161 grep -v '^ *+' conftest.er1 >conftest.err
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_c_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest$ac_exeext &&
12169 $as_test_x conftest$ac_exeext; then
12170 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12172 echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12175 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12182 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12183 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12184 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define HAVE_LIBXMU 1
12193 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12196 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12197 if test "${HAVE_X11}" = "yes"; then
12198 if test "${USE_X_TOOLKIT}" != "none"; then
12200 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12201 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12202 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-lXext $LIBS"
12207 cat >conftest.$ac_ext <<_ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12214 /* Override any GCC internal prototype to avoid an error.
12215 Use char because int might match the return type of a GCC
12216 builtin and then its argument prototype would still apply. */
12220 char XShapeQueryExtension ();
12224 return XShapeQueryExtension ();
12229 rm -f conftest.$ac_objext conftest$ac_exeext
12230 if { (ac_try="$ac_link"
12231 case "(($ac_try" in
12232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12233 *) ac_try_echo
=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_link") 2>conftest.er1
12238 grep -v '^ *+' conftest.er1
>conftest.err
12240 cat conftest.err
>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest
$ac_exeext &&
12246 $as_test_x conftest
$ac_exeext; then
12247 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.
$ac_ext >&5
12252 ac_cv_lib_Xext_XShapeQueryExtension
=no
12255 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12256 conftest
$ac_exeext conftest.
$ac_ext
12257 LIBS
=$ac_check_lib_save_LIBS
12259 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12260 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12261 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12262 cat >>confdefs.h
<<_ACEOF
12263 #define HAVE_LIBXEXT 1
12266 LIBS
="-lXext $LIBS"
12273 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12274 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12275 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12276 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 cat >conftest.
$ac_ext <<_ACEOF
12282 cat confdefs.h
>>conftest.
$ac_ext
12283 cat >>conftest.
$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12289 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12292 Motif version prior to 2.1.
12298 rm -f conftest.
$ac_objext
12299 if { (ac_try
="$ac_compile"
12300 case "(($ac_try" in
12301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_compile") 2>conftest.er1
12307 grep -v '^ *+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } && {
12312 test -z "$ac_c_werror_flag" ||
12313 test ! -s conftest.err
12314 } && test -s conftest.$ac_objext; then
12315 emacs_cv_motif_version_2_1=yes
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 emacs_cv_motif_version_2_1=no
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12326 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12327 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12328 if test $emacs_cv_motif_version_2_1 = yes; then
12331 cat >>confdefs.h <<\_ACEOF
12332 #define HAVE_MOTIF_2_1 1
12335 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12336 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12337 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 ac_check_lib_save_LIBS=$LIBS
12342 cat >conftest.$ac_ext <<_ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12355 char XpCreateContext ();
12359 return XpCreateContext ();
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12368 *) ac_try_echo
=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_link") 2>conftest.er1
12373 grep -v '^ *+' conftest.er1
>conftest.err
12375 cat conftest.err
>&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest
$ac_exeext &&
12381 $as_test_x conftest
$ac_exeext; then
12382 ac_cv_lib_Xp_XpCreateContext
=yes
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.
$ac_ext >&5
12387 ac_cv_lib_Xp_XpCreateContext
=no
12390 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12391 conftest
$ac_exeext conftest.
$ac_ext
12392 LIBS
=$ac_check_lib_save_LIBS
12394 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12395 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12396 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12400 if test ${HAVE_LIBXP} = yes; then
12402 cat >>confdefs.h
<<\_ACEOF
12403 #define HAVE_LIBXP 1
12408 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12409 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12410 if test "${emacs_cv_lesstif+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12413 # We put this in CFLAGS temporarily to precede other -I options
12414 # that might be in CFLAGS temporarily.
12415 # We put this in CPPFLAGS where it precedes the other -I options.
12416 OLD_CPPFLAGS
=$CPPFLAGS
12418 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12419 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12420 cat >conftest.
$ac_ext <<_ACEOF
12423 cat confdefs.h
>>conftest.
$ac_ext
12424 cat >>conftest.
$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12435 rm -f conftest.
$ac_objext
12436 if { (ac_try
="$ac_compile"
12437 case "(($ac_try" in
12438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_compile") 2>conftest.er1
12444 grep -v '^ *+' conftest.er1 >conftest.err
12446 cat conftest.err >&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } && {
12449 test -z "$ac_c_werror_flag" ||
12450 test ! -s conftest.err
12451 } && test -s conftest.$ac_objext; then
12452 emacs_cv_lesstif=yes
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 emacs_cv_lesstif=no
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12462 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12463 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12464 if test $emacs_cv_lesstif = yes; then
12465 # Make sure this -I option remains in CPPFLAGS after it is set
12466 # back to REAL_CPPFLAGS.
12467 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12468 # have those other -I options anyway. Ultimately, having this
12469 # directory ultimately in CPPFLAGS will be enough.
12470 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12471 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12474 CPPFLAGS=$OLD_CPPFLAGS
12481 USE_TOOLKIT_SCROLL_BARS=no
12482 if test "${with_toolkit_scroll_bars}" != "no"; then
12483 if test "${USE_X_TOOLKIT}" != "none"; then
12484 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12485 cat >>confdefs.h <<\_ACEOF
12486 #define USE_TOOLKIT_SCROLL_BARS 1
12490 USE_TOOLKIT_SCROLL_BARS=yes
12491 elif test "${HAVE_XAW3D}" = "yes"; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define USE_TOOLKIT_SCROLL_BARS 1
12496 USE_TOOLKIT_SCROLL_BARS=yes
12498 elif test "${HAVE_GTK}" = "yes"; then
12499 cat >>confdefs.h <<\_ACEOF
12500 #define USE_TOOLKIT_SCROLL_BARS 1
12503 USE_TOOLKIT_SCROLL_BARS=yes
12504 elif test "${HAVE_CARBON}" = "yes"; then
12505 cat >>confdefs.h <<\_ACEOF
12506 #define USE_TOOLKIT_SCROLL_BARS 1
12509 USE_TOOLKIT_SCROLL_BARS=yes
12510 elif test "${HAVE_NS}" = "yes"; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define USE_TOOLKIT_SCROLL_BARS 1
12515 USE_TOOLKIT_SCROLL_BARS=yes
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12526 #include <X11/Xlib.h>
12527 #include <X11/Xresource.h>
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12540 *) ac_try_echo
=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12545 grep -v '^ *+' conftest.er1
>conftest.err
12547 cat conftest.err
>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.
$ac_objext; then
12555 cat >>confdefs.h
<<\_ACEOF
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.
$ac_ext >&5
12566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12569 if test "${with_xim}" != "no"; then
12571 cat >>confdefs.h
<<\_ACEOF
12578 if test "${HAVE_XIM}" != "no"; then
12579 late_CFLAGS
=$CFLAGS
12580 if test "$GCC" = yes; then
12581 CFLAGS
="$CFLAGS --pedantic-errors"
12583 cat >conftest.
$ac_ext <<_ACEOF
12586 cat confdefs.h
>>conftest.
$ac_ext
12587 cat >>conftest.
$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12590 #include <X11/Xlib.h>
12591 #include <X11/Xresource.h>
12600 XPointer *client_data;
12602 /* If we're not using GCC, it's probably not XFree86, and this is
12603 probably right, but we can't use something like --pedantic-errors. */
12604 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12605 char*, XIMProc, XPointer*);
12607 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12613 rm -f conftest.
$ac_objext
12614 if { (ac_try
="$ac_compile"
12615 case "(($ac_try" in
12616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_compile") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest.$ac_objext; then
12630 emacs_cv_arg6_star=yes
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 if test "$emacs_cv_arg6_star" = yes; then
12641 cat >>confdefs.h <<\_ACEOF
12642 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12646 cat >>confdefs.h <<\_ACEOF
12647 #define XRegisterIMInstantiateCallback_arg6 XPointer
12651 CFLAGS=$late_CFLAGS
12654 ### Start of font-backend section.
12656 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12658 if test "x${with_freetype}" = "xno"; then
12661 if test "x${with_xft}" != "xno"; then
12666 # Extract the first word of "pkg-config", so it can be a program name with args.
12667 set dummy pkg-config
; ac_word
=$2
12668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 case $PKG_CONFIG in
12675 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12679 for as_dir
in $PATH
12682 test -z "$as_dir" && as_dir
=.
12683 for ac_exec_ext
in '' $ac_executable_extensions; do
12684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12697 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12698 if test -n "$PKG_CONFIG"; then
12699 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12700 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12702 { echo "$as_me:$LINENO: result: no" >&5
12703 echo "${ECHO_T}no" >&6; }
12708 if test "$PKG_CONFIG" = "no" ; then
12711 PKG_CONFIG_MIN_VERSION
=0.9.0
12712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12713 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12714 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12716 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12717 { echo "$as_me:$LINENO: result: yes" >&5
12718 echo "${ECHO_T}yes" >&6; }
12721 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12722 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12723 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12724 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12725 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12727 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12728 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12729 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12730 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12731 echo "${ECHO_T}$XFT_LIBS" >&6; }
12733 { echo "$as_me:$LINENO: result: no" >&5
12734 echo "${ECHO_T}no" >&6; }
12737 ## If we have a custom action on failure, don't print errors, but
12738 ## do set a variable so people can do so.
12739 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12751 if test $succeeded = yes; then
12757 if test "$HAVE_XFT" != no
; then
12758 OLD_CPPFLAGS
="$CPPFLAGS"
12759 OLD_CFLAGS
="$CFLAGS"
12761 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12762 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12763 LIBS
="$XFT_LIBS $LIBS"
12764 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12765 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12766 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12767 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12771 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12773 # Is the header compilable?
12774 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12775 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12776 cat >conftest.
$ac_ext <<_ACEOF
12779 cat confdefs.h
>>conftest.
$ac_ext
12780 cat >>conftest.
$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 $ac_includes_default
12783 #include <X11/Xft/Xft.h>
12785 rm -f conftest.
$ac_objext
12786 if { (ac_try
="$ac_compile"
12787 case "(($ac_try" in
12788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12794 grep -v '^ *+' conftest.er1 >conftest.err
12796 cat conftest.err >&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest.$ac_objext; then
12802 ac_header_compiler=yes
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ac_header_compiler=no
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12812 echo "${ECHO_T}$ac_header_compiler" >&6; }
12814 # Is the header present?
12815 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12816 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12817 cat >conftest.$ac_ext <<_ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 #include <X11/Xft/Xft.h>
12825 if { (ac_try="$ac_cpp conftest.$ac_ext"
12826 case "(($ac_try" in
12827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12828 *) ac_try_echo
=$ac_try;;
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12833 grep -v '^ *+' conftest.er1
>conftest.err
12835 cat conftest.err
>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev
/null
&& {
12838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12839 test ! -s conftest.err
12841 ac_header_preproc
=yes
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.
$ac_ext >&5
12846 ac_header_preproc
=no
12849 rm -f conftest.err conftest.
$ac_ext
12850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12851 echo "${ECHO_T}$ac_header_preproc" >&6; }
12853 # So? What about this header?
12854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12857 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12859 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12860 ac_header_preproc
=yes
12863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12864 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12866 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12868 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12870 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12872 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12874 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12878 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12879 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12880 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12885 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12886 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12889 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12890 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12891 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12892 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 ac_check_lib_save_LIBS
=$LIBS
12896 LIBS
="-lXft $XFT_LIBS $LIBS"
12897 cat >conftest.
$ac_ext <<_ACEOF
12900 cat confdefs.h
>>conftest.
$ac_ext
12901 cat >>conftest.
$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12910 char XftFontOpen ();
12914 return XftFontOpen ();
12919 rm -f conftest.
$ac_objext conftest
$ac_exeext
12920 if { (ac_try
="$ac_link"
12921 case "(($ac_try" in
12922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_link") 2>conftest.er1
12928 grep -v '^ *+' conftest.er1 >conftest.err
12930 cat conftest.err >&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } && {
12933 test -z "$ac_c_werror_flag" ||
12934 test ! -s conftest.err
12935 } && test -s conftest$ac_exeext &&
12936 $as_test_x conftest$ac_exeext; then
12937 ac_cv_lib_Xft_XftFontOpen=yes
12939 echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12942 ac_cv_lib_Xft_XftFontOpen=no
12945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12946 conftest$ac_exeext conftest.$ac_ext
12947 LIBS=$ac_check_lib_save_LIBS
12949 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12950 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12951 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12959 if test "${HAVE_XFT}" = "yes"; then
12961 cat >>confdefs.h <<\_ACEOF
12966 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12968 CPPFLAGS="$OLD_CPPFLAGS"
12969 CFLAGS="$OLD_CFLAGS"
12971 fi # "${HAVE_XFT}" = "yes"
12972 fi # "$HAVE_XFT" != no
12973 fi # "x${with_xft}" != "xno"
12975 if test "$HAVE_XFT" != "yes"; then
12981 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12982 if test "${HAVE_XFT}" = "yes"; then
12984 elif test "x${with_freetype}" != "xno"; then
12989 # Extract the first word of "pkg-config", so it can be a program name with args.
12990 set dummy pkg-config; ac_word=$2
12991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 case $PKG_CONFIG in
12998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13021 if test -n "$PKG_CONFIG"; then
13022 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13023 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13025 { echo "$as_me:$LINENO: result: no" >&5
13026 echo "${ECHO_T}no" >&6; }
13031 if test "$PKG_CONFIG" = "no" ; then
13034 PKG_CONFIG_MIN_VERSION=0.9.0
13035 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13036 { echo "$as_me:$LINENO: checking for freetype2" >&5
13037 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13039 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13040 { echo "$as_me:$LINENO: result: yes" >&5
13041 echo "${ECHO_T}yes" >&6; }
13044 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13045 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13046 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13047 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13048 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13050 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13051 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13052 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13053 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13054 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13056 { echo "$as_me:$LINENO: result: no" >&5
13057 echo "${ECHO_T}no" >&6; }
13060 ## If we have a custom action on failure, don't print errors
, but
13061 ## do set a variable so people can do so.
13062 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13069 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13070 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13074 if test $succeeded = yes; then
13080 if test "${HAVE_FREETYPE}" = "yes"; then
13084 # Extract the first word of "pkg-config", so it can be a program name with args.
13085 set dummy pkg-config
; ac_word
=$2
13086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13088 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 case $PKG_CONFIG in
13093 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13097 for as_dir
in $PATH
13100 test -z "$as_dir" && as_dir
=.
13101 for ac_exec_ext
in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13111 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13115 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13116 if test -n "$PKG_CONFIG"; then
13117 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13118 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13120 { echo "$as_me:$LINENO: result: no" >&5
13121 echo "${ECHO_T}no" >&6; }
13126 if test "$PKG_CONFIG" = "no" ; then
13129 PKG_CONFIG_MIN_VERSION
=0.9.0
13130 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13131 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13132 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13134 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13135 { echo "$as_me:$LINENO: result: yes" >&5
13136 echo "${ECHO_T}yes" >&6; }
13139 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13140 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13141 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13142 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13143 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13145 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13146 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13147 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13148 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13149 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13151 { echo "$as_me:$LINENO: result: no" >&5
13152 echo "${ECHO_T}no" >&6; }
13153 FONTCONFIG_CFLAGS
=""
13155 ## If we have a custom action on failure, don't print errors, but
13156 ## do set a variable so people can do so.
13157 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13164 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13165 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13169 if test $succeeded = yes; then
13175 if test "${HAVE_FC}" = "no"; then
13182 if test "${HAVE_FREETYPE}" = "yes"; then
13184 cat >>confdefs.h
<<\_ACEOF
13185 #define HAVE_FREETYPE 1
13188 if test "${with_libotf}" != "no"; then
13192 # Extract the first word of "pkg-config", so it can be a program name with args.
13193 set dummy pkg-config
; ac_word
=$2
13194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 case $PKG_CONFIG in
13201 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13205 for as_dir
in $PATH
13208 test -z "$as_dir" && as_dir
=.
13209 for ac_exec_ext
in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13223 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13224 if test -n "$PKG_CONFIG"; then
13225 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13226 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13228 { echo "$as_me:$LINENO: result: no" >&5
13229 echo "${ECHO_T}no" >&6; }
13234 if test "$PKG_CONFIG" = "no" ; then
13237 PKG_CONFIG_MIN_VERSION
=0.9.0
13238 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13239 { echo "$as_me:$LINENO: checking for libotf" >&5
13240 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13242 if $PKG_CONFIG --exists "libotf" 2>&5; then
13243 { echo "$as_me:$LINENO: result: yes" >&5
13244 echo "${ECHO_T}yes" >&6; }
13247 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13248 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13249 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13250 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13251 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13253 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13254 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13255 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13256 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13257 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13259 { echo "$as_me:$LINENO: result: no" >&5
13260 echo "${ECHO_T}no" >&6; }
13263 ## If we have a custom action on failure, don't print errors, but
13264 ## do set a variable so people can do so.
13265 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13277 if test $succeeded = yes; then
13283 if test "$HAVE_LIBOTF" = "yes"; then
13285 cat >>confdefs.h
<<\_ACEOF
13286 #define HAVE_LIBOTF 1
13294 if test "${with_m17n_flt}" != "no"; then
13298 # Extract the first word of "pkg-config", so it can be a program name with args.
13299 set dummy pkg-config
; ac_word
=$2
13300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 case $PKG_CONFIG in
13307 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13311 for as_dir
in $PATH
13314 test -z "$as_dir" && as_dir
=.
13315 for ac_exec_ext
in '' $ac_executable_extensions; do
13316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13317 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13329 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13330 if test -n "$PKG_CONFIG"; then
13331 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13332 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13334 { echo "$as_me:$LINENO: result: no" >&5
13335 echo "${ECHO_T}no" >&6; }
13340 if test "$PKG_CONFIG" = "no" ; then
13343 PKG_CONFIG_MIN_VERSION
=0.9.0
13344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13345 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13346 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13348 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13349 { echo "$as_me:$LINENO: result: yes" >&5
13350 echo "${ECHO_T}yes" >&6; }
13353 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13354 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13355 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13356 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13357 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13359 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13360 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13361 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13362 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13363 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13365 { echo "$as_me:$LINENO: result: no" >&5
13366 echo "${ECHO_T}no" >&6; }
13369 ## If we have a custom action on failure, don't print errors, but
13370 ## do set a variable so people can do so.
13371 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13378 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13379 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13383 if test $succeeded = yes; then
13389 if test "$HAVE_M17N_FLT" = "yes"; then
13391 cat >>confdefs.h
<<\_ACEOF
13392 #define HAVE_M17N_FLT 1
13407 ### End of font-backend section.
13409 ### Use -lXpm if available, unless `--with-xpm=no'.
13411 if test "${HAVE_X11}" = "yes"; then
13412 if test "${with_xpm}" != "no"; then
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13415 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13416 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13422 # Is the header compilable?
13423 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13424 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13425 cat >conftest.
$ac_ext <<_ACEOF
13428 cat confdefs.h
>>conftest.
$ac_ext
13429 cat >>conftest.
$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <X11/xpm.h>
13434 rm -f conftest.
$ac_objext
13435 if { (ac_try
="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13443 grep -v '^ *+' conftest.er1 >conftest.err
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_header_compiler=yes
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_header_compiler=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13461 echo "${ECHO_T}$ac_header_compiler" >&6; }
13463 # Is the header present?
13464 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13465 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 #include <X11/xpm.h>
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13477 *) ac_try_echo
=$ac_try;;
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13482 grep -v '^ *+' conftest.er1
>conftest.err
13484 cat conftest.err
>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev
/null
&& {
13487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13490 ac_header_preproc
=yes
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.
$ac_ext >&5
13495 ac_header_preproc
=no
13498 rm -f conftest.err conftest.
$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13508 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13509 ac_header_preproc
=yes
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13527 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13528 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13538 if test $ac_cv_header_X11_xpm_h = yes; then
13539 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13540 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 ac_check_lib_save_LIBS
=$LIBS
13545 LIBS
="-lXpm -lX11 $LIBS"
13546 cat >conftest.
$ac_ext <<_ACEOF
13549 cat confdefs.h
>>conftest.
$ac_ext
13550 cat >>conftest.
$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13559 char XpmReadFileToPixmap ();
13563 return XpmReadFileToPixmap ();
13568 rm -f conftest.
$ac_objext conftest
$ac_exeext
13569 if { (ac_try
="$ac_link"
13570 case "(($ac_try" in
13571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13599 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13600 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13607 if test "${HAVE_XPM}" = "yes"; then
13608 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13609 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13610 cat >conftest.$ac_ext <<_ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include "X11/xpm.h"
13617 #ifndef XpmReturnAllocPixels
13618 no_return_alloc_pixels
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13631 if test "${HAVE_XPM}" = "yes"; then
13632 { echo "$as_me:$LINENO: result: yes" >&5
13633 echo "${ECHO_T}yes" >&6; }
13635 { echo "$as_me:$LINENO: result: no" >&5
13636 echo "${ECHO_T}no" >&6; }
13641 if test "${HAVE_XPM}" = "yes"; then
13643 cat >>confdefs.h <<\_ACEOF
13650 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13652 if test "${HAVE_X11}" = "yes"; then
13653 if test "${with_jpeg}" != "no"; then
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13656 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13657 if test "${ac_cv_header_jerror_h+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13665 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <jerror.h>
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13684 grep -v '^
*+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13694 echo "$as_me: failed program was:" >&5
13695 sed 's
/^
/|
/' conftest.$ac_ext >&5
13697 ac_header_compiler=no
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13706 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <jerror.h>
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13723 grep -v '^
*+' conftest.er1 >conftest.err
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev/null && {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13731 ac_header_preproc=yes
13733 echo "$as_me: failed program was:" >&5
13734 sed 's
/^
/|
/' conftest.$ac_ext >&5
13736 ac_header_preproc=no
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13749 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13750 ac_header_preproc=yes
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13762 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13768 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13769 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13770 if test "${ac_cv_header_jerror_h+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 ac_cv_header_jerror_h=$ac_header_preproc
13775 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13776 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13779 if test $ac_cv_header_jerror_h = yes; then
13780 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13781 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-ljpeg $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13800 char jpeg_destroy_compress ();
13804 return jpeg_destroy_compress ();
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13818 grep -v '^
*+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's
/^
/|
/' conftest.$ac_ext >&5
13832 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13840 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13841 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13851 if test "${HAVE_JPEG}" = "yes"; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_JPEG 1
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <jpeglib.h>
13863 version=JPEG_LIB_VERSION
13866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13867 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_JPEG 1
13873 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13874 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13882 ### Use -lpng if available, unless `--with-png=no'.
13884 if test "${HAVE_X11}" = "yes"; then
13885 if test "${with_png}" != "no"; then
13886 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13887 # in /usr/include/libpng.
13890 for ac_header
in png.h libpng
/png.h
13892 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13893 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 ac_res
=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13903 # Is the header compilable?
13904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13906 cat >conftest.
$ac_ext <<_ACEOF
13909 cat confdefs.h
>>conftest.
$ac_ext
13910 cat >>conftest.
$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13913 #include <$ac_header>
13915 rm -f conftest.
$ac_objext
13916 if { (ac_try
="$ac_compile"
13917 case "(($ac_try" in
13918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_compile") 2>conftest.er1
13924 grep -v '^ *+' conftest.er1 >conftest.err
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
13932 ac_header_compiler=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_header_compiler=no
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13942 echo "${ECHO_T}$ac_header_compiler" >&6; }
13944 # Is the header present?
13945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <$ac_header>
13955 if { (ac_try="$ac_cpp conftest.$ac_ext"
13956 case "(($ac_try" in
13957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13958 *) ac_try_echo
=$ac_try;;
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13963 grep -v '^ *+' conftest.er1
>conftest.err
13965 cat conftest.err
>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev
/null
&& {
13968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13971 ac_header_preproc
=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.
$ac_ext >&5
13976 ac_header_preproc
=no
13979 rm -f conftest.err conftest.
$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6; }
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13990 ac_header_preproc
=yes
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14010 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 eval "$as_ac_Header=\$ac_header_preproc"
14015 ac_res
=`eval echo '${'$as_ac_Header'}'`
14016 { echo "$as_me:$LINENO: result: $ac_res" >&5
14017 echo "${ECHO_T}$ac_res" >&6; }
14020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14021 cat >>confdefs.h
<<_ACEOF
14022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14029 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14030 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14031 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14032 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 ac_check_lib_save_LIBS
=$LIBS
14036 LIBS
="-lpng -lz -lm $LIBS"
14037 cat >conftest.
$ac_ext <<_ACEOF
14040 cat confdefs.h
>>conftest.
$ac_ext
14041 cat >>conftest.
$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14050 char png_get_channels ();
14054 return png_get_channels ();
14059 rm -f conftest.
$ac_objext conftest
$ac_exeext
14060 if { (ac_try
="$ac_link"
14061 case "(($ac_try" in
14062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_link") 2>conftest.er1
14068 grep -v '^ *+' conftest.er1 >conftest.err
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } && {
14073 test -z "$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14075 } && test -s conftest$ac_exeext &&
14076 $as_test_x conftest$ac_exeext; then
14077 ac_cv_lib_png_png_get_channels=yes
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14082 ac_cv_lib_png_png_get_channels=no
14085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14089 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14090 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14091 if test $ac_cv_lib_png_png_get_channels = yes; then
14098 if test "${HAVE_PNG}" = "yes"; then
14100 cat >>confdefs.h <<\_ACEOF
14107 ### Use -ltiff if available, unless `--with-tiff=no
'.
14109 if test "${HAVE_X11}" = "yes"; then
14110 if test "${with_tiff}" != "no"; then
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14113 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14114 if test "${ac_cv_header_tiffio_h+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14120 # Is the header compilable?
14121 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14122 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <tiffio.h>
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14141 grep -v '^
*+' conftest.er1 >conftest.err
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 ac_header_compiler=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's
/^
/|
/' conftest.$ac_ext >&5
14154 ac_header_compiler=no
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14159 echo "${ECHO_T}$ac_header_compiler" >&6; }
14161 # Is the header present?
14162 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14163 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <tiffio.h>
14172 if { (ac_try="$ac_cpp conftest.$ac_ext"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14180 grep -v '^
*+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } >/dev/null && {
14185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14188 ac_header_preproc=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's
/^
/|
/' conftest.$ac_ext >&5
14193 ac_header_preproc=no
14196 rm -f conftest.err conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14198 echo "${ECHO_T}$ac_header_preproc" >&6; }
14200 # So? What about this header?
14201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14203 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14204 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14206 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14207 ac_header_preproc=yes
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14211 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14213 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14215 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14217 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14219 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14221 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14225 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14226 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14227 if test "${ac_cv_header_tiffio_h+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 ac_cv_header_tiffio_h=$ac_header_preproc
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14236 if test $ac_cv_header_tiffio_h = yes; then
14238 # At least one tiff package requires the jpeg library.
14239 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14240 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14241 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14242 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 ac_check_lib_save_LIBS=$LIBS
14246 LIBS="-ltiff $tifflibs $LIBS"
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14260 char TIFFGetVersion ();
14264 return TIFFGetVersion ();
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14278 grep -v '^
*+' conftest.er1 >conftest.err
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } && {
14283 test -z "$ac_c_werror_flag" ||
14284 test ! -s conftest.err
14285 } && test -s conftest$ac_exeext &&
14286 $as_test_x conftest$ac_exeext; then
14287 ac_cv_lib_tiff_TIFFGetVersion=yes
14289 echo "$as_me: failed program was:" >&5
14290 sed 's
/^
/|
/' conftest.$ac_ext >&5
14292 ac_cv_lib_tiff_TIFFGetVersion=no
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14299 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14300 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14301 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14310 if test "${HAVE_TIFF}" = "yes"; then
14312 cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_TIFF 1
14319 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14321 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14324 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14325 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14329 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14331 # Is the header compilable?
14332 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14333 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14334 cat >conftest.
$ac_ext <<_ACEOF
14337 cat confdefs.h
>>conftest.
$ac_ext
14338 cat >>conftest.
$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 #include <gif_lib.h>
14343 rm -f conftest.
$ac_objext
14344 if { (ac_try
="$ac_compile"
14345 case "(($ac_try" in
14346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest.$ac_objext; then
14360 ac_header_compiler=yes
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_header_compiler=no
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14370 echo "${ECHO_T}$ac_header_compiler" >&6; }
14372 # Is the header present?
14373 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14374 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 #include <gif_lib.h>
14383 if { (ac_try="$ac_cpp conftest.$ac_ext"
14384 case "(($ac_try" in
14385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14386 *) ac_try_echo
=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14391 grep -v '^ *+' conftest.er1
>conftest.err
14393 cat conftest.err
>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } >/dev
/null
&& {
14396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14399 ac_header_preproc
=yes
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.
$ac_ext >&5
14404 ac_header_preproc
=no
14407 rm -f conftest.err conftest.
$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14409 echo "${ECHO_T}$ac_header_preproc" >&6; }
14411 # So? What about this header?
14412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14414 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14415 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14417 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14418 ac_header_preproc
=yes
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14422 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14424 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14425 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14426 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14428 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14430 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14432 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14436 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14437 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14438 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 ac_cv_header_gif_lib_h
=$ac_header_preproc
14443 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14444 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14447 if test $ac_cv_header_gif_lib_h = yes; then
14448 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14449 # Earlier versions can crash Emacs.
14450 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14451 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 ac_check_lib_save_LIBS
=$LIBS
14457 cat >conftest.
$ac_ext <<_ACEOF
14460 cat confdefs.h
>>conftest.
$ac_ext
14461 cat >>conftest.
$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14470 char EGifPutExtensionLast ();
14474 return EGifPutExtensionLast ();
14479 rm -f conftest.
$ac_objext conftest
$ac_exeext
14480 if { (ac_try
="$ac_link"
14481 case "(($ac_try" in
14482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14488 grep -v '^ *+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest$ac_exeext &&
14496 $as_test_x conftest$ac_exeext; then
14497 ac_cv_lib_gif_EGifPutExtensionLast=yes
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_lib_gif_EGifPutExtensionLast=no
14505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14510 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14511 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14521 if test "$HAVE_GIF" = yes; then
14522 ac_gif_lib_name="-lgif"
14525 # If gif_lib.h but no libgif, try libungif.
14526 if test x"$try_libungif" = xyes; then
14527 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14528 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14529 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-lungif $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply. */
14547 char EGifPutExtensionLast ();
14551 return EGifPutExtensionLast ();
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (ac_try="$ac_link"
14558 case "(($ac_try" in
14559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14560 *) ac_try_echo
=$ac_try;;
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_link") 2>conftest.er1
14565 grep -v '^ *+' conftest.er1
>conftest.err
14567 cat conftest.err
>&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } && {
14570 test -z "$ac_c_werror_flag" ||
14571 test ! -s conftest.err
14572 } && test -s conftest
$ac_exeext &&
14573 $as_test_x conftest
$ac_exeext; then
14574 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.
$ac_ext >&5
14579 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14582 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14583 conftest
$ac_exeext conftest.
$ac_ext
14584 LIBS
=$ac_check_lib_save_LIBS
14586 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14587 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14588 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14593 if test "$HAVE_GIF" = yes; then
14595 cat >>confdefs.h
<<\_ACEOF
14596 #define LIBGIF -lungif
14599 ac_gif_lib_name
="-lungif"
14603 if test "${HAVE_GIF}" = "yes"; then
14605 cat >>confdefs.h
<<\_ACEOF
14612 if test "${HAVE_X11}" = "yes"; then
14615 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14616 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14617 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14618 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14619 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14620 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14621 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14622 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14623 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14624 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14626 if test "X${MISSING}" != X
; then
14627 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14629 Maybe some development libraries/packages are missing?
14630 If you don't want to link with them give
14632 as options to configure" >&5
14633 echo "$as_me: error: The following required libraries were not found:
14635 Maybe some development libraries/packages are missing?
14636 If you don't want to link with them give
14638 as options to configure" >&2;}
14639 { (exit 1); exit 1; }; }
14643 ### Use -lgpm if available, unless `--with-gpm=no'.
14645 if test "${with_gpm}" != "no"; then
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14648 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14649 if test "${ac_cv_header_gpm_h+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14653 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14655 # Is the header compilable?
14656 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14657 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14658 cat >conftest.
$ac_ext <<_ACEOF
14661 cat confdefs.h
>>conftest.
$ac_ext
14662 cat >>conftest.
$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 $ac_includes_default
14667 rm -f conftest.
$ac_objext
14668 if { (ac_try
="$ac_compile"
14669 case "(($ac_try" in
14670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_header_compiler=yes
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_header_compiler=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14694 echo "${ECHO_T}$ac_header_compiler" >&6; }
14696 # Is the header present?
14697 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14698 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14707 if { (ac_try="$ac_cpp conftest.$ac_ext"
14708 case "(($ac_try" in
14709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14710 *) ac_try_echo
=$ac_try;;
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14715 grep -v '^ *+' conftest.er1
>conftest.err
14717 cat conftest.err
>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } >/dev
/null
&& {
14720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14723 ac_header_preproc
=yes
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.
$ac_ext >&5
14728 ac_header_preproc
=no
14731 rm -f conftest.err conftest.
$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14733 echo "${ECHO_T}$ac_header_preproc" >&6; }
14735 # So? What about this header?
14736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14738 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14739 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14741 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14742 ac_header_preproc
=yes
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14746 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14748 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14750 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14752 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14754 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14756 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14760 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14761 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14762 if test "${ac_cv_header_gpm_h+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 ac_cv_header_gpm_h
=$ac_header_preproc
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14771 if test $ac_cv_header_gpm_h = yes; then
14772 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14773 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14774 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 ac_check_lib_save_LIBS
=$LIBS
14779 cat >conftest.
$ac_ext <<_ACEOF
14782 cat confdefs.h
>>conftest.
$ac_ext
14783 cat >>conftest.
$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14796 return Gpm_Open ();
14801 rm -f conftest.
$ac_objext conftest
$ac_exeext
14802 if { (ac_try
="$ac_link"
14803 case "(($ac_try" in
14804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 ac_cv_lib_gpm_Gpm_Open=yes
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_lib_gpm_Gpm_Open=no
14827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14832 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14833 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14842 if test "${HAVE_GPM}" = "yes"; then
14844 cat >>confdefs.h <<\_ACEOF
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14852 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14853 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14857 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14859 # Is the header compilable?
14860 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14861 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14869 #include <malloc/malloc.h>
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14875 *) ac_try_echo
=$ac_try;;
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1
>conftest.err
14882 cat conftest.err
>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.
$ac_objext; then
14888 ac_header_compiler
=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.
$ac_ext >&5
14893 ac_header_compiler
=no
14896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14902 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14903 cat >conftest.
$ac_ext <<_ACEOF
14906 cat confdefs.h
>>conftest.
$ac_ext
14907 cat >>conftest.
$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <malloc/malloc.h>
14911 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } >/dev/null && {
14924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14927 ac_header_preproc=yes
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 ac_header_preproc=no
14935 rm -f conftest.err conftest.$ac_ext
14936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14937 echo "${ECHO_T}$ac_header_preproc" >&6; }
14939 # So? What about this header?
14940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14942 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14943 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14945 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14946 ac_header_preproc=yes
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14952 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14954 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14956 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14960 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14964 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14965 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14966 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14971 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14972 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14975 if test $ac_cv_header_malloc_malloc_h = yes; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_MALLOC_MALLOC_H 1
14985 ### Use Mac OS X Carbon API to implement GUI.
14986 if test "${HAVE_CARBON}" = "yes"; then
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_CARBON 1
14993 for ac_header in AvailabilityMacros.h
14995 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 ac_res=`eval echo '${'$as_ac_Header'}'`
15003 { echo "$as_me:$LINENO: result: $ac_res" >&5
15004 echo "${ECHO_T}$ac_res" >&6; }
15006 # Is the header compilable?
15007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 $ac_includes_default
15016 #include <$ac_header>
15018 rm -f conftest.$ac_objext
15019 if { (ac_try="$ac_compile"
15020 case "(($ac_try" in
15021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15022 *) ac_try_echo
=$ac_try;;
15024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15025 (eval "$ac_compile") 2>conftest.er1
15027 grep -v '^ *+' conftest.er1
>conftest.err
15029 cat conftest.err
>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && {
15032 test -z "$ac_c_werror_flag" ||
15033 test ! -s conftest.err
15034 } && test -s conftest.
$ac_objext; then
15035 ac_header_compiler
=yes
15037 echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.
$ac_ext >&5
15040 ac_header_compiler
=no
15043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15045 echo "${ECHO_T}$ac_header_compiler" >&6; }
15047 # Is the header present?
15048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15050 cat >conftest.
$ac_ext <<_ACEOF
15053 cat confdefs.h
>>conftest.
$ac_ext
15054 cat >>conftest.
$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 #include <$ac_header>
15058 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15059 case "(($ac_try" in
15060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15066 grep -v '^ *+' conftest.er1 >conftest.err
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } >/dev/null && {
15071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15074 ac_header_preproc=yes
15076 echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15079 ac_header_preproc=no
15082 rm -f conftest.err conftest.$ac_ext
15083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15084 echo "${ECHO_T}$ac_header_preproc" >&6; }
15086 # So? What about this header?
15087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15093 ac_header_preproc=yes
15096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 eval "$as_ac_Header=\$ac_header_preproc"
15118 ac_res=`eval echo '${'$as_ac_Header'}'`
15119 { echo "$as_me:$LINENO: result: $ac_res" >&5
15120 echo "${ECHO_T}$ac_res" >&6; }
15123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15124 cat >>confdefs.h <<_ACEOF
15125 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15132 ## Specify the install directory
15134 if test "${carbon_appdir_x}" != ""; then
15135 case ${carbon_appdir_x} in
15136 y | ye | yes) carbon_appdir=/Applications ;;
15137 * ) carbon_appdir=${carbon_appdir_x} ;;
15140 # We also have mouse menus.
15143 ### Use NeXTstep API to implement GUI.
15144 if test "${HAVE_NS}" = "yes"; then
15146 cat >>confdefs.h <<\_ACEOF
15150 if test "${NS_IMPL_COCOA}" = "yes"; then
15152 cat >>confdefs.h <<\_ACEOF
15153 #define NS_IMPL_COCOA 1
15157 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define COCOA_EXPERIMENTAL_CTRL_G 1
15164 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15166 cat >>confdefs.h <<\_ACEOF
15167 #define NS_IMPL_GNUSTEP 1
15171 # 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
16390 for ac_func in gethostname getdomainname dup2 \
16391 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16392 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16393 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16394 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16395 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16396 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16397 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16398 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16399 cfmakeraw cfsetspeed
16401 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16402 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16403 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16404 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16405 echo $ECHO_N "(cached
) $ECHO_C" >&6
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16415 #define $ac_func innocuous_$ac_func
16417 /* System header to define __stub macros and hopefully few prototypes,
16418 which can conflict with char $ac_func (); below.
16419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16420 <limits.h> exists even on freestanding compilers. */
16423 # include <limits.h>
16425 # include <assert.h>
16430 /* Override any GCC internal prototype to avoid an error.
16431 Use char because int might match the return type of a GCC
16432 builtin and then its argument prototype would still apply. */
16437 /* The GNU C library defines this for functions which it implements
16438 to always fail with ENOSYS. Some functions are actually named
16439 something starting with __ and the normal name is an alias. */
16440 #if defined __stub_$ac_func || defined __stub___$ac_func
16447 return $ac_func ();
16452 rm -f conftest.$ac_objext conftest$ac_exeext
16453 if { (ac_try="$ac_link"
16454 case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_link") 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16465 (exit $ac_status); } && {
16466 test -z "$ac_c_werror_flag" ||
16467 test ! -s conftest.err
16468 } && test -s conftest$ac_exeext &&
16469 $as_test_x conftest$ac_exeext; then
16470 eval "$as_ac_var=yes"
16472 echo "$as_me: failed program was
:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 eval "$as_ac_var=no
"
16478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16479 conftest$ac_exeext conftest.$ac_ext
16481 ac_res=`eval echo '${'$as_ac_var'}'`
16482 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16484 if test `eval echo '${'$as_ac_var'}'` = yes; then
16485 cat >>confdefs.h <<_ACEOF
16486 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16494 for ac_header in sys/un.h
16496 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16497 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16498 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16499 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16500 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached
) $ECHO_C" >&6
16503 ac_res=`eval echo '${'$as_ac_Header'}'`
16504 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16507 # Is the header compilable?
16508 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16509 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 $ac_includes_default
16517 #include <$ac_header>
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_compile") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16532 (exit $ac_status); } && {
16533 test -z "$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16535 } && test -s conftest.$ac_objext; then
16536 ac_header_compiler=yes
16538 echo "$as_me: failed program was
:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_header_compiler=no
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16546 echo "${ECHO_T}$ac_header_compiler" >&6; }
16548 # Is the header present?
16549 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16550 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16551 cat >conftest.$ac_ext <<_ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 #include <$ac_header>
16559 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16560 case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16567 grep -v '^ *+' conftest.er1 >conftest.err
16569 cat conftest.err >&5
16570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16571 (exit $ac_status); } >/dev/null && {
16572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16575 ac_header_preproc=yes
16577 echo "$as_me: failed program was
:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 ac_header_preproc=no
16583 rm -f conftest.err conftest.$ac_ext
16584 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16585 echo "${ECHO_T}$ac_header_preproc" >&6; }
16587 # So? What about this header?
16588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16590 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16591 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16592 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16594 ac_header_preproc=yes
16597 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16598 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16599 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16600 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16601 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16602 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16603 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16604 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16605 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16607 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16608 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16612 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16613 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16614 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached
) $ECHO_C" >&6
16617 eval "$as_ac_Header=\
$ac_header_preproc"
16619 ac_res=`eval echo '${'$as_ac_Header'}'`
16620 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16621 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16638 for ac_header in $ac_header_list
16640 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16641 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16642 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16643 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16644 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16645 echo $ECHO_N "(cached
) $ECHO_C" >&6
16647 ac_res=`eval echo '${'$as_ac_Header'}'`
16648 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16649 echo "${ECHO_T}$ac_res" >&6; }
16651 # Is the header compilable?
16652 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16653 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16654 cat >conftest.$ac_ext <<_ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660 $ac_includes_default
16661 #include <$ac_header>
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_compile") 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest.$ac_objext; then
16680 ac_header_compiler=yes
16682 echo "$as_me: failed program was
:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 ac_header_compiler=no
16688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16690 echo "${ECHO_T}$ac_header_compiler" >&6; }
16692 # Is the header present?
16693 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16694 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 #include <$ac_header>
16703 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16704 case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1 >conftest.err
16713 cat conftest.err >&5
16714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16715 (exit $ac_status); } >/dev/null && {
16716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16719 ac_header_preproc=yes
16721 echo "$as_me: failed program was
:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_header_preproc=no
16727 rm -f conftest.err conftest.$ac_ext
16728 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16729 echo "${ECHO_T}$ac_header_preproc" >&6; }
16731 # So? What about this header?
16732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16734 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16735 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16736 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16738 ac_header_preproc=yes
16741 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16742 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16743 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16744 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16745 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16746 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16747 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16748 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16749 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16751 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16752 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16756 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16757 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16758 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16759 echo $ECHO_N "(cached
) $ECHO_C" >&6
16761 eval "$as_ac_Header=\
$ac_header_preproc"
16763 ac_res=`eval echo '${'$as_ac_Header'}'`
16764 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16765 echo "${ECHO_T}$ac_res" >&6; }
16768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16769 cat >>confdefs.h <<_ACEOF
16770 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16785 for ac_func in $ac_func_list
16787 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16788 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16789 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16790 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16791 echo $ECHO_N "(cached
) $ECHO_C" >&6
16793 cat >conftest.$ac_ext <<_ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16801 #define $ac_func innocuous_$ac_func
16803 /* System header to define __stub macros and hopefully few prototypes,
16804 which can conflict with char $ac_func (); below.
16805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16806 <limits.h> exists even on freestanding compilers. */
16809 # include <limits.h>
16811 # include <assert.h>
16816 /* Override any GCC internal prototype to avoid an error.
16817 Use char because int might match the return type of a GCC
16818 builtin and then its argument prototype would still apply. */
16823 /* The GNU C library defines this for functions which it implements
16824 to always fail with ENOSYS. Some functions are actually named
16825 something starting with __ and the normal name is an alias. */
16826 #if defined __stub_$ac_func || defined __stub___$ac_func
16833 return $ac_func ();
16838 rm -f conftest.$ac_objext conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>conftest.er1
16847 grep -v '^ *+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest$ac_exeext &&
16855 $as_test_x conftest$ac_exeext; then
16856 eval "$as_ac_var=yes"
16858 echo "$as_me: failed program was
:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 eval "$as_ac_var=no
"
16864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16865 conftest$ac_exeext conftest.$ac_ext
16867 ac_res=`eval echo '${'$as_ac_var'}'`
16868 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16869 echo "${ECHO_T}$ac_res" >&6; }
16870 if test `eval echo '${'$as_ac_var'}'` = yes; then
16871 cat >>confdefs.h <<_ACEOF
16872 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16894 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16895 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16896 if test "${ac_cv_func_working_mktime+set}" = set; then
16897 echo $ECHO_N "(cached
) $ECHO_C" >&6
16899 if test "$cross_compiling" = yes; then
16900 ac_cv_func_working_mktime=no
16902 cat >conftest.$ac_ext <<_ACEOF
16905 cat confdefs.h >>conftest.$ac_ext
16906 cat >>conftest.$ac_ext <<_ACEOF
16907 /* end confdefs.h. */
16908 /* Test program from Paul Eggert and Tony Leneis. */
16909 #ifdef TIME_WITH_SYS_TIME
16910 # include <sys/time.h>
16913 # ifdef HAVE_SYS_TIME_H
16914 # include <sys/time.h>
16920 #include <stdlib.h>
16922 #ifdef HAVE_UNISTD_H
16923 # include <unistd.h>
16927 # define alarm(X) /* empty */
16930 /* Work around redefinition to rpl_putenv by other config tests. */
16933 static time_t time_t_max;
16934 static time_t time_t_min;
16936 /* Values we'll use to set the TZ environment variable. */
16937 static char *tz_strings[] = {
16938 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16939 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16941 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16943 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16944 Based on a problem report from Andreas Jaeger. */
16946 spring_forward_gap ()
16948 /* glibc (up to about 1998-10-07) failed this test. */
16951 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16952 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16953 on systems that don't support the Olson extension, or don't have the
16954 full zoneinfo tables installed. */
16955 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16964 return mktime (&tm) != (time_t) -1;
16972 return ! (lt = localtime (&now)) || mktime (lt) == now;
16979 return (mktime_test1 (now)
16980 && mktime_test1 ((time_t) (time_t_max - now))
16981 && mktime_test1 ((time_t) (time_t_min + now)));
16987 /* Based on code from Ariel Faigon. */
16997 return tm.tm_mon == 2 && tm.tm_mday == 31;
17006 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17007 now = mktime (&tm);
17008 if (now != (time_t) -1)
17010 struct tm *lt = localtime (&now);
17012 && lt->tm_year == tm.tm_year
17013 && lt->tm_mon == tm.tm_mon
17014 && lt->tm_mday == tm.tm_mday
17015 && lt->tm_hour == tm.tm_hour
17016 && lt->tm_min == tm.tm_min
17017 && lt->tm_sec == tm.tm_sec
17018 && lt->tm_yday == tm.tm_yday
17019 && lt->tm_wday == tm.tm_wday
17020 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17021 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17030 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17031 ignoring leap seconds. */
17032 unsigned long int answer = 2527315200UL;
17036 tm.tm_year = 2050 - 1900;
17039 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17042 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17043 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17044 on systems that don't support the Olson extension, or don't have the
17045 full zoneinfo tables installed. */
17046 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17050 /* Check that the result is either a failure, or close enough
17051 to the correct answer that we can assume the discrepancy is
17052 due to leap seconds. */
17053 return (t == (time_t) -1
17054 || (0 < t && answer - 120 <= t && t <= answer + 120));
17063 /* This test makes some buggy mktime implementations loop.
17064 Give up after 60 seconds; a mktime slower than that
17065 isn't worth using anyway. */
17068 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17071 if ((time_t) -1 < 0)
17072 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17074 delta = time_t_max / 997; /* a suitable prime number */
17075 for (i = 0; i < N_STRINGS; i++)
17078 putenv (tz_strings[i]);
17080 for (t = 0; t <= time_t_max - delta; t += delta)
17081 if (! mktime_test (t))
17083 if (! (mktime_test ((time_t) 1)
17084 && mktime_test ((time_t) (60 * 60))
17085 && mktime_test ((time_t) (60 * 60 * 24))))
17088 for (j = 1; 0 < j; j *= 2)
17089 if (! bigtime_test (j))
17091 if (! bigtime_test (j - 1))
17094 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17097 rm -f conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>&5
17106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_func_working_mktime=yes
17119 echo "$as_me: program exited with status
$ac_status" >&5
17120 echo "$as_me: failed program was
:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17123 ( exit $ac_status )
17124 ac_cv_func_working_mktime=no
17126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17131 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17132 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17133 if test $ac_cv_func_working_mktime = no; then
17134 case " $LIBOBJS " in
17135 *" mktime.
$ac_objext "* ) ;;
17136 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17142 if test "$ac_cv_func_working_mktime" = no; then
17144 cat >>confdefs.h <<\_ACEOF
17145 #define BROKEN_MKTIME 1
17150 ac_have_func=no # yes means we've found a way to get the load average.
17152 # Make sure getloadavg.c is where it belongs, at configure-time.
17153 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17154 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17155 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17156 { (exit 1); exit 1; }; }
17160 # Check for getloadavg, but be sure not to touch the cache variable.
17161 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17162 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17163 if test "${ac_cv_func_getloadavg+set}" = set; then
17164 echo $ECHO_N "(cached
) $ECHO_C" >&6
17166 cat >conftest.$ac_ext <<_ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17172 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17174 #define getloadavg innocuous_getloadavg
17176 /* System header to define __stub macros and hopefully few prototypes,
17177 which can conflict with char getloadavg (); below.
17178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17179 <limits.h> exists even on freestanding compilers. */
17182 # include <limits.h>
17184 # include <assert.h>
17189 /* Override any GCC internal prototype to avoid an error.
17190 Use char because int might match the return type of a GCC
17191 builtin and then its argument prototype would still apply. */
17195 char getloadavg ();
17196 /* The GNU C library defines this for functions which it implements
17197 to always fail with ENOSYS. Some functions are actually named
17198 something starting with __ and the normal name is an alias. */
17199 #if defined __stub_getloadavg || defined __stub___getloadavg
17206 return getloadavg ();
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_link") 2>conftest.er1
17220 grep -v '^ *+' conftest.er1 >conftest.err
17222 cat conftest.err >&5
17223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17224 (exit $ac_status); } && {
17225 test -z "$ac_c_werror_flag" ||
17226 test ! -s conftest.err
17227 } && test -s conftest$ac_exeext &&
17228 $as_test_x conftest$ac_exeext; then
17229 ac_cv_func_getloadavg=yes
17231 echo "$as_me: failed program was
:" >&5
17232 sed 's/^/| /' conftest.$ac_ext >&5
17234 ac_cv_func_getloadavg=no
17237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17238 conftest$ac_exeext conftest.$ac_ext
17240 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17241 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17242 if test $ac_cv_func_getloadavg = yes; then
17247 ) && ac_have_func=yes
17249 # On HPUX9, an unprivileged user can get load averages through this function.
17251 for ac_func in pstat_getdynamic
17253 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17254 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17255 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17256 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17257 echo $ECHO_N "(cached
) $ECHO_C" >&6
17259 cat >conftest.$ac_ext <<_ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17267 #define $ac_func innocuous_$ac_func
17269 /* System header to define __stub macros and hopefully few prototypes,
17270 which can conflict with char $ac_func (); below.
17271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272 <limits.h> exists even on freestanding compilers. */
17275 # include <limits.h>
17277 # include <assert.h>
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17289 /* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292 #if defined __stub_$ac_func || defined __stub___$ac_func
17299 return $ac_func ();
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17317 (exit $ac_status); } && {
17318 test -z "$ac_c_werror_flag" ||
17319 test ! -s conftest.err
17320 } && test -s conftest$ac_exeext &&
17321 $as_test_x conftest$ac_exeext; then
17322 eval "$as_ac_var=yes"
17324 echo "$as_me: failed program was
:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 eval "$as_ac_var=no
"
17330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17331 conftest$ac_exeext conftest.$ac_ext
17333 ac_res=`eval echo '${'$as_ac_var'}'`
17334 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17335 echo "${ECHO_T}$ac_res" >&6; }
17336 if test `eval echo '${'$as_ac_var'}'` = yes; then
17337 cat >>confdefs.h <<_ACEOF
17338 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17345 # Solaris has libkstat which does not require root.
17347 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17348 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17349 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17350 echo $ECHO_N "(cached
) $ECHO_C" >&6
17352 ac_check_lib_save_LIBS=$LIBS
17353 LIBS="-lkstat $LIBS"
17354 cat >conftest.$ac_ext <<_ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17361 /* Override any GCC internal prototype to avoid an error.
17362 Use char because int might match the return type of a GCC
17363 builtin and then its argument prototype would still apply. */
17367 char kstat_open ();
17371 return kstat_open ();
17376 rm -f conftest.$ac_objext conftest$ac_exeext
17377 if { (ac_try="$ac_link"
17378 case "(($ac_try" in
17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380 *) ac_try_echo=$ac_try;;
17382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17383 (eval "$ac_link") 2>conftest.er1
17385 grep -v '^ *+' conftest.er1 >conftest.err
17387 cat conftest.err >&5
17388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17389 (exit $ac_status); } && {
17390 test -z "$ac_c_werror_flag" ||
17391 test ! -s conftest.err
17392 } && test -s conftest$ac_exeext &&
17393 $as_test_x conftest$ac_exeext; then
17394 ac_cv_lib_kstat_kstat_open=yes
17396 echo "$as_me: failed program was
:" >&5
17397 sed 's/^/| /' conftest.$ac_ext >&5
17399 ac_cv_lib_kstat_kstat_open=no
17402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17403 conftest$ac_exeext conftest.$ac_ext
17404 LIBS=$ac_check_lib_save_LIBS
17406 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17407 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17408 if test $ac_cv_lib_kstat_kstat_open = yes; then
17409 cat >>confdefs.h <<_ACEOF
17410 #define HAVE_LIBKSTAT 1
17413 LIBS="-lkstat $LIBS"
17417 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17419 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17420 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17421 # to get the right answer into the cache.
17422 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17423 if test $ac_have_func = no; then
17424 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17425 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17426 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17427 echo $ECHO_N "(cached
) $ECHO_C" >&6
17429 ac_check_lib_save_LIBS=$LIBS
17431 cat >conftest.$ac_ext <<_ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17438 /* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17448 return elf_begin ();
17453 rm -f conftest.$ac_objext conftest$ac_exeext
17454 if { (ac_try="$ac_link"
17455 case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_link") 2>conftest.er1
17462 grep -v '^ *+' conftest.er1 >conftest.err
17464 cat conftest.err >&5
17465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17466 (exit $ac_status); } && {
17467 test -z "$ac_c_werror_flag" ||
17468 test ! -s conftest.err
17469 } && test -s conftest$ac_exeext &&
17470 $as_test_x conftest$ac_exeext; then
17471 ac_cv_lib_elf_elf_begin=yes
17473 echo "$as_me: failed program was
:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17476 ac_cv_lib_elf_elf_begin=no
17479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17480 conftest$ac_exeext conftest.$ac_ext
17481 LIBS=$ac_check_lib_save_LIBS
17483 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17484 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17485 if test $ac_cv_lib_elf_elf_begin = yes; then
17490 if test $ac_have_func = no; then
17491 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17492 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17493 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17494 echo $ECHO_N "(cached
) $ECHO_C" >&6
17496 ac_check_lib_save_LIBS=$LIBS
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17505 /* Override any GCC internal prototype to avoid an error.
17506 Use char because int might match the return type of a GCC
17507 builtin and then its argument prototype would still apply. */
17515 return kvm_open ();
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest$ac_exeext &&
17537 $as_test_x conftest$ac_exeext; then
17538 ac_cv_lib_kvm_kvm_open=yes
17540 echo "$as_me: failed program was
:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_cv_lib_kvm_kvm_open=no
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17551 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17552 if test $ac_cv_lib_kvm_kvm_open = yes; then
17556 # Check for the 4.4BSD definition of getloadavg.
17557 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17558 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17559 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17560 echo $ECHO_N "(cached
) $ECHO_C" >&6
17562 ac_check_lib_save_LIBS=$LIBS
17563 LIBS="-lutil $LIBS"
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17571 /* Override any GCC internal prototype to avoid an error.
17572 Use char because int might match the return type of a GCC
17573 builtin and then its argument prototype would still apply. */
17577 char getloadavg ();
17581 return getloadavg ();
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (ac_try="$ac_link"
17588 case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_link") 2>conftest.er1
17595 grep -v '^ *+' conftest.er1 >conftest.err
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17599 (exit $ac_status); } && {
17600 test -z "$ac_c_werror_flag" ||
17601 test ! -s conftest.err
17602 } && test -s conftest$ac_exeext &&
17603 $as_test_x conftest$ac_exeext; then
17604 ac_cv_lib_util_getloadavg=yes
17606 echo "$as_me: failed program was
:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ac_cv_lib_util_getloadavg=no
17612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17613 conftest$ac_exeext conftest.$ac_ext
17614 LIBS=$ac_check_lib_save_LIBS
17616 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17617 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17618 if test $ac_cv_lib_util_getloadavg = yes; then
17619 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17624 if test $ac_have_func = no; then
17625 # There is a commonly available library for RS/6000 AIX.
17626 # Since it is not a standard part of AIX, it might be installed locally.
17627 ac_getloadavg_LIBS=$LIBS
17628 LIBS="-L/usr
/local
/lib
$LIBS"
17629 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17630 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17631 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17632 echo $ECHO_N "(cached
) $ECHO_C" >&6
17634 ac_check_lib_save_LIBS=$LIBS
17635 LIBS="-lgetloadavg $LIBS"
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17649 char getloadavg ();
17653 return getloadavg ();
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 ac_cv_lib_getloadavg_getloadavg=yes
17678 echo "$as_me: failed program was
:" >&5
17679 sed 's/^/| /' conftest.$ac_ext >&5
17681 ac_cv_lib_getloadavg_getloadavg=no
17684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17685 conftest$ac_exeext conftest.$ac_ext
17686 LIBS=$ac_check_lib_save_LIBS
17688 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17689 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17690 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17691 LIBS="-lgetloadavg $LIBS"
17693 LIBS=$ac_getloadavg_LIBS
17698 # Make sure it is really in the library, if we think we found it,
17699 # otherwise set up the replacement function.
17701 for ac_func in getloadavg
17703 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17704 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17705 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17706 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17707 echo $ECHO_N "(cached
) $ECHO_C" >&6
17709 cat >conftest.$ac_ext <<_ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17717 #define $ac_func innocuous_$ac_func
17719 /* System header to define __stub macros and hopefully few prototypes,
17720 which can conflict with char $ac_func (); below.
17721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17722 <limits.h> exists even on freestanding compilers. */
17725 # include <limits.h>
17727 # include <assert.h>
17732 /* Override any GCC internal prototype to avoid an error.
17733 Use char because int might match the return type of a GCC
17734 builtin and then its argument prototype would still apply. */
17739 /* The GNU C library defines this for functions which it implements
17740 to always fail with ENOSYS. Some functions are actually named
17741 something starting with __ and the normal name is an alias. */
17742 #if defined __stub_$ac_func || defined __stub___$ac_func
17749 return $ac_func ();
17754 rm -f conftest.$ac_objext conftest$ac_exeext
17755 if { (ac_try="$ac_link"
17756 case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_link") 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17767 (exit $ac_status); } && {
17768 test -z "$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17770 } && test -s conftest$ac_exeext &&
17771 $as_test_x conftest$ac_exeext; then
17772 eval "$as_ac_var=yes"
17774 echo "$as_me: failed program was
:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 eval "$as_ac_var=no
"
17780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17781 conftest$ac_exeext conftest.$ac_ext
17783 ac_res=`eval echo '${'$as_ac_var'}'`
17784 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17785 echo "${ECHO_T}$ac_res" >&6; }
17786 if test `eval echo '${'$as_ac_var'}'` = yes; then
17787 cat >>confdefs.h <<_ACEOF
17788 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17792 case " $LIBOBJS " in
17793 *" getloadavg.
$ac_objext "* ) ;;
17794 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17799 cat >>confdefs.h <<\_ACEOF
17800 #define C_GETLOADAVG 1
17803 # Figure out what our getloadavg.c needs.
17805 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17806 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17807 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17808 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17809 echo $ECHO_N "(cached
) $ECHO_C" >&6
17811 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17812 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17814 # Is the header compilable?
17815 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17816 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17817 cat >conftest.$ac_ext <<_ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h. */
17823 $ac_includes_default
17824 #include <sys/dg_sys_info.h>
17826 rm -f conftest.$ac_objext
17827 if { (ac_try="$ac_compile"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_compile") 2>conftest.er1
17835 grep -v '^ *+' conftest.er1 >conftest.err
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17839 (exit $ac_status); } && {
17840 test -z "$ac_c_werror_flag" ||
17841 test ! -s conftest.err
17842 } && test -s conftest.$ac_objext; then
17843 ac_header_compiler=yes
17845 echo "$as_me: failed program was
:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_header_compiler=no
17851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17853 echo "${ECHO_T}$ac_header_compiler" >&6; }
17855 # Is the header present?
17856 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17857 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 #include <sys/dg_sys_info.h>
17866 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17874 grep -v '^ *+' conftest.er1 >conftest.err
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17878 (exit $ac_status); } >/dev/null && {
17879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17880 test ! -s conftest.err
17882 ac_header_preproc=yes
17884 echo "$as_me: failed program was
:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17887 ac_header_preproc=no
17890 rm -f conftest.err conftest.$ac_ext
17891 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17892 echo "${ECHO_T}$ac_header_preproc" >&6; }
17894 # So? What about this header?
17895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17897 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17898 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17899 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17900 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17901 ac_header_preproc=yes
17904 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17905 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17906 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17907 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17908 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17909 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17910 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17911 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17912 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17913 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17914 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17915 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17919 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17920 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17921 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17922 echo $ECHO_N "(cached
) $ECHO_C" >&6
17924 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17926 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17927 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17930 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17933 cat >>confdefs.h <<\_ACEOF
17938 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17939 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17940 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17941 echo $ECHO_N "(cached
) $ECHO_C" >&6
17943 ac_check_lib_save_LIBS=$LIBS
17945 cat >conftest.$ac_ext <<_ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17952 /* Override any GCC internal prototype to avoid an error.
17953 Use char because int might match the return type of a GCC
17954 builtin and then its argument prototype would still apply. */
17958 char dg_sys_info ();
17962 return dg_sys_info ();
17967 rm -f conftest.$ac_objext conftest$ac_exeext
17968 if { (ac_try="$ac_link"
17969 case "(($ac_try" in
17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17971 *) ac_try_echo=$ac_try;;
17973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_link") 2>conftest.er1
17976 grep -v '^ *+' conftest.er1 >conftest.err
17978 cat conftest.err >&5
17979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17980 (exit $ac_status); } && {
17981 test -z "$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 } && test -s conftest$ac_exeext &&
17984 $as_test_x conftest$ac_exeext; then
17985 ac_cv_lib_dgc_dg_sys_info=yes
17987 echo "$as_me: failed program was
:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_cv_lib_dgc_dg_sys_info=no
17993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17994 conftest$ac_exeext conftest.$ac_ext
17995 LIBS=$ac_check_lib_save_LIBS
17997 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17998 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17999 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18000 cat >>confdefs.h <<_ACEOF
18001 #define HAVE_LIBDGC 1
18012 if test "${ac_cv_header_locale_h+set}" = set; then
18013 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18014 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18015 if test "${ac_cv_header_locale_h+set}" = set; then
18016 echo $ECHO_N "(cached
) $ECHO_C" >&6
18018 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18019 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18021 # Is the header compilable?
18022 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18023 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18024 cat >conftest.$ac_ext <<_ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 $ac_includes_default
18031 #include <locale.h>
18033 rm -f conftest.$ac_objext
18034 if { (ac_try="$ac_compile"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_compile") 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18046 (exit $ac_status); } && {
18047 test -z "$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 } && test -s conftest.$ac_objext; then
18050 ac_header_compiler=yes
18052 echo "$as_me: failed program was
:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_header_compiler=no
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18059 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18060 echo "${ECHO_T}$ac_header_compiler" >&6; }
18062 # Is the header present?
18063 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18064 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 #include <locale.h>
18073 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18081 grep -v '^ *+' conftest.er1 >conftest.err
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18085 (exit $ac_status); } >/dev/null && {
18086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18087 test ! -s conftest.err
18089 ac_header_preproc=yes
18091 echo "$as_me: failed program was
:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18094 ac_header_preproc=no
18097 rm -f conftest.err conftest.$ac_ext
18098 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18099 echo "${ECHO_T}$ac_header_preproc" >&6; }
18101 # So? What about this header?
18102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18104 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18105 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18106 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18107 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18108 ac_header_preproc=yes
18111 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18112 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18113 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18114 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18115 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18116 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18117 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18118 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18119 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18120 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18121 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18122 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18126 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18127 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18128 if test "${ac_cv_header_locale_h+set}" = set; then
18129 echo $ECHO_N "(cached
) $ECHO_C" >&6
18131 ac_cv_header_locale_h=$ac_header_preproc
18133 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18134 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18140 for ac_func in setlocale
18142 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18143 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18144 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18145 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18146 echo $ECHO_N "(cached
) $ECHO_C" >&6
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18156 #define $ac_func innocuous_$ac_func
18158 /* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char $ac_func (); below.
18160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161 <limits.h> exists even on freestanding compilers. */
18164 # include <limits.h>
18166 # include <assert.h>
18171 /* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined __stub_$ac_func || defined __stub___$ac_func
18188 return $ac_func ();
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (ac_try="$ac_link"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_link") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest$ac_exeext &&
18210 $as_test_x conftest$ac_exeext; then
18211 eval "$as_ac_var=yes"
18213 echo "$as_me: failed program was
:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 eval "$as_ac_var=no
"
18219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18220 conftest$ac_exeext conftest.$ac_ext
18222 ac_res=`eval echo '${'$as_ac_var'}'`
18223 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18224 echo "${ECHO_T}$ac_res" >&6; }
18225 if test `eval echo '${'$as_ac_var'}'` = yes; then
18226 cat >>confdefs.h <<_ACEOF
18227 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18234 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18235 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18236 # Irix 4.0.5F has the header but not the library.
18237 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18240 cat >>confdefs.h <<\_ACEOF
18246 if test $ac_have_func = no; then
18247 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18248 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18249 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18250 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18251 echo $ECHO_N "(cached
) $ECHO_C" >&6
18253 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18254 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18256 # Is the header compilable?
18257 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18258 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18259 cat >conftest.$ac_ext <<_ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 $ac_includes_default
18266 #include <inq_stats/cpustats.h>
18268 rm -f conftest.$ac_objext
18269 if { (ac_try="$ac_compile"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_compile") 2>conftest.er1
18277 grep -v '^ *+' conftest.er1 >conftest.err
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18281 (exit $ac_status); } && {
18282 test -z "$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18284 } && test -s conftest.$ac_objext; then
18285 ac_header_compiler=yes
18287 echo "$as_me: failed program was
:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_header_compiler=no
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18295 echo "${ECHO_T}$ac_header_compiler" >&6; }
18297 # Is the header present?
18298 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18299 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18300 cat >conftest.$ac_ext <<_ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18306 #include <inq_stats/cpustats.h>
18308 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18309 case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18316 grep -v '^ *+' conftest.er1 >conftest.err
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18320 (exit $ac_status); } >/dev/null && {
18321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18322 test ! -s conftest.err
18324 ac_header_preproc=yes
18326 echo "$as_me: failed program was
:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18329 ac_header_preproc=no
18332 rm -f conftest.err conftest.$ac_ext
18333 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18334 echo "${ECHO_T}$ac_header_preproc" >&6; }
18336 # So? What about this header?
18337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18339 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18340 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18341 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18342 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18343 ac_header_preproc=yes
18346 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18347 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18348 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18349 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18350 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18351 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18352 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18353 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18354 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18355 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18356 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18357 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18361 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18362 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18363 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18364 echo $ECHO_N "(cached
) $ECHO_C" >&6
18366 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18368 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18369 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18372 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18375 cat >>confdefs.h <<\_ACEOF
18380 cat >>confdefs.h <<\_ACEOF
18389 if test $ac_have_func = no; then
18390 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18391 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18392 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18393 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18394 echo $ECHO_N "(cached
) $ECHO_C" >&6
18396 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18397 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18399 # Is the header compilable?
18400 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18401 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18402 cat >conftest.$ac_ext <<_ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 $ac_includes_default
18409 #include <sys/cpustats.h>
18411 rm -f conftest.$ac_objext
18412 if { (ac_try="$ac_compile"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_compile") 2>conftest.er1
18420 grep -v '^ *+' conftest.er1 >conftest.err
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18424 (exit $ac_status); } && {
18425 test -z "$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 } && test -s conftest.$ac_objext; then
18428 ac_header_compiler=yes
18430 echo "$as_me: failed program was
:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18433 ac_header_compiler=no
18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18438 echo "${ECHO_T}$ac_header_compiler" >&6; }
18440 # Is the header present?
18441 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18442 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18443 cat >conftest.$ac_ext <<_ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 #include <sys/cpustats.h>
18451 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18459 grep -v '^ *+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18463 (exit $ac_status); } >/dev/null && {
18464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18467 ac_header_preproc=yes
18469 echo "$as_me: failed program was
:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ac_header_preproc=no
18475 rm -f conftest.err conftest.$ac_ext
18476 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18477 echo "${ECHO_T}$ac_header_preproc" >&6; }
18479 # So? What about this header?
18480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18482 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18483 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18484 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18485 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18486 ac_header_preproc=yes
18489 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18490 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18491 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18492 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18493 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18494 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18495 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18496 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18497 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18498 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18499 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18500 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18504 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18505 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18506 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18507 echo $ECHO_N "(cached
) $ECHO_C" >&6
18509 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18511 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18512 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18515 if test $ac_cv_header_sys_cpustats_h = yes; then
18516 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18525 if test $ac_have_func = no; then
18527 for ac_header in mach/mach.h
18529 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18531 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18532 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18533 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18534 echo $ECHO_N "(cached
) $ECHO_C" >&6
18536 ac_res=`eval echo '${'$as_ac_Header'}'`
18537 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18538 echo "${ECHO_T}$ac_res" >&6; }
18540 # Is the header compilable?
18541 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18542 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18543 cat >conftest.$ac_ext <<_ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18549 $ac_includes_default
18550 #include <$ac_header>
18552 rm -f conftest.$ac_objext
18553 if { (ac_try="$ac_compile"
18554 case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_compile") 2>conftest.er1
18561 grep -v '^ *+' conftest.er1 >conftest.err
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18565 (exit $ac_status); } && {
18566 test -z "$ac_c_werror_flag" ||
18567 test ! -s conftest.err
18568 } && test -s conftest.$ac_objext; then
18569 ac_header_compiler=yes
18571 echo "$as_me: failed program was
:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_header_compiler=no
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18579 echo "${ECHO_T}$ac_header_compiler" >&6; }
18581 # Is the header present?
18582 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18583 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18584 cat >conftest.$ac_ext <<_ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 #include <$ac_header>
18592 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18593 case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18604 (exit $ac_status); } >/dev/null && {
18605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18606 test ! -s conftest.err
18608 ac_header_preproc=yes
18610 echo "$as_me: failed program was
:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_header_preproc=no
18616 rm -f conftest.err conftest.$ac_ext
18617 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18618 echo "${ECHO_T}$ac_header_preproc" >&6; }
18620 # So? What about this header?
18621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18623 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18624 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18625 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18627 ac_header_preproc=yes
18630 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18631 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18632 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18633 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18634 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18635 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18636 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18637 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18638 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18640 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18641 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18645 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18646 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18647 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18648 echo $ECHO_N "(cached
) $ECHO_C" >&6
18650 eval "$as_ac_Header=\
$ac_header_preproc"
18652 ac_res=`eval echo '${'$as_ac_Header'}'`
18653 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18654 echo "${ECHO_T}$ac_res" >&6; }
18657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18658 cat >>confdefs.h <<_ACEOF
18659 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18669 for ac_header in nlist.h
18671 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18673 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18674 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18676 echo $ECHO_N "(cached
) $ECHO_C" >&6
18678 ac_res=`eval echo '${'$as_ac_Header'}'`
18679 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18680 echo "${ECHO_T}$ac_res" >&6; }
18682 # Is the header compilable?
18683 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18684 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18685 cat >conftest.$ac_ext <<_ACEOF
18688 cat confdefs.h >>conftest.$ac_ext
18689 cat >>conftest.$ac_ext <<_ACEOF
18690 /* end confdefs.h. */
18691 $ac_includes_default
18692 #include <$ac_header>
18694 rm -f conftest.$ac_objext
18695 if { (ac_try="$ac_compile"
18696 case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_compile") 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18707 (exit $ac_status); } && {
18708 test -z "$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 } && test -s conftest.$ac_objext; then
18711 ac_header_compiler=yes
18713 echo "$as_me: failed program was
:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_header_compiler=no
18719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18720 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18721 echo "${ECHO_T}$ac_header_compiler" >&6; }
18723 # Is the header present?
18724 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18725 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 #include <$ac_header>
18734 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18735 case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18742 grep -v '^ *+' conftest.er1 >conftest.err
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18746 (exit $ac_status); } >/dev/null && {
18747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18748 test ! -s conftest.err
18750 ac_header_preproc=yes
18752 echo "$as_me: failed program was
:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18755 ac_header_preproc=no
18758 rm -f conftest.err conftest.$ac_ext
18759 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18760 echo "${ECHO_T}$ac_header_preproc" >&6; }
18762 # So? What about this header?
18763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18765 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18766 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18767 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18769 ac_header_preproc=yes
18772 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18773 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18774 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18775 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18776 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18777 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18778 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18779 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18780 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18782 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18783 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18787 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18788 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18790 echo $ECHO_N "(cached
) $ECHO_C" >&6
18792 eval "$as_ac_Header=\
$ac_header_preproc"
18794 ac_res=`eval echo '${'$as_ac_Header'}'`
18795 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18796 echo "${ECHO_T}$ac_res" >&6; }
18799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18800 cat >>confdefs.h <<_ACEOF
18801 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18803 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18804 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18805 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18806 echo $ECHO_N "(cached
) $ECHO_C" >&6
18808 cat >conftest.$ac_ext <<_ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18819 static struct nlist ac_aggr;
18820 if (ac_aggr.n_un.n_name)
18826 rm -f conftest.$ac_objext
18827 if { (ac_try="$ac_compile"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_compile") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1 >conftest.err
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest.$ac_objext; then
18843 ac_cv_member_struct_nlist_n_un_n_name=yes
18845 echo "$as_me: failed program was
:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 cat >conftest.$ac_ext <<_ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18859 static struct nlist ac_aggr;
18860 if (sizeof ac_aggr.n_un.n_name)
18866 rm -f conftest.$ac_objext
18867 if { (ac_try="$ac_compile"
18868 case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_compile") 2>conftest.er1
18875 grep -v '^ *+' conftest.er1 >conftest.err
18877 cat conftest.err >&5
18878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18879 (exit $ac_status); } && {
18880 test -z "$ac_c_werror_flag" ||
18881 test ! -s conftest.err
18882 } && test -s conftest.$ac_objext; then
18883 ac_cv_member_struct_nlist_n_un_n_name=yes
18885 echo "$as_me: failed program was
:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_cv_member_struct_nlist_n_un_n_name=no
18891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18897 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18898 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18900 cat >>confdefs.h <<_ACEOF
18901 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18905 cat >>confdefs.h <<\_ACEOF
18906 #define NLIST_NAME_UNION 1
18920 # Some definitions of getloadavg require that the program be installed setgid.
18921 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18922 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18923 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18924 echo $ECHO_N "(cached
) $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18933 #ifdef LDAV_PRIVILEGED
18934 Yowza Am I SETGID yet
18937 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18938 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18939 ac_cv_func_getloadavg_setgid=yes
18941 ac_cv_func_getloadavg_setgid=no
18946 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18947 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18948 if test $ac_cv_func_getloadavg_setgid = yes; then
18951 cat >>confdefs.h <<\_ACEOF
18952 #define GETLOADAVG_PRIVILEGED 1
18959 if test $ac_cv_func_getloadavg_setgid = yes; then
18960 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18961 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18962 if test "${ac_cv_group_kmem+set}" = set; then
18963 echo $ECHO_N "(cached
) $ECHO_C" >&6
18965 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18966 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18967 # If we got an error (system does not support symlinks), try without -L.
18968 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18969 ac_cv_group_kmem=`echo $ac_ls_output \
18970 | sed -ne 's/[ ][ ]*/ /g;
18971 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18975 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18976 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18977 KMEM_GROUP=$ac_cv_group_kmem
18979 if test "x
$ac_save_LIBS" = x; then
18980 GETLOADAVG_LIBS=$LIBS
18982 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18988 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18989 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18990 if test "${ac_cv_sys_largefile_source+set}" = set; then
18991 echo $ECHO_N "(cached
) $ECHO_C" >&6
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19004 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19009 rm -f conftest.$ac_objext conftest$ac_exeext
19010 if { (ac_try="$ac_link"
19011 case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_link") 2>conftest.er1
19018 grep -v '^ *+' conftest.er1 >conftest.err
19020 cat conftest.err >&5
19021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19022 (exit $ac_status); } && {
19023 test -z "$ac_c_werror_flag" ||
19024 test ! -s conftest.err
19025 } && test -s conftest$ac_exeext &&
19026 $as_test_x conftest$ac_exeext; then
19027 ac_cv_sys_largefile_source=no; break
19029 echo "$as_me: failed program was
:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19036 conftest$ac_exeext conftest.$ac_ext
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 #define _LARGEFILE_SOURCE 1
19048 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest$ac_exeext &&
19070 $as_test_x conftest$ac_exeext; then
19071 ac_cv_sys_largefile_source=1; break
19073 echo "$as_me: failed program was
:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19080 conftest$ac_exeext conftest.$ac_ext
19081 ac_cv_sys_largefile_source=unknown
19085 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19086 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19087 case $ac_cv_sys_largefile_source in #(
19090 cat >>confdefs.h <<_ACEOF
19091 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19097 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19098 # in glibc 2.1.3, but that breaks too many other things.
19099 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19100 if test $ac_cv_sys_largefile_source != unknown; then
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE_FSEEKO 1
19109 # Configure getopt.
19110 # getopt.m4 serial 10
19112 # The getopt module assume you want GNU getopt, with getopt_long etc,
19113 # rather than vanilla POSIX getopt. This means your your code should
19114 # always include <getopt.h> for the getopt prototypes.
19126 # Prerequisites of lib/getopt*.
19133 for ac_header in getopt.h
19135 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19136 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19137 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19138 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19139 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19140 echo $ECHO_N "(cached
) $ECHO_C" >&6
19142 ac_res=`eval echo '${'$as_ac_Header'}'`
19143 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19144 echo "${ECHO_T}$ac_res" >&6; }
19146 # Is the header compilable?
19147 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19148 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19149 cat >conftest.$ac_ext <<_ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19155 $ac_includes_default
19156 #include <$ac_header>
19158 rm -f conftest.$ac_objext
19159 if { (ac_try="$ac_compile"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_compile") 2>conftest.er1
19167 grep -v '^ *+' conftest.er1 >conftest.err
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19171 (exit $ac_status); } && {
19172 test -z "$ac_c_werror_flag" ||
19173 test ! -s conftest.err
19174 } && test -s conftest.$ac_objext; then
19175 ac_header_compiler=yes
19177 echo "$as_me: failed program was
:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19180 ac_header_compiler=no
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19185 echo "${ECHO_T}$ac_header_compiler" >&6; }
19187 # Is the header present?
19188 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19189 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 #include <$ac_header>
19198 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19199 case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19206 grep -v '^ *+' conftest.er1 >conftest.err
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19210 (exit $ac_status); } >/dev/null && {
19211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19212 test ! -s conftest.err
19214 ac_header_preproc=yes
19216 echo "$as_me: failed program was
:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_header_preproc=no
19222 rm -f conftest.err conftest.$ac_ext
19223 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19224 echo "${ECHO_T}$ac_header_preproc" >&6; }
19226 # So? What about this header?
19227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19229 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19230 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19231 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19233 ac_header_preproc=yes
19236 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19237 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19238 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19239 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19240 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19241 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19242 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19243 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19244 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19246 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19247 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19251 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19252 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19253 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19254 echo $ECHO_N "(cached
) $ECHO_C" >&6
19256 eval "$as_ac_Header=\
$ac_header_preproc"
19258 ac_res=`eval echo '${'$as_ac_Header'}'`
19259 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19260 echo "${ECHO_T}$ac_res" >&6; }
19263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19264 cat >>confdefs.h <<_ACEOF
19265 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19274 if test -z "$GETOPT_H"; then
19276 for ac_func in getopt_long_only
19278 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19279 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19280 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19281 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19282 echo $ECHO_N "(cached
) $ECHO_C" >&6
19284 cat >conftest.$ac_ext <<_ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h. */
19290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19292 #define $ac_func innocuous_$ac_func
19294 /* System header to define __stub macros and hopefully few prototypes,
19295 which can conflict with char $ac_func (); below.
19296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19297 <limits.h> exists even on freestanding compilers. */
19300 # include <limits.h>
19302 # include <assert.h>
19307 /* Override any GCC internal prototype to avoid an error.
19308 Use char because int might match the return type of a GCC
19309 builtin and then its argument prototype would still apply. */
19314 /* The GNU C library defines this for functions which it implements
19315 to always fail with ENOSYS. Some functions are actually named
19316 something starting with __ and the normal name is an alias. */
19317 #if defined __stub_$ac_func || defined __stub___$ac_func
19324 return $ac_func ();
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (ac_try="$ac_link"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_link") 2>conftest.er1
19338 grep -v '^ *+' conftest.er1 >conftest.err
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19342 (exit $ac_status); } && {
19343 test -z "$ac_c_werror_flag" ||
19344 test ! -s conftest.err
19345 } && test -s conftest$ac_exeext &&
19346 $as_test_x conftest$ac_exeext; then
19347 eval "$as_ac_var=yes"
19349 echo "$as_me: failed program was
:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 eval "$as_ac_var=no
"
19355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19356 conftest$ac_exeext conftest.$ac_ext
19358 ac_res=`eval echo '${'$as_ac_var'}'`
19359 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19360 echo "${ECHO_T}$ac_res" >&6; }
19361 if test `eval echo '${'$as_ac_var'}'` = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19373 if test -z "$GETOPT_H"; then
19374 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19375 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19376 if test "${ac_cv_have_decl_optreset+set}" = set; then
19377 echo $ECHO_N "(cached
) $ECHO_C" >&6
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385 #include <getopt.h>
19398 rm -f conftest.$ac_objext
19399 if { (ac_try="$ac_compile"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_compile") 2>conftest.er1
19407 grep -v '^ *+' conftest.er1 >conftest.err
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest.$ac_objext; then
19415 ac_cv_have_decl_optreset=yes
19417 echo "$as_me: failed program was
:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19420 ac_cv_have_decl_optreset=no
19423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19425 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19426 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19427 if test $ac_cv_have_decl_optreset = yes; then
19433 if test -z "$GETOPT_H"; then
19434 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19435 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19436 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19437 echo $ECHO_N "(cached
) $ECHO_C" >&6
19439 if test "$cross_compiling" = yes; then
19440 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19441 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19442 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19443 echo $ECHO_N "(cached
) $ECHO_C" >&6
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451 #include <getopt.h>
19456 #ifndef getopt_clip
19457 (void) getopt_clip;
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_compile") 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest.$ac_objext; then
19481 ac_cv_have_decl_getopt_clip=yes
19483 echo "$as_me: failed program was
:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_have_decl_getopt_clip=no
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19492 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19493 if test $ac_cv_have_decl_getopt_clip = yes; then
19494 gl_cv_func_gnu_getopt=no
19496 gl_cv_func_gnu_getopt=yes
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 #include <getopt.h>
19512 myargv[0] = "conftest
";
19515 return getopt (2, myargv, "+a
") != '?';
19521 rm -f conftest$ac_exeext
19522 if { (ac_try="$ac_link"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_link") 2>&5
19530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19532 { (case "(($ac_try" in
19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534 *) ac_try_echo=$ac_try;;
19536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19537 (eval "$ac_try") 2>&5
19539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 gl_cv_func_gnu_getopt=yes
19543 echo "$as_me: program exited with status
$ac_status" >&5
19544 echo "$as_me: failed program was
:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 ( exit $ac_status )
19548 gl_cv_func_gnu_getopt=no
19550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19555 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19556 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19557 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19564 if test -n "$GETOPT_H"; then
19569 cat >>confdefs.h <<\_ACEOF
19570 #define __GETOPT_PREFIX rpl_
19576 GETOPTOBJS='getopt.o getopt1.o'
19583 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19584 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19585 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19586 echo $ECHO_N "(cached
) $ECHO_C" >&6
19588 # Use it with a single arg.
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 $ac_includes_default
19604 rm -f conftest.$ac_objext
19605 if { (ac_try="$ac_compile"
19606 case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_compile") 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest.$ac_objext; then
19621 ac_cv_func_getpgrp_void=no
19623 echo "$as_me: failed program was
:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_cv_func_getpgrp_void=yes
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19633 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19634 if test $ac_cv_func_getpgrp_void = yes; then
19636 cat >>confdefs.h <<\_ACEOF
19637 #define GETPGRP_VOID 1
19644 for ac_func in strftime
19646 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19647 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19648 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19649 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19650 echo $ECHO_N "(cached
) $ECHO_C" >&6
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19660 #define $ac_func innocuous_$ac_func
19662 /* System header to define __stub macros and hopefully few prototypes,
19663 which can conflict with char $ac_func (); below.
19664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19665 <limits.h> exists even on freestanding compilers. */
19668 # include <limits.h>
19670 # include <assert.h>
19675 /* Override any GCC internal prototype to avoid an error.
19676 Use char because int might match the return type of a GCC
19677 builtin and then its argument prototype would still apply. */
19682 /* The GNU C library defines this for functions which it implements
19683 to always fail with ENOSYS. Some functions are actually named
19684 something starting with __ and the normal name is an alias. */
19685 #if defined __stub_$ac_func || defined __stub___$ac_func
19692 return $ac_func ();
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (ac_try="$ac_link"
19699 case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_link") 2>conftest.er1
19706 grep -v '^ *+' conftest.er1 >conftest.err
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19710 (exit $ac_status); } && {
19711 test -z "$ac_c_werror_flag" ||
19712 test ! -s conftest.err
19713 } && test -s conftest$ac_exeext &&
19714 $as_test_x conftest$ac_exeext; then
19715 eval "$as_ac_var=yes"
19717 echo "$as_me: failed program was
:" >&5
19718 sed 's/^/| /' conftest.$ac_ext >&5
19720 eval "$as_ac_var=no
"
19723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19724 conftest$ac_exeext conftest.$ac_ext
19726 ac_res=`eval echo '${'$as_ac_var'}'`
19727 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19728 echo "${ECHO_T}$ac_res" >&6; }
19729 if test `eval echo '${'$as_ac_var'}'` = yes; then
19730 cat >>confdefs.h <<_ACEOF
19731 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19735 # strftime is in -lintl on SCO UNIX.
19736 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19737 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19738 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19739 echo $ECHO_N "(cached
) $ECHO_C" >&6
19741 ac_check_lib_save_LIBS=$LIBS
19742 LIBS="-lintl $LIBS"
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19750 /* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19760 return strftime ();
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_link") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest$ac_exeext &&
19782 $as_test_x conftest$ac_exeext; then
19783 ac_cv_lib_intl_strftime=yes
19785 echo "$as_me: failed program was
:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19788 ac_cv_lib_intl_strftime=no
19791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19792 conftest$ac_exeext conftest.$ac_ext
19793 LIBS=$ac_check_lib_save_LIBS
19795 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19796 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19797 if test $ac_cv_lib_intl_strftime = yes; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_STRFTIME 1
19802 LIBS="-lintl $LIBS"
19811 for ac_func in grantpt
19813 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19814 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19815 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19816 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19817 echo $ECHO_N "(cached
) $ECHO_C" >&6
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19827 #define $ac_func innocuous_$ac_func
19829 /* System header to define __stub macros and hopefully few prototypes,
19830 which can conflict with char $ac_func (); below.
19831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19832 <limits.h> exists even on freestanding compilers. */
19835 # include <limits.h>
19837 # include <assert.h>
19842 /* Override any GCC internal prototype to avoid an error.
19843 Use char because int might match the return type of a GCC
19844 builtin and then its argument prototype would still apply. */
19849 /* The GNU C library defines this for functions which it implements
19850 to always fail with ENOSYS. Some functions are actually named
19851 something starting with __ and the normal name is an alias. */
19852 #if defined __stub_$ac_func || defined __stub___$ac_func
19859 return $ac_func ();
19864 rm -f conftest.$ac_objext conftest$ac_exeext
19865 if { (ac_try="$ac_link"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_link") 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19877 (exit $ac_status); } && {
19878 test -z "$ac_c_werror_flag" ||
19879 test ! -s conftest.err
19880 } && test -s conftest$ac_exeext &&
19881 $as_test_x conftest$ac_exeext; then
19882 eval "$as_ac_var=yes"
19884 echo "$as_me: failed program was
:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19887 eval "$as_ac_var=no
"
19890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19891 conftest$ac_exeext conftest.$ac_ext
19893 ac_res=`eval echo '${'$as_ac_var'}'`
19894 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19895 echo "${ECHO_T}$ac_res" >&6; }
19896 if test `eval echo '${'$as_ac_var'}'` = yes; then
19897 cat >>confdefs.h <<_ACEOF
19898 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19905 # PTY-related GNU extensions.
19907 for ac_func in getpt
19909 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19910 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19911 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19912 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19913 echo $ECHO_N "(cached
) $ECHO_C" >&6
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19923 #define $ac_func innocuous_$ac_func
19925 /* System header to define __stub macros and hopefully few prototypes,
19926 which can conflict with char $ac_func (); below.
19927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19928 <limits.h> exists even on freestanding compilers. */
19931 # include <limits.h>
19933 # include <assert.h>
19938 /* Override any GCC internal prototype to avoid an error.
19939 Use char because int might match the return type of a GCC
19940 builtin and then its argument prototype would still apply. */
19945 /* The GNU C library defines this for functions which it implements
19946 to always fail with ENOSYS. Some functions are actually named
19947 something starting with __ and the normal name is an alias. */
19948 #if defined __stub_$ac_func || defined __stub___$ac_func
19955 return $ac_func ();
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext &&
19977 $as_test_x conftest$ac_exeext; then
19978 eval "$as_ac_var=yes"
19980 echo "$as_me: failed program was
:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19983 eval "$as_ac_var=no
"
19986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19987 conftest$ac_exeext conftest.$ac_ext
19989 ac_res=`eval echo '${'$as_ac_var'}'`
19990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19991 echo "${ECHO_T}$ac_res" >&6; }
19992 if test `eval echo '${'$as_ac_var'}'` = yes; then
19993 cat >>confdefs.h <<_ACEOF
19994 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20001 # Check this now, so that we will NOT find the above functions in ncurses.
20002 # That is because we have not set up to link ncurses in lib-src.
20003 # It's better to believe a function is not available
20004 # than to expect to find it in ncurses.
20006 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20007 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
20008 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20009 echo $ECHO_N "(cached
) $ECHO_C" >&6
20011 ac_check_lib_save_LIBS=$LIBS
20012 LIBS="-lncurses $LIBS"
20013 cat >conftest.$ac_ext <<_ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20020 /* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20035 rm -f conftest.$ac_objext conftest$ac_exeext
20036 if { (ac_try="$ac_link"
20037 case "(($ac_try" in
20038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039 *) ac_try_echo=$ac_try;;
20041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20042 (eval "$ac_link") 2>conftest.er1
20044 grep -v '^ *+' conftest.er1 >conftest.err
20046 cat conftest.err >&5
20047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20048 (exit $ac_status); } && {
20049 test -z "$ac_c_werror_flag" ||
20050 test ! -s conftest.err
20051 } && test -s conftest$ac_exeext &&
20052 $as_test_x conftest$ac_exeext; then
20053 ac_cv_lib_ncurses_tparm=yes
20055 echo "$as_me: failed program was
:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_cv_lib_ncurses_tparm=no
20061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20062 conftest$ac_exeext conftest.$ac_ext
20063 LIBS=$ac_check_lib_save_LIBS
20065 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20066 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20067 if test $ac_cv_lib_ncurses_tparm = yes; then
20068 cat >>confdefs.h <<_ACEOF
20069 #define HAVE_LIBNCURSES 1
20072 LIBS="-lncurses $LIBS"
20077 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <netinet/in.h>
20087 #include <arpa/nameser.h>
20088 #include <resolv.h>
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_link") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest$ac_exeext &&
20114 $as_test_x conftest$ac_exeext; then
20117 echo "$as_me: failed program was
:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124 conftest$ac_exeext conftest.$ac_ext
20125 if test "$have_res_init" = no; then
20127 LIBS="$LIBS -lresolv"
20128 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20129 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 #include <netinet/in.h>
20137 #include <arpa/nameser.h>
20138 #include <resolv.h>
20147 rm -f conftest.$ac_objext conftest$ac_exeext
20148 if { (ac_try="$ac_link"
20149 case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_link") 2>conftest.er1
20156 grep -v '^ *+' conftest.er1 >conftest.err
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest$ac_exeext &&
20164 $as_test_x conftest$ac_exeext; then
20167 echo "$as_me: failed program was
:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20174 conftest$ac_exeext conftest.$ac_ext
20175 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20176 echo "${ECHO_T}$have_res_init" >&6; }
20177 if test "$have_res_init" = yes ; then
20183 if test "$have_res_init" = yes; then
20185 cat >>confdefs.h <<\_ACEOF
20186 #define HAVE_RES_INIT 1
20191 # Do we need the Hesiod library to provide the support routines?
20192 if test "$with_hesiod" != no ; then
20193 # Don't set $LIBS here -- see comments above.
20194 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20195 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20196 if test "${ac_cv_func_res_send+set}" = set; then
20197 echo $ECHO_N "(cached
) $ECHO_C" >&6
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20207 #define res_send innocuous_res_send
20209 /* System header to define __stub macros and hopefully few prototypes,
20210 which can conflict with char res_send (); below.
20211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20212 <limits.h> exists even on freestanding compilers. */
20215 # include <limits.h>
20217 # include <assert.h>
20222 /* Override any GCC internal prototype to avoid an error.
20223 Use char because int might match the return type of a GCC
20224 builtin and then its argument prototype would still apply. */
20229 /* The GNU C library defines this for functions which it implements
20230 to always fail with ENOSYS. Some functions are actually named
20231 something starting with __ and the normal name is an alias. */
20232 #if defined __stub_res_send || defined __stub___res_send
20239 return res_send ();
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest$ac_exeext &&
20261 $as_test_x conftest$ac_exeext; then
20262 ac_cv_func_res_send=yes
20264 echo "$as_me: failed program was
:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_func_res_send=no
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20273 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20274 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20275 if test $ac_cv_func_res_send = yes; then
20278 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20279 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20280 if test "${ac_cv_func___res_send+set}" = set; then
20281 echo $ECHO_N "(cached
) $ECHO_C" >&6
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20291 #define __res_send innocuous___res_send
20293 /* System header to define __stub macros and hopefully few prototypes,
20294 which can conflict with char __res_send (); below.
20295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20296 <limits.h> exists even on freestanding compilers. */
20299 # include <limits.h>
20301 # include <assert.h>
20306 /* Override any GCC internal prototype to avoid an error.
20307 Use char because int might match the return type of a GCC
20308 builtin and then its argument prototype would still apply. */
20312 char __res_send ();
20313 /* The GNU C library defines this for functions which it implements
20314 to always fail with ENOSYS. Some functions are actually named
20315 something starting with __ and the normal name is an alias. */
20316 #if defined __stub___res_send || defined __stub_____res_send
20323 return __res_send ();
20328 rm -f conftest.$ac_objext conftest$ac_exeext
20329 if { (ac_try="$ac_link"
20330 case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_link") 2>conftest.er1
20337 grep -v '^ *+' conftest.er1 >conftest.err
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20341 (exit $ac_status); } && {
20342 test -z "$ac_c_werror_flag" ||
20343 test ! -s conftest.err
20344 } && test -s conftest$ac_exeext &&
20345 $as_test_x conftest$ac_exeext; then
20346 ac_cv_func___res_send=yes
20348 echo "$as_me: failed program was
:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_cv_func___res_send=no
20354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20355 conftest$ac_exeext conftest.$ac_ext
20357 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20358 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20359 if test $ac_cv_func___res_send = yes; then
20362 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20363 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20364 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20365 echo $ECHO_N "(cached
) $ECHO_C" >&6
20367 ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lresolv $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20376 /* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
20386 return res_send ();
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (ac_try="$ac_link"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_link") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest$ac_exeext &&
20408 $as_test_x conftest$ac_exeext; then
20409 ac_cv_lib_resolv_res_send=yes
20411 echo "$as_me: failed program was
:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ac_cv_lib_resolv_res_send=no
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20421 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20422 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20423 if test $ac_cv_lib_resolv_res_send = yes; then
20426 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20427 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20428 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20429 echo $ECHO_N "(cached
) $ECHO_C" >&6
20431 ac_check_lib_save_LIBS=$LIBS
20432 LIBS="-lresolv $LIBS"
20433 cat >conftest.$ac_ext <<_ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20440 /* Override any GCC internal prototype to avoid an error.
20441 Use char because int might match the return type of a GCC
20442 builtin and then its argument prototype would still apply. */
20446 char __res_send ();
20450 return __res_send ();
20455 rm -f conftest.$ac_objext conftest$ac_exeext
20456 if { (ac_try="$ac_link"
20457 case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_link") 2>conftest.er1
20464 grep -v '^ *+' conftest.er1 >conftest.err
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20468 (exit $ac_status); } && {
20469 test -z "$ac_c_werror_flag" ||
20470 test ! -s conftest.err
20471 } && test -s conftest$ac_exeext &&
20472 $as_test_x conftest$ac_exeext; then
20473 ac_cv_lib_resolv___res_send=yes
20475 echo "$as_me: failed program was
:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_cv_lib_resolv___res_send=no
20481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20482 conftest$ac_exeext conftest.$ac_ext
20483 LIBS=$ac_check_lib_save_LIBS
20485 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20486 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20487 if test $ac_cv_lib_resolv___res_send = yes; then
20497 if test "$resolv" = yes ; then
20502 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20503 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20504 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20505 echo $ECHO_N "(cached
) $ECHO_C" >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20515 #define hes_getmailhost innocuous_hes_getmailhost
20517 /* System header to define __stub macros and hopefully few prototypes,
20518 which can conflict with char hes_getmailhost (); below.
20519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520 <limits.h> exists even on freestanding compilers. */
20523 # include <limits.h>
20525 # include <assert.h>
20528 #undef hes_getmailhost
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20536 char hes_getmailhost ();
20537 /* The GNU C library defines this for functions which it implements
20538 to always fail with ENOSYS. Some functions are actually named
20539 something starting with __ and the normal name is an alias. */
20540 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20547 return hes_getmailhost ();
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext &&
20569 $as_test_x conftest$ac_exeext; then
20570 ac_cv_func_hes_getmailhost=yes
20572 echo "$as_me: failed program was
:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_cv_func_hes_getmailhost=no
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579 conftest$ac_exeext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20582 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20583 if test $ac_cv_func_hes_getmailhost = yes; then
20586 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20587 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20588 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20589 echo $ECHO_N "(cached
) $ECHO_C" >&6
20591 ac_check_lib_save_LIBS=$LIBS
20592 LIBS="-lhesiod $RESOLVLIB $LIBS"
20593 cat >conftest.$ac_ext <<_ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20600 /* Override any GCC internal prototype to avoid an error.
20601 Use char because int might match the return type of a GCC
20602 builtin and then its argument prototype would still apply. */
20606 char hes_getmailhost ();
20610 return hes_getmailhost ();
20615 rm -f conftest.$ac_objext conftest$ac_exeext
20616 if { (ac_try="$ac_link"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_link") 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20628 (exit $ac_status); } && {
20629 test -z "$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 } && test -s conftest$ac_exeext &&
20632 $as_test_x conftest$ac_exeext; then
20633 ac_cv_lib_hesiod_hes_getmailhost=yes
20635 echo "$as_me: failed program was
:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_cv_lib_hesiod_hes_getmailhost=no
20641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20642 conftest$ac_exeext conftest.$ac_ext
20643 LIBS=$ac_check_lib_save_LIBS
20645 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20646 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20647 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20649 cat >>confdefs.h <<\_ACEOF
20650 #define HAVE_LIBHESIOD 1
20661 # Do we need libresolv (due to res_init or Hesiod)?
20662 if test "$resolv" = yes ; then
20664 cat >>confdefs.h <<\_ACEOF
20665 #define HAVE_LIBRESOLV 1
20670 # These tell us which Kerberos-related libraries to use.
20671 if test "${with_kerberos}" != no; then
20673 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20674 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20675 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20676 echo $ECHO_N "(cached
) $ECHO_C" >&6
20678 ac_check_lib_save_LIBS=$LIBS
20679 LIBS="-lcom_err $LIBS"
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20687 /* Override any GCC internal prototype to avoid an error.
20688 Use char because int might match the return type of a GCC
20689 builtin and then its argument prototype would still apply. */
20702 rm -f conftest.$ac_objext conftest$ac_exeext
20703 if { (ac_try="$ac_link"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_link") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1 >conftest.err
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest$ac_exeext &&
20719 $as_test_x conftest$ac_exeext; then
20720 ac_cv_lib_com_err_com_err=yes
20722 echo "$as_me: failed program was
:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_cv_lib_com_err_com_err=no
20728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20729 conftest$ac_exeext conftest.$ac_ext
20730 LIBS=$ac_check_lib_save_LIBS
20732 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20733 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20734 if test $ac_cv_lib_com_err_com_err = yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_LIBCOM_ERR 1
20739 LIBS="-lcom_err $LIBS"
20744 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20745 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20746 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20747 echo $ECHO_N "(cached
) $ECHO_C" >&6
20749 ac_check_lib_save_LIBS=$LIBS
20750 LIBS="-lk5crypto $LIBS"
20751 cat >conftest.$ac_ext <<_ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20758 /* Override any GCC internal prototype to avoid an error.
20759 Use char because int might match the return type of a GCC
20760 builtin and then its argument prototype would still apply. */
20764 char mit_des_cbc_encrypt ();
20768 return mit_des_cbc_encrypt ();
20773 rm -f conftest.$ac_objext conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>conftest.er1
20782 grep -v '^ *+' conftest.er1 >conftest.err
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest$ac_exeext &&
20790 $as_test_x conftest$ac_exeext; then
20791 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20793 echo "$as_me: failed program was
:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20803 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20804 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20805 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20806 cat >>confdefs.h <<_ACEOF
20807 #define HAVE_LIBK5CRYPTO 1
20810 LIBS="-lk5crypto $LIBS"
20815 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20816 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20817 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20818 echo $ECHO_N "(cached
) $ECHO_C" >&6
20820 ac_check_lib_save_LIBS=$LIBS
20821 LIBS="-lcrypto $LIBS"
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20829 /* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20835 char mit_des_cbc_encrypt ();
20839 return mit_des_cbc_encrypt ();
20844 rm -f conftest.$ac_objext conftest$ac_exeext
20845 if { (ac_try="$ac_link"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_link") 2>conftest.er1
20853 grep -v '^ *+' conftest.er1 >conftest.err
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest$ac_exeext &&
20861 $as_test_x conftest$ac_exeext; then
20862 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20864 echo "$as_me: failed program was
:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20871 conftest$ac_exeext conftest.$ac_ext
20872 LIBS=$ac_check_lib_save_LIBS
20874 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20875 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20876 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20877 cat >>confdefs.h <<_ACEOF
20878 #define HAVE_LIBCRYPTO 1
20881 LIBS="-lcrypto $LIBS"
20886 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20887 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20888 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20889 echo $ECHO_N "(cached
) $ECHO_C" >&6
20891 ac_check_lib_save_LIBS=$LIBS
20892 LIBS="-lkrb5 $LIBS"
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20900 /* Override any GCC internal prototype to avoid an error.
20901 Use char because int might match the return type of a GCC
20902 builtin and then its argument prototype would still apply. */
20906 char krb5_init_context ();
20910 return krb5_init_context ();
20915 rm -f conftest.$ac_objext conftest$ac_exeext
20916 if { (ac_try="$ac_link"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_link") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest$ac_exeext &&
20932 $as_test_x conftest$ac_exeext; then
20933 ac_cv_lib_krb5_krb5_init_context=yes
20935 echo "$as_me: failed program was
:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 ac_cv_lib_krb5_krb5_init_context=no
20941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20942 conftest$ac_exeext conftest.$ac_ext
20943 LIBS=$ac_check_lib_save_LIBS
20945 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20946 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20947 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20948 cat >>confdefs.h <<_ACEOF
20949 #define HAVE_LIBKRB5 1
20952 LIBS="-lkrb5 $LIBS"
20956 if test "${with_kerberos5}" = no; then
20958 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20959 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20960 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20961 echo $ECHO_N "(cached
) $ECHO_C" >&6
20963 ac_check_lib_save_LIBS=$LIBS
20964 LIBS="-ldes425 $LIBS"
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20972 /* Override any GCC internal prototype to avoid an error.
20973 Use char because int might match the return type of a GCC
20974 builtin and then its argument prototype would still apply. */
20978 char des_cbc_encrypt ();
20982 return des_cbc_encrypt ();
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (ac_try="$ac_link"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_link") 2>conftest.er1
20996 grep -v '^ *+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest$ac_exeext &&
21004 $as_test_x conftest$ac_exeext; then
21005 ac_cv_lib_des425_des_cbc_encrypt=yes
21007 echo "$as_me: failed program was
:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_cv_lib_des425_des_cbc_encrypt=no
21013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21014 conftest$ac_exeext conftest.$ac_ext
21015 LIBS=$ac_check_lib_save_LIBS
21017 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21018 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21019 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21020 cat >>confdefs.h <<_ACEOF
21021 #define HAVE_LIBDES425 1
21024 LIBS="-ldes425 $LIBS"
21028 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21029 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
21030 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21031 echo $ECHO_N "(cached
) $ECHO_C" >&6
21033 ac_check_lib_save_LIBS=$LIBS
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 /* Override any GCC internal prototype to avoid an error.
21043 Use char because int might match the return type of a GCC
21044 builtin and then its argument prototype would still apply. */
21048 char des_cbc_encrypt ();
21052 return des_cbc_encrypt ();
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_link") 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest$ac_exeext &&
21074 $as_test_x conftest$ac_exeext; then
21075 ac_cv_lib_des_des_cbc_encrypt=yes
21077 echo "$as_me: failed program was
:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_cv_lib_des_des_cbc_encrypt=no
21083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21084 conftest$ac_exeext conftest.$ac_ext
21085 LIBS=$ac_check_lib_save_LIBS
21087 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
21088 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21089 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define HAVE_LIBDES 1
21101 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
21102 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
21103 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21104 echo $ECHO_N "(cached
) $ECHO_C" >&6
21106 ac_check_lib_save_LIBS=$LIBS
21107 LIBS="-lkrb4 $LIBS"
21108 cat >conftest.$ac_ext <<_ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21115 /* Override any GCC internal prototype to avoid an error.
21116 Use char because int might match the return type of a GCC
21117 builtin and then its argument prototype would still apply. */
21121 char krb_get_cred ();
21125 return krb_get_cred ();
21130 rm -f conftest.$ac_objext conftest$ac_exeext
21131 if { (ac_try="$ac_link"
21132 case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21137 (eval "$ac_link") 2>conftest.er1
21139 grep -v '^ *+' conftest.er1 >conftest.err
21141 cat conftest.err >&5
21142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21143 (exit $ac_status); } && {
21144 test -z "$ac_c_werror_flag" ||
21145 test ! -s conftest.err
21146 } && test -s conftest$ac_exeext &&
21147 $as_test_x conftest$ac_exeext; then
21148 ac_cv_lib_krb4_krb_get_cred=yes
21150 echo "$as_me: failed program was
:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21153 ac_cv_lib_krb4_krb_get_cred=no
21156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21157 conftest$ac_exeext conftest.$ac_ext
21158 LIBS=$ac_check_lib_save_LIBS
21160 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21161 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21162 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21163 cat >>confdefs.h <<_ACEOF
21164 #define HAVE_LIBKRB4 1
21167 LIBS="-lkrb4 $LIBS"
21171 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21172 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21173 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21174 echo $ECHO_N "(cached
) $ECHO_C" >&6
21176 ac_check_lib_save_LIBS=$LIBS
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21191 char krb_get_cred ();
21195 return krb_get_cred ();
21200 rm -f conftest.$ac_objext conftest$ac_exeext
21201 if { (ac_try="$ac_link"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_link") 2>conftest.er1
21209 grep -v '^ *+' conftest.er1 >conftest.err
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21213 (exit $ac_status); } && {
21214 test -z "$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21216 } && test -s conftest$ac_exeext &&
21217 $as_test_x conftest$ac_exeext; then
21218 ac_cv_lib_krb_krb_get_cred=yes
21220 echo "$as_me: failed program was
:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21223 ac_cv_lib_krb_krb_get_cred=no
21226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21227 conftest$ac_exeext conftest.$ac_ext
21228 LIBS=$ac_check_lib_save_LIBS
21230 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21231 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21232 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21233 cat >>confdefs.h <<_ACEOF
21234 #define HAVE_LIBKRB 1
21245 if test "${with_kerberos5}" != no; then
21247 for ac_header in krb5.h
21249 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21251 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21252 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21253 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21254 echo $ECHO_N "(cached
) $ECHO_C" >&6
21256 ac_res=`eval echo '${'$as_ac_Header'}'`
21257 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21258 echo "${ECHO_T}$ac_res" >&6; }
21260 # Is the header compilable?
21261 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21262 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21263 cat >conftest.$ac_ext <<_ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 $ac_includes_default
21270 #include <$ac_header>
21272 rm -f conftest.$ac_objext
21273 if { (ac_try="$ac_compile"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_compile") 2>conftest.er1
21281 grep -v '^ *+' conftest.er1 >conftest.err
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21285 (exit $ac_status); } && {
21286 test -z "$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 } && test -s conftest.$ac_objext; then
21289 ac_header_compiler=yes
21291 echo "$as_me: failed program was
:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_header_compiler=no
21297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21298 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21299 echo "${ECHO_T}$ac_header_compiler" >&6; }
21301 # Is the header present?
21302 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21303 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21304 cat >conftest.$ac_ext <<_ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 #include <$ac_header>
21312 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21324 (exit $ac_status); } >/dev/null && {
21325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21328 ac_header_preproc=yes
21330 echo "$as_me: failed program was
:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_header_preproc=no
21336 rm -f conftest.err conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6; }
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21343 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21344 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21347 ac_header_preproc=yes
21350 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21351 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21352 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21353 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21354 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21355 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21356 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21357 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21360 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21361 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21365 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21366 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21368 echo $ECHO_N "(cached
) $ECHO_C" >&6
21370 eval "$as_ac_Header=\
$ac_header_preproc"
21372 ac_res=`eval echo '${'$as_ac_Header'}'`
21373 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21374 echo "${ECHO_T}$ac_res" >&6; }
21377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21388 for ac_header in des.h
21390 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21392 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21393 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21394 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached
) $ECHO_C" >&6
21397 ac_res=`eval echo '${'$as_ac_Header'}'`
21398 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21399 echo "${ECHO_T}$ac_res" >&6; }
21401 # Is the header compilable?
21402 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21403 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21404 cat >conftest.$ac_ext <<_ACEOF
21407 cat confdefs.h >>conftest.$ac_ext
21408 cat >>conftest.$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21410 $ac_includes_default
21411 #include <$ac_header>
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1 >conftest.err
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21426 (exit $ac_status); } && {
21427 test -z "$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21429 } && test -s conftest.$ac_objext; then
21430 ac_header_compiler=yes
21432 echo "$as_me: failed program was
:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21435 ac_header_compiler=no
21438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21439 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21440 echo "${ECHO_T}$ac_header_compiler" >&6; }
21442 # Is the header present?
21443 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21444 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21445 cat >conftest.$ac_ext <<_ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h. */
21451 #include <$ac_header>
21453 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21454 case "(($ac_try" in
21455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456 *) ac_try_echo=$ac_try;;
21458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21459 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21465 (exit $ac_status); } >/dev/null && {
21466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21469 ac_header_preproc=yes
21471 echo "$as_me: failed program was
:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21474 ac_header_preproc=no
21477 rm -f conftest.err conftest.$ac_ext
21478 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21479 echo "${ECHO_T}$ac_header_preproc" >&6; }
21481 # So? What about this header?
21482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21484 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21485 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21486 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21488 ac_header_preproc=yes
21491 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21492 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21493 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21494 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21495 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21496 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21497 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21498 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21499 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21501 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21502 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21506 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21507 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21509 echo $ECHO_N "(cached
) $ECHO_C" >&6
21511 eval "$as_ac_Header=\
$ac_header_preproc"
21513 ac_res=`eval echo '${'$as_ac_Header'}'`
21514 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21515 echo "${ECHO_T}$ac_res" >&6; }
21518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21519 cat >>confdefs.h <<_ACEOF
21520 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21525 for ac_header in kerberosIV/des.h
21527 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21528 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21529 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21530 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21531 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21532 echo $ECHO_N "(cached
) $ECHO_C" >&6
21534 ac_res=`eval echo '${'$as_ac_Header'}'`
21535 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21536 echo "${ECHO_T}$ac_res" >&6; }
21538 # Is the header compilable?
21539 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21540 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21541 cat >conftest.$ac_ext <<_ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 $ac_includes_default
21548 #include <$ac_header>
21550 rm -f conftest.$ac_objext
21551 if { (ac_try="$ac_compile"
21552 case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21557 (eval "$ac_compile") 2>conftest.er1
21559 grep -v '^ *+' conftest.er1 >conftest.err
21561 cat conftest.err >&5
21562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21563 (exit $ac_status); } && {
21564 test -z "$ac_c_werror_flag" ||
21565 test ! -s conftest.err
21566 } && test -s conftest.$ac_objext; then
21567 ac_header_compiler=yes
21569 echo "$as_me: failed program was
:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 ac_header_compiler=no
21575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21576 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21577 echo "${ECHO_T}$ac_header_compiler" >&6; }
21579 # Is the header present?
21580 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21581 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <$ac_header>
21590 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21591 case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21596 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21598 grep -v '^ *+' conftest.er1 >conftest.err
21600 cat conftest.err >&5
21601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21602 (exit $ac_status); } >/dev/null && {
21603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21604 test ! -s conftest.err
21606 ac_header_preproc=yes
21608 echo "$as_me: failed program was
:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21611 ac_header_preproc=no
21614 rm -f conftest.err conftest.$ac_ext
21615 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21616 echo "${ECHO_T}$ac_header_preproc" >&6; }
21618 # So? What about this header?
21619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21621 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21622 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21623 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21625 ac_header_preproc=yes
21628 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21629 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21630 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21631 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21632 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21633 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21634 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21635 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21636 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21638 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21639 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21643 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21644 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21645 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21646 echo $ECHO_N "(cached
) $ECHO_C" >&6
21648 eval "$as_ac_Header=\
$ac_header_preproc"
21650 ac_res=`eval echo '${'$as_ac_Header'}'`
21651 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21652 echo "${ECHO_T}$ac_res" >&6; }
21655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21656 cat >>confdefs.h <<_ACEOF
21657 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21662 for ac_header in kerberos/des.h
21664 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21665 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21666 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21667 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21668 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21669 echo $ECHO_N "(cached
) $ECHO_C" >&6
21671 ac_res=`eval echo '${'$as_ac_Header'}'`
21672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21675 # Is the header compilable?
21676 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21677 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 #include <$ac_header>
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21691 *) ac_try_echo=$ac_try;;
21693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_compile") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1 >conftest.err
21698 cat conftest.err >&5
21699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest.$ac_objext; then
21704 ac_header_compiler=yes
21706 echo "$as_me: failed program was
:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ac_header_compiler=no
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21714 echo "${ECHO_T}$ac_header_compiler" >&6; }
21716 # Is the header present?
21717 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21718 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21719 cat >conftest.$ac_ext <<_ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 #include <$ac_header>
21727 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21728 case "(($ac_try" in
21729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21735 grep -v '^ *+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21739 (exit $ac_status); } >/dev/null && {
21740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21743 ac_header_preproc=yes
21745 echo "$as_me: failed program was
:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21748 ac_header_preproc=no
21751 rm -f conftest.err conftest.$ac_ext
21752 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21753 echo "${ECHO_T}$ac_header_preproc" >&6; }
21755 # So? What about this header?
21756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21758 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21759 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21760 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21762 ac_header_preproc=yes
21765 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21766 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21768 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21769 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21770 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21771 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21772 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21773 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21775 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21776 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21780 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21781 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21782 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21783 echo $ECHO_N "(cached
) $ECHO_C" >&6
21785 eval "$as_ac_Header=\
$ac_header_preproc"
21787 ac_res=`eval echo '${'$as_ac_Header'}'`
21788 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21789 echo "${ECHO_T}$ac_res" >&6; }
21792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21810 for ac_header in krb.h
21812 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21813 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21814 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21815 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21817 echo $ECHO_N "(cached
) $ECHO_C" >&6
21819 ac_res=`eval echo '${'$as_ac_Header'}'`
21820 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21821 echo "${ECHO_T}$ac_res" >&6; }
21823 # Is the header compilable?
21824 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21825 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21826 cat >conftest.$ac_ext <<_ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h. */
21832 $ac_includes_default
21833 #include <$ac_header>
21835 rm -f conftest.$ac_objext
21836 if { (ac_try="$ac_compile"
21837 case "(($ac_try" in
21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839 *) ac_try_echo=$ac_try;;
21841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21842 (eval "$ac_compile") 2>conftest.er1
21844 grep -v '^ *+' conftest.er1 >conftest.err
21846 cat conftest.err >&5
21847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest.$ac_objext; then
21852 ac_header_compiler=yes
21854 echo "$as_me: failed program was
:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 ac_header_compiler=no
21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21862 echo "${ECHO_T}$ac_header_compiler" >&6; }
21864 # Is the header present?
21865 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21866 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21867 cat >conftest.$ac_ext <<_ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 #include <$ac_header>
21875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21883 grep -v '^ *+' conftest.er1 >conftest.err
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21887 (exit $ac_status); } >/dev/null && {
21888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21891 ac_header_preproc=yes
21893 echo "$as_me: failed program was
:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ac_header_preproc=no
21899 rm -f conftest.err conftest.$ac_ext
21900 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21901 echo "${ECHO_T}$ac_header_preproc" >&6; }
21903 # So? What about this header?
21904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21906 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21907 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21908 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21910 ac_header_preproc=yes
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21914 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21915 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21916 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21917 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21918 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21919 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21920 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21921 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21923 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21924 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21928 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21929 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21931 echo $ECHO_N "(cached
) $ECHO_C" >&6
21933 eval "$as_ac_Header=\
$ac_header_preproc"
21935 ac_res=`eval echo '${'$as_ac_Header'}'`
21936 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21937 echo "${ECHO_T}$ac_res" >&6; }
21940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21941 cat >>confdefs.h <<_ACEOF
21942 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21947 for ac_header in kerberosIV/krb.h
21949 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21950 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21951 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21952 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21953 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21954 echo $ECHO_N "(cached
) $ECHO_C" >&6
21956 ac_res=`eval echo '${'$as_ac_Header'}'`
21957 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21958 echo "${ECHO_T}$ac_res" >&6; }
21960 # Is the header compilable?
21961 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21962 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21963 cat >conftest.$ac_ext <<_ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 $ac_includes_default
21970 #include <$ac_header>
21972 rm -f conftest.$ac_objext
21973 if { (ac_try="$ac_compile"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_compile") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest.$ac_objext; then
21989 ac_header_compiler=yes
21991 echo "$as_me: failed program was
:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 ac_header_compiler=no
21997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21998 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21999 echo "${ECHO_T}$ac_header_compiler" >&6; }
22001 # Is the header present?
22002 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22003 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22004 cat >conftest.$ac_ext <<_ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 #include <$ac_header>
22012 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22013 case "(($ac_try" in
22014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015 *) ac_try_echo=$ac_try;;
22017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22018 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22020 grep -v '^ *+' conftest.er1 >conftest.err
22022 cat conftest.err >&5
22023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22024 (exit $ac_status); } >/dev/null && {
22025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22026 test ! -s conftest.err
22028 ac_header_preproc=yes
22030 echo "$as_me: failed program was
:" >&5
22031 sed 's/^/| /' conftest.$ac_ext >&5
22033 ac_header_preproc=no
22036 rm -f conftest.err conftest.$ac_ext
22037 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22038 echo "${ECHO_T}$ac_header_preproc" >&6; }
22040 # So? What about this header?
22041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22043 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22044 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22045 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22047 ac_header_preproc=yes
22050 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22051 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22052 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22053 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22054 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22055 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22056 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22057 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22058 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22060 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22061 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22065 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22066 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22067 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22068 echo $ECHO_N "(cached
) $ECHO_C" >&6
22070 eval "$as_ac_Header=\
$ac_header_preproc"
22072 ac_res=`eval echo '${'$as_ac_Header'}'`
22073 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22074 echo "${ECHO_T}$ac_res" >&6; }
22077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22078 cat >>confdefs.h <<_ACEOF
22079 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22084 for ac_header in kerberos/krb.h
22086 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22088 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22089 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22091 echo $ECHO_N "(cached
) $ECHO_C" >&6
22093 ac_res=`eval echo '${'$as_ac_Header'}'`
22094 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22095 echo "${ECHO_T}$ac_res" >&6; }
22097 # Is the header compilable?
22098 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22099 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22100 cat >conftest.$ac_ext <<_ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h. */
22106 $ac_includes_default
22107 #include <$ac_header>
22109 rm -f conftest.$ac_objext
22110 if { (ac_try="$ac_compile"
22111 case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_compile") 2>conftest.er1
22118 grep -v '^ *+' conftest.er1 >conftest.err
22120 cat conftest.err >&5
22121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22122 (exit $ac_status); } && {
22123 test -z "$ac_c_werror_flag" ||
22124 test ! -s conftest.err
22125 } && test -s conftest.$ac_objext; then
22126 ac_header_compiler=yes
22128 echo "$as_me: failed program was
:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 ac_header_compiler=no
22134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22136 echo "${ECHO_T}$ac_header_compiler" >&6; }
22138 # Is the header present?
22139 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22140 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22147 #include <$ac_header>
22149 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22150 case "(($ac_try" in
22151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152 *) ac_try_echo=$ac_try;;
22154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22155 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22157 grep -v '^ *+' conftest.er1 >conftest.err
22159 cat conftest.err >&5
22160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22161 (exit $ac_status); } >/dev/null && {
22162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22163 test ! -s conftest.err
22165 ac_header_preproc=yes
22167 echo "$as_me: failed program was
:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22170 ac_header_preproc=no
22173 rm -f conftest.err conftest.$ac_ext
22174 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22175 echo "${ECHO_T}$ac_header_preproc" >&6; }
22177 # So? What about this header?
22178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22180 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22181 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22182 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22184 ac_header_preproc=yes
22187 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22188 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22189 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22190 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22191 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22192 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22193 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22194 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22195 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22197 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22198 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22202 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22203 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22205 echo $ECHO_N "(cached
) $ECHO_C" >&6
22207 eval "$as_ac_Header=\
$ac_header_preproc"
22209 ac_res=`eval echo '${'$as_ac_Header'}'`
22210 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22211 echo "${ECHO_T}$ac_res" >&6; }
22214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22215 cat >>confdefs.h <<_ACEOF
22216 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22233 for ac_header in com_err.h
22235 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22237 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22238 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22240 echo $ECHO_N "(cached
) $ECHO_C" >&6
22242 ac_res=`eval echo '${'$as_ac_Header'}'`
22243 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22244 echo "${ECHO_T}$ac_res" >&6; }
22246 # Is the header compilable?
22247 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22248 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 $ac_includes_default
22256 #include <$ac_header>
22258 rm -f conftest.$ac_objext
22259 if { (ac_try="$ac_compile"
22260 case "(($ac_try" in
22261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262 *) ac_try_echo=$ac_try;;
22264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22265 (eval "$ac_compile") 2>conftest.er1
22267 grep -v '^ *+' conftest.er1 >conftest.err
22269 cat conftest.err >&5
22270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22271 (exit $ac_status); } && {
22272 test -z "$ac_c_werror_flag" ||
22273 test ! -s conftest.err
22274 } && test -s conftest.$ac_objext; then
22275 ac_header_compiler=yes
22277 echo "$as_me: failed program was
:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 ac_header_compiler=no
22283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22285 echo "${ECHO_T}$ac_header_compiler" >&6; }
22287 # Is the header present?
22288 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22289 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 #include <$ac_header>
22298 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22310 (exit $ac_status); } >/dev/null && {
22311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22314 ac_header_preproc=yes
22316 echo "$as_me: failed program was
:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22319 ac_header_preproc=no
22322 rm -f conftest.err conftest.$ac_ext
22323 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22324 echo "${ECHO_T}$ac_header_preproc" >&6; }
22326 # So? What about this header?
22327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22329 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22330 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22331 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22333 ac_header_preproc=yes
22336 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22337 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22338 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22339 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22340 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22341 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22342 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22343 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22344 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22346 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22347 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22351 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22352 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22354 echo $ECHO_N "(cached
) $ECHO_C" >&6
22356 eval "$as_ac_Header=\
$ac_header_preproc"
22358 ac_res=`eval echo '${'$as_ac_Header'}'`
22359 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22360 echo "${ECHO_T}$ac_res" >&6; }
22363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22364 cat >>confdefs.h <<_ACEOF
22365 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22374 # Solaris requires -lintl if you want strerror (which calls dgettext)
22375 # to return localized messages.
22377 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22378 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22379 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22380 echo $ECHO_N "(cached
) $ECHO_C" >&6
22382 ac_check_lib_save_LIBS=$LIBS
22383 LIBS="-lintl $LIBS"
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22391 /* Override any GCC internal prototype to avoid an error.
22392 Use char because int might match the return type of a GCC
22393 builtin and then its argument prototype would still apply. */
22401 return dgettext ();
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (ac_try="$ac_link"
22408 case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_link") 2>conftest.er1
22415 grep -v '^ *+' conftest.er1 >conftest.err
22417 cat conftest.err >&5
22418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22419 (exit $ac_status); } && {
22420 test -z "$ac_c_werror_flag" ||
22421 test ! -s conftest.err
22422 } && test -s conftest$ac_exeext &&
22423 $as_test_x conftest$ac_exeext; then
22424 ac_cv_lib_intl_dgettext=yes
22426 echo "$as_me: failed program was
:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22429 ac_cv_lib_intl_dgettext=no
22432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22433 conftest$ac_exeext conftest.$ac_ext
22434 LIBS=$ac_check_lib_save_LIBS
22436 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22437 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22438 if test $ac_cv_lib_intl_dgettext = yes; then
22439 cat >>confdefs.h <<_ACEOF
22440 #define HAVE_LIBINTL 1
22443 LIBS="-lintl $LIBS"
22448 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22449 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22450 if test "${emacs_cv_localtime_cache+set}" = set; then
22451 echo $ECHO_N "(cached
) $ECHO_C" >&6
22453 if test x$ac_cv_func_tzset = xyes; then
22454 if test "$cross_compiling" = yes; then
22455 # If we have tzset, assume the worst when cross-compiling.
22456 emacs_cv_localtime_cache=yes
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22465 extern char **environ;
22469 for (to = from = environ; (*to = *from); from++)
22470 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22473 char TZ_GMT0[] = "TZ
=GMT0
";
22474 char TZ_PST8[] = "TZ
=PST8
";
22477 time_t now = time ((time_t *) 0);
22478 int hour_GMT0, hour_unset;
22479 if (putenv (TZ_GMT0) != 0)
22481 hour_GMT0 = localtime (&now)->tm_hour;
22483 hour_unset = localtime (&now)->tm_hour;
22484 if (putenv (TZ_PST8) != 0)
22486 if (localtime (&now)->tm_hour == hour_GMT0)
22489 if (localtime (&now)->tm_hour != hour_unset)
22494 rm -f conftest$ac_exeext
22495 if { (ac_try="$ac_link"
22496 case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_link") 2>&5
22503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22505 { (case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_try") 2>&5
22512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22513 (exit $ac_status); }; }; then
22514 emacs_cv_localtime_cache=no
22516 echo "$as_me: program exited with status
$ac_status" >&5
22517 echo "$as_me: failed program was
:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22520 ( exit $ac_status )
22521 emacs_cv_localtime_cache=yes
22523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22528 # If we lack tzset, report that localtime does not cache TZ,
22529 # since we can't invalidate the cache if we don't have tzset.
22530 emacs_cv_localtime_cache=no
22533 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22534 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22535 if test $emacs_cv_localtime_cache = yes; then
22537 cat >>confdefs.h <<\_ACEOF
22538 #define LOCALTIME_CACHE 1
22543 if test "x
$HAVE_TIMEVAL" = xyes; then
22545 for ac_func in gettimeofday
22547 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22548 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22549 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22550 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22551 echo $ECHO_N "(cached
) $ECHO_C" >&6
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22561 #define $ac_func innocuous_$ac_func
22563 /* System header to define __stub macros and hopefully few prototypes,
22564 which can conflict with char $ac_func (); below.
22565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22566 <limits.h> exists even on freestanding compilers. */
22569 # include <limits.h>
22571 # include <assert.h>
22576 /* Override any GCC internal prototype to avoid an error.
22577 Use char because int might match the return type of a GCC
22578 builtin and then its argument prototype would still apply. */
22583 /* The GNU C library defines this for functions which it implements
22584 to always fail with ENOSYS. Some functions are actually named
22585 something starting with __ and the normal name is an alias. */
22586 #if defined __stub_$ac_func || defined __stub___$ac_func
22593 return $ac_func ();
22598 rm -f conftest.$ac_objext conftest$ac_exeext
22599 if { (ac_try="$ac_link"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_link") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22611 (exit $ac_status); } && {
22612 test -z "$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22614 } && test -s conftest$ac_exeext &&
22615 $as_test_x conftest$ac_exeext; then
22616 eval "$as_ac_var=yes"
22618 echo "$as_me: failed program was
:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 eval "$as_ac_var=no
"
22624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22625 conftest$ac_exeext conftest.$ac_ext
22627 ac_res=`eval echo '${'$as_ac_var'}'`
22628 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22629 echo "${ECHO_T}$ac_res" >&6; }
22630 if test `eval echo '${'$as_ac_var'}'` = yes; then
22631 cat >>confdefs.h <<_ACEOF
22632 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22638 if test $ac_cv_func_gettimeofday = yes; then
22639 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22640 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22641 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22642 echo $ECHO_N "(cached
) $ECHO_C" >&6
22644 cat >conftest.$ac_ext <<_ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22651 #ifdef TIME_WITH_SYS_TIME
22652 #include <sys/time.h>
22655 #ifdef HAVE_SYS_TIME_H
22656 #include <sys/time.h>
22664 struct timeval time;
22665 gettimeofday (&time, 0);
22670 rm -f conftest.$ac_objext
22671 if { (ac_try="$ac_compile"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_compile") 2>conftest.er1
22679 grep -v '^ *+' conftest.er1 >conftest.err
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22683 (exit $ac_status); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest.$ac_objext; then
22687 emacs_cv_gettimeofday_two_arguments=yes
22689 echo "$as_me: failed program was
:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 emacs_cv_gettimeofday_two_arguments=no
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22698 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22699 if test $emacs_cv_gettimeofday_two_arguments = no; then
22701 cat >>confdefs.h <<\_ACEOF
22702 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22710 { echo "$as_me:$LINENO: checking
for socket
" >&5
22711 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22712 if test "${ac_cv_func_socket+set}" = set; then
22713 echo $ECHO_N "(cached
) $ECHO_C" >&6
22715 cat >conftest.$ac_ext <<_ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22723 #define socket innocuous_socket
22725 /* System header to define __stub macros and hopefully few prototypes,
22726 which can conflict with char socket (); below.
22727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22728 <limits.h> exists even on freestanding compilers. */
22731 # include <limits.h>
22733 # include <assert.h>
22738 /* Override any GCC internal prototype to avoid an error.
22739 Use char because int might match the return type of a GCC
22740 builtin and then its argument prototype would still apply. */
22745 /* The GNU C library defines this for functions which it implements
22746 to always fail with ENOSYS. Some functions are actually named
22747 something starting with __ and the normal name is an alias. */
22748 #if defined __stub_socket || defined __stub___socket
22760 rm -f conftest.$ac_objext conftest$ac_exeext
22761 if { (ac_try="$ac_link"
22762 case "(($ac_try" in
22763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764 *) ac_try_echo=$ac_try;;
22766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22767 (eval "$ac_link") 2>conftest.er1
22769 grep -v '^ *+' conftest.er1 >conftest.err
22771 cat conftest.err >&5
22772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22773 (exit $ac_status); } && {
22774 test -z "$ac_c_werror_flag" ||
22775 test ! -s conftest.err
22776 } && test -s conftest$ac_exeext &&
22777 $as_test_x conftest$ac_exeext; then
22778 ac_cv_func_socket=yes
22780 echo "$as_me: failed program was
:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 ac_cv_func_socket=no
22786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22787 conftest$ac_exeext conftest.$ac_ext
22789 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22790 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22791 if test $ac_cv_func_socket = yes; then
22797 if test $ok_so_far = yes; then
22798 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22799 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22800 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22801 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22802 echo $ECHO_N "(cached
) $ECHO_C" >&6
22804 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22805 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22807 # Is the header compilable?
22808 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22809 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22810 cat >conftest.$ac_ext <<_ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 $ac_includes_default
22817 #include <netinet/in.h>
22819 rm -f conftest.$ac_objext
22820 if { (ac_try="$ac_compile"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_compile") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1 >conftest.err
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22832 (exit $ac_status); } && {
22833 test -z "$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22835 } && test -s conftest.$ac_objext; then
22836 ac_header_compiler=yes
22838 echo "$as_me: failed program was
:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_header_compiler=no
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22846 echo "${ECHO_T}$ac_header_compiler" >&6; }
22848 # Is the header present?
22849 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22850 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22851 cat >conftest.$ac_ext <<_ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857 #include <netinet/in.h>
22859 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22867 grep -v '^ *+' conftest.er1 >conftest.err
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22871 (exit $ac_status); } >/dev/null && {
22872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22873 test ! -s conftest.err
22875 ac_header_preproc=yes
22877 echo "$as_me: failed program was
:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22880 ac_header_preproc=no
22883 rm -f conftest.err conftest.$ac_ext
22884 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22885 echo "${ECHO_T}$ac_header_preproc" >&6; }
22887 # So? What about this header?
22888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22890 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22891 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22892 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22893 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22894 ac_header_preproc=yes
22897 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22898 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22899 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22900 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22901 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22902 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22903 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22904 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22905 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22906 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22907 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22908 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22912 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22913 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22914 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22915 echo $ECHO_N "(cached
) $ECHO_C" >&6
22917 ac_cv_header_netinet_in_h=$ac_header_preproc
22919 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22920 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22923 if test $ac_cv_header_netinet_in_h = yes; then
22931 if test $ok_so_far = yes; then
22932 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22933 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22934 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22935 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22936 echo $ECHO_N "(cached
) $ECHO_C" >&6
22938 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22939 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22941 # Is the header compilable?
22942 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22943 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 $ac_includes_default
22951 #include <arpa/inet.h>
22953 rm -f conftest.$ac_objext
22954 if { (ac_try="$ac_compile"
22955 case "(($ac_try" in
22956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957 *) ac_try_echo=$ac_try;;
22959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22960 (eval "$ac_compile") 2>conftest.er1
22962 grep -v '^ *+' conftest.er1 >conftest.err
22964 cat conftest.err >&5
22965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest.$ac_objext; then
22970 ac_header_compiler=yes
22972 echo "$as_me: failed program was
:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22975 ac_header_compiler=no
22978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22980 echo "${ECHO_T}$ac_header_compiler" >&6; }
22982 # Is the header present?
22983 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22984 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22985 cat >conftest.$ac_ext <<_ACEOF
22988 cat confdefs.h >>conftest.$ac_ext
22989 cat >>conftest.$ac_ext <<_ACEOF
22990 /* end confdefs.h. */
22991 #include <arpa/inet.h>
22993 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23001 grep -v '^ *+' conftest.er1 >conftest.err
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23005 (exit $ac_status); } >/dev/null && {
23006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23009 ac_header_preproc=yes
23011 echo "$as_me: failed program was
:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23014 ac_header_preproc=no
23017 rm -f conftest.err conftest.$ac_ext
23018 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23019 echo "${ECHO_T}$ac_header_preproc" >&6; }
23021 # So? What about this header?
23022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23024 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23025 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23026 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
23027 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
23028 ac_header_preproc=yes
23031 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
23032 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
23033 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
23034 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
23035 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
23036 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
23037 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23038 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23039 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
23040 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
23041 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
23042 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
23046 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23047 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23048 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23049 echo $ECHO_N "(cached
) $ECHO_C" >&6
23051 ac_cv_header_arpa_inet_h=$ac_header_preproc
23053 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23054 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23057 if test $ac_cv_header_arpa_inet_h = yes; then
23065 if test $ok_so_far = yes; then
23067 cat >>confdefs.h <<\_ACEOF
23068 #define HAVE_INET_SOCKETS 1
23074 for ac_header in sys/ioctl.h
23076 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23078 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23079 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23081 echo $ECHO_N "(cached
) $ECHO_C" >&6
23083 ac_res=`eval echo '${'$as_ac_Header'}'`
23084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23085 echo "${ECHO_T}$ac_res" >&6; }
23087 # Is the header compilable?
23088 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23089 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 $ac_includes_default
23097 #include <$ac_header>
23099 rm -f conftest.$ac_objext
23100 if { (ac_try="$ac_compile"
23101 case "(($ac_try" in
23102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23103 *) ac_try_echo=$ac_try;;
23105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23106 (eval "$ac_compile") 2>conftest.er1
23108 grep -v '^ *+' conftest.er1 >conftest.err
23110 cat conftest.err >&5
23111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23112 (exit $ac_status); } && {
23113 test -z "$ac_c_werror_flag" ||
23114 test ! -s conftest.err
23115 } && test -s conftest.$ac_objext; then
23116 ac_header_compiler=yes
23118 echo "$as_me: failed program was
:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23121 ac_header_compiler=no
23124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23126 echo "${ECHO_T}$ac_header_compiler" >&6; }
23128 # Is the header present?
23129 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23130 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23131 cat >conftest.$ac_ext <<_ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23137 #include <$ac_header>
23139 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23140 case "(($ac_try" in
23141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142 *) ac_try_echo=$ac_try;;
23144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23145 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23151 (exit $ac_status); } >/dev/null && {
23152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23155 ac_header_preproc=yes
23157 echo "$as_me: failed program was
:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ac_header_preproc=no
23163 rm -f conftest.err conftest.$ac_ext
23164 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23165 echo "${ECHO_T}$ac_header_preproc" >&6; }
23167 # So? What about this header?
23168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23170 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23171 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23172 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23174 ac_header_preproc=yes
23177 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23178 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23179 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23180 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23181 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23182 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23183 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23184 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23185 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23187 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23188 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23192 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23193 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23194 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23195 echo $ECHO_N "(cached
) $ECHO_C" >&6
23197 eval "$as_ac_Header=\
$ac_header_preproc"
23199 ac_res=`eval echo '${'$as_ac_Header'}'`
23200 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23201 echo "${ECHO_T}$ac_res" >&6; }
23204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23205 cat >>confdefs.h <<_ACEOF
23206 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23214 if test -f /usr/lpp/X11/bin/smt.exp; then
23216 cat >>confdefs.h <<\_ACEOF
23217 #define HAVE_AIX_SMT_EXP 1
23222 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23223 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23224 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23225 { echo "$as_me:$LINENO: result
: yes" >&5
23226 echo "${ECHO_T}yes" >&6; }
23228 cat >>confdefs.h <<\_ACEOF
23229 #define HAVE_DEV_PTMX 1
23233 { echo "$as_me:$LINENO: result
: no
" >&5
23234 echo "${ECHO_T}no
" >&6; }
23237 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23238 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23239 if test "${ac_cv_type_pid_t+set}" = set; then
23240 echo $ECHO_N "(cached
) $ECHO_C" >&6
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 $ac_includes_default
23249 typedef pid_t ac__type_new_;
23253 if ((ac__type_new_ *) 0)
23255 if (sizeof (ac__type_new_))
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265 *) ac_try_echo=$ac_try;;
23267 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23270 grep -v '^ *+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest.$ac_objext; then
23278 ac_cv_type_pid_t=yes
23280 echo "$as_me: failed program was
:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ac_cv_type_pid_t=no
23286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23288 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23289 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23290 if test $ac_cv_type_pid_t = yes; then
23294 cat >>confdefs.h <<_ACEOF
23301 for ac_header in vfork.h
23303 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23305 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23306 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23308 echo $ECHO_N "(cached
) $ECHO_C" >&6
23310 ac_res=`eval echo '${'$as_ac_Header'}'`
23311 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23312 echo "${ECHO_T}$ac_res" >&6; }
23314 # Is the header compilable?
23315 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23316 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 $ac_includes_default
23324 #include <$ac_header>
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_compile") 2>conftest.er1
23335 grep -v '^ *+' conftest.er1 >conftest.err
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23339 (exit $ac_status); } && {
23340 test -z "$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23342 } && test -s conftest.$ac_objext; then
23343 ac_header_compiler=yes
23345 echo "$as_me: failed program was
:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ac_header_compiler=no
23351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23353 echo "${ECHO_T}$ac_header_compiler" >&6; }
23355 # Is the header present?
23356 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23357 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23358 cat >conftest.$ac_ext <<_ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23364 #include <$ac_header>
23366 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23367 case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23374 grep -v '^ *+' conftest.er1 >conftest.err
23376 cat conftest.err >&5
23377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23378 (exit $ac_status); } >/dev/null && {
23379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23380 test ! -s conftest.err
23382 ac_header_preproc=yes
23384 echo "$as_me: failed program was
:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23387 ac_header_preproc=no
23390 rm -f conftest.err conftest.$ac_ext
23391 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23392 echo "${ECHO_T}$ac_header_preproc" >&6; }
23394 # So? What about this header?
23395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23397 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23398 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23399 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23401 ac_header_preproc=yes
23404 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23405 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23406 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23407 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23408 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23409 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23410 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23411 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23412 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23414 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23415 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23419 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23420 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23421 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23422 echo $ECHO_N "(cached
) $ECHO_C" >&6
23424 eval "$as_ac_Header=\
$ac_header_preproc"
23426 ac_res=`eval echo '${'$as_ac_Header'}'`
23427 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23428 echo "${ECHO_T}$ac_res" >&6; }
23431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23432 cat >>confdefs.h <<_ACEOF
23433 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23442 for ac_func in fork vfork
23444 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23445 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23446 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23447 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23448 echo $ECHO_N "(cached
) $ECHO_C" >&6
23450 cat >conftest.$ac_ext <<_ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h. */
23456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23458 #define $ac_func innocuous_$ac_func
23460 /* System header to define __stub macros and hopefully few prototypes,
23461 which can conflict with char $ac_func (); below.
23462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23463 <limits.h> exists even on freestanding compilers. */
23466 # include <limits.h>
23468 # include <assert.h>
23473 /* Override any GCC internal prototype to avoid an error.
23474 Use char because int might match the return type of a GCC
23475 builtin and then its argument prototype would still apply. */
23480 /* The GNU C library defines this for functions which it implements
23481 to always fail with ENOSYS. Some functions are actually named
23482 something starting with __ and the normal name is an alias. */
23483 #if defined __stub_$ac_func || defined __stub___$ac_func
23490 return $ac_func ();
23495 rm -f conftest.$ac_objext conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_link") 2>conftest.er1
23504 grep -v '^ *+' conftest.er1 >conftest.err
23506 cat conftest.err >&5
23507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23508 (exit $ac_status); } && {
23509 test -z "$ac_c_werror_flag" ||
23510 test ! -s conftest.err
23511 } && test -s conftest$ac_exeext &&
23512 $as_test_x conftest$ac_exeext; then
23513 eval "$as_ac_var=yes"
23515 echo "$as_me: failed program was
:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23518 eval "$as_ac_var=no
"
23521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23522 conftest$ac_exeext conftest.$ac_ext
23524 ac_res=`eval echo '${'$as_ac_var'}'`
23525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23526 echo "${ECHO_T}$ac_res" >&6; }
23527 if test `eval echo '${'$as_ac_var'}'` = yes; then
23528 cat >>confdefs.h <<_ACEOF
23529 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23535 if test "x
$ac_cv_func_fork" = xyes; then
23536 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23537 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23538 if test "${ac_cv_func_fork_works+set}" = set; then
23539 echo $ECHO_N "(cached
) $ECHO_C" >&6
23541 if test "$cross_compiling" = yes; then
23542 ac_cv_func_fork_works=cross
23544 cat >conftest.$ac_ext <<_ACEOF
23547 cat confdefs.h >>conftest.$ac_ext
23548 cat >>conftest.$ac_ext <<_ACEOF
23549 /* end confdefs.h. */
23550 $ac_includes_default
23555 /* By Ruediger Kuhlmann. */
23556 return fork () < 0;
23562 rm -f conftest$ac_exeext
23563 if { (ac_try="$ac_link"
23564 case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_link") 2>&5
23571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23573 { (case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23578 (eval "$ac_try") 2>&5
23580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 ac_cv_func_fork_works=yes
23584 echo "$as_me: program exited with status
$ac_status" >&5
23585 echo "$as_me: failed program was
:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23588 ( exit $ac_status )
23589 ac_cv_func_fork_works=no
23591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23596 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23597 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23600 ac_cv_func_fork_works=$ac_cv_func_fork
23602 if test "x
$ac_cv_func_fork_works" = xcross; then
23604 *-*-amigaos* | *-*-msdosdjgpp*)
23605 # Override, as these systems have only a dummy fork() stub
23606 ac_cv_func_fork_works=no
23609 ac_cv_func_fork_works=yes
23612 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23613 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23615 ac_cv_func_vfork_works=$ac_cv_func_vfork
23616 if test "x
$ac_cv_func_vfork" = xyes; then
23617 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23618 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23619 if test "${ac_cv_func_vfork_works+set}" = set; then
23620 echo $ECHO_N "(cached
) $ECHO_C" >&6
23622 if test "$cross_compiling" = yes; then
23623 ac_cv_func_vfork_works=cross
23625 cat >conftest.$ac_ext <<_ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631 /* Thanks to Paul Eggert for this test. */
23632 $ac_includes_default
23633 #include <sys/wait.h>
23634 #ifdef HAVE_VFORK_H
23635 # include <vfork.h>
23637 /* On some sparc systems, changes by the child to local and incoming
23638 argument registers are propagated back to the parent. The compiler
23639 is told about this with #include <vfork.h>, but some compilers
23640 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23641 static variable whose address is put into a register that is
23642 clobbered by the vfork. */
23645 sparc_address_test (int arg)
23647 sparc_address_test (arg) int arg;
23650 static pid_t child;
23668 pid_t parent = getpid ();
23671 sparc_address_test (0);
23676 /* Here is another test for sparc vfork register problems. This
23677 test uses lots of local variables, at least as many local
23678 variables as main has allocated so far including compiler
23679 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23680 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23681 reuse the register of parent for one of the local variables,
23682 since it will think that parent can't possibly be used any more
23683 in this routine. Assigning to the local variable will thus
23684 munge parent in the parent process. */
23686 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23687 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23688 /* Convince the compiler that p..p7 are live; otherwise, it might
23689 use the same hardware register for all 8 local variables. */
23690 if (p != p1 || p != p2 || p != p3 || p != p4
23691 || p != p5 || p != p6 || p != p7)
23694 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23695 from child file descriptors. If the child closes a descriptor
23696 before it execs or exits, this munges the parent's descriptor
23697 as well. Test for this by closing stdout in the child. */
23698 _exit(close(fileno(stdout)) != 0);
23703 while (wait(&status) != child)
23706 /* Was there some problem with vforking? */
23709 /* Did the child fail? (This shouldn't happen.) */
23712 /* Did the vfork/compiler bug occur? */
23713 || parent != getpid()
23715 /* Did the file descriptor bug occur? */
23716 || fstat(fileno(stdout), &st) != 0
23721 rm -f conftest$ac_exeext
23722 if { (ac_try="$ac_link"
23723 case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23728 (eval "$ac_link") 2>&5
23730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23732 { (case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_try") 2>&5
23739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23740 (exit $ac_status); }; }; then
23741 ac_cv_func_vfork_works=yes
23743 echo "$as_me: program exited with status
$ac_status" >&5
23744 echo "$as_me: failed program was
:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23747 ( exit $ac_status )
23748 ac_cv_func_vfork_works=no
23750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23755 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23756 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23759 if test "x
$ac_cv_func_fork_works" = xcross; then
23760 ac_cv_func_vfork_works=$ac_cv_func_vfork
23761 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23762 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23765 if test "x
$ac_cv_func_vfork_works" = xyes; then
23767 cat >>confdefs.h <<\_ACEOF
23768 #define HAVE_WORKING_VFORK 1
23773 cat >>confdefs.h <<\_ACEOF
23778 if test "x
$ac_cv_func_fork_works" = xyes; then
23780 cat >>confdefs.h <<\_ACEOF
23781 #define HAVE_WORKING_FORK 1
23787 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23788 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23789 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23790 echo $ECHO_N "(cached
) $ECHO_C" >&6
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 #include <langinfo.h>
23802 char* cs = nl_langinfo(CODESET);
23807 rm -f conftest.$ac_objext conftest$ac_exeext
23808 if { (ac_try="$ac_link"
23809 case "(($ac_try" in
23810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811 *) ac_try_echo=$ac_try;;
23813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23814 (eval "$ac_link") 2>conftest.er1
23816 grep -v '^ *+' conftest.er1 >conftest.err
23818 cat conftest.err >&5
23819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest$ac_exeext &&
23824 $as_test_x conftest$ac_exeext; then
23825 emacs_cv_langinfo_codeset=yes
23827 echo "$as_me: failed program was
:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23830 emacs_cv_langinfo_codeset=no
23833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23834 conftest$ac_exeext conftest.$ac_ext
23837 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23838 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23839 if test $emacs_cv_langinfo_codeset = yes; then
23841 cat >>confdefs.h <<\_ACEOF
23842 #define HAVE_LANGINFO_CODESET 1
23847 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23848 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23849 if test "${ac_cv_type_size_t+set}" = set; then
23850 echo $ECHO_N "(cached
) $ECHO_C" >&6
23852 cat >conftest.$ac_ext <<_ACEOF
23855 cat confdefs.h >>conftest.$ac_ext
23856 cat >>conftest.$ac_ext <<_ACEOF
23857 /* end confdefs.h. */
23858 $ac_includes_default
23859 typedef size_t ac__type_new_;
23863 if ((ac__type_new_ *) 0)
23865 if (sizeof (ac__type_new_))
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 ac_cv_type_size_t=yes
23890 echo "$as_me: failed program was
:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_cv_type_size_t=no
23896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23899 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23900 if test $ac_cv_type_size_t = yes; then
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_SIZE_T 1
23910 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23911 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23912 if test "${ac_cv_type_mbstate_t+set}" = set; then
23913 echo $ECHO_N "(cached
) $ECHO_C" >&6
23915 cat >conftest.$ac_ext <<_ACEOF
23918 cat confdefs.h >>conftest.$ac_ext
23919 cat >>conftest.$ac_ext <<_ACEOF
23920 /* end confdefs.h. */
23921 $ac_includes_default
23922 # include <wchar.h>
23926 mbstate_t x; return sizeof x;
23931 rm -f conftest.$ac_objext
23932 if { (ac_try="$ac_compile"
23933 case "(($ac_try" in
23934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23935 *) ac_try_echo=$ac_try;;
23937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23938 (eval "$ac_compile") 2>conftest.er1
23940 grep -v '^ *+' conftest.er1 >conftest.err
23942 cat conftest.err >&5
23943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest.$ac_objext; then
23948 ac_cv_type_mbstate_t=yes
23950 echo "$as_me: failed program was
:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23953 ac_cv_type_mbstate_t=no
23956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23959 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23960 if test $ac_cv_type_mbstate_t = yes; then
23962 cat >>confdefs.h <<\_ACEOF
23963 #define HAVE_MBSTATE_T 1
23968 cat >>confdefs.h <<\_ACEOF
23969 #define mbstate_t int
23974 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23975 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23976 if test "${emacs_cv_c_restrict+set}" = set; then
23977 echo $ECHO_N "(cached
) $ECHO_C" >&6
23979 cat >conftest.$ac_ext <<_ACEOF
23982 cat confdefs.h >>conftest.$ac_ext
23983 cat >>conftest.$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23985 void fred (int *restrict x);
23994 rm -f conftest.$ac_objext
23995 if { (ac_try="$ac_compile"
23996 case "(($ac_try" in
23997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998 *) ac_try_echo=$ac_try;;
24000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24001 (eval "$ac_compile") 2>conftest.er1
24003 grep -v '^ *+' conftest.er1 >conftest.err
24005 cat conftest.err >&5
24006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24007 (exit $ac_status); } && {
24008 test -z "$ac_c_werror_flag" ||
24009 test ! -s conftest.err
24010 } && test -s conftest.$ac_objext; then
24011 emacs_cv_c_restrict=yes
24013 echo "$as_me: failed program was
:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24016 cat >conftest.$ac_ext <<_ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 void fred (int *__restrict x);
24031 rm -f conftest.$ac_objext
24032 if { (ac_try="$ac_compile"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_compile") 2>conftest.er1
24040 grep -v '^ *+' conftest.er1 >conftest.err
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24044 (exit $ac_status); } && {
24045 test -z "$ac_c_werror_flag" ||
24046 test ! -s conftest.err
24047 } && test -s conftest.$ac_objext; then
24048 emacs_cv_c_restrict=__restrict
24050 echo "$as_me: failed program was
:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 emacs_cv_c_restrict=no
24056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24061 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24062 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24063 case "$emacs_cv_c_restrict" in
24064 yes) emacs_restrict=restrict;;
24065 no) emacs_restrict="";;
24066 *) emacs_restrict="$emacs_cv_c_restrict";;
24068 if test "$emacs_restrict" != __restrict; then
24070 cat >>confdefs.h <<_ACEOF
24071 #define __restrict $emacs_restrict
24076 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24077 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24078 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24079 echo $ECHO_N "(cached
) $ECHO_C" >&6
24081 cat >conftest.$ac_ext <<_ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 void fred (int x[__restrict]);
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24113 emacs_cv_c_restrict_arr=yes
24115 echo "$as_me: failed program was
:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24118 emacs_cv_c_restrict_arr=no
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24124 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24125 if test "$emacs_cv_c_restrict_arr" = yes; then
24127 cat >>confdefs.h <<\_ACEOF
24128 #define __restrict_arr __restrict
24135 # Set up the CFLAGS for real compilation, so we can substitute it.
24136 CFLAGS="$REAL_CFLAGS"
24137 CPPFLAGS="$REAL_CPPFLAGS"
24139 #### Find out which version of Emacs this is.
24140 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24141 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24142 if test x"${version}" = x; then
24143 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24144 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24145 { (exit 1); exit 1; }; }
24148 ### Specify what sort of things we'll be editing into Makefile and config.h.
24149 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24190 cat >>confdefs.h <<_ACEOF
24191 #define EMACS_CONFIGURATION "${canonical}"
24195 cat >>confdefs.h <<_ACEOF
24196 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24200 cat >>confdefs.h <<_ACEOF
24201 #define config_machfile "${machfile}"
24205 cat >>confdefs.h <<_ACEOF
24206 #define config_opsysfile "${opsysfile}"
24210 cat >>confdefs.h <<_ACEOF
24211 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24215 cat >>confdefs.h <<_ACEOF
24216 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24220 cat >>confdefs.h <<_ACEOF
24221 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24225 cat >>confdefs.h <<_ACEOF
24226 #define UNEXEC_SRC ${UNEXEC_SRC}
24230 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24232 cat >>confdefs.h <<\_ACEOF
24233 #define HAVE_X_WINDOWS 1
24237 if test "${USE_X_TOOLKIT}" != "none
" ; then
24239 cat >>confdefs.h <<\_ACEOF
24240 #define USE_X_TOOLKIT 1
24243 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24245 cat >>confdefs.h <<\_ACEOF
24246 #define USE_LUCID 1
24249 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24251 cat >>confdefs.h <<\_ACEOF
24252 #define USE_MOTIF 1
24257 if test "${HAVE_X11}" = "yes" ; then
24259 cat >>confdefs.h <<\_ACEOF
24264 if test "${HAVE_MENUS}" = "yes" ; then
24266 cat >>confdefs.h <<\_ACEOF
24267 #define HAVE_MENUS 1
24271 if test "${GNU_MALLOC}" = "yes" ; then
24273 cat >>confdefs.h <<\_ACEOF
24274 #define GNU_MALLOC 1
24278 if test "${REL_ALLOC}" = "yes" ; then
24280 cat >>confdefs.h <<\_ACEOF
24281 #define REL_ALLOC 1
24291 #### Report on what we decided to do.
24292 #### Report GTK as a toolkit, even if it doesn't use Xt.
24293 #### It makes printing result more understandable as using GTK sets
24294 #### toolkit_scroll_bars to yes by default.
24295 if test "${HAVE_GTK}" = "yes"; then
24300 Configured
for \
`${canonical}'.
24302 Where should the build process find the source code? ${srcdir}
24303 What operating system and machine description files should Emacs use?
24304 \`${opsysfile}' and \`${machfile}'
24305 What compiler should emacs be built with?
${CC} ${CFLAGS}
24306 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24307 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24308 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24309 What window system should Emacs use?
${window_system}
24310 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24312 if test -n "${x_includes}"; then
24313 echo " Where
do we
find X Windows header files?
${x_includes}"
24315 echo " Where
do we
find X Windows header files? Standard
dirs"
24317 if test -n "${x_libraries}"; then
24318 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24320 echo " Where
do we
find X Windows libraries? Standard
dirs"
24323 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24324 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24325 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24326 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24327 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24328 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24329 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24330 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24331 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24333 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24334 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24335 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24336 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24338 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24341 if test $USE_XASSERTS = yes; then
24342 echo " Compiling with asserts turned on.
"
24343 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24348 if test "$USE_X_TOOLKIT" = GTK; then
24349 case "$canonical" in
24351 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24352 will probably get a crash on startup. If this happens
, please use another
24353 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24359 if test "$HAVE_CARBON" = "yes"; then
24361 echo "Warning
: The Mac Carbon port is currently unsupported and has
24362 known problems. It is not recommended
for use by non-developers.
24363 The NeXTstep port
(--with-ns) is an alternative.
24364 Read the emacs-devel archives
for more information.
"
24368 if test "$HAVE_NS" = "yes"; then
24370 echo "You must run
\"make install\" in order to
test the built application.
24371 The installed application will go to nextstep
/Emacs.app and can be
24372 run or moved from there.
"
24373 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24374 echo "The application will be fully self-contained.
"
24376 echo "The lisp resources
for the application will be installed under
${prefix}.
24377 You may need to run
\"make install\" with sudo. The application will fail
24378 to run
if these resources are not installed.
"
24383 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24384 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24389 # Remove any trailing slashes in these variables.
24390 test "${prefix}" != NONE &&
24391 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24392 test "${exec_prefix}" != NONE &&
24393 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24395 # Now get this: Some word that is part of the ${srcdir} directory name
24396 # or the ${configuration} value might, just might, happen to be an
24397 # identifier like `sun4' or `i386' or something, and be predefined by
24398 # the C preprocessor to some helpful value like 1, or maybe the empty
24399 # string. Needless to say consequent macro substitutions are less
24400 # than conducive to the makefile finding the correct directory.
24401 cpp_undefs="`echo $srcdir $configuration $canonical |
24402 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24403 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24405 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24406 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24407 ## from Makefile.c can correctly provide the arg `-traditional' to the
24410 cat >conftest.$ac_ext <<_ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h. */
24418 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24419 $EGREP "yes..
yes" >/dev/null 2>&1; then
24420 CPP_NEED_TRADITIONAL=no
24422 CPP_NEED_TRADITIONAL=yes
24427 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
"
24429 ac_config_commands="$ac_config_commands default
"
24431 cat >confcache <<\_ACEOF
24432 # This file is a shell script that caches the results of configure
24433 # tests run on this system so they can be shared between configure
24434 # scripts and configure runs, see configure's option --config-cache.
24435 # It is not useful on other systems. If it contains results you don't
24436 # want to keep, you may remove or edit it.
24438 # config.status only pays attention to the cache file if you give it
24439 # the --recheck option to rerun configure.
24441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24443 # following values.
24447 # The following way of writing the cache mishandles newlines in values,
24448 # but we know of no workaround that is simple, portable, and efficient.
24449 # So, we kill variables containing newlines.
24450 # Ultrix sh set writes to stderr and can't be redirected directly,
24451 # and sets the high bit in the cache file unless we assign to the vars.
24453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24454 eval ac_val=\$$ac_var
24458 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24459 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24462 _ | IFS | as_nl) ;; #(
24463 *) $as_unset $ac_var ;;
24469 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24470 *${as_nl}ac_space=\ *)
24471 # `set' does not quote correctly, so add quotes (double-quote
24472 # substitution turns \\\\ into \\, and sed turns \\ into \).
24475 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24478 # `set' quotes correctly as required by POSIX, so do not add quotes.
24479 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24490 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24492 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24493 if test -w "$cache_file"; then
24494 test "x
$cache_file" != "x
/dev
/null
" &&
24495 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24496 echo "$as_me: updating cache
$cache_file" >&6;}
24497 cat confcache >$cache_file
24499 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24500 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24505 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24506 # Let make expand exec_prefix.
24507 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24509 DEFS=-DHAVE_CONFIG_H
24513 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24514 # 1. Remove the extension, and $U if already installed.
24515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24516 ac_i=`echo "$ac_i" | sed "$ac_script"`
24517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24518 # will be set to the directory where LIBOBJS objects are built.
24519 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24520 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24522 LIBOBJS=$ac_libobjs
24524 LTLIBOBJS=$ac_ltlibobjs
24528 : ${CONFIG_STATUS=./config.status}
24529 ac_clean_files_save=$ac_clean_files
24530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24531 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24532 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24533 cat >$CONFIG_STATUS <<_ACEOF
24535 # Generated by $as_me.
24536 # Run this file to recreate the current configuration.
24537 # Compiler output produced by configure, useful for debugging
24538 # configure, is in config.log if it exists.
24541 ac_cs_recheck=false
24543 SHELL=\${CONFIG_SHELL-$SHELL}
24546 cat >>$CONFIG_STATUS <<\_ACEOF
24547 ## --------------------- ##
24548 ## M4sh Initialization. ##
24549 ## --------------------- ##
24551 # Be more Bourne compatible
24552 DUALCASE=1; export DUALCASE # for MKS sh
24553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24556 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24557 # is contrary to our usage. Disable this feature.
24558 alias -g '${1+"$@"}'='"$@
"'
24559 setopt NO_GLOB_SUBST
24561 case `(set -o) 2>/dev/null` in
24562 *posix*) set -o posix ;;
24571 # Avoid depending upon Character Ranges.
24572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24575 as_cr_digits='0123456789'
24576 as_cr_alnum=$as_cr_Letters$as_cr_digits
24578 # The user is always right.
24579 if test "${PATH_SEPARATOR+set}" != set; then
24580 echo "#! /bin/sh" >conf$$.sh
24581 echo "exit 0" >>conf$$.sh
24583 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24591 # Support unset when possible.
24592 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24600 # We need space, tab and new line, in precisely that order. Quoting is
24601 # there to prevent editors from complaining about space-tab.
24602 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24603 # splitting by setting IFS to empty value.)
24608 # Find who we are. Look in the path if we contain no directory separator.
24610 *[\\/]* ) as_myself
=$0 ;;
24611 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24612 for as_dir
in $PATH
24615 test -z "$as_dir" && as_dir
=.
24616 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24622 # We did not find ourselves, most probably we were run as `sh COMMAND'
24623 # in which case we are not to be found in the path.
24624 if test "x$as_myself" = x
; then
24627 if test ! -f "$as_myself"; then
24628 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24629 { (exit 1); exit 1; }
24632 # Work around bugs in pre-3.0 UWIN ksh.
24633 for as_var
in ENV MAIL MAILPATH
24634 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24642 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24643 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24644 LC_TELEPHONE LC_TIME
24646 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24647 eval $as_var=C
; export $as_var
24649 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24653 # Required to use basename.
24654 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24655 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24661 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24662 as_basename
=basename
24668 # Name of the executable.
24669 as_me
=`$as_basename -- "$0" ||
24670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24671 X"$0" : 'X\(//\)$' \| \
24672 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24674 sed '/^.*\/\([^/][^/]*\)\/*$/{
24693 as_lineno_1
=$LINENO
24694 as_lineno_2
=$LINENO
24695 test "x$as_lineno_1" != "x$as_lineno_2" &&
24696 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24698 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24699 # uniformly replaced by the line number. The first 'sed' inserts a
24700 # line-number line after each line using $LINENO; the second 'sed'
24701 # does the real work. The second script uses 'N' to pair each
24702 # line-number line with the line containing $LINENO, and appends
24703 # trailing '-' during substitution so that $LINENO is not a special
24704 # case at line end.
24705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24706 # scripts with optimization help from Paolo Bonzini. Blame Lee
24707 # E. McMahon (1931-1989) for sed's syntax. :-)
24719 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24722 ' >$as_me.lineno
&&
24723 chmod +x
"$as_me.lineno" ||
24724 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24725 { (exit 1); exit 1; }; }
24727 # Don't try to exec as it changes $[0], causing all sort of problems
24728 # (the dirname of $[0] is not the place where we might find the
24729 # original and so on. Autoconf is especially sensitive to this).
24730 .
"./$as_me.lineno"
24731 # Exit status is that of the last command.
24736 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24742 ECHO_C
= ECHO_N
= ECHO_T
=
24743 case `echo -n x` in
24745 case `echo 'x\c'` in
24746 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24753 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24754 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24760 rm -f conf$$ conf$$.exe conf$$.
file
24761 if test -d conf$$.dir
; then
24762 rm -f conf$$.dir
/conf$$.
file
24768 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24770 # ... but there are two gotchas:
24771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24773 # In both cases, we have to default to `cp -p'.
24774 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24776 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24781 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24782 rmdir conf$$.dir
2>/dev
/null
24784 if mkdir
-p .
2>/dev
/null
; then
24787 test -d .
/-p && rmdir .
/-p
24791 if test -x / >/dev
/null
2>&1; then
24792 as_test_x
='test -x'
24794 if ls -dL / >/dev
/null
2>&1; then
24801 if test -d "$1"; then
24807 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24808 ???[sx]*):;;*)false;;esac;fi
24812 as_executable_p
=$as_test_x
24814 # Sed expression to map a string onto a valid CPP name.
24815 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24817 # Sed expression to map a string onto a valid variable name.
24818 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24823 # Save the log message, to keep $[0] and so on meaningful, and to
24824 # report actual input values of CONFIG_FILES etc. instead of their
24825 # values after options handling.
24827 This file was extended by emacs $as_me 23.0.60, which was
24828 generated by GNU Autoconf 2.61. Invocation command line was
24830 CONFIG_FILES = $CONFIG_FILES
24831 CONFIG_HEADERS = $CONFIG_HEADERS
24832 CONFIG_LINKS = $CONFIG_LINKS
24833 CONFIG_COMMANDS = $CONFIG_COMMANDS
24836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24841 cat >>$CONFIG_STATUS <<_ACEOF
24842 # Files that config.status was made for.
24843 config_files="$ac_config_files"
24844 config_headers="$ac_config_headers"
24845 config_commands="$ac_config_commands"
24849 cat >>$CONFIG_STATUS <<\_ACEOF
24851 \`$as_me' instantiates files from templates according to the
24852 current configuration.
24854 Usage: $0 [OPTIONS] [FILE]...
24856 -h, --help print this help, then exit
24857 -V, --version print version number and configuration settings, then exit
24858 -q, --quiet do not print progress messages
24859 -d, --debug don't remove temporary files
24860 --recheck update $as_me by reconfiguring in the same conditions
24861 --file=FILE[:TEMPLATE]
24862 instantiate the configuration file FILE
24863 --header=FILE[:TEMPLATE]
24864 instantiate the configuration header FILE
24866 Configuration files:
24869 Configuration headers:
24872 Configuration commands:
24875 Report bugs to <bug-autoconf@gnu.org>."
24878 cat >>$CONFIG_STATUS <<_ACEOF
24880 emacs config.status 23.0.60
24881 configured by $0, generated by GNU Autoconf 2.61,
24882 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24884 Copyright (C) 2006 Free Software Foundation, Inc.
24885 This config.status script is free software; the Free Software Foundation
24886 gives unlimited permission to copy, distribute and modify it."
24893 cat >>$CONFIG_STATUS <<\_ACEOF
24894 # If no file are specified by the user, then we need to provide default
24895 # value. By we need to know if files were specified by the user.
24901 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24902 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24913 # Handling of the options.
24914 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24916 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24917 echo "$ac_cs_version"; exit ;;
24918 --debug |
--debu |
--deb |
--de |
--d |
-d )
24920 --file |
--fil |
--fi |
--f )
24922 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24923 ac_need_defaults
=false
;;
24924 --header |
--heade |
--head |
--hea )
24926 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24927 ac_need_defaults
=false
;;
24929 # Conflict between --help and --header
24930 { echo "$as_me: error: ambiguous option: $1
24931 Try \`$0 --help' for more information." >&2
24932 { (exit 1); exit 1; }; };;
24933 --help |
--hel |
-h )
24934 echo "$ac_cs_usage"; exit ;;
24935 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24936 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24939 # This is an error.
24940 -*) { echo "$as_me: error: unrecognized option: $1
24941 Try \`$0 --help' for more information." >&2
24942 { (exit 1); exit 1; }; } ;;
24944 *) ac_config_targets
="$ac_config_targets $1"
24945 ac_need_defaults
=false
;;
24951 ac_configure_extra_args
=
24953 if $ac_cs_silent; then
24955 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24959 cat >>$CONFIG_STATUS <<_ACEOF
24960 if \$ac_cs_recheck; then
24961 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24962 CONFIG_SHELL=$SHELL
24963 export CONFIG_SHELL
24964 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24968 cat >>$CONFIG_STATUS <<\_ACEOF
24972 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24973 ## Running $as_me. ##
24979 cat >>$CONFIG_STATUS <<_ACEOF
24983 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24987 cat >>$CONFIG_STATUS <<\_ACEOF
24989 # Handling of arguments.
24990 for ac_config_target
in $ac_config_targets
24992 case $ac_config_target in
24993 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24994 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24995 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24996 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24997 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24998 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24999 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25000 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25001 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25002 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25003 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25004 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25005 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25007 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25008 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25009 { (exit 1); exit 1; }; };;
25014 # If the user did not use the arguments to specify the items to instantiate,
25015 # then the envvar interface is used. Set only those that are not.
25016 # We use the long form for the default assignment because of an extremely
25017 # bizarre bug on SunOS 4.1.3.
25018 if $ac_need_defaults; then
25019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25024 # Have a temporary directory for convenience. Make it in the build tree
25025 # simply because there is no reason against having it here, and in addition,
25026 # creating and moving files from /tmp can sometimes cause problems.
25027 # Hook for its removal unless debugging.
25028 # Note that there is a small window in which the directory will not be cleaned:
25029 # after its creation but before its name has been assigned to `$tmp'.
25033 trap 'exit_status=$?
25034 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25036 trap '{ (exit 1); exit 1; }' 1 2 13 15
25038 # Create a (secure) tmp directory for tmp files.
25041 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25042 test -n "$tmp" && test -d "$tmp"
25045 tmp
=.
/conf$$
-$RANDOM
25046 (umask 077 && mkdir
"$tmp")
25049 echo "$me: cannot create a temporary directory in ." >&2
25050 { (exit 1); exit 1; }
25054 # Set up the sed scripts for CONFIG_FILES section.
25057 # No need to generate the scripts if there are no CONFIG_FILES.
25058 # This happens for instance when ./config.status config.h
25059 if test -n "$CONFIG_FILES"; then
25066 for ac_last_try
in false false false false false
:; do
25067 cat >conf$
$subs.
sed <<_ACEOF
25068 SHELL!$SHELL$ac_delim
25069 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25070 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25071 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25072 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25073 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25074 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25075 exec_prefix!$exec_prefix$ac_delim
25076 prefix!$prefix$ac_delim
25077 program_transform_name!$program_transform_name$ac_delim
25078 bindir!$bindir$ac_delim
25079 sbindir!$sbindir$ac_delim
25080 libexecdir!$libexecdir$ac_delim
25081 datarootdir!$datarootdir$ac_delim
25082 datadir!$datadir$ac_delim
25083 sysconfdir!$sysconfdir$ac_delim
25084 sharedstatedir!$sharedstatedir$ac_delim
25085 localstatedir!$localstatedir$ac_delim
25086 includedir!$includedir$ac_delim
25087 oldincludedir!$oldincludedir$ac_delim
25088 docdir!$docdir$ac_delim
25089 infodir!$infodir$ac_delim
25090 htmldir!$htmldir$ac_delim
25091 dvidir!$dvidir$ac_delim
25092 pdfdir!$pdfdir$ac_delim
25093 psdir!$psdir$ac_delim
25094 libdir!$libdir$ac_delim
25095 localedir!$localedir$ac_delim
25096 mandir!$mandir$ac_delim
25097 DEFS!$DEFS$ac_delim
25098 ECHO_C!$ECHO_C$ac_delim
25099 ECHO_N!$ECHO_N$ac_delim
25100 ECHO_T!$ECHO_T$ac_delim
25101 LIBS!$LIBS$ac_delim
25102 build_alias!$build_alias$ac_delim
25103 host_alias!$host_alias$ac_delim
25104 target_alias!$target_alias$ac_delim
25105 MAINT!$MAINT$ac_delim
25106 build!$build$ac_delim
25107 build_cpu!$build_cpu$ac_delim
25108 build_vendor!$build_vendor$ac_delim
25109 build_os!$build_os$ac_delim
25110 host!$host$ac_delim
25111 host_cpu!$host_cpu$ac_delim
25112 host_vendor!$host_vendor$ac_delim
25113 host_os!$host_os$ac_delim
25115 CFLAGS!$CFLAGS$ac_delim
25116 LDFLAGS!$LDFLAGS$ac_delim
25117 CPPFLAGS!$CPPFLAGS$ac_delim
25118 ac_ct_CC!$ac_ct_CC$ac_delim
25119 EXEEXT!$EXEEXT$ac_delim
25120 OBJEXT!$OBJEXT$ac_delim
25122 GREP!$GREP$ac_delim
25123 EGREP!$EGREP$ac_delim
25124 LN_S!$LN_S$ac_delim
25125 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25126 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25127 INSTALL_DATA!$INSTALL_DATA$ac_delim
25128 RANLIB!$RANLIB$ac_delim
25129 INSTALL_INFO!$INSTALL_INFO$ac_delim
25130 GZIP_PROG!$GZIP_PROG$ac_delim
25131 MAKEINFO!$MAKEINFO$ac_delim
25132 LIBSOUND!$LIBSOUND$ac_delim
25133 PKG_CONFIG!$PKG_CONFIG$ac_delim
25134 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25135 ALSA_LIBS!$ALSA_LIBS$ac_delim
25136 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25137 SET_MAKE!$SET_MAKE$ac_delim
25138 XMKMF!$XMKMF$ac_delim
25139 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25140 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25141 RSVG_LIBS!$RSVG_LIBS$ac_delim
25142 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25143 GTK_LIBS!$GTK_LIBS$ac_delim
25144 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25145 DBUS_LIBS!$DBUS_LIBS$ac_delim
25146 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25147 XFT_LIBS!$XFT_LIBS$ac_delim
25148 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25149 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25150 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25151 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25152 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25153 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25154 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25155 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25156 ALLOCA!$ALLOCA$ac_delim
25157 liblockfile!$liblockfile$ac_delim
25158 LIBOBJS!$LIBOBJS$ac_delim
25159 NEED_SETGID!$NEED_SETGID$ac_delim
25160 KMEM_GROUP!$KMEM_GROUP$ac_delim
25161 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25162 GETOPT_H!$GETOPT_H$ac_delim
25163 GETOPTOBJS!$GETOPTOBJS$ac_delim
25164 version!$version$ac_delim
25167 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25169 elif $ac_last_try; then
25170 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25171 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25172 { (exit 1); exit 1; }; }
25174 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25178 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25179 if test -n "$ac_eof"; then
25180 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25181 ac_eof
=`expr $ac_eof + 1`
25184 cat >>$CONFIG_STATUS <<_ACEOF
25185 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25190 s/^/s,@/; s/!/@,|#_!!_#|/
25193 s/'"$ac_delim"'$/,g/; t
25195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25196 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25197 rm -f conf$
$subs.
sed
25198 cat >>$CONFIG_STATUS <<_ACEOF
25204 for ac_last_try
in false false false false false
:; do
25205 cat >conf$
$subs.
sed <<_ACEOF
25206 configuration!$configuration$ac_delim
25207 canonical!$canonical$ac_delim
25208 srcdir!$srcdir$ac_delim
25209 lispdir!$lispdir$ac_delim
25210 locallisppath!$locallisppath$ac_delim
25211 lisppath!$lisppath$ac_delim
25212 x_default_search_path!$x_default_search_path$ac_delim
25213 etcdir!$etcdir$ac_delim
25214 archlibdir!$archlibdir$ac_delim
25215 bitmapdir!$bitmapdir$ac_delim
25216 gamedir!$gamedir$ac_delim
25217 gameuser!$gameuser$ac_delim
25218 c_switch_system!$c_switch_system$ac_delim
25219 c_switch_machine!$c_switch_machine$ac_delim
25220 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25221 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25222 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25223 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25224 machfile!$machfile$ac_delim
25225 opsysfile!$opsysfile$ac_delim
25226 carbon_appdir!$carbon_appdir$ac_delim
25227 ns_appdir!$ns_appdir$ac_delim
25228 ns_appbindir!$ns_appbindir$ac_delim
25229 ns_appresdir!$ns_appresdir$ac_delim
25230 ns_appsrc!$ns_appsrc$ac_delim
25231 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25232 LTLIBOBJS!$LTLIBOBJS$ac_delim
25235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
25237 elif $ac_last_try; then
25238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25240 { (exit 1); exit 1; }; }
25242 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25246 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25247 if test -n "$ac_eof"; then
25248 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25249 ac_eof
=`expr $ac_eof + 1`
25252 cat >>$CONFIG_STATUS <<_ACEOF
25253 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25258 s/^/s,@/; s/!/@,|#_!!_#|/
25261 s/'"$ac_delim"'$/,g/; t
25263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25264 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25265 rm -f conf$
$subs.
sed
25266 cat >>$CONFIG_STATUS <<_ACEOF
25273 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25274 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25275 # trailing colons and then remove the whole line if VPATH becomes empty
25276 # (actually we leave an empty line to preserve line numbers).
25277 if test "x$srcdir" = x.
; then
25278 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25279 s/:*\$(srcdir):*/:/
25280 s/:*\${srcdir}:*/:/
25282 s/^\([^=]*=[ ]*\):*/\1/
25288 cat >>$CONFIG_STATUS <<\_ACEOF
25289 fi # test -n "$CONFIG_FILES"
25292 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25295 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25297 case $ac_mode$ac_tag in
25299 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25300 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25301 { (exit 1); exit 1; }; };;
25302 :[FH
]-) ac_tag
=-:-;;
25303 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25320 -) ac_f
="$tmp/stdin";;
25321 *) # Look for the file first in the build tree, then in the source tree
25322 # (if the path is not absolute). The absolute path cannot be DOS-style,
25323 # because $ac_f cannot contain `:'.
25327 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25329 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25330 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25331 { (exit 1); exit 1; }; };;
25333 ac_file_inputs
="$ac_file_inputs $ac_f"
25336 # Let's still pretend it is `configure' which instantiates (i.e., don't
25337 # use $as_me), people would be surprised to read:
25338 # /* config.h. Generated by config.status. */
25339 configure_input
="Generated from "`IFS=:
25340 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25341 if test x
"$ac_file" != x-
; then
25342 configure_input
="$ac_file. $configure_input"
25343 { echo "$as_me:$LINENO: creating $ac_file" >&5
25344 echo "$as_me: creating $ac_file" >&6;}
25348 *:-:* |
*:-) cat >"$tmp/stdin";;
25353 ac_dir
=`$as_dirname -- "$ac_file" ||
25354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25355 X"$ac_file" : 'X\(//\)[^/]' \| \
25356 X"$ac_file" : 'X\(//\)$' \| \
25357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25363 /^X\(\/\/\)[^/].*/{
25378 -*) as_dir
=.
/$as_dir;;
25380 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25384 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25385 *) as_qdir
=$as_dir;;
25387 as_dirs
="'$as_qdir' $as_dirs"
25388 as_dir
=`$as_dirname -- "$as_dir" ||
25389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25390 X"$as_dir" : 'X\(//\)[^/]' \| \
25391 X"$as_dir" : 'X\(//\)$' \| \
25392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25398 /^X\(\/\/\)[^/].*/{
25411 test -d "$as_dir" && break
25413 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25414 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25415 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25416 { (exit 1); exit 1; }; }; }
25420 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25422 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25423 # A ".." for each directory in $ac_dir_suffix.
25424 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25425 case $ac_top_builddir_sub in
25426 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25427 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25430 ac_abs_top_builddir
=$ac_pwd
25431 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25432 # for backward compatibility:
25433 ac_top_builddir
=$ac_top_build_prefix
25436 .
) # We are building in place.
25438 ac_top_srcdir
=$ac_top_builddir_sub
25439 ac_abs_top_srcdir
=$ac_pwd ;;
25440 [\\/]* | ?
:[\\/]* ) # Absolute name.
25441 ac_srcdir
=$srcdir$ac_dir_suffix;
25442 ac_top_srcdir
=$srcdir
25443 ac_abs_top_srcdir
=$srcdir ;;
25444 *) # Relative name.
25445 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25446 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25447 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25449 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25459 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25460 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25464 cat >>$CONFIG_STATUS <<\_ACEOF
25465 # If the template does not know about datarootdir, expand it.
25466 # FIXME: This hack should be removed a few years after 2.60.
25467 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25469 case `sed -n '/datarootdir/ {
25478 ' $ac_file_inputs` in
25479 *datarootdir
*) ac_datarootdir_seen
=yes;;
25480 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25481 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25482 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25484 cat >>$CONFIG_STATUS <<_ACEOF
25485 ac_datarootdir_hack='
25486 s&@datadir@&$datadir&g
25487 s&@docdir@&$docdir&g
25488 s&@infodir@&$infodir&g
25489 s&@localedir@&$localedir&g
25490 s&@mandir@&$mandir&g
25491 s&\\\${datarootdir}&$datarootdir&g' ;;
25495 # Neutralize VPATH when `$srcdir' = `.'.
25496 # Shell code in configure.ac might set extrasub.
25497 # FIXME: do we really want to maintain this feature?
25498 cat >>$CONFIG_STATUS <<_ACEOF
25502 cat >>$CONFIG_STATUS <<\_ACEOF
25504 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25505 s
&@configure_input@
&$configure_input&;t t
25506 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25507 s
&@srcdir@
&$ac_srcdir&;t t
25508 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25509 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25510 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25511 s
&@builddir@
&$ac_builddir&;t t
25512 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25513 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25514 s
&@INSTALL@
&$ac_INSTALL&;t t
25515 $ac_datarootdir_hack
25516 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25518 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25519 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25520 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25521 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25522 which seems to be undefined. Please make sure it is defined." >&5
25523 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25524 which seems to be undefined. Please make sure it is defined." >&2;}
25528 -) cat "$tmp/out"; rm -f "$tmp/out";;
25529 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25538 # Transform confdefs.h into a sed script `conftest.defines', that
25539 # substitutes the proper values into config.h.in to produce config.h.
25540 rm -f conftest.defines conftest.
tail
25541 # First, append a space to every undef/define line, to ease matching.
25542 echo 's/$/ /' >conftest.defines
25543 # Then, protect against being on the right side of a sed subst, or in
25544 # an unquoted here document, in config.status. If some macros were
25545 # called several times there might be several #defines for the same
25546 # symbol, which is useless. But do not sort them, since the last
25547 # AC_DEFINE must be honored.
25548 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25549 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25550 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25551 # PARAMS is the parameter list in the macro definition--in most cases, it's
25552 # just an empty string.
25553 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25554 ac_dB
='\\)[ (].*,\\1define\\2'
25562 s/^[ ]*#[ ]*define[ ][ ]*//
25567 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25568 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25569 ' >>conftest.defines
25571 # Remove the space that was appended to ease matching.
25572 # Then replace #undef with comments. This is necessary, for
25573 # example, in the case of _POSIX_SOURCE, which is predefined and required
25574 # on some systems where configure will not decide to define it.
25575 # (The regexp can be short, since the line contains either #define or #undef.)
25577 s,^[ #]*u.*,/* & */,' >>conftest.defines
25579 # Break up conftest.defines:
25580 ac_max_sed_lines
=50
25582 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25583 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25584 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25586 ac_in
='$ac_file_inputs'
25587 ac_out
='"$tmp/out1"'
25588 ac_nxt
='"$tmp/out2"'
25592 # Write a here document:
25593 cat >>$CONFIG_STATUS <<_ACEOF
25594 # First, check the format of the line:
25595 cat >"\$tmp/defines.sed" <<\\CEOF
25596 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25597 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25601 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25603 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25604 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25605 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25606 grep . conftest.
tail >/dev
/null ||
break
25607 rm -f conftest.defines
25608 mv conftest.
tail conftest.defines
25610 rm -f conftest.defines conftest.
tail
25612 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25613 cat >>$CONFIG_STATUS <<\_ACEOF
25614 if test x
"$ac_file" != x-
; then
25615 echo "/* $configure_input */" >"$tmp/config.h"
25616 cat "$ac_result" >>"$tmp/config.h"
25617 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25618 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25619 echo "$as_me: $ac_file is unchanged" >&6;}
25622 mv "$tmp/config.h" $ac_file
25625 echo "/* $configure_input */"
25631 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25632 echo "$as_me: executing $ac_file commands" >&6;}
25637 case $ac_file$ac_mode in
25640 ### Make the necessary directories, if they don't exist.
25641 for dir
in etc lisp
; do
25642 test -d ${dir} || mkdir
${dir}
25645 # Build src/Makefile from ${srcdir}/src/Makefile.c
25646 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25647 # This must be done after src/config.h is built, since we rely on that file.
25649 echo creating src
/epaths.h
25650 ${MAKE-make} epaths-force
25652 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25653 # `..' to `. .' unless invoked with -traditional
25655 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25656 CPPFLAGS
="$CPPFLAGS -traditional"
25659 echo creating lib-src
/Makefile
25661 rm -f junk.c junk1.c junk2.c
25662 sed -e '/start of cpp stuff/q' \
25663 < Makefile.c
> junk1.c
25664 sed -e '1,/start of cpp stuff/d'\
25665 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25666 < Makefile.c
> junk.c
25667 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25668 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25669 cat junk1.c junk2.c
> Makefile.new
25670 rm -f junk.c junk1.c junk2.c
25671 chmod 444 Makefile.new
25672 mv -f Makefile.new Makefile
25675 echo creating src
/Makefile
25677 rm -f junk.c junk1.c junk2.c
25678 sed -e '/start of cpp stuff/q' \
25679 < Makefile.c
> junk1.c
25680 sed -e '1,/start of cpp stuff/d'\
25681 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25682 < Makefile.c
> junk.c
25683 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25684 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25685 cat junk1.c junk2.c
> Makefile.new
25686 rm -f junk.c junk1.c junk2.c
25687 chmod 444 Makefile.new
25688 mv -f Makefile.new Makefile
25691 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25692 echo creating src
/.gdbinit
25693 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25702 { (exit 0); exit 0; }
25704 chmod +x
$CONFIG_STATUS
25705 ac_clean_files
=$ac_clean_files_save
25708 # configure is writing to config.log, and then calls config.status.
25709 # config.status does its own redirection, appending to config.log.
25710 # Unfortunately, on DOS this fails, as config.log is still kept open
25711 # by configure, so config.status won't be able to write to it; its
25712 # output is simply discarded. So we exec the FD to /dev/null,
25713 # effectively closing config.log, so it can be properly (re)opened and
25714 # appended to by config.status. When coming back to configure, we
25715 # need to make the FD available again.
25716 if test "$no_create" != yes; then
25718 ac_config_status_args
=
25719 test "$silent" = yes &&
25720 ac_config_status_args
="$ac_config_status_args --quiet"
25722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25725 # would make configure fail if this is the last instruction.
25726 $ac_cs_success ||
{ (exit 1); exit 1; }