2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.1.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.1.50'
576 PACKAGE_STRING
='emacs 23.1.50'
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
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
744 LIB_SRC_EXTRA_INSTALLABLES
747 ac_precious_vars
='build_alias
759 # Initialize some variables set by options.
761 ac_init_version
=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name
=s
,x
,x
,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir
='${exec_prefix}/bin'
786 sbindir
='${exec_prefix}/sbin'
787 libexecdir
='${exec_prefix}/libexec'
788 datarootdir
='${prefix}/share'
789 datadir
='${datarootdir}'
790 sysconfdir
='${prefix}/etc'
791 sharedstatedir
='${prefix}/com'
792 localstatedir
='${prefix}/var'
793 includedir
='${prefix}/include'
794 oldincludedir
='/usr/include'
795 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir
='${datarootdir}/info'
801 libdir
='${exec_prefix}/lib'
802 localedir
='${datarootdir}/locale'
803 mandir
='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\
$ac_option
817 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
827 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
829 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
832 -build |
--build |
--buil |
--bui |
--bu)
833 ac_prev
=build_alias
;;
834 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
835 build_alias
=$ac_optarg ;;
837 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
838 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
839 ac_prev
=cache_file
;;
840 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
841 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
842 cache_file
=$ac_optarg ;;
845 cache_file
=config.cache
;;
847 -datadir |
--datadir |
--datadi |
--datad)
849 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
850 datadir
=$ac_optarg ;;
852 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
853 |
--dataroo |
--dataro |
--datar)
854 ac_prev
=datarootdir
;;
855 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
856 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
857 datarootdir
=$ac_optarg ;;
859 -disable-* |
--disable-*)
860 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_
$ac_feature=no
;;
868 -docdir |
--docdir |
--docdi |
--doc |
--do)
870 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
873 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
875 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
878 -enable-* |
--enable-*)
879 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_
$ac_feature=\
$ac_optarg ;;
887 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
888 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
889 |
--exec |
--exe |
--ex)
890 ac_prev
=exec_prefix
;;
891 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
892 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
893 |
--exec=* |
--exe=* |
--ex=*)
894 exec_prefix
=$ac_optarg ;;
896 -gas |
--gas |
--ga |
--g)
897 # Obsolete; use --with-gas.
900 -help |
--help |
--hel |
--he |
-h)
902 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
903 ac_init_help
=recursive
;;
904 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
905 ac_init_help
=short
;;
907 -host |
--host |
--hos |
--ho)
908 ac_prev
=host_alias
;;
909 -host=* |
--host=* |
--hos=* |
--ho=*)
910 host_alias
=$ac_optarg ;;
912 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
914 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
916 htmldir
=$ac_optarg ;;
918 -includedir |
--includedir |
--includedi |
--included |
--include \
919 |
--includ |
--inclu |
--incl |
--inc)
920 ac_prev
=includedir
;;
921 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
922 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
923 includedir
=$ac_optarg ;;
925 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
927 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
928 infodir
=$ac_optarg ;;
930 -libdir |
--libdir |
--libdi |
--libd)
932 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
935 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
936 |
--libexe |
--libex |
--libe)
937 ac_prev
=libexecdir
;;
938 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
939 |
--libexe=* |
--libex=* |
--libe=*)
940 libexecdir
=$ac_optarg ;;
942 -localedir |
--localedir |
--localedi |
--localed |
--locale)
944 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
945 localedir
=$ac_optarg ;;
947 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
948 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
949 ac_prev
=localstatedir
;;
950 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
951 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
952 localstatedir
=$ac_optarg ;;
954 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
956 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
960 # Obsolete; use --without-fp.
963 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
964 |
--no-cr |
--no-c |
-n)
967 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
968 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
971 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
972 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
973 |
--oldin |
--oldi |
--old |
--ol |
--o)
974 ac_prev
=oldincludedir
;;
975 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
976 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
977 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
978 oldincludedir
=$ac_optarg ;;
980 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
982 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
985 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
986 |
--program-pre |
--program-pr |
--program-p)
987 ac_prev
=program_prefix
;;
988 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
989 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
990 program_prefix
=$ac_optarg ;;
992 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
993 |
--program-suf |
--program-su |
--program-s)
994 ac_prev
=program_suffix
;;
995 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
996 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
997 program_suffix
=$ac_optarg ;;
999 -program-transform-name |
--program-transform-name \
1000 |
--program-transform-nam |
--program-transform-na \
1001 |
--program-transform-n |
--program-transform- \
1002 |
--program-transform |
--program-transfor \
1003 |
--program-transfo |
--program-transf \
1004 |
--program-trans |
--program-tran \
1005 |
--progr-tra |
--program-tr |
--program-t)
1006 ac_prev
=program_transform_name
;;
1007 -program-transform-name=* |
--program-transform-name=* \
1008 |
--program-transform-nam=* |
--program-transform-na=* \
1009 |
--program-transform-n=* |
--program-transform-=* \
1010 |
--program-transform=* |
--program-transfor=* \
1011 |
--program-transfo=* |
--program-transf=* \
1012 |
--program-trans=* |
--program-tran=* \
1013 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1014 program_transform_name
=$ac_optarg ;;
1016 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1018 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1019 pdfdir
=$ac_optarg ;;
1021 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1023 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1027 |
-silent |
--silent |
--silen |
--sile |
--sil)
1030 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1032 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1034 sbindir
=$ac_optarg ;;
1036 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1037 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1038 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1040 ac_prev
=sharedstatedir
;;
1041 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1042 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1043 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1045 sharedstatedir
=$ac_optarg ;;
1047 -site |
--site |
--sit)
1049 -site=* |
--site=* |
--sit=*)
1052 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1054 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1055 srcdir
=$ac_optarg ;;
1057 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1058 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1059 ac_prev
=sysconfdir
;;
1060 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1061 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1062 sysconfdir
=$ac_optarg ;;
1064 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1065 ac_prev
=target_alias
;;
1066 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1067 target_alias
=$ac_optarg ;;
1069 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1072 -version |
--version |
--versio |
--versi |
--vers |
-V)
1073 ac_init_version
=: ;;
1076 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=\
$ac_optarg ;;
1084 -without-* |
--without-*)
1085 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_
$ac_package=no
;;
1094 # Obsolete; use --with-x.
1097 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1098 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1099 ac_prev
=x_includes
;;
1100 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1101 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1102 x_includes
=$ac_optarg ;;
1104 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1105 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1106 ac_prev
=x_libraries
;;
1107 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1108 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1109 x_libraries
=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1117 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\
$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 if test -n "$ac_prev"; then
1137 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val
=\$
$ac_var
1150 [\\/$
]* | ?
:[\\/]* ) continue;;
1151 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1162 target
=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x
; then
1166 if test "x$build_alias" = x
; then
1167 cross_compiling
=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1176 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1178 test "$silent" = yes && exec 6>/dev
/null
1181 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di
=`ls -di .` &&
1183 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted
=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir
=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1223 ac_srcdir_defaulted
=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var
in $ac_precious_vars; do
1246 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1248 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1322 --x-includes=DIR X include files are
in DIR
1323 --x-libraries=DIR X library files are
in DIR
1326 --build=BUILD configure
for building on BUILD
[guessed
]
1327 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive
) echo "Configuration of emacs 23.1.50:";;
1338 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1339 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1340 --disable-ns-self-contained
1341 disable self contained build under NeXTstep
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 --enable-checking=LIST
1350 enable expensive run-time checks. With LIST
,
1351 enable only specific categories of checks.
1352 Categories are
: all
,yes,no.
1353 Flags are
: stringbytes
, stringoverrun
, stringfreelist
,
1354 xmallocoverrun
, conslist
1355 --disable-largefile omit support
for large files
1358 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1359 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1360 --without-pop don
't support POP mail retrieval with movemail
1361 --with-kerberos support Kerberos-authenticated POP
1362 --with-kerberos5 support Kerberos version 5 authenticated POP
1363 --with-hesiod support Hesiod to get the POP server host
1364 --without-sound don't compile with sound support
1365 --without-sync-input process async input synchronously
1366 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1368 --without-xpm don
't compile with XPM image support
1369 --without-jpeg don't compile with JPEG image support
1370 --without-tiff don
't compile with TIFF image support
1371 --without-gif don't compile with GIF image support
1372 --without-png don
't compile with PNG image support
1373 --without-rsvg don't compile with SVG image support
1374 --without-xft don
't use XFT for anti aliased fonts
1375 --without-libotf don't use libotf
for OpenType font support
1376 --without-m17n-flt don
't use m17n-flt for text shaping
1377 --without-toolkit-scroll-bars
1378 don't use Motif or Xaw3d scroll bars
1379 --without-xaw3d don
't use Xaw3d
1380 --without-xim don't use X11 XIM
1381 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1382 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1384 --without-dbus don't compile with D-Bus support
1385 --without-makeinfo don
't require makeinfo for building manuals
1387 --with-pkg-config-prog=PATH
1388 path to pkg-config for finding GTK and librsvg
1389 --with-gnustep-conf=PATH
1390 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1391 or /etc/GNUstep/GNUstep.conf
1392 --with-x use the X Window System
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1403 XMKMF Path to xmkmf, Makefile generator for X Window System
1405 Use these variables to override the choices made by `configure' or to
help
1406 it to
find libraries and programs with nonstandard names
/locations.
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1415 test -d "$ac_dir" ||
continue
1419 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1421 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1426 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1429 ac_abs_top_builddir
=$ac_pwd
1430 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir
=$ac_top_build_prefix
1435 .
) # We are building in place.
1437 ac_top_srcdir
=$ac_top_builddir_sub
1438 ac_abs_top_srcdir
=$ac_pwd ;;
1439 [\\/]* | ?
:[\\/]* ) # Absolute name.
1440 ac_srcdir
=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir
=$srcdir
1442 ac_abs_top_srcdir
=$srcdir ;;
1444 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1448 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1459 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1468 emacs configure
23.1.50
1469 generated by GNU Autoconf
2.61
1471 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1472 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1473 This configure
script is free software
; the Free Software Foundation
1474 gives unlimited permission to copy
, distribute and modify it.
1478 cat >config.log
<<_ACEOF
1479 This file contains any messages produced by compilers while
1480 running configure, to aid debugging if configure makes a mistake.
1482 It was created by emacs $as_me 23.1.50, which was
1483 generated by GNU Autoconf 2.61. Invocation command line was
1495 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1496 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1497 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1498 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1499 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1502 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1504 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1505 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1507 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1508 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1510 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir
=.
1519 echo "PATH: $as_dir"
1535 # Keep a trace of the command line.
1536 # Strip out --no-create and --no-recursion so they do not pile up.
1537 # Strip out --silent because we don't want to record it for future runs.
1538 # Also quote any args containing shell meta-characters.
1539 # Make two passes to allow for proper duplicate-argument suppression.
1543 ac_must_keep_next
=false
1549 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1550 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1551 |
-silent |
--silent |
--silen |
--sile |
--sil)
1554 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1557 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1559 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1560 if test $ac_must_keep_next = true
; then
1561 ac_must_keep_next
=false
# Got value, back to normal.
1564 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1565 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1566 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1567 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1568 case "$ac_configure_args0 " in
1569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1572 -* ) ac_must_keep_next
=true
;;
1575 ac_configure_args
="$ac_configure_args '$ac_arg'"
1580 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1581 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1583 # When interrupted or exit'd, cleanup temporary files, and complete
1584 # config.log. We remove comments because anyway the quotes in there
1585 # would cause problems or look ugly.
1586 # WARNING: Use '\'' to represent an apostrophe within the trap.
1587 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1588 trap 'exit_status=$?
1589 # Save into config.log some information that might help in debugging.
1594 ## ---------------- ##
1595 ## Cache variables. ##
1596 ## ---------------- ##
1599 # The following way of writing the cache mishandles newlines in values,
1601 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1602 eval ac_val=\$$ac_var
1606 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1607 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1610 _ | IFS | as_nl) ;; #(
1611 *) $as_unset $ac_var ;;
1616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1617 *${as_nl}ac_space=\ *)
1619 "s/'\''/'\''\\\\'\'''\''/g;
1620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631 ## ----------------- ##
1632 ## Output variables. ##
1633 ## ----------------- ##
1636 for ac_var in $ac_subst_vars
1638 eval ac_val=\$$ac_var
1640 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 echo "$ac_var='\''$ac_val'\''"
1646 if test -n "$ac_subst_files"; then
1648 ## ------------------- ##
1649 ## File substitutions. ##
1650 ## ------------------- ##
1653 for ac_var
in $ac_subst_files
1655 eval ac_val
=\$
$ac_var
1657 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 echo "$ac_var='\''$ac_val'\''"
1664 if test -s confdefs.h; then
1674 test "$ac_signal" != 0 &&
1675 echo "$as_me: caught signal $ac_signal"
1676 echo "$as_me: exit $exit_status"
1678 rm -f core *.core core.conftest.* &&
1679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1682 for ac_signal
in 1 2 13 15; do
1683 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1687 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1688 rm -f -r conftest
* confdefs.h
1690 # Predefined preprocessor variables.
1692 cat >>confdefs.h
<<_ACEOF
1693 #define PACKAGE_NAME "$PACKAGE_NAME"
1697 cat >>confdefs.h
<<_ACEOF
1698 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1702 cat >>confdefs.h
<<_ACEOF
1703 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1707 cat >>confdefs.h
<<_ACEOF
1708 #define PACKAGE_STRING "$PACKAGE_STRING"
1712 cat >>confdefs.h
<<_ACEOF
1713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1717 # Let the site file select an alternate cache file if it wants to.
1718 # Prefer explicitly selected file to automatically selected ones.
1719 if test -n "$CONFIG_SITE"; then
1720 set x
"$CONFIG_SITE"
1721 elif test "x$prefix" != xNONE
; then
1722 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1724 set x
"$ac_default_prefix/share/config.site" \
1725 "$ac_default_prefix/etc/config.site"
1730 if test -r "$ac_site_file"; then
1731 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732 echo "$as_me: loading site script $ac_site_file" >&6;}
1733 sed 's/^/| /' "$ac_site_file" >&5
1738 if test -r "$cache_file"; then
1739 # Some versions of bash will fail to source /dev/null (special
1740 # files actually), so we avoid doing that.
1741 if test -f "$cache_file"; then
1742 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743 echo "$as_me: loading cache $cache_file" >&6;}
1745 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1746 *) .
"./$cache_file";;
1750 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751 echo "$as_me: creating cache $cache_file" >&6;}
1755 ac_header_list
="$ac_header_list sys/time.h"
1756 ac_header_list
="$ac_header_list unistd.h"
1757 ac_func_list
="$ac_func_list alarm"
1758 # Check that the precious variables saved in the cache have kept the same
1760 ac_cache_corrupted
=false
1761 for ac_var
in $ac_precious_vars; do
1762 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1763 eval ac_new_set
=\
$ac_env_${ac_var}_set
1764 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1765 eval ac_new_val
=\
$ac_env_${ac_var}_value
1766 case $ac_old_set,$ac_new_set in
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770 ac_cache_corrupted
=: ;;
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774 ac_cache_corrupted
=: ;;
1777 if test "x$ac_old_val" != "x$ac_new_val"; then
1778 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1781 echo "$as_me: former value: $ac_old_val" >&2;}
1782 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1783 echo "$as_me: current value: $ac_new_val" >&2;}
1784 ac_cache_corrupted
=:
1787 # Pass precious variables to config.status.
1788 if test "$ac_new_set" = set; then
1790 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 *) ac_arg
=$ac_var=$ac_new_val ;;
1793 case " $ac_configure_args " in
1794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1795 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1799 if $ac_cache_corrupted; then
1800 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804 { (exit 1); exit 1; }; }
1832 ac_cpp
='$CPP $CPPFLAGS'
1833 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1838 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1842 test "$program_prefix" != NONE
&&
1843 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1844 # Use a double $ so make ignores it.
1845 test "$program_suffix" != NONE
&&
1846 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1847 # Double any \ or $. echo might interpret backslashes.
1848 # By default was `s,x,x', remove it if useless.
1849 cat <<\_ACEOF
>conftest.
sed
1850 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1852 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1856 lispdir
='${datadir}/emacs/${version}/lisp'
1857 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1858 '${datadir}/emacs/site-lisp'
1859 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1860 etcdir
='${datadir}/emacs/${version}/etc'
1861 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1862 docdir
='${datadir}/emacs/${version}/etc'
1863 gamedir
='${localstatedir}/games/emacs'
1870 # Check whether --with-pop was given.
1871 if test "${with_pop+set}" = set; then
1877 if test "$with_pop" = yes; then
1878 cat >>confdefs.h
<<\_ACEOF
1879 #define MAIL_USE_POP 1
1886 # Check whether --with-kerberos was given.
1887 if test "${with_kerberos+set}" = set; then
1888 withval
=$with_kerberos;
1893 if test "$with_kerberos" != no
; then
1894 cat >>confdefs.h
<<\_ACEOF
1902 # Check whether --with-kerberos5 was given.
1903 if test "${with_kerberos5+set}" = set; then
1904 withval
=$with_kerberos5;
1909 if test "${with_kerberos5}" != no
; then
1910 if test "${with_kerberos}" = no
; then
1912 cat >>confdefs.h
<<\_ACEOF
1918 cat >>confdefs.h
<<\_ACEOF
1925 # Check whether --with-hesiod was given.
1926 if test "${with_hesiod+set}" = set; then
1927 withval
=$with_hesiod;
1932 if test "$with_hesiod" != no
; then
1934 cat >>confdefs.h
<<\_ACEOF
1941 # Check whether --with-sound was given.
1942 if test "${with_sound+set}" = set; then
1943 withval
=$with_sound;
1950 # Check whether --with-sync-input was given.
1951 if test "${with_sync_input+set}" = set; then
1952 withval
=$with_sync_input;
1957 if test "$with_sync_input" = yes; then
1959 cat >>confdefs.h
<<\_ACEOF
1960 #define SYNC_INPUT 1
1966 # Check whether --with-x-toolkit was given.
1967 if test "${with_x_toolkit+set}" = set; then
1968 withval
=$with_x_toolkit; case "${withval}" in
1969 y | ye |
yes ) val
=gtk
;;
1971 l | lu | luc | luci | lucid
) val
=lucid
;;
1972 a |
at | ath | athe | athen | athena
) val
=athena
;;
1973 m | mo | mot | moti | motif
) val
=motif
;;
1974 g | gt | gtk
) val
=gtk
;;
1976 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1978 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1979 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1980 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1981 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1982 { (exit 1); exit 1; }; }
1991 # Check whether --with-xpm was given.
1992 if test "${with_xpm+set}" = set; then
1999 # Check whether --with-jpeg was given.
2000 if test "${with_jpeg+set}" = set; then
2007 # Check whether --with-tiff was given.
2008 if test "${with_tiff+set}" = set; then
2015 # Check whether --with-gif was given.
2016 if test "${with_gif+set}" = set; then
2023 # Check whether --with-png was given.
2024 if test "${with_png+set}" = set; then
2031 # Check whether --with-rsvg was given.
2032 if test "${with_rsvg+set}" = set; then
2040 # Check whether --with-xft was given.
2041 if test "${with_xft+set}" = set; then
2048 # Check whether --with-libotf was given.
2049 if test "${with_libotf+set}" = set; then
2050 withval
=$with_libotf;
2056 # Check whether --with-m17n-flt was given.
2057 if test "${with_m17n_flt+set}" = set; then
2058 withval
=$with_m17n_flt;
2065 # Check whether --with-toolkit-scroll-bars was given.
2066 if test "${with_toolkit_scroll_bars+set}" = set; then
2067 withval
=$with_toolkit_scroll_bars;
2069 with_toolkit_scroll_bars
=yes
2073 # Check whether --with-xaw3d was given.
2074 if test "${with_xaw3d+set}" = set; then
2075 withval
=$with_xaw3d;
2081 # Check whether --with-xim was given.
2082 if test "${with_xim+set}" = set; then
2089 # Check whether --with-ns was given.
2090 if test "${with_ns+set}" = set; then
2098 # Check whether --with-gpm was given.
2099 if test "${with_gpm+set}" = set; then
2106 # Check whether --with-dbus was given.
2107 if test "${with_dbus+set}" = set; then
2114 ## For the times when you want to build Emacs but don't have
2115 ## a suitable makeinfo, and can live without the manuals.
2117 # Check whether --with-makeinfo was given.
2118 if test "${with_makeinfo+set}" = set; then
2119 withval
=$with_makeinfo;
2126 # Check whether --with-gtk was given.
2127 if test "${with_gtk+set}" = set; then
2128 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2129 specify a toolkit." >&5
2130 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2131 specify a toolkit." >&2;}
2132 { (exit 1); exit 1; }; }
2137 # Check whether --with-gcc was given.
2138 if test "${with_gcc+set}" = set; then
2139 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2140 variable to specify a compiler." >&5
2141 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2142 variable to specify a compiler." >&2;}
2143 { (exit 1); exit 1; }; }
2148 # Check whether --with-pkg-config-prog was given.
2149 if test "${with_pkg_config_prog+set}" = set; then
2150 withval
=$with_pkg_config_prog;
2153 if test "X${with_pkg_config_prog}" != X
; then
2154 if test "${with_pkg_config_prog}" != yes; then
2155 PKG_CONFIG
="${with_pkg_config_prog}"
2160 # Check whether --with-gnustep-conf was given.
2161 if test "${with_gnustep_conf+set}" = set; then
2162 withval
=$with_gnustep_conf;
2165 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2166 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2167 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2168 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2170 # Check whether --enable-ns-self-contained was given.
2171 if test "${enable_ns_self_contained+set}" = set; then
2172 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2174 EN_NS_SELF_CONTAINED
=yes
2178 # Check whether --enable-asserts was given.
2179 if test "${enable_asserts+set}" = set; then
2180 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2186 # Check whether --enable-maintainer-mode was given.
2187 if test "${enable_maintainer_mode+set}" = set; then
2188 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2190 USE_MAINTAINER_MODE
=no
2193 if test $USE_MAINTAINER_MODE = yes; then
2200 # Check whether --enable-locallisppath was given.
2201 if test "${enable_locallisppath+set}" = set; then
2202 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2204 elif test "${enableval}" != "yes"; then
2205 locallisppath
=${enableval}
2210 # Check whether --enable-checking was given.
2211 if test "${enable_checking+set}" = set; then
2212 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2215 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2216 for check
in $ac_checking_flags
2219 # these set all the flags to specific states
2220 yes) ac_enable_checking
=1 ;;
2221 no
) ac_enable_checking
= ;
2222 ac_gc_check_stringbytes
= ;
2223 ac_gc_check_string_overrun
= ;
2224 ac_gc_check_string_free_list
= ;
2225 ac_xmalloc_overrun
= ;
2226 ac_gc_check_cons_list
= ;;
2227 all
) ac_enable_checking
=1 ;
2228 ac_gc_check_stringbytes
=1 ;
2229 ac_gc_check_string_overrun
=1 ;
2230 ac_gc_check_string_free_list
=1 ;
2231 ac_xmalloc_overrun
=1 ;
2232 ac_gc_check_cons_list
=1 ;;
2233 # these enable particular checks
2234 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2235 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2236 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2237 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2238 conslist
) ac_gc_check_cons_list
=1 ;;
2239 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
2240 echo "$as_me: error: unknown check category $check" >&2;}
2241 { (exit 1); exit 1; }; } ;;
2246 if test x
$ac_enable_checking != x
; then
2248 cat >>confdefs.h
<<\_ACEOF
2249 #define ENABLE_CHECKING 1
2253 if test x
$ac_gc_check_stringbytes != x
; then
2255 cat >>confdefs.h
<<\_ACEOF
2256 #define GC_CHECK_STRING_BYTES 1
2260 if test x
$ac_gc_check_stringoverrun != x
; then
2262 cat >>confdefs.h
<<\_ACEOF
2263 #define GC_CHECK_STRING_OVERRUN 1
2267 if test x
$ac_gc_check_string_free_list != x
; then
2269 cat >>confdefs.h
<<\_ACEOF
2270 #define GC_CHECK_STRING_FREE_LIST 1
2274 if test x
$ac_xmalloc_overrun != x
; then
2276 cat >>confdefs.h
<<\_ACEOF
2277 #define XMALLOC_OVERRUN_CHECK 1
2281 if test x
$ac_gc_check_cons_list != x
; then
2283 cat >>confdefs.h
<<\_ACEOF
2284 #define GC_CHECK_CONS_LIST 1
2289 #### Make srcdir absolute, if it isn't already. It's important to
2290 #### avoid running the path through pwd unnecessarily, since pwd can
2291 #### give you automounter prefixes, which can go away. We do all this
2292 #### so Emacs can find its files when run uninstalled.
2293 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2298 ## We may be able to use the $PWD environment variable to make this
2299 ## absolute. But sometimes PWD is inaccurate.
2300 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2301 ## but that tested only for a well-formed and valid PWD,
2302 ## it did not object when PWD was well-formed and valid but just wrong.
2303 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2307 srcdir
="`(cd ${srcdir}; pwd)`"
2310 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2313 #### Check if the source directory already has a configured system in it.
2314 if test `pwd` != `(cd ${srcdir} && pwd)` \
2315 && test -f "${srcdir}/src/config.h" ; then
2316 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2317 as a build directory right now; it has been configured in its own
2318 right. To configure in another directory as well, you MUST
2319 use GNU make. If you do not have GNU make, then you must
2320 now do \`make distclean' in ${srcdir},
2321 and then run $0 again." >&5
2322 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2323 as a build directory right now; it has been configured in its own
2324 right. To configure in another directory as well, you MUST
2325 use GNU make. If you do not have GNU make, then you must
2326 now do \`make distclean' in ${srcdir},
2327 and then run $0 again." >&2;}
2330 #### Given the configuration name, set machfile and opsysfile to the
2331 #### names of the m/*.h and s/*.h files we should use.
2333 ### Canonicalize the configuration name.
2336 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2337 if test -f "$ac_dir/install-sh"; then
2339 ac_install_sh
="$ac_aux_dir/install-sh -c"
2341 elif test -f "$ac_dir/install.sh"; then
2343 ac_install_sh
="$ac_aux_dir/install.sh -c"
2345 elif test -f "$ac_dir/shtool"; then
2347 ac_install_sh
="$ac_aux_dir/shtool install -c"
2351 if test -z "$ac_aux_dir"; then
2352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2353 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2354 { (exit 1); exit 1; }; }
2357 # These three variables are undocumented and unsupported,
2358 # and are intended to be withdrawn in a future Autoconf release.
2359 # They can cause serious problems if a builder's source tree is in a directory
2360 # whose full name contains unusual characters.
2361 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2362 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2363 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2366 # Make sure we can run config.sub.
2367 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2368 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2369 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2370 { (exit 1); exit 1; }; }
2372 { echo "$as_me:$LINENO: checking build system type" >&5
2373 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2374 if test "${ac_cv_build+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 ac_build_alias
=$build_alias
2378 test "x$ac_build_alias" = x
&&
2379 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2380 test "x$ac_build_alias" = x
&&
2381 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2382 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2383 { (exit 1); exit 1; }; }
2384 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2386 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2387 { (exit 1); exit 1; }; }
2390 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2391 echo "${ECHO_T}$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2394 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2395 echo "$as_me: error: invalid value of canonical build" >&2;}
2396 { (exit 1); exit 1; }; };;
2399 ac_save_IFS
=$IFS; IFS
='-'
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2409 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 { echo "$as_me:$LINENO: checking host system type" >&5
2413 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2414 if test "${ac_cv_host+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test "x$host_alias" = x
; then
2418 ac_cv_host
=$ac_cv_build
2420 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2421 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2422 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2423 { (exit 1); exit 1; }; }
2427 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2428 echo "${ECHO_T}$ac_cv_host" >&6; }
2431 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2432 echo "$as_me: error: invalid value of canonical host" >&2;}
2433 { (exit 1); exit 1; }; };;
2436 ac_save_IFS
=$IFS; IFS
='-'
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2446 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2450 configuration
=${host_alias-${build_alias-$host}}
2454 ### If you add support for a new configuration, add code to this
2455 ### switch statement to recognize your configuration name and select
2456 ### the appropriate operating system and machine description files.
2458 ### You would hope that you could choose an m/*.h file pretty much
2459 ### based on the machine portion of the configuration name, and an s-
2460 ### file based on the operating system portion. However, it turns out
2461 ### that each m/*.h file is pretty manufacturer-specific - for
2462 ### example mips.h is MIPS
2463 ### So we basically have to have a special case for each
2464 ### configuration name.
2466 ### As far as handling version numbers on operating systems is
2467 ### concerned, make sure things will fail in a fixable way. If
2468 ### /etc/MACHINES doesn't say anything about version numbers, be
2469 ### prepared to handle anything reasonably. If version numbers
2470 ### matter, be sure /etc/MACHINES says something about it.
2472 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2473 ### "System V Release 4"; he writes, "The old convention encouraged
2474 ### confusion between `system' and `release' levels'."
2476 machine
='' opsys
='' unported
=no
2477 case "${canonical}" in
2482 case "${canonical}" in
2483 alpha
*-*-freebsd*) machine
=alpha
;;
2484 arm
*-*-freebsd*) machine
=arm
;;
2485 ia64-
*-freebsd*) machine
=ia64
;;
2486 sparc-
*-freebsd*) machine
=sparc
;;
2487 sparc64-
*-freebsd*) machine
=sparc
;;
2488 powerpc-
*-freebsd*) machine
=macppc
;;
2489 i
[3456]86-*-freebsd*) machine
=intel386
;;
2490 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2494 ## FreeBSD kernel + glibc based userland
2497 case "${canonical}" in
2498 alpha
*-*-kfreebsd*) machine
=alpha
;;
2499 ia64-
*-kfreebsd*) machine
=ia64
;;
2500 sparc-
*-kfreebsd*) machine
=sparc
;;
2501 sparc64-
*-kfreebsd*) machine
=sparc
;;
2502 powerpc-
*-kfreebsd*) machine
=macppc
;;
2503 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2504 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2511 if test -f /usr
/lib
/crti.o
; then
2513 cat >>confdefs.h
<<\_ACEOF
2519 case "${canonical}" in
2520 alpha
*-*-netbsd*) machine
=alpha
;;
2521 i
[3456]86-*-netbsd*) machine
=intel386
;;
2522 mips-
*-netbsd*) machine
=pmax
;;
2523 mipsel-
*-netbsd*) machine
=pmax
;;
2524 mipseb-
*-netbsd*) machine
=pmax
;;
2525 powerpc-
*-netbsd*) machine
=macppc
;;
2526 sparc
*-*-netbsd*) machine
=sparc
;;
2527 vax-
*-netbsd*) machine
=vax
;;
2528 arm-
*-netbsd*) machine
=arm
;;
2529 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2530 hppa-
*-netbsd*) machine
=hp800
;;
2531 m68k-
*-netbsd*) machine
=m68k
;;
2538 case "${canonical}" in
2539 alpha
*-*-openbsd*) machine
=alpha
;;
2540 arm-
*-openbsd*) machine
=arm
;;
2541 i386-
*-openbsd*) machine
=intel386
;;
2542 powerpc-
*-openbsd*) machine
=macppc
;;
2543 sparc
*-*-openbsd*) machine
=sparc
;;
2544 vax-
*-openbsd*) machine
=vax
;;
2545 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2546 hppa-
*-openbsd*) machine
=hp800
;;
2553 case "${canonical}" in
2554 i
[3456]86-*-lynxos*) machine
=intel386
;;
2555 powerpc-
*-lynxos*) machine
=powerpc
;;
2559 alpha
*-*-linux-gnu* )
2560 machine
=alpha opsys
=gnu-linux
2564 machine
=arm opsys
=gnu-linux
2567 ## Apple Darwin / Mac OS X
2569 case "${canonical}" in
2570 i
[3456]86-* ) machine
=intel386
;;
2571 powerpc-
* ) machine
=macppc
;;
2575 # Define CPP as follows to make autoconf work correctly.
2576 CPP
="${CC-cc} -E -no-cpp-precomp"
2577 # Use fink packages if available.
2578 if test -d /sw
/include
&& test -d /sw
/lib
; then
2579 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2580 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2581 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2585 ## HP 9000 series 700 and 800, running HP/UX
2586 hppa
*-hp-hpux10.2
* )
2587 machine
=hp800 opsys
=hpux10-20
2589 hppa
*-hp-hpux1[1-9]* )
2590 machine
=hp800 opsys
=hpux11
2591 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2594 hppa
*-*-linux-gnu* )
2595 machine
=hp800 opsys
=gnu-linux
2600 machine
=ibms390 opsys
=gnu-linux
2602 s390x-
*-linux-gnu* )
2603 machine
=ibms390x opsys
=gnu-linux
2605 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2606 machine
=ibmrs6000 opsys
=aix4-2
2608 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2609 machine
=ibmrs6000 opsys
=aix4-2
2611 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2612 machine
=ibmrs6000 opsys
=aix4-2
2614 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2615 machine
=ibmrs6000 opsys
=aix4-2
2618 ## Macintosh PowerPC
2619 powerpc
*-*-linux-gnu* )
2620 machine
=macppc opsys
=gnu-linux
2623 ## Silicon Graphics machines
2626 machine
=iris4d opsys
=irix6-5
2627 # Without defining _LANGUAGE_C, things get masked out in the headers
2628 # so that, for instance, grepping for `free' in stdlib.h fails and
2629 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2630 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2631 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2635 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2636 machine
=sparc opsys
=gnu-linux
2640 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2641 | x86_64-
*-solaris2* | x86_64-
*-sunos5* \
2642 | powerpc
*-*-solaris2* | rs6000-
*-solaris2*)
2643 case "${canonical}" in
2644 i
[3456]86-*-* ) machine
=intel386
;;
2645 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2646 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2647 sparc
* ) machine
=sparc
;;
2650 case "${canonical}" in
2651 *-sunos5.3
* |
*-solaris2.3
* )
2653 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2655 *-sunos5.4
* |
*-solaris2.4
* )
2657 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2660 *-sunos5.5
* |
*-solaris2.5
* )
2662 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2665 *-sunos5.6
* |
*-solaris2.6
* )
2667 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2670 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2672 emacs_check_sunpro_c
=yes
2673 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2675 *-sunos5* |
*-solaris* )
2677 emacs_check_sunpro_c
=yes
2678 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2681 ## Watch out for a compiler that we know will not work.
2682 case "${canonical}" in
2683 *-solaris* |
*-sunos5* )
2684 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2685 ## /usr/ucb/cc doesn't work;
2686 ## we should find some other compiler that does work.
2697 case "${canonical}" in
2698 *-vms* ) opsys
=vms
;;
2705 machine
=ia64 opsys
=gnu-linux
2708 ## Intel 386 machines where we don't care about the manufacturer
2711 case "${canonical}" in
2712 *-cygwin ) opsys
=cygwin
;;
2713 *-darwin* ) opsys
=darwin
2714 CPP
="${CC-cc} -E -no-cpp-precomp"
2716 *-linux-gnu* ) opsys
=gnu-linux
;;
2717 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2718 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2719 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2720 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2724 ## m68k Linux-based GNU system
2726 machine
=m68k opsys
=gnu-linux
2729 ## Mips Linux-based GNU system
2730 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2731 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2732 machine
=mips opsys
=gnu-linux
2735 ## AMD x86-64 Linux-based GNU system
2736 x86_64-
*-linux-gnu* )
2737 machine
=amdx86-64 opsys
=gnu-linux
2740 ## Tensilica Xtensa Linux-based GNU system
2741 xtensa
*-*-linux-gnu* )
2742 machine
=xtensa opsys
=gnu-linux
2745 ## SuperH Linux-based GNU system
2746 sh
[34]*-*-linux-gnu* )
2747 machine
=sh3 opsys
=gnu-linux
2755 ### If the code above didn't choose an operating system, just choose
2756 ### an operating system based on the configuration name. You really
2757 ### only want to use this when you have no idea what the right
2758 ### operating system is; if you know what operating systems a machine
2759 ### runs, it's cleaner to make it explicit in the case statement
2761 if test x
"${opsys}" = x
; then
2762 case "${canonical}" in
2763 *-gnu* ) opsys
=gnu
;;
2764 *-sysv4.2uw
* ) opsys
=unixware
;;
2765 *-sysv5uw* ) opsys
=unixware
;;
2766 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2767 *-sysv4.1
* |
*-sysvr4.1
* )
2768 NON_GNU_CPP
=/usr
/lib
/cpp
2770 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2771 if [ x
$NON_GNU_CPP = x
]; then
2772 if [ -f /usr
/ccs
/lib
/cpp
]; then
2773 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2775 NON_GNU_CPP
=/lib
/cpp
2779 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2788 if test $unported = yes; then
2789 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2790 Check \`etc/MACHINES' for recognized configuration names." >&5
2791 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2792 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2793 { (exit 1); exit 1; }; }
2796 machfile
="m/${machine}.h"
2797 opsysfile
="s/${opsys}.h"
2800 #### Choose a compiler.
2801 test -n "$CC" && cc_specified
=yes
2803 # Save the value of CFLAGS that the user specified.
2804 SPECIFIED_CFLAGS
="$CFLAGS"
2807 ac_cpp
='$CPP $CPPFLAGS'
2808 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC
="$CC" # Let the user override the test.
2822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir
=.
2827 for ac_exec_ext
in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 if test -n "$CC"; then
2841 { echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6; }
2844 { echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6; }
2850 if test -z "$ac_cv_prog_CC"; then
2852 # Extract the first word of "gcc", so it can be a program name with args.
2853 set dummy gcc
; ac_word
=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 if test -n "$ac_ct_CC"; then
2860 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir
=.
2867 for ac_exec_ext
in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_ac_ct_CC
="gcc"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882 echo "${ECHO_T}$ac_ct_CC" >&6; }
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2888 if test "x$ac_ct_CC" = x
; then
2891 case $cross_compiling:$ac_tool_warned in
2893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet. If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&5
2896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet. If you think this
2898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2899 ac_tool_warned
=yes ;;
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2910 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC
="$CC" # Let the user override the test.
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 for ac_exec_ext
in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2948 if test -z "$CC"; then
2949 # Extract the first word of "cc", so it can be a program name with args.
2950 set dummy cc
; ac_word
=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC
="$CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2968 ac_prog_rejected
=yes
2972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 if test $ac_prog_rejected = yes; then
2980 # We found a bogon in the path, so make sure we never use it.
2981 set dummy
$ac_cv_prog_CC
2983 if test $# != 0; then
2984 # We chose a different compiler from the bogus one.
2985 # However, it has the same basename, so the bogon will be chosen
2986 # first if we set CC to just the basename; use the full file name.
2988 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2994 if test -n "$CC"; then
2995 { echo "$as_me:$LINENO: result: $CC" >&5
2996 echo "${ECHO_T}$CC" >&6; }
2998 { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 for ac_prog
in cl.exe
3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC
="$CC" # Let the user override the test.
3018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir
=.
3023 for ac_exec_ext
in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 if test -n "$CC"; then
3037 { echo "$as_me:$LINENO: result: $CC" >&5
3038 echo "${ECHO_T}$CC" >&6; }
3040 { echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6; }
3045 test -n "$CC" && break
3048 if test -z "$CC"; then
3050 for ac_prog
in cl.exe
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy
$ac_prog; ac_word
=$2
3054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir
=.
3067 for ac_exec_ext
in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_ac_ct_CC
="$ac_prog"
3070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3080 if test -n "$ac_ct_CC"; then
3081 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3082 echo "${ECHO_T}$ac_ct_CC" >&6; }
3084 { echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6; }
3089 test -n "$ac_ct_CC" && break
3092 if test "x$ac_ct_CC" = x
; then
3095 case $cross_compiling:$ac_tool_warned in
3097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet. If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&5
3100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3101 whose name does not start with the host triplet. If you think this
3102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3103 ac_tool_warned
=yes ;;
3112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }
3118 # Provide some information about the compiler.
3119 echo "$as_me:$LINENO: checking for C compiler version" >&5
3120 ac_compiler
=`set X $ac_compile; echo $2`
3121 { (ac_try
="$ac_compiler --version >&5"
3123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compiler --version >&5") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }
3131 { (ac_try="$ac_compiler -v >&5"
3133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3134 *) ac_try_echo
=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compiler -v >&5") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }
3141 { (ac_try
="$ac_compiler -V >&5"
3143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compiler -V >&5") 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3152 cat >conftest.$ac_ext <<_ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3172 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3173 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3174 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3176 # List of possible output files, starting from the most likely.
3177 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3178 # only as a last resort. b.out is created by i960 compilers.
3179 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3181 # The IRIX 6 linker writes into existing files which may not be
3182 # executable, retaining their permissions. Remove them first so a
3183 # subsequent execution test works.
3185 for ac_file in $ac_files
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3194 if { (ac_try="$ac_link_default"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_link_default") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; then
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3209 for ac_file
in $ac_files ''
3211 test -f "$ac_file" ||
continue
3213 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3216 # We found the default executable, but exeext='' is most
3220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3222 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an `-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3234 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3240 { echo "$as_me:$LINENO: result: $ac_file" >&5
3241 echo "${ECHO_T}$ac_file" >&6; }
3242 if test -z "$ac_file"; then
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.
$ac_ext >&5
3246 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&2;}
3250 { (exit 77); exit 77; }; }
3253 ac_exeext
=$ac_cv_exeext
3255 # Check that the compiler produces executables we can run. If not, either
3256 # the compiler is broken, or we cross compile.
3257 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3258 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3259 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3260 # If not cross compiling, check that we can run a simple program.
3261 if test "$cross_compiling" != yes; then
3262 if { ac_try
='./$ac_file'
3263 { (case "(($ac_try" in
3264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_try") 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3274 if test "$cross_compiling" = maybe; then
3277 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details.
" >&5
3280 echo "$as_me: error
: cannot run C compiled programs.
3281 If you meant to cross compile
, use \
`--host'.
3282 See \`config.log
' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3287 { echo "$as_me:$LINENO: result: yes" >&5
3288 echo "${ECHO_T}yes" >&6; }
3290 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 # Check that the compiler produces executables we can run. If not, either
3293 # the compiler is broken, or we cross compile.
3294 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3295 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3296 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3297 echo "${ECHO_T}$cross_compiling" >&6; }
3299 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3300 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3301 if { (ac_try="$ac_link"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_link") 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; then
3311 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3312 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3313 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3315 for ac_file
in conftest.exe conftest conftest.
*; do
3316 test -f "$ac_file" ||
continue
3318 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3319 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details." >&5
3327 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }
3332 rm -f conftest
$ac_cv_exeext
3333 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3334 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3336 rm -f conftest.
$ac_ext
3337 EXEEXT
=$ac_cv_exeext
3339 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3340 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3341 if test "${ac_cv_objext+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 cat >conftest.
$ac_ext <<_ACEOF
3347 cat confdefs.h
>>conftest.
$ac_ext
3348 cat >>conftest.
$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3359 rm -f conftest.o conftest.obj
3360 if { (ac_try
="$ac_compile"
3362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; then
3370 for ac_file in conftest.o conftest.obj conftest.*; do
3371 test -f "$ac_file" || continue;
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3383 See \`config.log
' for more details." >&5
3384 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details.
" >&2;}
3386 { (exit 1); exit 1; }; }
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3391 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3392 echo "${ECHO_T}$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3395 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3396 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3397 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3398 echo $ECHO_N "(cached
) $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3418 rm -f conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3427 grep -v '^ *+' conftest.er1 >conftest.err
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3431 (exit $ac_status); } && {
3432 test -z "$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3434 } && test -s conftest.$ac_objext; then
3437 echo "$as_me: failed program was
:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3448 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3449 GCC=`test $ac_compiler_gnu = yes && echo yes`
3450 ac_test_CFLAGS=${CFLAGS+set}
3451 ac_save_CFLAGS=$CFLAGS
3452 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3453 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3454 if test "${ac_cv_prog_cc_g+set}" = set; then
3455 echo $ECHO_N "(cached
) $ECHO_C" >&6
3457 ac_save_c_werror_flag=$ac_c_werror_flag
3458 ac_c_werror_flag=yes
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3495 echo "$as_me: failed program was
:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3533 echo "$as_me: failed program was
:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3553 rm -f conftest.$ac_objext
3554 if { (ac_try="$ac_compile"
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3572 echo "$as_me: failed program was
:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3587 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3589 if test "$ac_test_CFLAGS" = set; then
3590 CFLAGS=$ac_save_CFLAGS
3591 elif test $ac_cv_prog_cc_g = yes; then
3592 if test "$GCC" = yes; then
3598 if test "$GCC" = yes; then
3604 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3605 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3606 if test "${ac_cv_prog_cc_c89+set}" = set; then
3607 echo $ECHO_N "(cached
) $ECHO_C" >&6
3609 ac_cv_prog_cc_c89=no
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3635 s = g (p, va_arg (v,int));
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3641 function prototypes and stuff, but not '\xHH' hex character constants.
3642 These don't provoke an error unfortunately, instead are silently treated
3643 as 'x'. The following induces an error, until -std is added to get
3644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3645 array size at least. It's necessary to write '\x00'==0 to get something
3646 that's true only with -std. */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650 inside strings and character constants. */
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671 CC="$ac_save_CC $ac_arg"
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3681 grep -v '^ *+' conftest.er1 >conftest.err
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3685 (exit $ac_status); } && {
3686 test -z "$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3688 } && test -s conftest.$ac_objext; then
3689 ac_cv_prog_cc_c89=$ac_arg
3691 echo "$as_me: failed program was
:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3697 rm -f core conftest.err conftest.$ac_objext
3698 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3700 rm -f conftest.$ac_ext
3705 case "x
$ac_cv_prog_cc_c89" in
3707 { echo "$as_me:$LINENO: result
: none needed
" >&5
3708 echo "${ECHO_T}none needed
" >&6; } ;;
3710 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3711 echo "${ECHO_T}unsupported
" >&6; } ;;
3713 CC="$CC $ac_cv_prog_cc_c89"
3714 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3715 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 # On Suns, sometimes $CPP names a directory.
3727 if test -n "$CPP" && test -d "$CPP"; then
3731 ## If not using gcc, and on Solaris, and no CPP specified, see if
3732 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3733 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3734 test x"$CPP" = x; then
3735 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3736 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3738 if test "${emacs_cv_sunpro_c+set}" = set; then
3739 echo $ECHO_N "(cached
) $ECHO_C" >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3759 rm -f conftest.$ac_objext conftest$ac_exeext
3760 if { (ac_try="$ac_link"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_link") 2>conftest.er1
3768 grep -v '^ *+' conftest.er1 >conftest.err
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest$ac_exeext &&
3776 $as_test_x conftest$ac_exeext; then
3777 emacs_cv_sunpro_c=yes
3779 echo "$as_me: failed program was
:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 emacs_cv_sunpro_c=no
3785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3786 conftest$ac_exeext conftest.$ac_ext
3789 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3790 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3792 if test x"$emacs_cv_sunpro_c" = xyes; then
3793 NON_GNU_CPP="$CC -E -Xs"
3797 #### Some systems specify a CPP to use unless we are using GCC.
3798 #### Now that we know whether we are using GCC, we can decide whether
3799 #### to use that one.
3800 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3805 #### Some systems specify a CC to use unless we are using GCC.
3806 #### Now that we know whether we are using GCC, we can decide whether
3807 #### to use that one.
3808 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3809 test x$cc_specified != xyes
3814 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3816 CC="$CC $GCC_TEST_OPTIONS"
3819 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3821 CC="$CC $NON_GCC_TEST_OPTIONS"
3825 cat >>confdefs.h <<\_ACEOF
3826 #define _GNU_SOURCE 1
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3836 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3837 # On Suns, sometimes $CPP names a directory.
3838 if test -n "$CPP" && test -d "$CPP"; then
3841 if test -z "$CPP"; then
3842 if test "${ac_cv_prog_CPP+set}" = set; then
3843 echo $ECHO_N "(cached
) $ECHO_C" >&6
3845 # Double quotes because CPP needs to be expanded
3846 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3849 for ac_c_preproc_warn_flag in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error
" is here to catch this case.
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3864 # include <limits.h>
3866 # include <assert.h>
3870 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1 >conftest.err
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3882 (exit $ac_status); } >/dev/null && {
3883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3888 echo "$as_me: failed program was
:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 # Broken: fails on valid input.
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3907 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3919 (exit $ac_status); } >/dev/null && {
3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3923 # Broken: success on invalid input.
3926 echo "$as_me: failed program was
:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Passes both tests.
3934 rm -f conftest.err conftest.$ac_ext
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.err conftest.$ac_ext
3939 if $ac_preproc_ok; then
3951 { echo "$as_me:$LINENO: result
: $CPP" >&5
3952 echo "${ECHO_T}$CPP" >&6; }
3954 for ac_c_preproc_warn_flag in '' yes
3956 # Use a header file that comes with gcc, so configuring glibc
3957 # with a fresh cross-compiler works.
3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 # <limits.h> exists even on freestanding compilers.
3960 # On the NeXT, cc -E runs the code through the compiler's parser,
3961 # not just through cpp. "Syntax error
" is here to catch this case.
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3969 # include <limits.h>
3971 # include <assert.h>
3975 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3983 grep -v '^ *+' conftest.er1 >conftest.err
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3987 (exit $ac_status); } >/dev/null && {
3988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3989 test ! -s conftest.err
3993 echo "$as_me: failed program was
:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 # Broken: fails on valid input.
4000 rm -f conftest.err conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether nonexistent headers
4003 # can be detected and how.
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <ac_nonexistent.h>
4012 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4020 grep -v '^ *+' conftest.er1 >conftest.err
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4024 (exit $ac_status); } >/dev/null && {
4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4028 # Broken: success on invalid input.
4031 echo "$as_me: failed program was
:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 # Passes both tests.
4039 rm -f conftest.err conftest.$ac_ext
4042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043 rm -f conftest.err conftest.$ac_ext
4044 if $ac_preproc_ok; then
4047 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4048 See \
`config.log' for more details." >&5
4049 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log
' for more details." >&2;}
4051 { (exit 1); exit 1; }; }
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4057 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4062 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4063 if test "${ac_cv_path_GREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 # Extract the first word of "grep ggrep" to use in msg output
4067 if test -z "$GREP"; then
4068 set dummy grep ggrep; ac_prog_name=$2
4069 if test "${ac_cv_path_GREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_path_GREP_found=false
4073 # Loop through the user's path and
test for each of PROGNAME-LIST
4074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4075 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4078 test -z "$as_dir" && as_dir
=.
4079 for ac_prog
in grep ggrep
; do
4080 for ac_exec_ext
in '' $ac_executable_extensions; do
4081 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4083 # Check for GNU ac_path_GREP and select it if it is found.
4084 # Check for GNU $ac_path_GREP
4085 case `"$ac_path_GREP" --version 2>&1` in
4087 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4090 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
4096 echo 'GREP' >> "conftest.nl"
4097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4098 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4099 ac_count
=`expr $ac_count + 1`
4100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_GREP
="$ac_path_GREP"
4103 ac_path_GREP_max
=$ac_count
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4108 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4112 $ac_path_GREP_found && break 3
4122 GREP
="$ac_cv_path_GREP"
4123 if test -z "$GREP"; then
4124 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126 { (exit 1); exit 1; }; }
4130 ac_cv_path_GREP
=$GREP
4135 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4136 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4137 GREP
="$ac_cv_path_GREP"
4140 { echo "$as_me:$LINENO: checking for egrep" >&5
4141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4142 if test "${ac_cv_path_EGREP+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4146 then ac_cv_path_EGREP
="$GREP -E"
4148 # Extract the first word of "egrep" to use in msg output
4149 if test -z "$EGREP"; then
4150 set dummy
egrep; ac_prog_name
=$2
4151 if test "${ac_cv_path_EGREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 ac_path_EGREP_found
=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4157 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_prog
in egrep; do
4162 for ac_exec_ext
in '' $ac_executable_extensions; do
4163 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4164 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4165 # Check for GNU ac_path_EGREP and select it if it is found.
4166 # Check for GNU $ac_path_EGREP
4167 case `"$ac_path_EGREP" --version 2>&1` in
4169 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4172 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 echo 'EGREP' >> "conftest.nl"
4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4180 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4181 ac_count
=`expr $ac_count + 1`
4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP
="$ac_path_EGREP"
4185 ac_path_EGREP_max
=$ac_count
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4190 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4194 $ac_path_EGREP_found && break 3
4204 EGREP
="$ac_cv_path_EGREP"
4205 if test -z "$EGREP"; then
4206 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4207 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4208 { (exit 1); exit 1; }; }
4212 ac_cv_path_EGREP
=$EGREP
4218 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4219 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4220 EGREP
="$ac_cv_path_EGREP"
4224 { echo "$as_me:$LINENO: checking for AIX" >&5
4225 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4226 cat >conftest.
$ac_ext <<_ACEOF
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "yes" >/dev
/null
2>&1; then
4239 { echo "$as_me:$LINENO: result: yes" >&5
4240 echo "${ECHO_T}yes" >&6; }
4241 cat >>confdefs.h
<<\_ACEOF
4242 #define _ALL_SOURCE 1
4246 { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4252 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 cat >conftest.
$ac_ext <<_ACEOF
4260 cat confdefs.h
>>conftest.
$ac_ext
4261 cat >>conftest.
$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4276 rm -f conftest.
$ac_objext
4277 if { (ac_try
="$ac_compile"
4279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && {
4290 test -z "$ac_c_werror_flag" ||
4291 test ! -s conftest.err
4292 } && test -s conftest.$ac_objext; then
4293 ac_cv_header_stdc=yes
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_cv_header_stdc=no
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 if test $ac_cv_header_stdc = yes; then
4304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4315 $EGREP "memchr" >/dev/null 2>&1; then
4318 ac_cv_header_stdc=no
4324 if test $ac_cv_header_stdc = yes; then
4325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4326 cat >conftest.$ac_ext <<_ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336 $EGREP "free" >/dev/null 2>&1; then
4339 ac_cv_header_stdc=no
4345 if test $ac_cv_header_stdc = yes; then
4346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4347 if test "$cross_compiling" = yes; then
4350 cat >conftest.$ac_ext <<_ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4358 #if ((' ' & 0x0FF) == 0x020)
4359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4362 # define ISLOWER(c) \
4363 (('a' <= (c) && (c) <= 'i') \
4364 || ('j' <= (c) && (c) <= 'r') \
4365 || ('s' <= (c) && (c) <= 'z'))
4366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4374 for (i = 0; i < 256; i++)
4375 if (XOR (islower (i), ISLOWER (i))
4376 || toupper (i) != TOUPPER (i))
4381 rm -f conftest$ac_exeext
4382 if { (ac_try="$ac_link"
4384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4385 *) ac_try_echo
=$ac_try;;
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_link") 2>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4392 { (case "(($ac_try" in
4393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4403 echo "$as_me: program exited with status $ac_status" >&5
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4408 ac_cv_header_stdc=no
4410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4416 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4417 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4418 if test $ac_cv_header_stdc = yes; then
4420 cat >>confdefs.h <<\_ACEOF
4421 #define STDC_HEADERS 1
4426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4436 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4437 inttypes.h stdint.h unistd.h
4439 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4453 #include <$ac_header>
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4459 *) ac_try_echo
=$ac_try;;
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4464 grep -v '^ *+' conftest.er1
>conftest.err
4466 cat conftest.err
>&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && {
4469 test -z "$ac_c_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest.
$ac_objext; then
4472 eval "$as_ac_Header=yes"
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.
$ac_ext >&5
4477 eval "$as_ac_Header=no"
4480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4482 ac_res
=`eval echo '${'$as_ac_Header'}'`
4483 { echo "$as_me:$LINENO: result: $ac_res" >&5
4484 echo "${ECHO_T}$ac_res" >&6; }
4485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4486 cat >>confdefs.h
<<_ACEOF
4487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4495 if test "${ac_cv_header_minix_config_h+set}" = set; then
4496 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4497 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4502 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4504 # Is the header compilable?
4505 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4506 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4507 cat >conftest.
$ac_ext <<_ACEOF
4510 cat confdefs.h
>>conftest.
$ac_ext
4511 cat >>conftest.
$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4514 #include <minix/config.h>
4516 rm -f conftest.
$ac_objext
4517 if { (ac_try
="$ac_compile"
4519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_compile") 2>conftest.er1
4525 grep -v '^ *+' conftest.er1 >conftest.err
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && {
4530 test -z "$ac_c_werror_flag" ||
4531 test ! -s conftest.err
4532 } && test -s conftest.$ac_objext; then
4533 ac_header_compiler=yes
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_header_compiler=no
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4543 echo "${ECHO_T}$ac_header_compiler" >&6; }
4545 # Is the header present?
4546 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4547 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 #include <minix/config.h>
4556 if { (ac_try="$ac_cpp conftest.$ac_ext"
4558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4559 *) ac_try_echo
=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1
>conftest.err
4566 cat conftest.err
>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev
/null
&& {
4569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4572 ac_header_preproc
=yes
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4577 ac_header_preproc
=no
4580 rm -f conftest.err conftest.
$ac_ext
4581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4582 echo "${ECHO_T}$ac_header_preproc" >&6; }
4584 # So? What about this header?
4585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4587 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4588 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4589 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4590 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4591 ac_header_preproc
=yes
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4595 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4597 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4599 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4601 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4603 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4605 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4609 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4610 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4611 if test "${ac_cv_header_minix_config_h+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 ac_cv_header_minix_config_h
=$ac_header_preproc
4616 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4617 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4620 if test $ac_cv_header_minix_config_h = yes; then
4627 if test "$MINIX" = yes; then
4629 cat >>confdefs.h
<<\_ACEOF
4630 #define _POSIX_SOURCE 1
4634 cat >>confdefs.h
<<\_ACEOF
4635 #define _POSIX_1_SOURCE 2
4639 cat >>confdefs.h
<<\_ACEOF
4655 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4656 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4657 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 cat >conftest.
$ac_ext <<_ACEOF
4663 cat confdefs.h
>>conftest.
$ac_ext
4664 cat >>conftest.
$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4667 # define __EXTENSIONS__ 1
4668 $ac_includes_default
4677 rm -f conftest.
$ac_objext
4678 if { (ac_try
="$ac_compile"
4680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && {
4691 test -z "$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 } && test -s conftest.$ac_objext; then
4694 ac_cv_safe_to_define___extensions__=yes
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_cv_safe_to_define___extensions__=no
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4705 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4706 test $ac_cv_safe_to_define___extensions__ = yes &&
4707 cat >>confdefs.h <<\_ACEOF
4708 #define __EXTENSIONS__ 1
4711 cat >>confdefs.h <<\_ACEOF
4712 #define _POSIX_PTHREAD_SEMANTICS 1
4715 cat >>confdefs.h <<\_ACEOF
4716 #define _TANDEM_SOURCE 1
4721 ### Use -Wno-pointer-sign if the compiler supports it
4722 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4723 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4724 SAVE_CFLAGS="$CFLAGS"
4725 CFLAGS="$CFLAGS -Wno-pointer-sign"
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4745 *) ac_try_echo
=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_compile") 2>conftest.er1
4750 grep -v '^ *+' conftest.er1
>conftest.err
4752 cat conftest.err
>&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && {
4755 test -z "$ac_c_werror_flag" ||
4756 test ! -s conftest.err
4757 } && test -s conftest.
$ac_objext; then
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.
$ac_ext >&5
4766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 if test $has_option = yes; then
4768 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4770 { echo "$as_me:$LINENO: result: $has_option" >&5
4771 echo "${ECHO_T}$has_option" >&6; }
4772 CFLAGS
="$SAVE_CFLAGS"
4776 #### Some other nice autoconf tests.
4778 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4779 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4781 if test "$LN_S" = "ln -s"; then
4782 { echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6; }
4785 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4786 echo "${ECHO_T}no, using $LN_S" >&6; }
4790 ac_cpp
='$CPP $CPPFLAGS'
4791 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4794 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4795 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4796 # On Suns, sometimes $CPP names a directory.
4797 if test -n "$CPP" && test -d "$CPP"; then
4800 if test -z "$CPP"; then
4801 if test "${ac_cv_prog_CPP+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 # Double quotes because CPP needs to be expanded
4805 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4808 for ac_c_preproc_warn_flag
in '' yes
4810 # Use a header file that comes with gcc, so configuring glibc
4811 # with a fresh cross-compiler works.
4812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4813 # <limits.h> exists even on freestanding compilers.
4814 # On the NeXT, cc -E runs the code through the compiler's parser,
4815 # not just through cpp. "Syntax error" is here to catch this case.
4816 cat >conftest.
$ac_ext <<_ACEOF
4819 cat confdefs.h
>>conftest.
$ac_ext
4820 cat >>conftest.
$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4823 # include <limits.h>
4825 # include <assert.h>
4829 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837 grep -v '^ *+' conftest.er1 >conftest.err
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } >/dev/null && {
4842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 # Broken: fails on valid input.
4854 rm -f conftest.err conftest.$ac_ext
4856 # OK, works on sane cases. Now check whether nonexistent headers
4857 # can be detected and how.
4858 cat >conftest.$ac_ext <<_ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 #include <ac_nonexistent.h>
4866 if { (ac_try="$ac_cpp conftest.$ac_ext"
4868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4869 *) ac_try_echo
=$ac_try;;
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874 grep -v '^ *+' conftest.er1
>conftest.err
4876 cat conftest.err
>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } >/dev
/null
&& {
4879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4882 # Broken: success on invalid input.
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.
$ac_ext >&5
4888 # Passes both tests.
4893 rm -f conftest.err conftest.
$ac_ext
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.
$ac_ext
4898 if $ac_preproc_ok; then
4910 { echo "$as_me:$LINENO: result: $CPP" >&5
4911 echo "${ECHO_T}$CPP" >&6; }
4913 for ac_c_preproc_warn_flag
in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.
$ac_ext <<_ACEOF
4924 cat confdefs.h
>>conftest.
$ac_ext
4925 cat >>conftest.
$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4928 # include <limits.h>
4930 # include <assert.h>
4934 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 grep -v '^ *+' conftest.er1 >conftest.err
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null && {
4947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 # Broken: fails on valid input.
4959 rm -f conftest.err conftest.$ac_ext
4961 # OK, works on sane cases. Now check whether nonexistent headers
4962 # can be detected and how.
4963 cat >conftest.$ac_ext <<_ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4971 if { (ac_try="$ac_cpp conftest.$ac_ext"
4973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4974 *) ac_try_echo
=$ac_try;;
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4979 grep -v '^ *+' conftest.er1
>conftest.err
4981 cat conftest.err
>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev
/null
&& {
4984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4987 # Broken: success on invalid input.
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.
$ac_ext >&5
4993 # Passes both tests.
4998 rm -f conftest.err conftest.
$ac_ext
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.
$ac_ext
5003 if $ac_preproc_ok; then
5006 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5009 See \`config.log' for more details." >&2;}
5010 { (exit 1); exit 1; }; }
5014 ac_cpp
='$CPP $CPPFLAGS'
5015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5019 # Find a good install program. We prefer a C program (faster),
5020 # so one script is as good as another. But avoid the broken or
5021 # incompatible versions:
5022 # SysV /etc/install, /usr/sbin/install
5023 # SunOS /usr/etc/install
5024 # IRIX /sbin/install
5026 # AmigaOS /C/install, which installs bootblocks on floppy discs
5027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5030 # OS/2's system install, which has a completely different semantic
5031 # ./install, which can be erroneously created by make from ./install.sh.
5032 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5033 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5034 if test -z "$INSTALL"; then
5035 if test "${ac_cv_path_install+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 # Account for people who put trailing slashes in PATH elements.
5045 .
/ | .
// |
/cC
/* | \
5046 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5047 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5050 # OSF1 and SCO ODT 3.0 have their own names for install.
5051 # Don't use installbsd from OSF since it installs stuff as root
5053 for ac_prog
in ginstall scoinst
install; do
5054 for ac_exec_ext
in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5056 if test $ac_prog = install &&
5057 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5058 # AIX install. It has an incompatible calling convention.
5060 elif test $ac_prog = install &&
5061 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5062 # program-specific install script used by HP pwplus--don't use.
5065 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5078 if test "${ac_cv_path_install+set}" = set; then
5079 INSTALL
=$ac_cv_path_install
5081 # As a last resort, use the slow shell script. Don't cache a
5082 # value for INSTALL within a source directory, because that will
5083 # break other packages using the cache if that directory is
5084 # removed, or if the value is a relative name.
5085 INSTALL
=$ac_install_sh
5088 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5089 echo "${ECHO_T}$INSTALL" >&6; }
5091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5092 # It thinks the first close brace ends the variable substitution.
5093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5097 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5099 if test "x$RANLIB" = x
; then
5100 if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5102 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_prog_RANLIB+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 if test -n "$RANLIB"; then
5109 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir
=.
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 RANLIB
=$ac_cv_prog_RANLIB
5129 if test -n "$RANLIB"; then
5130 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5131 echo "${ECHO_T}$RANLIB" >&6; }
5133 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5139 if test -z "$ac_cv_prog_RANLIB"; then
5140 ac_ct_RANLIB
=$RANLIB
5141 # Extract the first word of "ranlib", so it can be a program name with args.
5142 set dummy ranlib
; ac_word
=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if test -n "$ac_ct_RANLIB"; then
5149 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir
=.
5156 for ac_exec_ext
in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5169 if test -n "$ac_ct_RANLIB"; then
5170 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5171 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5173 { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5177 if test "x$ac_ct_RANLIB" = x
; then
5180 case $cross_compiling:$ac_tool_warned in
5182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet. If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&5
5185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet. If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188 ac_tool_warned
=yes ;;
5190 RANLIB
=$ac_ct_RANLIB
5193 RANLIB
="$ac_cv_prog_RANLIB"
5197 # Extract the first word of "install-info", so it can be a program name with args.
5198 set dummy install-info
; ac_word
=$2
5199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5201 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 case $INSTALL_INFO in
5206 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5213 test -z "$as_dir" && as_dir
=.
5214 for ac_exec_ext
in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5228 if test -n "$INSTALL_INFO"; then
5229 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5230 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5232 { echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6; }
5237 # Extract the first word of "install-info", so it can be a program name with args.
5238 set dummy install-info
; ac_word
=$2
5239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5241 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 case $INSTALL_INFO in
5246 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5250 for as_dir
in /usr
/sbin
5253 test -z "$as_dir" && as_dir
=.
5254 for ac_exec_ext
in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5268 if test -n "$INSTALL_INFO"; then
5269 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5270 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5272 { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5277 # Extract the first word of "install-info", so it can be a program name with args.
5278 set dummy install-info
; 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_INSTALL_INFO+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 case $INSTALL_INFO in
5286 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # 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_INSTALL_INFO
="$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_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5308 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5309 if test -n "$INSTALL_INFO"; then
5310 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5311 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5318 # Extract the first word of "gzip", so it can be a program name with args.
5319 set dummy
gzip; ac_word
=$2
5320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir
=.
5335 for ac_exec_ext
in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5349 if test -n "$GZIP_PROG"; then
5350 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5351 echo "${ECHO_T}$GZIP_PROG" >&6; }
5353 { echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6; }
5360 ## Need makeinfo >= 4.6 (?) to build the manuals.
5361 # Extract the first word of "makeinfo", so it can be a program name with args.
5362 set dummy makeinfo
; ac_word
=$2
5363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5365 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5377 test -z "$as_dir" && as_dir
=.
5378 for ac_exec_ext
in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5392 MAKEINFO
=$ac_cv_path_MAKEINFO
5393 if test -n "$MAKEINFO"; then
5394 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5395 echo "${ECHO_T}$MAKEINFO" >&6; }
5397 { echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6; }
5402 if test "$MAKEINFO" != "no" && \
5403 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
5407 ## Makeinfo is unusual. For a released Emacs, the manuals are
5408 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5409 ## therefore in the category of "special tools" not normally required, which
5410 ## configure does not have to check for (eg autoconf itself).
5411 ## In a CVS checkout on the other hand, the manuals are not included.
5412 ## So makeinfo is a requirement to build from CVS, and configure
5413 ## should test for it as it does for any other build requirement.
5414 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5415 ## with pre-built manuals, from a CVS checkout.
5416 if test "$MAKEINFO" = "no"; then
5417 if test "x${with_makeinfo}" = "xno"; then
5419 elif ! test -e $srcdir/info
/emacs
; then
5420 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5421 source tree does not seem to have pre-built manuals in the \`info' directory.
5422 Either install a suitable version of makeinfo, or re-run configure
5423 with the \`--without-makeinfo' option to build without the manuals. " >&5
5424 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5425 source tree does not seem to have pre-built manuals in the \`info' directory.
5426 Either install a suitable version of makeinfo, or re-run configure
5427 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5428 { (exit 1); exit 1; }; }
5433 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5435 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5438 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5440 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5444 late_LDFLAGS
=$LDFLAGS
5445 if test "$GCC" = yes; then
5446 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5448 LDFLAGS
="$LDFLAGS -znocombreloc"
5451 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5452 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5453 cat >conftest.
$ac_ext <<_ACEOF
5456 rm -f conftest.
$ac_objext conftest
$ac_exeext
5457 if { (ac_try
="$ac_link"
5459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_link") 2>conftest.er1
5465 grep -v '^ *+' conftest.er1 >conftest.err
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_c_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest$ac_exeext &&
5473 $as_test_x conftest$ac_exeext; then
5474 { echo "$as_me:$LINENO: result: yes" >&5
5475 echo "${ECHO_T}yes" >&6; }
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 LDFLAGS=$late_LDFLAGS
5481 { echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6; }
5485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5486 conftest$ac_exeext conftest.$ac_ext
5488 #### Extract some information from the operating system and machine files.
5490 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5491 - which libraries the lib-src programs will want, and
5492 - whether the GNU malloc routines are usable..." >&5
5493 echo "$as_me: checking the machine- and system-dependent files to find out
5494 - which libraries the lib-src programs will want, and
5495 - whether the GNU malloc routines are usable..." >&6;}
5497 ### First figure out CFLAGS (which we use for running the compiler here)
5498 ### and REAL_CFLAGS (which we use for real compilation).
5499 ### The two are the same except on a few systems, where they are made
5500 ### different to work around various lossages. For example,
5501 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5502 ### as implying static linking.
5504 ### If the CFLAGS env var is specified, we use that value
5505 ### instead of the default.
5507 ### It's not important that this name contain the PID; you can't run
5508 ### two configures in the same directory and have anything work
5510 tempcname="conftest.c"
5513 #include "'${srcdir}'/src/'${opsysfile}'"
5514 #include "'${srcdir}'/src/'${machfile}'"
5515 #ifndef LIBS_MACHINE
5516 #define LIBS_MACHINE
5521 #ifndef C_SWITCH_SYSTEM
5522 #define C_SWITCH_SYSTEM
5524 #ifndef C_SWITCH_MACHINE
5525 #define C_SWITCH_MACHINE
5527 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5528 configure___ c_switch_system=C_SWITCH_SYSTEM
5529 configure___ c_switch_machine=C_SWITCH_MACHINE
5532 #define LIB_X11_LIB -lX11
5535 #ifndef LIBX11_SYSTEM
5536 #define LIBX11_SYSTEM
5538 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5541 configure___ unexec=UNEXEC
5543 configure___ unexec=unexec.o
5546 #ifdef SYSTEM_MALLOC
5547 configure___ system_malloc=yes
5549 configure___ system_malloc=no
5552 #ifdef USE_MMAP_FOR_BUFFERS
5553 configure___ use_mmap_for_buffers=yes
5555 configure___ use_mmap_for_buffers=no
5558 #ifndef C_DEBUG_SWITCH
5559 #define C_DEBUG_SWITCH -g
5562 #ifndef C_OPTIMIZE_SWITCH
5564 #define C_OPTIMIZE_SWITCH -O2
5566 #define C_OPTIMIZE_SWITCH -O
5570 #ifndef C_WARNINGS_SWITCH
5571 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5574 #ifndef LD_SWITCH_MACHINE
5575 #define LD_SWITCH_MACHINE
5578 #ifndef LD_SWITCH_SYSTEM
5579 #define LD_SWITCH_SYSTEM
5582 #ifndef LD_SWITCH_X_SITE_AUX
5583 #define LD_SWITCH_X_SITE_AUX
5586 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5587 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5589 #ifdef THIS_IS_CONFIGURE
5591 /* Get the CFLAGS for tests in configure. */
5593 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5595 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5598 #else /* not THIS_IS_CONFIGURE */
5600 /* Get the CFLAGS for real compilation. */
5602 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5604 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5607 #endif /* not THIS_IS_CONFIGURE */
5610 # The value of CPP is a quoted variable reference, so we need to do this
5611 # to get its actual value...
5612 CPP=`eval "echo $CPP"`
5613 eval `${CPP} -Isrc ${tempcname} \
5614 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5615 if test "x$SPECIFIED_CFLAGS" = x; then
5616 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5617 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5619 REAL_CFLAGS="$CFLAGS"
5623 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5625 ### Make sure subsequent tests use flags consistent with the build flags.
5627 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5628 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5630 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5635 # Check whether --enable-largefile was given.
5636 if test "${enable_largefile+set}" = set; then
5637 enableval=$enable_largefile;
5640 if test "$enable_largefile" != no; then
5642 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5643 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5644 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_cv_sys_largefile_CC=no
5648 if test "$GCC" != yes; then
5651 # IRIX 6.2 and later do not support large files by default,
5652 # so use the C compiler's -n32 option if that helps.
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 /* Check that off_t can represent 2**63 - 1 correctly.
5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5662 since some C++ compilers masquerading as C compilers
5663 incorrectly reject 9223372036854775807. */
5664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5666 && LARGE_OFF_T % 2147483647 == 1)
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5680 *) ac_try_echo
=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.
$ac_objext; then
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.
$ac_ext >&5
5701 rm -f core conftest.err conftest.
$ac_objext
5703 rm -f conftest.
$ac_objext
5704 if { (ac_try
="$ac_compile"
5706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_compile") 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && {
5717 test -z "$ac_c_werror_flag" ||
5718 test ! -s conftest.err
5719 } && test -s conftest.$ac_objext; then
5720 ac_cv_sys_largefile_CC=' -n32'; break
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5728 rm -f core conftest.err conftest.$ac_objext
5732 rm -f conftest.$ac_ext
5735 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5736 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5737 if test "$ac_cv_sys_largefile_CC" != no; then
5738 CC=$CC$ac_cv_sys_largefile_CC
5741 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5742 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5770 rm -f conftest.$ac_objext
5771 if { (ac_try="$ac_compile"
5773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5774 *) ac_try_echo
=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compile") 2>conftest.er1
5779 grep -v '^ *+' conftest.er1
>conftest.err
5781 cat conftest.err
>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && {
5784 test -z "$ac_c_werror_flag" ||
5785 test ! -s conftest.err
5786 } && test -s conftest.
$ac_objext; then
5787 ac_cv_sys_file_offset_bits
=no
; break
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.
$ac_ext >&5
5795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 cat >conftest.
$ac_ext <<_ACEOF
5799 cat confdefs.h
>>conftest.
$ac_ext
5800 cat >>conftest.
$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #define _FILE_OFFSET_BITS 64
5803 #include <sys/types.h>
5804 /* Check that off_t can represent 2**63 - 1 correctly.
5805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5806 since some C++ compilers masquerading as C compilers
5807 incorrectly reject 9223372036854775807. */
5808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5810 && LARGE_OFF_T % 2147483647 == 1)
5820 rm -f conftest.
$ac_objext
5821 if { (ac_try
="$ac_compile"
5823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest.$ac_objext; then
5837 ac_cv_sys_file_offset_bits=64; break
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cv_sys_file_offset_bits=unknown
5850 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5851 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5852 case $ac_cv_sys_file_offset_bits in #(
5855 cat >>confdefs.h <<_ACEOF
5856 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5861 if test $ac_cv_sys_file_offset_bits = unknown; then
5862 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5863 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5864 if test "${ac_cv_sys_large_files+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #include <sys/types.h>
5875 /* Check that off_t can represent 2**63 - 1 correctly.
5876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5877 since some C++ compilers masquerading as C compilers
5878 incorrectly reject 9223372036854775807. */
5879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5881 && LARGE_OFF_T % 2147483647 == 1)
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5895 *) ac_try_echo
=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1
>conftest.err
5902 cat conftest.err
>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.
$ac_objext; then
5908 ac_cv_sys_large_files
=no
; break
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.
$ac_ext >&5
5916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5917 cat >conftest.
$ac_ext <<_ACEOF
5920 cat confdefs.h
>>conftest.
$ac_ext
5921 cat >>conftest.
$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #define _LARGE_FILES 1
5924 #include <sys/types.h>
5925 /* Check that off_t can represent 2**63 - 1 correctly.
5926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5927 since some C++ compilers masquerading as C compilers
5928 incorrectly reject 9223372036854775807. */
5929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5931 && LARGE_OFF_T % 2147483647 == 1)
5941 rm -f conftest.
$ac_objext
5942 if { (ac_try
="$ac_compile"
5944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
5958 ac_cv_sys_large_files=1; break
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 ac_cv_sys_large_files=unknown
5971 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5972 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5973 case $ac_cv_sys_large_files in #(
5976 cat >>confdefs.h <<_ACEOF
5977 #define _LARGE_FILES $ac_cv_sys_large_files
5987 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5988 ### be located in either /usr/lib64 or /usr/lib.
5989 ### In some rare cases, /usr/lib64 exists but does not contain the
5990 ### relevant files (bug#1287). Hence test for crtn.o.
5991 case "${canonical}" in
5992 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5993 if test -e /usr/lib64/crtn.o; then
5995 cat >>confdefs.h <<\_ACEOF
5996 #define HAVE_LIB64_DIR 1
6005 if test "${with_sound}" != "no"; then
6006 # Sound support for GNU/Linux and the free BSDs.
6010 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6012 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 ac_res=`eval echo '${'$as_ac_Header'}'`
6020 { echo "$as_me:$LINENO: result: $ac_res" >&5
6021 echo "${ECHO_T}$ac_res" >&6; }
6023 # Is the header compilable?
6024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 $ac_includes_default
6033 #include <$ac_header>
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6039 *) ac_try_echo
=$ac_try;;
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6044 grep -v '^ *+' conftest.er1
>conftest.err
6046 cat conftest.err
>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.
$ac_objext; then
6052 ac_header_compiler
=yes
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.
$ac_ext >&5
6057 ac_header_compiler
=no
6060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6062 echo "${ECHO_T}$ac_header_compiler" >&6; }
6064 # Is the header present?
6065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6067 cat >conftest.
$ac_ext <<_ACEOF
6070 cat confdefs.h
>>conftest.
$ac_ext
6071 cat >>conftest.
$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <$ac_header>
6075 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } >/dev/null && {
6088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6091 ac_header_preproc=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_header_preproc=no
6099 rm -f conftest.err conftest.$ac_ext
6100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6101 echo "${ECHO_T}$ac_header_preproc" >&6; }
6103 # So? What about this header?
6104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6110 ac_header_preproc=yes
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 eval "$as_ac_Header=\$ac_header_preproc"
6135 ac_res=`eval echo '${'$as_ac_Header'}'`
6136 { echo "$as_me:$LINENO: result: $ac_res" >&5
6137 echo "${ECHO_T}$ac_res" >&6; }
6140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6141 cat >>confdefs.h <<_ACEOF
6142 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6149 # Emulation library used on NetBSD.
6150 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6151 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6152 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lossaudio $LIBS"
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6164 /* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
6174 return _oss_ioctl ();
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (ac_try="$ac_link"
6182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6183 *) ac_try_echo
=$ac_try;;
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_link") 2>conftest.er1
6188 grep -v '^ *+' conftest.er1
>conftest.err
6190 cat conftest.err
>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest
$ac_exeext &&
6196 $as_test_x conftest
$ac_exeext; then
6197 ac_cv_lib_ossaudio__oss_ioctl
=yes
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.
$ac_ext >&5
6202 ac_cv_lib_ossaudio__oss_ioctl
=no
6205 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6206 conftest
$ac_exeext conftest.
$ac_ext
6207 LIBS
=$ac_check_lib_save_LIBS
6209 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6210 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6211 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6220 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6224 # Extract the first word of "pkg-config", so it can be a program name with args.
6225 set dummy pkg-config
; ac_word
=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir
=.
6241 for ac_exec_ext
in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6255 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6256 if test -n "$PKG_CONFIG"; then
6257 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6258 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6266 if test "$PKG_CONFIG" = "no" ; then
6269 PKG_CONFIG_MIN_VERSION
=0.9.0
6270 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6271 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6272 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6274 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6275 { echo "$as_me:$LINENO: result: yes" >&5
6276 echo "${ECHO_T}yes" >&6; }
6279 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6280 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6281 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6282 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6283 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6285 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6286 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6287 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6288 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6289 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6291 { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6295 ## If we have a custom action on failure, don't print errors, but
6296 ## do set a variable so people can do so.
6297 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6309 if test $succeeded = yes; then
6315 if test $HAVE_ALSA = yes; then
6316 SAVE_CFLAGS
="$CFLAGS"
6317 SAVE_LDFLAGS
="$LDFLAGS"
6318 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6319 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6320 cat >conftest.
$ac_ext <<_ACEOF
6323 cat confdefs.h
>>conftest.
$ac_ext
6324 cat >>conftest.
$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <asoundlib.h>
6330 snd_lib_error_set_handler (0);
6335 rm -f conftest.
$ac_objext
6336 if { (ac_try
="$ac_compile"
6338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6344 grep -v '^ *+' conftest.er1 >conftest.err
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 emacs_alsa_normal=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 emacs_alsa_normal=no
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 if test "$emacs_alsa_normal" != yes; then
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <alsa/asoundlib.h>
6372 snd_lib_error_set_handler (0);
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6381 *) ac_try_echo
=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6386 grep -v '^ *+' conftest.er1
>conftest.err
6388 cat conftest.err
>&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.
$ac_objext; then
6394 emacs_alsa_subdir
=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.
$ac_ext >&5
6399 emacs_alsa_subdir
=no
6402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6403 if test "$emacs_alsa_subdir" != yes; then
6404 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6405 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6406 { (exit 1); exit 1; }; }
6408 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6411 CFLAGS
="$SAVE_CFLAGS"
6412 LDFLAGS
="$SAVE_LDFLAGS"
6413 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6414 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6416 cat >>confdefs.h
<<\_ACEOF
6449 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6450 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6451 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6452 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6455 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6459 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_res
=`eval echo '${'$as_ac_Header'}'`
6463 { echo "$as_me:$LINENO: result: $ac_res" >&5
6464 echo "${ECHO_T}$ac_res" >&6; }
6466 # Is the header compilable?
6467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6469 cat >conftest.
$ac_ext <<_ACEOF
6472 cat confdefs.h
>>conftest.
$ac_ext
6473 cat >>conftest.
$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 #include <$ac_header>
6478 rm -f conftest.
$ac_objext
6479 if { (ac_try
="$ac_compile"
6481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 ac_header_compiler=yes
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_header_compiler=no
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6505 echo "${ECHO_T}$ac_header_compiler" >&6; }
6507 # Is the header present?
6508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6510 cat >conftest.$ac_ext <<_ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <$ac_header>
6518 if { (ac_try="$ac_cpp conftest.$ac_ext"
6520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6521 *) ac_try_echo
=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1
>conftest.err
6528 cat conftest.err
>&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev
/null
&& {
6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6534 ac_header_preproc
=yes
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.
$ac_ext >&5
6539 ac_header_preproc
=no
6542 rm -f conftest.err conftest.
$ac_ext
6543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6544 echo "${ECHO_T}$ac_header_preproc" >&6; }
6546 # So? What about this header?
6547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6553 ac_header_preproc
=yes
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 eval "$as_ac_Header=\$ac_header_preproc"
6578 ac_res
=`eval echo '${'$as_ac_Header'}'`
6579 { echo "$as_me:$LINENO: result: $ac_res" >&5
6580 echo "${ECHO_T}$ac_res" >&6; }
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h
<<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6593 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6594 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6595 cat >conftest.
$ac_ext <<_ACEOF
6598 cat confdefs.h
>>conftest.
$ac_ext
6599 cat >>conftest.
$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <sys/personality.h>
6605 personality (PER_LINUX32)
6610 rm -f conftest.
$ac_objext
6611 if { (ac_try
="$ac_compile"
6613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_compile") 2>conftest.er1
6619 grep -v '^ *+' conftest.er1 >conftest.err
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && {
6624 test -z "$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 } && test -s conftest.$ac_objext; then
6627 emacs_cv_personality_linux32=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 emacs_cv_personality_linux32=no
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6637 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6639 if test $emacs_cv_personality_linux32 = yes; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_PERSONALITY_LINUX32 1
6648 for ac_header in term.h
6650 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 cat >conftest.$ac_ext <<_ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <$ac_header>
6664 if { (ac_try="$ac_cpp conftest.$ac_ext"
6666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6667 *) ac_try_echo
=$ac_try;;
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6672 grep -v '^ *+' conftest.er1
>conftest.err
6674 cat conftest.err
>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } >/dev
/null
&& {
6677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6680 eval "$as_ac_Header=yes"
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.
$ac_ext >&5
6685 eval "$as_ac_Header=no"
6688 rm -f conftest.err conftest.
$ac_ext
6690 ac_res
=`eval echo '${'$as_ac_Header'}'`
6691 { echo "$as_me:$LINENO: result: $ac_res" >&5
6692 echo "${ECHO_T}$ac_res" >&6; }
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694 cat >>confdefs.h
<<_ACEOF
6695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6702 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6703 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6704 if test "${ac_cv_header_stdc+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.
$ac_ext <<_ACEOF
6710 cat confdefs.h
>>conftest.
$ac_ext
6711 cat >>conftest.
$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6726 rm -f conftest.
$ac_objext
6727 if { (ac_try
="$ac_compile"
6729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6735 grep -v '^ *+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 ac_cv_header_stdc=yes
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_cv_header_stdc=no
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 if test $ac_cv_header_stdc = yes; then
6754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6755 cat >conftest.$ac_ext <<_ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765 $EGREP "memchr" >/dev/null 2>&1; then
6768 ac_cv_header_stdc=no
6774 if test $ac_cv_header_stdc = yes; then
6775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6786 $EGREP "free" >/dev/null 2>&1; then
6789 ac_cv_header_stdc=no
6795 if test $ac_cv_header_stdc = yes; then
6796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6797 if test "$cross_compiling" = yes; then
6800 cat >conftest.$ac_ext <<_ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6808 #if ((' ' & 0x0FF) == 0x020)
6809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6812 # define ISLOWER(c) \
6813 (('a' <= (c) && (c) <= 'i') \
6814 || ('j' <= (c) && (c) <= 'r') \
6815 || ('s' <= (c) && (c) <= 'z'))
6816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6824 for (i = 0; i < 256; i++)
6825 if (XOR (islower (i), ISLOWER (i))
6826 || toupper (i) != TOUPPER (i))
6831 rm -f conftest$ac_exeext
6832 if { (ac_try="$ac_link"
6834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6835 *) ac_try_echo
=$ac_try;;
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_link") 2>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6842 { (case "(($ac_try" in
6843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_try") 2>&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6853 echo "$as_me: program exited with status $ac_status" >&5
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6858 ac_cv_header_stdc=no
6860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6866 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6867 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6868 if test $ac_cv_header_stdc = yes; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define STDC_HEADERS 1
6876 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6877 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6878 if test "${ac_cv_header_time+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6888 #include <sys/time.h>
6894 if ((struct tm *) 0)
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6904 *) ac_try_echo
=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6909 grep -v '^ *+' conftest.er1
>conftest.err
6911 cat conftest.err
>&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.
$ac_objext; then
6917 ac_cv_header_time
=yes
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6922 ac_cv_header_time
=no
6925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6927 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6928 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6929 if test $ac_cv_header_time = yes; then
6931 cat >>confdefs.h
<<\_ACEOF
6932 #define TIME_WITH_SYS_TIME 1
6937 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6938 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6939 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6960 rm -f conftest.
$ac_objext
6961 if { (ac_try
="$ac_compile"
6963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6969 grep -v '^ *+' conftest.er1 >conftest.err
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
6977 ac_cv_have_decl_sys_siglist=yes
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ac_cv_have_decl_sys_siglist=no
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6988 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6989 if test $ac_cv_have_decl_sys_siglist = yes; then
6991 cat >>confdefs.h <<_ACEOF
6992 #define HAVE_DECL_SYS_SIGLIST 1
6997 cat >>confdefs.h <<_ACEOF
6998 #define HAVE_DECL_SYS_SIGLIST 0
7005 if test $ac_cv_have_decl_sys_siglist != yes; then
7006 # For Tru64, at least:
7007 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7008 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7009 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7022 #ifndef __sys_siglist
7023 (void) __sys_siglist;
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7034 *) ac_try_echo
=$ac_try;;
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037 (eval "$ac_compile") 2>conftest.er1
7039 grep -v '^ *+' conftest.er1
>conftest.err
7041 cat conftest.err
>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && {
7044 test -z "$ac_c_werror_flag" ||
7045 test ! -s conftest.err
7046 } && test -s conftest.
$ac_objext; then
7047 ac_cv_have_decl___sys_siglist
=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.
$ac_ext >&5
7052 ac_cv_have_decl___sys_siglist
=no
7055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7058 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7059 if test $ac_cv_have_decl___sys_siglist = yes; then
7061 cat >>confdefs.h
<<_ACEOF
7062 #define HAVE_DECL___SYS_SIGLIST 1
7067 cat >>confdefs.h
<<_ACEOF
7068 #define HAVE_DECL___SYS_SIGLIST 0
7075 if test $ac_cv_have_decl___sys_siglist = yes; then
7077 cat >>confdefs.h
<<\_ACEOF
7078 #define sys_siglist __sys_siglist
7083 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7084 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7085 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.
$ac_ext <<_ACEOF
7091 cat confdefs.h
>>conftest.
$ac_ext
7092 cat >>conftest.
$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 #include <sys/types.h>
7095 #include <sys/wait.h>
7097 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7108 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7113 rm -f conftest.
$ac_objext
7114 if { (ac_try
="$ac_compile"
7116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_header_sys_wait_h=yes
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_cv_header_sys_wait_h=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7141 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7142 if test $ac_cv_header_sys_wait_h = yes; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_SYS_WAIT_H 1
7151 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7152 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7153 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #ifdef TIME_WITH_SYS_TIME
7163 #include <sys/time.h>
7166 #ifdef HAVE_SYS_TIME_H
7167 #include <sys/time.h>
7178 static struct utimbuf x; x.actime = x.modtime;
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7187 *) ac_try_echo
=$ac_try;;
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7192 grep -v '^ *+' conftest.er1
>conftest.err
7194 cat conftest.err
>&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.
$ac_objext; then
7200 emacs_cv_struct_utimbuf
=yes
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.
$ac_ext >&5
7205 emacs_cv_struct_utimbuf
=no
7208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7210 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7211 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7212 if test $emacs_cv_struct_utimbuf = yes; then
7214 cat >>confdefs.h
<<\_ACEOF
7215 #define HAVE_STRUCT_UTIMBUF 1
7220 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7221 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7222 if test "${ac_cv_type_signal+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 cat >conftest.
$ac_ext <<_ACEOF
7228 cat confdefs.h
>>conftest.
$ac_ext
7229 cat >>conftest.
$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #include <sys/types.h>
7237 return *(signal (0, 0)) (0) == 1;
7242 rm -f conftest.
$ac_objext
7243 if { (ac_try
="$ac_compile"
7245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_cv_type_signal=int
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_cv_type_signal=void
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7270 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7272 cat >>confdefs.h <<_ACEOF
7273 #define RETSIGTYPE $ac_cv_type_signal
7278 { echo "$as_me:$LINENO: checking for speed_t" >&5
7279 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7280 if test "${emacs_cv_speed_t+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 #include <termios.h>
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7302 *) ac_try_echo
=$ac_try;;
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7307 grep -v '^ *+' conftest.er1
>conftest.err
7309 cat conftest.err
>&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.
$ac_objext; then
7315 emacs_cv_speed_t
=yes
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.
$ac_ext >&5
7323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7325 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7326 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7327 if test $emacs_cv_speed_t = yes; then
7329 cat >>confdefs.h
<<\_ACEOF
7330 #define HAVE_SPEED_T 1
7335 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7336 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7337 if test "${emacs_cv_struct_timeval+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 cat >conftest.
$ac_ext <<_ACEOF
7343 cat confdefs.h
>>conftest.
$ac_ext
7344 cat >>conftest.
$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #ifdef TIME_WITH_SYS_TIME
7347 #include <sys/time.h>
7350 #ifdef HAVE_SYS_TIME_H
7351 #include <sys/time.h>
7359 static struct timeval x; x.tv_sec = x.tv_usec;
7364 rm -f conftest.
$ac_objext
7365 if { (ac_try
="$ac_compile"
7367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7373 grep -v '^ *+' conftest.er1 >conftest.err
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
7381 emacs_cv_struct_timeval=yes
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 emacs_cv_struct_timeval=no
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7392 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7393 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7394 if test $emacs_cv_struct_timeval = yes; then
7396 cat >>confdefs.h <<\_ACEOF
7397 #define HAVE_TIMEVAL 1
7402 { echo "$as_me:$LINENO: checking for struct exception" >&5
7403 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7404 if test "${emacs_cv_struct_exception+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7417 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7426 *) ac_try_echo
=$ac_try;;
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_compile") 2>conftest.er1
7431 grep -v '^ *+' conftest.er1
>conftest.err
7433 cat conftest.err
>&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } && {
7436 test -z "$ac_c_werror_flag" ||
7437 test ! -s conftest.err
7438 } && test -s conftest.
$ac_objext; then
7439 emacs_cv_struct_exception
=yes
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.
$ac_ext >&5
7444 emacs_cv_struct_exception
=no
7447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7449 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7450 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7451 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7452 if test $emacs_cv_struct_exception != yes; then
7454 cat >>confdefs.h
<<\_ACEOF
7455 #define NO_MATHERR 1
7461 for ac_header
in sys
/socket.h
7463 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7464 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7467 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_res
=`eval echo '${'$as_ac_Header'}'`
7471 { echo "$as_me:$LINENO: result: $ac_res" >&5
7472 echo "${ECHO_T}$ac_res" >&6; }
7474 # Is the header compilable?
7475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7477 cat >conftest.
$ac_ext <<_ACEOF
7480 cat confdefs.h
>>conftest.
$ac_ext
7481 cat >>conftest.
$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 #include <$ac_header>
7486 rm -f conftest.
$ac_objext
7487 if { (ac_try
="$ac_compile"
7489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7495 grep -v '^ *+' conftest.er1 >conftest.err
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_header_compiler=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_header_compiler=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7513 echo "${ECHO_T}$ac_header_compiler" >&6; }
7515 # Is the header present?
7516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <$ac_header>
7526 if { (ac_try="$ac_cpp conftest.$ac_ext"
7528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7529 *) ac_try_echo
=$ac_try;;
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7534 grep -v '^ *+' conftest.er1
>conftest.err
7536 cat conftest.err
>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } >/dev
/null
&& {
7539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7542 ac_header_preproc
=yes
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.
$ac_ext >&5
7547 ac_header_preproc
=no
7550 rm -f conftest.err conftest.
$ac_ext
7551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7552 echo "${ECHO_T}$ac_header_preproc" >&6; }
7554 # So? What about this header?
7555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7561 ac_header_preproc
=yes
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7581 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 eval "$as_ac_Header=\$ac_header_preproc"
7586 ac_res
=`eval echo '${'$as_ac_Header'}'`
7587 { echo "$as_me:$LINENO: result: $ac_res" >&5
7588 echo "${ECHO_T}$ac_res" >&6; }
7591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7592 cat >>confdefs.h
<<_ACEOF
7593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7601 for ac_header
in net
/if.h
7603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7606 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 cat >conftest.
$ac_ext <<_ACEOF
7612 cat confdefs.h
>>conftest.
$ac_ext
7613 cat >>conftest.
$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7616 #if HAVE_SYS_SOCKET_H
7617 #include <sys/socket.h>
7620 #include <$ac_header>
7622 rm -f conftest.
$ac_objext
7623 if { (ac_try
="$ac_compile"
7625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1 >conftest.err
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 eval "$as_ac_Header=yes"
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 eval "$as_ac_Header=no"
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 ac_res=`eval echo '${'$as_ac_Header'}'`
7650 { echo "$as_me:$LINENO: result: $ac_res" >&5
7651 echo "${ECHO_T}$ac_res" >&6; }
7652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7653 cat >>confdefs.h <<_ACEOF
7654 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7662 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7663 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7664 if test "${ac_cv_struct_tm+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 #include <sys/types.h>
7680 int *p = &tm.tm_sec;
7686 rm -f conftest.$ac_objext
7687 if { (ac_try="$ac_compile"
7689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7690 *) ac_try_echo
=$ac_try;;
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_compile") 2>conftest.er1
7695 grep -v '^ *+' conftest.er1
>conftest.err
7697 cat conftest.err
>&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && {
7700 test -z "$ac_c_werror_flag" ||
7701 test ! -s conftest.err
7702 } && test -s conftest.
$ac_objext; then
7703 ac_cv_struct_tm
=time.h
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.
$ac_ext >&5
7708 ac_cv_struct_tm
=sys
/time.h
7711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7713 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7714 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7715 if test $ac_cv_struct_tm = sys
/time.h
; then
7717 cat >>confdefs.h
<<\_ACEOF
7718 #define TM_IN_SYS_TIME 1
7723 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7724 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7725 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 cat >conftest.
$ac_ext <<_ACEOF
7731 cat confdefs.h
>>conftest.
$ac_ext
7732 cat >>conftest.
$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 #include <sys/types.h>
7735 #include <$ac_cv_struct_tm>
7741 static struct tm ac_aggr;
7742 if (ac_aggr.tm_zone)
7748 rm -f conftest.
$ac_objext
7749 if { (ac_try
="$ac_compile"
7751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7757 grep -v '^ *+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7765 ac_cv_member_struct_tm_tm_zone=yes
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 #include <sys/types.h>
7777 #include <$ac_cv_struct_tm>
7783 static struct tm ac_aggr;
7784 if (sizeof ac_aggr.tm_zone)
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7794 *) ac_try_echo
=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7799 grep -v '^ *+' conftest.er1
>conftest.err
7801 cat conftest.err
>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.
$ac_objext; then
7807 ac_cv_member_struct_tm_tm_zone
=yes
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.
$ac_ext >&5
7812 ac_cv_member_struct_tm_tm_zone
=no
7815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7820 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7821 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7822 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7824 cat >>confdefs.h
<<_ACEOF
7825 #define HAVE_STRUCT_TM_TM_ZONE 1
7831 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7833 cat >>confdefs.h
<<\_ACEOF
7834 #define HAVE_TM_ZONE 1
7838 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7839 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7840 if test "${ac_cv_have_decl_tzname+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 cat >conftest.
$ac_ext <<_ACEOF
7846 cat confdefs.h
>>conftest.
$ac_ext
7847 cat >>conftest.
$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7862 rm -f conftest.
$ac_objext
7863 if { (ac_try
="$ac_compile"
7865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_compile") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest.$ac_objext; then
7879 ac_cv_have_decl_tzname=yes
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_cv_have_decl_tzname=no
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7890 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7891 if test $ac_cv_have_decl_tzname = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define HAVE_DECL_TZNAME 1
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_DECL_TZNAME 0
7907 { echo "$as_me:$LINENO: checking for tzname" >&5
7908 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7909 if test "${ac_cv_var_tzname+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 cat >conftest.$ac_ext <<_ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7919 #if !HAVE_DECL_TZNAME
7920 extern char *tzname[];
7926 return tzname[0][0];
7931 rm -f conftest.$ac_objext conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7935 *) ac_try_echo
=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_link") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1
>conftest.err
7942 cat conftest.err
>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest
$ac_exeext &&
7948 $as_test_x conftest
$ac_exeext; then
7949 ac_cv_var_tzname
=yes
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.
$ac_ext >&5
7957 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7958 conftest
$ac_exeext conftest.
$ac_ext
7960 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7961 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7962 if test $ac_cv_var_tzname = yes; then
7964 cat >>confdefs.h
<<\_ACEOF
7965 #define HAVE_TZNAME 1
7971 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7972 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7973 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 cat >conftest.
$ac_ext <<_ACEOF
7979 cat confdefs.h
>>conftest.
$ac_ext
7980 cat >>conftest.
$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7987 static struct tm ac_aggr;
7988 if (ac_aggr.tm_gmtoff)
7994 rm -f conftest.
$ac_objext
7995 if { (ac_try
="$ac_compile"
7997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_cv_member_struct_tm_tm_gmtoff=yes
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8027 static struct tm ac_aggr;
8028 if (sizeof ac_aggr.tm_gmtoff)
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8038 *) ac_try_echo
=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1
>conftest.err
8045 cat conftest.err
>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.
$ac_objext; then
8051 ac_cv_member_struct_tm_tm_gmtoff
=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.
$ac_ext >&5
8056 ac_cv_member_struct_tm_tm_gmtoff
=no
8059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8064 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8065 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8066 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8068 cat >>confdefs.h
<<\_ACEOF
8069 #define HAVE_TM_GMTOFF 1
8074 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8075 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8076 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 cat >conftest.
$ac_ext <<_ACEOF
8082 cat confdefs.h
>>conftest.
$ac_ext
8083 cat >>conftest.
$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8086 #if HAVE_SYS_SOCKET_H
8087 #include <sys/socket.h>
8096 static struct ifreq ac_aggr;
8097 if (ac_aggr.ifr_flags)
8103 rm -f conftest.
$ac_objext
8104 if { (ac_try
="$ac_compile"
8106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_cv_member_struct_ifreq_ifr_flags=yes
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 cat >conftest.$ac_ext <<_ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8132 #if HAVE_SYS_SOCKET_H
8133 #include <sys/socket.h>
8142 static struct ifreq ac_aggr;
8143 if (sizeof ac_aggr.ifr_flags)
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8153 *) ac_try_echo
=$ac_try;;
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1
>conftest.err
8160 cat conftest.err
>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.
$ac_objext; then
8166 ac_cv_member_struct_ifreq_ifr_flags
=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.
$ac_ext >&5
8171 ac_cv_member_struct_ifreq_ifr_flags
=no
8174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8179 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8180 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8181 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8183 cat >>confdefs.h
<<_ACEOF
8184 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8189 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8190 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8191 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 cat >conftest.
$ac_ext <<_ACEOF
8197 cat confdefs.h
>>conftest.
$ac_ext
8198 cat >>conftest.
$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 #if HAVE_SYS_SOCKET_H
8202 #include <sys/socket.h>
8211 static struct ifreq ac_aggr;
8212 if (ac_aggr.ifr_hwaddr)
8218 rm -f conftest.
$ac_objext
8219 if { (ac_try
="$ac_compile"
8221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_compile") 2>conftest.er1
8227 grep -v '^ *+' conftest.er1 >conftest.err
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest.$ac_objext; then
8235 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8257 static struct ifreq ac_aggr;
8258 if (sizeof ac_aggr.ifr_hwaddr)
8264 rm -f conftest.$ac_objext
8265 if { (ac_try="$ac_compile"
8267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8268 *) ac_try_echo
=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8273 grep -v '^ *+' conftest.er1
>conftest.err
8275 cat conftest.err
>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.
$ac_objext; then
8281 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.
$ac_ext >&5
8286 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8294 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8295 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8296 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8298 cat >>confdefs.h
<<_ACEOF
8299 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8304 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8305 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8306 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 cat >conftest.
$ac_ext <<_ACEOF
8312 cat confdefs.h
>>conftest.
$ac_ext
8313 cat >>conftest.
$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 $ac_includes_default
8316 #if HAVE_SYS_SOCKET_H
8317 #include <sys/socket.h>
8326 static struct ifreq ac_aggr;
8327 if (ac_aggr.ifr_netmask)
8333 rm -f conftest.
$ac_objext
8334 if { (ac_try
="$ac_compile"
8336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8342 grep -v '^ *+' conftest.er1 >conftest.err
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.$ac_objext; then
8350 ac_cv_member_struct_ifreq_ifr_netmask=yes
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 #if HAVE_SYS_SOCKET_H
8363 #include <sys/socket.h>
8372 static struct ifreq ac_aggr;
8373 if (sizeof ac_aggr.ifr_netmask)
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8383 *) ac_try_echo
=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8388 grep -v '^ *+' conftest.er1
>conftest.err
8390 cat conftest.err
>&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.
$ac_objext; then
8396 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.
$ac_ext >&5
8401 ac_cv_member_struct_ifreq_ifr_netmask
=no
8404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8409 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8410 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8411 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8413 cat >>confdefs.h
<<_ACEOF
8414 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8419 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8420 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8421 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 cat >conftest.
$ac_ext <<_ACEOF
8427 cat confdefs.h
>>conftest.
$ac_ext
8428 cat >>conftest.
$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8431 #if HAVE_SYS_SOCKET_H
8432 #include <sys/socket.h>
8441 static struct ifreq ac_aggr;
8442 if (ac_aggr.ifr_broadaddr)
8448 rm -f conftest.
$ac_objext
8449 if { (ac_try
="$ac_compile"
8451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 #if HAVE_SYS_SOCKET_H
8478 #include <sys/socket.h>
8487 static struct ifreq ac_aggr;
8488 if (sizeof ac_aggr.ifr_broadaddr)
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8498 *) ac_try_echo
=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8503 grep -v '^ *+' conftest.er1
>conftest.err
8505 cat conftest.err
>&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.
$ac_objext; then
8511 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.
$ac_ext >&5
8516 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8524 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8525 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8526 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8528 cat >>confdefs.h
<<_ACEOF
8529 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8534 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8535 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8536 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 cat >conftest.
$ac_ext <<_ACEOF
8542 cat confdefs.h
>>conftest.
$ac_ext
8543 cat >>conftest.
$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 #if HAVE_SYS_SOCKET_H
8547 #include <sys/socket.h>
8556 static struct ifreq ac_aggr;
8557 if (ac_aggr.ifr_addr)
8563 rm -f conftest.
$ac_objext
8564 if { (ac_try
="$ac_compile"
8566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_cv_member_struct_ifreq_ifr_addr=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 cat >conftest.$ac_ext <<_ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8592 #if HAVE_SYS_SOCKET_H
8593 #include <sys/socket.h>
8602 static struct ifreq ac_aggr;
8603 if (sizeof ac_aggr.ifr_addr)
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_member_struct_ifreq_ifr_addr
=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.
$ac_ext >&5
8631 ac_cv_member_struct_ifreq_ifr_addr
=no
8634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8639 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8640 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8641 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8643 cat >>confdefs.h
<<_ACEOF
8644 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8652 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8653 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8654 if test "$ac_cv_prog_cc_c89" != no
; then
8655 { echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6; }
8658 cat >>confdefs.h
<<\_ACEOF
8659 #define PROTOTYPES 1
8663 cat >>confdefs.h
<<\_ACEOF
8664 #define __PROTOTYPES 1
8668 { echo "$as_me:$LINENO: result: no" >&5
8669 echo "${ECHO_T}no" >&6; }
8672 { echo "$as_me:$LINENO: checking for working volatile" >&5
8673 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8674 if test "${ac_cv_c_volatile+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 cat >conftest.
$ac_ext <<_ACEOF
8680 cat confdefs.h
>>conftest.
$ac_ext
8681 cat >>conftest.
$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8689 int * volatile y = (int *) 0;
8695 rm -f conftest.
$ac_objext
8696 if { (ac_try
="$ac_compile"
8698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_compile") 2>conftest.er1
8704 grep -v '^ *+' conftest.er1 >conftest.err
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest.$ac_objext; then
8712 ac_cv_c_volatile=yes
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8723 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8724 if test $ac_cv_c_volatile = no; then
8726 cat >>confdefs.h <<\_ACEOF
8732 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8734 if test "${ac_cv_c_const+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 cat >conftest.$ac_ext <<_ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8747 /* FIXME: Include the comments suggested by Paul. */
8749 /* Ultrix mips cc rejects this. */
8750 typedef int charset[2];
8752 /* SunOS 4.1.1 cc rejects this. */
8753 char const *const *pcpcc;
8755 /* NEC SVR4.0.2 mips cc rejects this. */
8756 struct point {int x, y;};
8757 static struct point const zero = {0,0};
8758 /* AIX XL C 1.02.0.0 rejects this.
8759 It does not let you subtract one const X* pointer from another in
8760 an arm of an if-expression whose if-part is not a constant
8762 const char *g = "string";
8763 pcpcc = &g + (g ? g-g : 0);
8764 /* HPUX 7.0 cc rejects these. */
8766 ppc = (char**) pcpcc;
8767 pcpcc = (char const *const *) ppc;
8768 { /* SCO 3.2v4 cc rejects this. */
8770 char const *s = 0 ? (char *) 0 : (char const *) 0;
8775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8777 const int *foo = &x[0];
8780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8781 typedef const int *iptr;
8785 { /* AIX XL C 1.02.0.0 rejects this saying
8786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8787 struct s { int j; const int *ap[3]; };
8788 struct s *b; b->j = 5;
8790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8794 return !cs[0] && !zero.x;
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8805 *) ac_try_echo
=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
8810 grep -v '^ *+' conftest.er1
>conftest.err
8812 cat conftest.err
>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest.
$ac_objext; then
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.
$ac_ext >&5
8826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8828 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8829 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8830 if test $ac_cv_c_const = no
; then
8832 cat >>confdefs.h
<<\_ACEOF
8838 { echo "$as_me:$LINENO: checking for void * support" >&5
8839 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8840 if test "${emacs_cv_void_star+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.
$ac_ext <<_ACEOF
8846 cat confdefs.h
>>conftest.
$ac_ext
8847 cat >>conftest.
$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8858 rm -f conftest.
$ac_objext
8859 if { (ac_try
="$ac_compile"
8861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_compile") 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest.$ac_objext; then
8875 emacs_cv_void_star=yes
8877 echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 emacs_cv_void_star=no
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8886 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8887 if test $emacs_cv_void_star = yes; then
8888 cat >>confdefs.h <<\_ACEOF
8889 #define POINTER_TYPE void
8893 cat >>confdefs.h <<\_ACEOF
8894 #define POINTER_TYPE char
8903 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8904 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8905 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8906 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 cat >conftest.make <<\_ACEOF
8912 @echo '@@@%%%=$(MAKE)=@@@%%%'
8914 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8915 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8917 eval ac_cv_prog_make_${ac_make}_set=yes;;
8919 eval ac_cv_prog_make_${ac_make}_set=no;;
8923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8924 { echo "$as_me:$LINENO: result: yes" >&5
8925 echo "${ECHO_T}yes" >&6; }
8928 { echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6; }
8930 SET_MAKE="MAKE=${MAKE-make}"
8934 { echo "$as_me:$LINENO: checking for long file names" >&5
8935 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8936 if test "${ac_cv_sys_long_file_names+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_cv_sys_long_file_names=yes
8940 # Test for long file names in all the places we know might matter:
8941 # . the current directory, where building will happen
8942 # $prefix/lib where we will be installing things
8943 # $exec_prefix/lib likewise
8944 # $TMPDIR if set, where it might want to write temporary files
8945 # /tmp where it might want to write temporary files
8948 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8949 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8950 # in the usual case where exec_prefix is '${prefix}'.
8952 . | /* | ?:[\\/]*) ;; #(
8955 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8956 ac_xdir=$ac_dir/cf$$
8957 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8958 ac_tf1=$ac_xdir/conftest9012345
8959 ac_tf2=$ac_xdir/conftest9012346
8960 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8961 ac_cv_sys_long_file_names=no
8962 rm -f -r "$ac_xdir" 2>/dev/null
8963 test $ac_cv_sys_long_file_names = no && break
8966 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8967 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8968 if test $ac_cv_sys_long_file_names = yes; then
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_LONG_FILE_NAMES 1
8977 #### Choose a window system.
8979 { echo "$as_me:$LINENO: checking for X" >&5
8980 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8983 # Check whether --with-x was given.
8984 if test "${with_x+set}" = set; then
8988 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8989 if test "x$with_x" = xno; then
8990 # The user explicitly disabled X.
8993 case $x_includes,$x_libraries in #(
8994 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8995 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8996 { (exit 1); exit 1; }; };; #(
8997 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 # One or both of the vars are not set, and there is no cached value.
9001 ac_x_includes=no ac_x_libraries=no
9002 rm -f -r conftest.dir
9003 if mkdir conftest.dir; then
9005 cat >Imakefile <<'_ACEOF'
9007 @echo incroot='${INCROOT}'
9009 @echo usrlibdir='${USRLIBDIR}'
9011 @echo libdir='${LIBDIR}'
9013 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9014 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9015 for ac_var in incroot usrlibdir libdir; do
9016 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9018 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9019 for ac_extension in a so sl; do
9020 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9021 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9022 ac_im_usrlibdir=$ac_im_libdir; break
9025 # Screen out bogus values from the imake configuration. They are
9026 # bogus both because they are the default anyway, and because
9027 # using them would break gcc on systems where it needs fixed includes.
9028 case $ac_im_incroot in
9029 /usr/include) ac_x_includes= ;;
9030 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9032 case $ac_im_usrlibdir in
9034 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9038 rm -f -r conftest.dir
9041 # Standard set of common directories for X headers.
9042 # Check X11 before X11Rn because it is often a symlink to the current release.
9054 /usr/local/X11/include
9055 /usr/local/X11R6/include
9056 /usr/local/X11R5/include
9057 /usr/local/X11R4/include
9059 /usr/local/include/X11
9060 /usr/local/include/X11R6
9061 /usr/local/include/X11R5
9062 /usr/local/include/X11R4
9066 /usr/XFree86/include/X11
9070 /usr/unsupported/include
9072 /usr/local/x11r5/include
9073 /usr/lpp/Xamples/include
9075 /usr/openwin/include
9076 /usr/openwin/share/include'
9078 if test "$ac_x_includes" = no; then
9079 # Guess where to find include files, by looking for Xlib.h.
9080 # First, try using that file with no special directory specified.
9081 cat >conftest.$ac_ext <<_ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 #include <X11/Xlib.h>
9089 if { (ac_try="$ac_cpp conftest.$ac_ext"
9091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9092 *) ac_try_echo
=$ac_try;;
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9097 grep -v '^ *+' conftest.er1
>conftest.err
9099 cat conftest.err
>&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } >/dev
/null
&& {
9102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9103 test ! -s conftest.err
9105 # We can compile using X headers with no special include directory.
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.
$ac_ext >&5
9111 for ac_dir
in $ac_x_header_dirs; do
9112 if test -r "$ac_dir/X11/Xlib.h"; then
9113 ac_x_includes
=$ac_dir
9119 rm -f conftest.err conftest.
$ac_ext
9120 fi # $ac_x_includes = no
9122 if test "$ac_x_libraries" = no
; then
9123 # Check for the libraries.
9124 # See if we find them without any special options.
9125 # Don't add to $LIBS permanently.
9128 cat >conftest.
$ac_ext <<_ACEOF
9131 cat confdefs.h
>>conftest.
$ac_ext
9132 cat >>conftest.
$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 #include <X11/Xlib.h>
9143 rm -f conftest.
$ac_objext conftest
$ac_exeext
9144 if { (ac_try
="$ac_link"
9146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_link") 2>conftest.er1
9152 grep -v '^ *+' conftest.er1 >conftest.err
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest$ac_exeext &&
9160 $as_test_x conftest$ac_exeext; then
9162 # We can link X programs with no special library path.
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9169 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9171 # Don't even attempt the hair of trying to link an X program!
9172 for ac_extension in a so sl; do
9173 if test -r "$ac_dir/libX11.$ac_extension"; then
9174 ac_x_libraries=$ac_dir
9181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9182 conftest$ac_exeext conftest.$ac_ext
9183 fi # $ac_x_libraries = no
9185 case $ac_x_includes,$ac_x_libraries in #(
9187 # Didn't find X, or a directory has "'" in its name.
9188 ac_cv_have_x="have_x=no";; #(
9190 # Record where we found X for the cache.
9191 ac_cv_have_x="have_x=yes\
9192 ac_x_includes='$ac_x_includes'\
9193 ac_x_libraries='$ac_x_libraries'"
9199 eval "$ac_cv_have_x"
9202 if test "$have_x" != yes; then
9203 { echo "$as_me:$LINENO: result: $have_x" >&5
9204 echo "${ECHO_T}$have_x" >&6; }
9207 # If each of the values was on the command line, it overrides each guess.
9208 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9209 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9210 # Update the cache value to reflect the command line values.
9211 ac_cv_have_x="have_x=yes\
9212 ac_x_includes='$x_includes'\
9213 ac_x_libraries='$x_libraries'"
9214 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9215 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9218 if test "$no_x" = yes; then
9224 ## Workaround for bug in autoconf <= 2.62.
9225 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9226 ## No need to do anything special for these standard directories.
9227 ## This is an experiment, take it out if it causes problems.
9228 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9230 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9234 if test "${x_libraries}" != NONE; then
9235 if test -n "${x_libraries}"; then
9236 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9237 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9239 x_default_search_path=""
9240 x_search_path=${x_libraries}
9241 if test -z "${x_search_path}"; then
9242 x_search_path=/usr/lib
9244 for x_library in `echo ${x_search_path}: | \
9245 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9247 ${x_library}/X11/%L/%T/%N%C%S:\
9248 ${x_library}/X11/%l/%T/%N%C%S:\
9249 ${x_library}/X11/%T/%N%C%S:\
9250 ${x_library}/X11/%L/%T/%N%S:\
9251 ${x_library}/X11/%l/%T/%N%S:\
9252 ${x_library}/X11/%T/%N%S"
9253 if test x"${x_default_search_path}" = x; then
9254 x_default_search_path=${x_search_path}
9256 x_default_search_path="${x_search_path}:${x_default_search_path}"
9260 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9261 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9264 if test x"${x_includes}" = x; then
9265 bitmapdir=/usr/include/X11/bitmaps
9267 # accumulate include directories that have X11 bitmap subdirectories
9269 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9270 if test -d "${bmd}/X11/bitmaps"; then
9271 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9273 if test -d "${bmd}/bitmaps"; then
9274 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9277 if test ${bmd_acc} != "dummyval"; then
9278 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9285 tmp_CPPFLAGS="$CPPFLAGS"
9286 tmp_CFLAGS="$CFLAGS"
9287 CPPFLAGS="$CPPFLAGS -x objective-c"
9288 CFLAGS="$CFLAGS -x objective-c"
9289 if test "${with_ns}" != no; then
9290 if test "${opsys}" = darwin; then
9292 ns_appdir=`pwd`/nextstep/Emacs.app
9293 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9294 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9295 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9296 elif test -f $GNUSTEP_CONFIG_FILE; then
9298 ns_appdir=`pwd`/nextstep/Emacs.app
9299 ns_appbindir=`pwd`/nextstep/Emacs.app
9300 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9301 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9302 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9303 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9304 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9305 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9306 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9307 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9308 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9310 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9311 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9312 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9313 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9317 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9319 # Is the header compilable?
9320 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9321 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9329 #include <AppKit/AppKit.h>
9331 rm -f conftest.$ac_objext
9332 if { (ac_try="$ac_compile"
9334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9335 *) ac_try_echo
=$ac_try;;
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_compile") 2>conftest.er1
9340 grep -v '^ *+' conftest.er1
>conftest.err
9342 cat conftest.err
>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest.
$ac_objext; then
9348 ac_header_compiler
=yes
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.
$ac_ext >&5
9353 ac_header_compiler
=no
9356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9358 echo "${ECHO_T}$ac_header_compiler" >&6; }
9360 # Is the header present?
9361 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9362 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9363 cat >conftest.
$ac_ext <<_ACEOF
9366 cat confdefs.h
>>conftest.
$ac_ext
9367 cat >>conftest.
$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <AppKit/AppKit.h>
9371 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } >/dev/null && {
9384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9387 ac_header_preproc=yes
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_header_preproc=no
9395 rm -f conftest.err conftest.$ac_ext
9396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9397 echo "${ECHO_T}$ac_header_preproc" >&6; }
9399 # So? What about this header?
9400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9402 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9403 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9405 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9406 ac_header_preproc=yes
9409 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9410 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9412 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9414 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9416 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9418 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9420 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9424 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9425 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9426 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9431 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9432 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9435 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9438 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9439 files are missing or cannot be compiled." >&5
9440 echo "$as_me: error: \`--with-ns' was specified
, but the include
9441 files are missing or cannot be compiled.
" >&2;}
9442 { (exit 1); exit 1; }; }
9446 NS_HAVE_NSINTEGER=yes
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 #include <Foundation/NSObjCRuntime.h>
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9471 grep -v '^ *+' conftest.er1 >conftest.err
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest.$ac_objext; then
9479 ns_have_nsinteger=yes
9481 echo "$as_me: failed program was
:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ns_have_nsinteger=no
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488 if test $ns_have_nsinteger = no; then
9489 NS_HAVE_NSINTEGER=no
9492 if test "${HAVE_NS}" = yes; then
9493 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 ;;
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_NS}" = "yes"; then
10912 if test "${with_rsvg}" != "no
"; then
10913 RSVG_REQUIRED=2.11.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
11379 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11380 echo $ECHO_N "checking whether GTK_TYPE_FILE_SELECTION is declared...
$ECHO_C" >&6; }
11381 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11382 echo $ECHO_N "(cached
) $ECHO_C" >&6
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 #include <gtk/gtk.h>
11396 #ifndef GTK_TYPE_FILE_SELECTION
11397 (void) GTK_TYPE_FILE_SELECTION;
11404 rm -f conftest.$ac_objext
11405 if { (ac_try="$ac_compile"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_compile") 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest.$ac_objext; then
11421 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11423 echo "$as_me: failed program was
:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11432 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11433 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11434 HAVE_GTK_FILE_SELECTION=yes
11436 HAVE_GTK_FILE_SELECTION=no
11439 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11441 for ac_func in gtk_file_selection_new
11443 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11444 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11445 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11446 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11447 echo $ECHO_N "(cached
) $ECHO_C" >&6
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11457 #define $ac_func innocuous_$ac_func
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11465 # include <limits.h>
11467 # include <assert.h>
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11479 /* The GNU C library defines this for functions which it implements
11480 to always fail with ENOSYS. Some functions are actually named
11481 something starting with __ and the normal name is an alias. */
11482 #if defined __stub_$ac_func || defined __stub___$ac_func
11489 return $ac_func ();
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (ac_try="$ac_link"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_link") 2>conftest.er1
11503 grep -v '^ *+' conftest.er1 >conftest.err
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11507 (exit $ac_status); } && {
11508 test -z "$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 } && test -s conftest$ac_exeext &&
11511 $as_test_x conftest$ac_exeext; then
11512 eval "$as_ac_var=yes"
11514 echo "$as_me: failed program was
:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 eval "$as_ac_var=no
"
11520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11521 conftest$ac_exeext conftest.$ac_ext
11523 ac_res=`eval echo '${'$as_ac_var'}'`
11524 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11525 echo "${ECHO_T}$ac_res" >&6; }
11526 if test `eval echo '${'$as_ac_var'}'` = yes; then
11527 cat >>confdefs.h <<_ACEOF
11528 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11530 HAVE_GTK_FILE_SELECTION=yes
11532 HAVE_GTK_FILE_SELECTION=no
11538 HAVE_GTK_FILE_CHOOSER=no
11539 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
11540 echo $ECHO_N "checking whether GTK_TYPE_FILE_CHOOSER is declared...
$ECHO_C" >&6; }
11541 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11542 echo $ECHO_N "(cached
) $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <gtk/gtk.h>
11556 #ifndef GTK_TYPE_FILE_CHOOSER
11557 (void) GTK_TYPE_FILE_CHOOSER;
11564 rm -f conftest.$ac_objext
11565 if { (ac_try="$ac_compile"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11583 echo "$as_me: failed program was
:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11592 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11593 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11594 HAVE_GTK_FILE_CHOOSER=yes
11596 HAVE_GTK_FILE_CHOOSER=no
11599 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11601 for ac_func in gtk_file_chooser_dialog_new
11603 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11604 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
11605 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
11606 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached
) $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11617 #define $ac_func innocuous_$ac_func
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11625 # include <limits.h>
11627 # include <assert.h>
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11639 /* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642 #if defined __stub_$ac_func || defined __stub___$ac_func
11649 return $ac_func ();
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (ac_try="$ac_link"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_link") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest$ac_exeext &&
11671 $as_test_x conftest$ac_exeext; then
11672 eval "$as_ac_var=yes"
11674 echo "$as_me: failed program was
:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 eval "$as_ac_var=no
"
11680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11681 conftest$ac_exeext conftest.$ac_ext
11683 ac_res=`eval echo '${'$as_ac_var'}'`
11684 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11685 echo "${ECHO_T}$ac_res" >&6; }
11686 if test `eval echo '${'$as_ac_var'}'` = yes; then
11687 cat >>confdefs.h <<_ACEOF
11688 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11690 HAVE_GTK_FILE_CHOOSER=yes
11692 HAVE_GTK_FILE_CHOOSER=no
11698 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11699 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11701 cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_GTK_FILE_BOTH 1
11707 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11708 HAVE_GTK_AND_PTHREAD=no
11710 for ac_header in pthread.h
11712 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
11713 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11714 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11715 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached
) $ECHO_C" >&6
11719 ac_res=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11723 # Is the header compilable?
11724 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
11725 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 $ac_includes_default
11733 #include <$ac_header>
11735 rm -f conftest.$ac_objext
11736 if { (ac_try="$ac_compile"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_compile") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest.$ac_objext; then
11752 ac_header_compiler=yes
11754 echo "$as_me: failed program was
:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ac_header_compiler=no
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
11762 echo "${ECHO_T}$ac_header_compiler" >&6; }
11764 # Is the header present?
11765 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
11766 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <$ac_header>
11775 if { (ac_try="$ac_cpp conftest.
$ac_ext"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
11783 grep -v '^ *+' conftest.er1 >conftest.err
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11787 (exit $ac_status); } >/dev/null && {
11788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11791 ac_header_preproc=yes
11793 echo "$as_me: failed program was
:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_preproc=no
11799 rm -f conftest.err conftest.$ac_ext
11800 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
11801 echo "${ECHO_T}$ac_header_preproc" >&6; }
11803 # So? What about this header?
11804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11806 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
11807 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
11808 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
11809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
11810 ac_header_preproc=yes
11813 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
11814 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
11815 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
11816 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
11817 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
11818 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
11819 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
11820 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
11821 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
11822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
11823 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
11824 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
11828 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
11829 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
11830 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
11831 echo $ECHO_N "(cached
) $ECHO_C" >&6
11833 eval "$as_ac_Header=\
$ac_header_preproc"
11835 ac_res=`eval echo '${'$as_ac_Header'}'`
11836 { echo "$as_me:$LINENO: result
: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11841 cat >>confdefs.h <<_ACEOF
11842 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
11849 if test "$ac_cv_header_pthread_h"; then
11850 { echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
11851 echo $ECHO_N "checking
for pthread_self
in -lpthread...
$ECHO_C" >&6; }
11852 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11853 echo $ECHO_N "(cached
) $ECHO_C" >&6
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lpthread $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11870 char pthread_self ();
11874 return pthread_self ();
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext &&
11896 $as_test_x conftest$ac_exeext; then
11897 ac_cv_lib_pthread_pthread_self=yes
11899 echo "$as_me: failed program was
:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_lib_pthread_pthread_self=no
11905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11909 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
11910 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11911 if test $ac_cv_lib_pthread_pthread_self = yes; then
11912 HAVE_GTK_AND_PTHREAD=yes
11916 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11917 case "${canonical}" in
11919 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_GTK_AND_PTHREAD 1
11931 if test "${with_dbus}" = "yes"; then
11935 # Extract the first word of "pkg-config
", so it can be a program name with args.
11936 set dummy pkg-config; ac_word=$2
11937 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
11938 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
11939 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11940 echo $ECHO_N "(cached
) $ECHO_C" >&6
11942 case $PKG_CONFIG in
11944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11954 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11955 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11962 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11966 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11967 if test -n "$PKG_CONFIG"; then
11968 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11969 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11971 { echo "$as_me:$LINENO: result
: no
" >&5
11972 echo "${ECHO_T}no
" >&6; }
11977 if test "$PKG_CONFIG" = "no
" ; then
11980 PKG_CONFIG_MIN_VERSION=0.9.0
11981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11982 { echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
11983 echo $ECHO_N "checking
for dbus-1
>= 1.0...
$ECHO_C" >&6; }
11985 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
11986 { echo "$as_me:$LINENO: result
: yes" >&5
11987 echo "${ECHO_T}yes" >&6; }
11990 { echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
11991 echo $ECHO_N "checking DBUS_CFLAGS...
$ECHO_C" >&6; }
11992 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11993 { echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
11994 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11996 { echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
11997 echo $ECHO_N "checking DBUS_LIBS...
$ECHO_C" >&6; }
11998 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
11999 { echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12000 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12002 { echo "$as_me:$LINENO: result
: no
" >&5
12003 echo "${ECHO_T}no
" >&6; }
12006 ## If we have a custom action on failure, don't print errors, but
12007 ## do set a variable so people can do so.
12008 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12015 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12016 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12020 if test $succeeded = yes; then
12026 if test "$HAVE_DBUS" = yes; then
12028 cat >>confdefs.h <<\_ACEOF
12029 #define HAVE_DBUS 1
12036 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12037 if test "$with_xaw3d" != no; then
12038 { echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12039 echo $ECHO_N "checking
for xaw3d...
$ECHO_C" >&6; }
12040 if test "${emacs_cv_xaw3d+set}" = set; then
12041 echo $ECHO_N "(cached
) $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12050 #include <X11/Intrinsic.h>
12051 #include <X11/Xaw3d/Simple.h>
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (ac_try="$ac_link"
12062 case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_link") 2>conftest.er1
12069 grep -v '^ *+' conftest.er1 >conftest.err
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest$ac_exeext &&
12077 $as_test_x conftest$ac_exeext; then
12080 echo "$as_me: failed program was
:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12087 conftest$ac_exeext conftest.$ac_ext
12093 if test $emacs_cv_xaw3d = yes; then
12094 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12095 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
12096 USE_X_TOOLKIT=LUCID
12099 cat >>confdefs.h <<\_ACEOF
12100 #define HAVE_XAW3D 1
12104 { echo "$as_me:$LINENO: result
: no
" >&5
12105 echo "${ECHO_T}no
" >&6; }
12106 { echo "$as_me:$LINENO: checking
for libXaw
" >&5
12107 echo $ECHO_N "checking
for libXaw...
$ECHO_C" >&6; }
12108 if test "${emacs_cv_xaw+set}" = set; then
12109 echo $ECHO_N "(cached
) $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12118 #include <X11/Intrinsic.h>
12119 #include <X11/Xaw/Simple.h>
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12137 grep -v '^ *+' conftest.er1 >conftest.err
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_c_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest$ac_exeext &&
12145 $as_test_x conftest$ac_exeext; then
12148 echo "$as_me: failed program was
:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12155 conftest$ac_exeext conftest.$ac_ext
12158 if test $emacs_cv_xaw = yes; then
12159 { echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
12160 echo "${ECHO_T}yes; using Lucid toolkit
" >&6; }
12161 USE_X_TOOLKIT=LUCID
12162 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12163 { { echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
12164 echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
12165 { (exit 1); exit 1; }; }
12167 { echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
12168 echo "${ECHO_T}no
; do not use toolkit by default
" >&6; }
12174 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12176 if test "${USE_X_TOOLKIT}" != "none
"; then
12177 { echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
12178 echo $ECHO_N "checking X11 toolkit version...
$ECHO_C" >&6; }
12179 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12180 echo $ECHO_N "(cached
) $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #include <X11/Intrinsic.h>
12192 #if XtSpecificationRelease < 6
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest$ac_exeext &&
12217 $as_test_x conftest$ac_exeext; then
12218 emacs_cv_x11_toolkit_version_6=yes
12220 echo "$as_me: failed program was
:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 emacs_cv_x11_toolkit_version_6=no
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12230 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12231 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12232 { echo "$as_me:$LINENO: result
: 6 or newer
" >&5
12233 echo "${ECHO_T}6 or newer
" >&6; }
12235 cat >>confdefs.h <<\_ACEOF
12236 #define HAVE_X11XTR6 1
12240 { echo "$as_me:$LINENO: result
: before
6" >&5
12241 echo "${ECHO_T}before
6" >&6; }
12245 if test x$HAVE_X11XTR6 = xyes; then
12246 LIBS="-lXt -lSM -lICE $LIBS"
12251 { echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
12252 echo $ECHO_N "checking
for XmuConvertStandardSelection
in -lXmu...
$ECHO_C" >&6; }
12253 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12254 echo $ECHO_N "(cached
) $ECHO_C" >&6
12256 ac_check_lib_save_LIBS=$LIBS
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 /* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12271 char XmuConvertStandardSelection ();
12275 return XmuConvertStandardSelection ();
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (ac_try="$ac_link"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_link") 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12293 (exit $ac_status); } && {
12294 test -z "$ac_c_werror_flag" ||
12295 test ! -s conftest.err
12296 } && test -s conftest$ac_exeext &&
12297 $as_test_x conftest$ac_exeext; then
12298 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12300 echo "$as_me: failed program was
:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12310 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12311 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12312 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12313 cat >>confdefs.h <<_ACEOF
12314 #define HAVE_LIBXMU 1
12321 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12324 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12325 if test "${HAVE_X11}" = "yes"; then
12326 if test "${USE_X_TOOLKIT}" != "none
"; then
12328 { echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
12329 echo $ECHO_N "checking
for XShapeQueryExtension
in -lXext...
$ECHO_C" >&6; }
12330 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12331 echo $ECHO_N "(cached
) $ECHO_C" >&6
12333 ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-lXext $LIBS"
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12348 char XShapeQueryExtension ();
12352 return XShapeQueryExtension ();
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_link") 2>conftest.er1
12366 grep -v '^ *+' conftest.er1 >conftest.err
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest$ac_exeext &&
12374 $as_test_x conftest$ac_exeext; then
12375 ac_cv_lib_Xext_XShapeQueryExtension=yes
12377 echo "$as_me: failed program was
:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 ac_cv_lib_Xext_XShapeQueryExtension=no
12383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12388 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12389 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_LIBXEXT 1
12394 LIBS="-lXext $LIBS"
12401 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12402 { echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
12403 echo $ECHO_N "checking
for Motif version
2.1...
$ECHO_C" >&6; }
12404 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12405 echo $ECHO_N "(cached
) $ECHO_C" >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12417 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12420 Motif version prior to 2.1.
12426 rm -f conftest.$ac_objext
12427 if { (ac_try="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12435 grep -v '^ *+' conftest.er1 >conftest.err
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 emacs_cv_motif_version_2_1=yes
12445 echo "$as_me: failed program was
:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 emacs_cv_motif_version_2_1=no
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
12454 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12455 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12456 if test $emacs_cv_motif_version_2_1 = yes; then
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_MOTIF_2_1 1
12463 { echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
12464 echo $ECHO_N "checking
for XpCreateContext
in -lXp...
$ECHO_C" >&6; }
12465 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12466 echo $ECHO_N "(cached
) $ECHO_C" >&6
12468 ac_check_lib_save_LIBS=$LIBS
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12477 /* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12483 char XpCreateContext ();
12487 return XpCreateContext ();
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (ac_try="$ac_link"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_link") 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest$ac_exeext &&
12509 $as_test_x conftest$ac_exeext; then
12510 ac_cv_lib_Xp_XpCreateContext=yes
12512 echo "$as_me: failed program was
:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12515 ac_cv_lib_Xp_XpCreateContext=no
12518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS=$ac_check_lib_save_LIBS
12522 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
12523 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12524 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12528 if test ${HAVE_LIBXP} = yes; then
12530 cat >>confdefs.h <<\_ACEOF
12531 #define HAVE_LIBXP 1
12536 { echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
12537 echo $ECHO_N "checking
for LessTif where some systems put it...
$ECHO_C" >&6; }
12538 if test "${emacs_cv_lesstif+set}" = set; then
12539 echo $ECHO_N "(cached
) $ECHO_C" >&6
12541 # We put this in CFLAGS temporarily to precede other -I options
12542 # that might be in CFLAGS temporarily.
12543 # We put this in CPPFLAGS where it precedes the other -I options.
12544 OLD_CPPFLAGS=$CPPFLAGS
12546 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
12547 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12563 rm -f conftest.$ac_objext
12564 if { (ac_try="$ac_compile"
12565 case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_compile") 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12576 (exit $ac_status); } && {
12577 test -z "$ac_c_werror_flag" ||
12578 test ! -s conftest.err
12579 } && test -s conftest.$ac_objext; then
12580 emacs_cv_lesstif=yes
12582 echo "$as_me: failed program was
:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 emacs_cv_lesstif=no
12588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 { echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
12591 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12592 if test $emacs_cv_lesstif = yes; then
12593 # Make sure this -I option remains in CPPFLAGS after it is set
12594 # back to REAL_CPPFLAGS.
12595 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12596 # have those other -I options anyway. Ultimately, having this
12597 # directory ultimately in CPPFLAGS will be enough.
12598 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
12599 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
12602 CPPFLAGS=$OLD_CPPFLAGS
12609 USE_TOOLKIT_SCROLL_BARS=no
12610 if test "${with_toolkit_scroll_bars}" != "no
"; then
12611 if test "${USE_X_TOOLKIT}" != "none
"; then
12612 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
12613 cat >>confdefs.h <<\_ACEOF
12614 #define USE_TOOLKIT_SCROLL_BARS 1
12618 USE_TOOLKIT_SCROLL_BARS=yes
12619 elif test "${HAVE_XAW3D}" = "yes"; then
12620 cat >>confdefs.h <<\_ACEOF
12621 #define USE_TOOLKIT_SCROLL_BARS 1
12624 USE_TOOLKIT_SCROLL_BARS=yes
12626 elif test "${HAVE_GTK}" = "yes"; then
12627 cat >>confdefs.h <<\_ACEOF
12628 #define USE_TOOLKIT_SCROLL_BARS 1
12631 USE_TOOLKIT_SCROLL_BARS=yes
12632 elif test "${HAVE_NS}" = "yes"; then
12633 cat >>confdefs.h <<\_ACEOF
12634 #define USE_TOOLKIT_SCROLL_BARS 1
12637 USE_TOOLKIT_SCROLL_BARS=yes
12641 cat >conftest.$ac_ext <<_ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12648 #include <X11/Xlib.h>
12649 #include <X11/Xresource.h>
12658 rm -f conftest.$ac_objext
12659 if { (ac_try="$ac_compile"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_compile") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12671 (exit $ac_status); } && {
12672 test -z "$ac_c_werror_flag" ||
12673 test ! -s conftest.err
12674 } && test -s conftest.$ac_objext; then
12677 cat >>confdefs.h <<\_ACEOF
12682 echo "$as_me: failed program was
:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 if test "${with_xim}" != "no
"; then
12693 cat >>confdefs.h <<\_ACEOF
12700 if test "${HAVE_XIM}" != "no
"; then
12701 late_CFLAGS=$CFLAGS
12702 if test "$GCC" = yes; then
12703 CFLAGS="$CFLAGS --pedantic-errors"
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12712 #include <X11/Xlib.h>
12713 #include <X11/Xresource.h>
12722 XPointer *client_data;
12724 /* If we're not using GCC, it's probably not XFree86, and this is
12725 probably right, but we can't use something like --pedantic-errors. */
12726 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12727 char*, XIMProc, XPointer*);
12729 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12735 rm -f conftest.$ac_objext
12736 if { (ac_try="$ac_compile"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_compile") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1 >conftest.err
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest.$ac_objext; then
12752 emacs_cv_arg6_star=yes
12754 echo "$as_me: failed program was
:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 if test "$emacs_cv_arg6_star" = yes; then
12763 cat >>confdefs.h <<\_ACEOF
12764 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12768 cat >>confdefs.h <<\_ACEOF
12769 #define XRegisterIMInstantiateCallback_arg6 XPointer
12773 CFLAGS=$late_CFLAGS
12776 ### Start of font-backend (under any platform) section.
12777 # (nothing here yet -- this is a placeholder)
12778 ### End of font-backend (under any platform) section.
12780 ### Start of font-backend (under X11) section.
12781 if test "${HAVE_X11}" = "yes"; then
12785 # Extract the first word of "pkg-config
", so it can be a program name with args.
12786 set dummy pkg-config; ac_word=$2
12787 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12788 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12789 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12790 echo $ECHO_N "(cached
) $ECHO_C" >&6
12792 case $PKG_CONFIG in
12794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12805 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12812 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12816 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12817 if test -n "$PKG_CONFIG"; then
12818 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12819 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12821 { echo "$as_me:$LINENO: result
: no
" >&5
12822 echo "${ECHO_T}no
" >&6; }
12827 if test "$PKG_CONFIG" = "no
" ; then
12830 PKG_CONFIG_MIN_VERSION=0.9.0
12831 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12832 { echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
12833 echo $ECHO_N "checking
for fontconfig
>= 2.2.0...
$ECHO_C" >&6; }
12835 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
12836 { echo "$as_me:$LINENO: result
: yes" >&5
12837 echo "${ECHO_T}yes" >&6; }
12840 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
12841 echo $ECHO_N "checking FONTCONFIG_CFLAGS...
$ECHO_C" >&6; }
12842 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12843 { echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
12844 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12846 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
12847 echo $ECHO_N "checking FONTCONFIG_LIBS...
$ECHO_C" >&6; }
12848 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
12849 { echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
12850 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12852 { echo "$as_me:$LINENO: result
: no
" >&5
12853 echo "${ECHO_T}no
" >&6; }
12854 FONTCONFIG_CFLAGS=""
12856 ## If we have a custom action on failure, don't print errors, but
12857 ## do set a variable so people can do so.
12858 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
12865 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12866 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12870 if test $succeeded = yes; then
12877 ## Use -lXft if available, unless `--with-xft=no'.
12879 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
12882 if test "x
${with_xft}" != "xno
"; then
12887 # Extract the first word of "pkg-config
", so it can be a program name with args.
12888 set dummy pkg-config; ac_word=$2
12889 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
12890 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
12891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12892 echo $ECHO_N "(cached
) $ECHO_C" >&6
12894 case $PKG_CONFIG in
12896 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12907 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12918 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12919 if test -n "$PKG_CONFIG"; then
12920 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12921 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12923 { echo "$as_me:$LINENO: result
: no
" >&5
12924 echo "${ECHO_T}no
" >&6; }
12929 if test "$PKG_CONFIG" = "no
" ; then
12932 PKG_CONFIG_MIN_VERSION=0.9.0
12933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12934 { echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
12935 echo $ECHO_N "checking
for xft
>= 0.13.0...
$ECHO_C" >&6; }
12937 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
12938 { echo "$as_me:$LINENO: result
: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12942 { echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
12943 echo $ECHO_N "checking XFT_CFLAGS...
$ECHO_C" >&6; }
12944 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12945 { echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
12946 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12948 { echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
12949 echo $ECHO_N "checking XFT_LIBS...
$ECHO_C" >&6; }
12950 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
12951 { echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
12952 echo "${ECHO_T}$XFT_LIBS" >&6; }
12954 { echo "$as_me:$LINENO: result
: no
" >&5
12955 echo "${ECHO_T}no
" >&6; }
12958 ## If we have a custom action on failure, don't print errors, but
12959 ## do set a variable so people can do so.
12960 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
12967 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12968 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12972 if test $succeeded = yes; then
12978 if test "$HAVE_XFT" != no; then
12979 OLD_CPPFLAGS="$CPPFLAGS"
12980 OLD_CFLAGS="$CFLAGS"
12982 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12983 CFLAGS="$CFLAGS $XFT_CFLAGS"
12984 LIBS="$XFT_LIBS $LIBS"
12985 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12986 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
12987 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
12988 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12989 echo $ECHO_N "(cached
) $ECHO_C" >&6
12991 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
12992 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12994 # Is the header compilable?
12995 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
12996 echo $ECHO_N "checking X11
/Xft
/Xft.h usability...
$ECHO_C" >&6; }
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 $ac_includes_default
13004 #include <X11/Xft/Xft.h>
13006 rm -f conftest.$ac_objext
13007 if { (ac_try="$ac_compile"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_compile") 2>conftest.er1
13015 grep -v '^ *+' conftest.er1 >conftest.err
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13019 (exit $ac_status); } && {
13020 test -z "$ac_c_werror_flag" ||
13021 test ! -s conftest.err
13022 } && test -s conftest.$ac_objext; then
13023 ac_header_compiler=yes
13025 echo "$as_me: failed program was
:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_header_compiler=no
13031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13033 echo "${ECHO_T}$ac_header_compiler" >&6; }
13035 # Is the header present?
13036 { echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
13037 echo $ECHO_N "checking X11
/Xft
/Xft.h presence...
$ECHO_C" >&6; }
13038 cat >conftest.$ac_ext <<_ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 #include <X11/Xft/Xft.h>
13046 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13058 (exit $ac_status); } >/dev/null && {
13059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13062 ac_header_preproc=yes
13064 echo "$as_me: failed program was
:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_header_preproc=no
13070 rm -f conftest.err conftest.$ac_ext
13071 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13072 echo "${ECHO_T}$ac_header_preproc" >&6; }
13074 # So? What about this header?
13075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13077 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13078 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13079 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
13080 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
13081 ac_header_preproc=yes
13084 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
13085 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
13086 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
13087 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
13088 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
13089 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
13090 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13091 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13092 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
13093 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
13094 { echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
13095 echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
13099 { echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
13100 echo $ECHO_N "checking
for X11
/Xft
/Xft.h...
$ECHO_C" >&6; }
13101 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13102 echo $ECHO_N "(cached
) $ECHO_C" >&6
13104 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13106 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
13107 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13110 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13111 { echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
13112 echo $ECHO_N "checking
for XftFontOpen
in -lXft...
$ECHO_C" >&6; }
13113 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13114 echo $ECHO_N "(cached
) $ECHO_C" >&6
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-lXft $XFT_LIBS $LIBS"
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13131 char XftFontOpen ();
13135 return XftFontOpen ();
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (ac_try="$ac_link"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_link") 2>conftest.er1
13149 grep -v '^ *+' conftest.er1 >conftest.err
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest$ac_exeext &&
13157 $as_test_x conftest$ac_exeext; then
13158 ac_cv_lib_Xft_XftFontOpen=yes
13160 echo "$as_me: failed program was
:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 ac_cv_lib_Xft_XftFontOpen=no
13166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13170 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
13171 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13172 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13180 if test "${HAVE_XFT}" = "yes"; then
13182 cat >>confdefs.h <<\_ACEOF
13187 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13189 CPPFLAGS="$OLD_CPPFLAGS"
13190 CFLAGS="$OLD_CFLAGS"
13192 fi # "${HAVE_XFT}" = "yes"
13193 fi # "$HAVE_XFT" != no
13194 fi # "x
${with_xft}" != "xno
"
13196 if test "$HAVE_XFT" != "yes"; then
13202 ## We used to allow building with FreeType and without Xft.
13203 ## However, the ftx font backend driver is not in good shape.
13204 if test "${HAVE_XFT}" = "yes"; then
13211 if test "${HAVE_FREETYPE}" = "yes"; then
13213 cat >>confdefs.h <<\_ACEOF
13214 #define HAVE_FREETYPE 1
13217 if test "${with_libotf}" != "no
"; then
13221 # Extract the first word of "pkg-config
", so it can be a program name with args.
13222 set dummy pkg-config; ac_word=$2
13223 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13224 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13225 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13226 echo $ECHO_N "(cached
) $ECHO_C" >&6
13228 case $PKG_CONFIG in
13230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13253 if test -n "$PKG_CONFIG"; then
13254 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13255 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13257 { echo "$as_me:$LINENO: result
: no
" >&5
13258 echo "${ECHO_T}no
" >&6; }
13263 if test "$PKG_CONFIG" = "no
" ; then
13266 PKG_CONFIG_MIN_VERSION=0.9.0
13267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13268 { echo "$as_me:$LINENO: checking
for libotf
" >&5
13269 echo $ECHO_N "checking
for libotf...
$ECHO_C" >&6; }
13271 if $PKG_CONFIG --exists "libotf
" 2>&5; then
13272 { echo "$as_me:$LINENO: result
: yes" >&5
13273 echo "${ECHO_T}yes" >&6; }
13276 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
13277 echo $ECHO_N "checking LIBOTF_CFLAGS...
$ECHO_C" >&6; }
13278 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
13279 { echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
13280 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13282 { echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
13283 echo $ECHO_N "checking LIBOTF_LIBS...
$ECHO_C" >&6; }
13284 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
13285 { echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
13286 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13288 { echo "$as_me:$LINENO: result
: no
" >&5
13289 echo "${ECHO_T}no
" >&6; }
13292 ## If we have a custom action on failure, don't print errors, but
13293 ## do set a variable so people can do so.
13294 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
13301 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13302 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13306 if test $succeeded = yes; then
13312 if test "$HAVE_LIBOTF" = "yes"; then
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAVE_LIBOTF 1
13318 { echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
13319 echo $ECHO_N "checking
for OTF_get_variation_glyphs
in -lotf...
$ECHO_C" >&6; }
13320 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13321 echo $ECHO_N "(cached
) $ECHO_C" >&6
13323 ac_check_lib_save_LIBS=$LIBS
13325 cat >conftest.$ac_ext <<_ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 /* Override any GCC internal prototype to avoid an error.
13333 Use char because int might match the return type of a GCC
13334 builtin and then its argument prototype would still apply. */
13338 char OTF_get_variation_glyphs ();
13342 return OTF_get_variation_glyphs ();
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13365 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13367 echo "$as_me: failed program was
:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13370 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13377 { echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13378 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13379 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13380 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13382 HAVE_OTF_GET_VARIATION_GLYPHS=no
13385 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13397 if test "${HAVE_LIBOTF}" = yes; then
13398 if test "${with_m17n_flt}" != "no
"; then
13402 # Extract the first word of "pkg-config
", so it can be a program name with args.
13403 set dummy pkg-config; ac_word=$2
13404 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
13405 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
13406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13407 echo $ECHO_N "(cached
) $ECHO_C" >&6
13409 case $PKG_CONFIG in
13411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13422 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13434 if test -n "$PKG_CONFIG"; then
13435 { echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13436 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13438 { echo "$as_me:$LINENO: result
: no
" >&5
13439 echo "${ECHO_T}no
" >&6; }
13444 if test "$PKG_CONFIG" = "no
" ; then
13447 PKG_CONFIG_MIN_VERSION=0.9.0
13448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13449 { echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
13450 echo $ECHO_N "checking
for m17n-flt...
$ECHO_C" >&6; }
13452 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
13453 { echo "$as_me:$LINENO: result
: yes" >&5
13454 echo "${ECHO_T}yes" >&6; }
13457 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
13458 echo $ECHO_N "checking M17N_FLT_CFLAGS...
$ECHO_C" >&6; }
13459 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
13460 { echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
13461 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13463 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
13464 echo $ECHO_N "checking M17N_FLT_LIBS...
$ECHO_C" >&6; }
13465 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
13466 { echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
13467 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13469 { echo "$as_me:$LINENO: result
: no
" >&5
13470 echo "${ECHO_T}no
" >&6; }
13473 ## If we have a custom action on failure, don't print errors, but
13474 ## do set a variable so people can do so.
13475 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
13482 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13483 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13487 if test $succeeded = yes; then
13493 if test "$HAVE_M17N_FLT" = "yes"; then
13495 cat >>confdefs.h <<\_ACEOF
13496 #define HAVE_M17N_FLT 1
13508 ### End of font-backend (under X11) section.
13519 ### Use -lXpm if available, unless `--with-xpm=no'.
13521 if test "${HAVE_X11}" = "yes"; then
13522 if test "${with_xpm}" != "no
"; then
13523 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13524 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13525 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13526 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13527 echo $ECHO_N "(cached
) $ECHO_C" >&6
13529 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13530 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13532 # Is the header compilable?
13533 { echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
13534 echo $ECHO_N "checking X11
/xpm.h usability...
$ECHO_C" >&6; }
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13542 #include <X11/xpm.h>
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13553 grep -v '^ *+' conftest.er1 >conftest.err
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_header_compiler=yes
13563 echo "$as_me: failed program was
:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_header_compiler=no
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13571 echo "${ECHO_T}$ac_header_compiler" >&6; }
13573 # Is the header present?
13574 { echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
13575 echo $ECHO_N "checking X11
/xpm.h presence...
$ECHO_C" >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <X11/xpm.h>
13584 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13592 grep -v '^ *+' conftest.er1 >conftest.err
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13596 (exit $ac_status); } >/dev/null && {
13597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13600 ac_header_preproc=yes
13602 echo "$as_me: failed program was
:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_preproc=no
13608 rm -f conftest.err conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13610 echo "${ECHO_T}$ac_header_preproc" >&6; }
13612 # So? What about this header?
13613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13615 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13616 echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13617 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
13618 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
13619 ac_header_preproc=yes
13622 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
13623 echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
13624 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
13625 echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
13626 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
13627 echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
13628 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13629 echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13630 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
13631 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
13632 { echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
13633 echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
13637 { echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
13638 echo $ECHO_N "checking
for X11
/xpm.h...
$ECHO_C" >&6; }
13639 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13640 echo $ECHO_N "(cached
) $ECHO_C" >&6
13642 ac_cv_header_X11_xpm_h=$ac_header_preproc
13644 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
13645 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13648 if test $ac_cv_header_X11_xpm_h = yes; then
13649 { echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
13650 echo $ECHO_N "checking
for XpmReadFileToPixmap
in -lXpm...
$ECHO_C" >&6; }
13651 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13652 echo $ECHO_N "(cached
) $ECHO_C" >&6
13654 ac_check_lib_save_LIBS=$LIBS
13655 LIBS="-lXpm -lX11 $LIBS"
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13669 char XpmReadFileToPixmap ();
13673 return XpmReadFileToPixmap ();
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (ac_try="$ac_link"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_link") 2>conftest.er1
13687 grep -v '^ *+' conftest.er1 >conftest.err
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest$ac_exeext &&
13695 $as_test_x conftest$ac_exeext; then
13696 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13698 echo "$as_me: failed program was
:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13705 conftest$ac_exeext conftest.$ac_ext
13706 LIBS=$ac_check_lib_save_LIBS
13708 { echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13709 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13710 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13717 if test "${HAVE_XPM}" = "yes"; then
13718 { echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
13719 echo $ECHO_N "checking
for XpmReturnAllocPixels preprocessor define...
$ECHO_C" >&6; }
13720 cat >conftest.$ac_ext <<_ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 #include "X11
/xpm.h
"
13727 #ifndef XpmReturnAllocPixels
13728 no_return_alloc_pixels
13732 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13733 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
13741 if test "${HAVE_XPM}" = "yes"; then
13742 { echo "$as_me:$LINENO: result
: yes" >&5
13743 echo "${ECHO_T}yes" >&6; }
13745 { echo "$as_me:$LINENO: result
: no
" >&5
13746 echo "${ECHO_T}no
" >&6; }
13751 if test "${HAVE_XPM}" = "yes"; then
13753 cat >>confdefs.h <<\_ACEOF
13760 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13762 if test "${HAVE_X11}" = "yes"; then
13763 if test "${with_jpeg}" != "no
"; then
13764 if test "${ac_cv_header_jerror_h+set}" = set; then
13765 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13766 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13767 if test "${ac_cv_header_jerror_h+set}" = set; then
13768 echo $ECHO_N "(cached
) $ECHO_C" >&6
13770 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13771 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13773 # Is the header compilable?
13774 { echo "$as_me:$LINENO: checking jerror.h usability
" >&5
13775 echo $ECHO_N "checking jerror.h usability...
$ECHO_C" >&6; }
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13783 #include <jerror.h>
13785 rm -f conftest.$ac_objext
13786 if { (ac_try="$ac_compile"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_compile") 2>conftest.er1
13794 grep -v '^ *+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest.$ac_objext; then
13802 ac_header_compiler=yes
13804 echo "$as_me: failed program was
:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_header_compiler=no
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
13812 echo "${ECHO_T}$ac_header_compiler" >&6; }
13814 # Is the header present?
13815 { echo "$as_me:$LINENO: checking jerror.h presence
" >&5
13816 echo $ECHO_N "checking jerror.h presence...
$ECHO_C" >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 #include <jerror.h>
13825 if { (ac_try="$ac_cpp conftest.
$ac_ext"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
13833 grep -v '^ *+' conftest.er1 >conftest.err
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13837 (exit $ac_status); } >/dev/null && {
13838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13841 ac_header_preproc=yes
13843 echo "$as_me: failed program was
:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13846 ac_header_preproc=no
13849 rm -f conftest.err conftest.$ac_ext
13850 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
13851 echo "${ECHO_T}$ac_header_preproc" >&6; }
13853 # So? What about this header?
13854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13856 { echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
13857 echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
13858 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
13859 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
13860 ac_header_preproc=yes
13863 { echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
13864 echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
13865 { echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
13866 echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
13867 { echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
13868 echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
13869 { echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
13870 echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
13871 { echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
13872 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
13873 { echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
13874 echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
13878 { echo "$as_me:$LINENO: checking
for jerror.h
" >&5
13879 echo $ECHO_N "checking
for jerror.h...
$ECHO_C" >&6; }
13880 if test "${ac_cv_header_jerror_h+set}" = set; then
13881 echo $ECHO_N "(cached
) $ECHO_C" >&6
13883 ac_cv_header_jerror_h=$ac_header_preproc
13885 { echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
13886 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13889 if test $ac_cv_header_jerror_h = yes; then
13890 { echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
13891 echo $ECHO_N "checking
for jpeg_destroy_compress
in -ljpeg...
$ECHO_C" >&6; }
13892 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13893 echo $ECHO_N "(cached
) $ECHO_C" >&6
13895 ac_check_lib_save_LIBS=$LIBS
13896 LIBS="-ljpeg $LIBS"
13897 cat >conftest.$ac_ext <<_ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13904 /* Override any GCC internal prototype to avoid an error.
13905 Use char because int might match the return type of a GCC
13906 builtin and then its argument prototype would still apply. */
13910 char jpeg_destroy_compress ();
13914 return jpeg_destroy_compress ();
13919 rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (ac_try="$ac_link"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_link") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest$ac_exeext &&
13936 $as_test_x conftest$ac_exeext; then
13937 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13939 echo "$as_me: failed program was
:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13946 conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13949 { echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13950 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13951 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13961 if test "${HAVE_JPEG}" = "yes"; then
13962 cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_JPEG 1
13966 cat >conftest.$ac_ext <<_ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include <jpeglib.h>
13973 version=JPEG_LIB_VERSION
13976 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13977 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
13978 cat >>confdefs.h <<\_ACEOF
13979 #define HAVE_JPEG 1
13983 { echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
13984 echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
13992 ### Use -lpng if available, unless `--with-png=no'.
13994 if test "${HAVE_X11}" = "yes"; then
13995 if test "${with_png}" != "no
"; then
13996 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13997 # in /usr/include/libpng.
14000 for ac_header in png.h libpng/png.h
14002 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14007 echo $ECHO_N "(cached
) $ECHO_C" >&6
14009 ac_res=`eval echo '${'$as_ac_Header'}'`
14010 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14011 echo "${ECHO_T}$ac_res" >&6; }
14013 # Is the header compilable?
14014 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14015 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 $ac_includes_default
14023 #include <$ac_header>
14025 rm -f conftest.$ac_objext
14026 if { (ac_try="$ac_compile"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_compile") 2>conftest.er1
14034 grep -v '^ *+' conftest.er1 >conftest.err
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest.$ac_objext; then
14042 ac_header_compiler=yes
14044 echo "$as_me: failed program was
:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_header_compiler=no
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14052 echo "${ECHO_T}$ac_header_compiler" >&6; }
14054 # Is the header present?
14055 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14056 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <$ac_header>
14065 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14073 grep -v '^ *+' conftest.er1 >conftest.err
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14077 (exit $ac_status); } >/dev/null && {
14078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14081 ac_header_preproc=yes
14083 echo "$as_me: failed program was
:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_header_preproc=no
14089 rm -f conftest.err conftest.$ac_ext
14090 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14091 echo "${ECHO_T}$ac_header_preproc" >&6; }
14093 # So? What about this header?
14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14096 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14097 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14098 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14100 ac_header_preproc=yes
14103 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14104 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14105 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14106 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14107 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14108 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14109 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14110 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14111 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14113 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14114 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14118 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14119 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14120 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14121 echo $ECHO_N "(cached
) $ECHO_C" >&6
14123 eval "$as_ac_Header=\
$ac_header_preproc"
14125 ac_res=`eval echo '${'$as_ac_Header'}'`
14126 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14127 echo "${ECHO_T}$ac_res" >&6; }
14130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14139 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14140 { echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
14141 echo $ECHO_N "checking
for png_get_channels
in -lpng...
$ECHO_C" >&6; }
14142 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14143 echo $ECHO_N "(cached
) $ECHO_C" >&6
14145 ac_check_lib_save_LIBS=$LIBS
14146 LIBS="-lpng -lz -lm $LIBS"
14147 cat >conftest.$ac_ext <<_ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14154 /* Override any GCC internal prototype to avoid an error.
14155 Use char because int might match the return type of a GCC
14156 builtin and then its argument prototype would still apply. */
14160 char png_get_channels ();
14164 return png_get_channels ();
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (ac_try="$ac_link"
14171 case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14175 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_link") 2>conftest.er1
14178 grep -v '^ *+' conftest.er1 >conftest.err
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14182 (exit $ac_status); } && {
14183 test -z "$ac_c_werror_flag" ||
14184 test ! -s conftest.err
14185 } && test -s conftest$ac_exeext &&
14186 $as_test_x conftest$ac_exeext; then
14187 ac_cv_lib_png_png_get_channels=yes
14189 echo "$as_me: failed program was
:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_lib_png_png_get_channels=no
14195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14196 conftest$ac_exeext conftest.$ac_ext
14197 LIBS=$ac_check_lib_save_LIBS
14199 { echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
14200 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14201 if test $ac_cv_lib_png_png_get_channels = yes; then
14208 if test "${HAVE_PNG}" = "yes"; then
14210 cat >>confdefs.h <<\_ACEOF
14217 ### Use -ltiff if available, unless `--with-tiff=no'.
14219 if test "${HAVE_X11}" = "yes"; then
14220 if test "${with_tiff}" != "no
"; then
14221 if test "${ac_cv_header_tiffio_h+set}" = set; then
14222 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14223 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14224 if test "${ac_cv_header_tiffio_h+set}" = set; then
14225 echo $ECHO_N "(cached
) $ECHO_C" >&6
14227 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14228 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14230 # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
14232 echo $ECHO_N "checking tiffio.h usability...
$ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <tiffio.h>
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_compile") 2>conftest.er1
14251 grep -v '^ *+' conftest.er1 >conftest.err
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14255 (exit $ac_status); } && {
14256 test -z "$ac_c_werror_flag" ||
14257 test ! -s conftest.err
14258 } && test -s conftest.$ac_objext; then
14259 ac_header_compiler=yes
14261 echo "$as_me: failed program was
:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 ac_header_compiler=no
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6; }
14271 # Is the header present?
14272 { echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
14273 echo $ECHO_N "checking tiffio.h presence...
$ECHO_C" >&6; }
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <tiffio.h>
14282 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14294 (exit $ac_status); } >/dev/null && {
14295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14298 ac_header_preproc=yes
14300 echo "$as_me: failed program was
:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_header_preproc=no
14306 rm -f conftest.err conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6; }
14310 # So? What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14313 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14314 echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14315 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
14316 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
14317 ac_header_preproc=yes
14320 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
14321 echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
14322 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
14323 echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
14324 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
14325 echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
14326 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14327 echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14328 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
14329 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
14330 { echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
14331 echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
14335 { echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
14336 echo $ECHO_N "checking
for tiffio.h...
$ECHO_C" >&6; }
14337 if test "${ac_cv_header_tiffio_h+set}" = set; then
14338 echo $ECHO_N "(cached
) $ECHO_C" >&6
14340 ac_cv_header_tiffio_h=$ac_header_preproc
14342 { echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
14343 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14346 if test $ac_cv_header_tiffio_h = yes; then
14348 # At least one tiff package requires the jpeg library.
14349 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14350 { echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
14351 echo $ECHO_N "checking
for TIFFGetVersion
in -ltiff...
$ECHO_C" >&6; }
14352 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14353 echo $ECHO_N "(cached
) $ECHO_C" >&6
14355 ac_check_lib_save_LIBS=$LIBS
14356 LIBS="-ltiff $tifflibs $LIBS"
14357 cat >conftest.$ac_ext <<_ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14364 /* Override any GCC internal prototype to avoid an error.
14365 Use char because int might match the return type of a GCC
14366 builtin and then its argument prototype would still apply. */
14370 char TIFFGetVersion ();
14374 return TIFFGetVersion ();
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext &&
14396 $as_test_x conftest$ac_exeext; then
14397 ac_cv_lib_tiff_TIFFGetVersion=yes
14399 echo "$as_me: failed program was
:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ac_cv_lib_tiff_TIFFGetVersion=no
14405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14406 conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14409 { echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14410 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14411 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14420 if test "${HAVE_TIFF}" = "yes"; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_TIFF 1
14429 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14431 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
14432 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14433 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14434 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14435 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14436 echo $ECHO_N "(cached
) $ECHO_C" >&6
14438 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14439 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14441 # Is the header compilable?
14442 { echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
14443 echo $ECHO_N "checking gif_lib.h usability...
$ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 #include <gif_lib.h>
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1 >conftest.err
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.$ac_objext; then
14470 ac_header_compiler=yes
14472 echo "$as_me: failed program was
:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_header_compiler=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6; }
14482 # Is the header present?
14483 { echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
14484 echo $ECHO_N "checking gif_lib.h presence...
$ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <gif_lib.h>
14493 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14505 (exit $ac_status); } >/dev/null && {
14506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14509 ac_header_preproc=yes
14511 echo "$as_me: failed program was
:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_header_preproc=no
14517 rm -f conftest.err conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14519 echo "${ECHO_T}$ac_header_preproc" >&6; }
14521 # So? What about this header?
14522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14524 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14525 echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14526 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
14527 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
14528 ac_header_preproc=yes
14531 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
14532 echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
14533 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
14534 echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
14535 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
14536 echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
14537 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14538 echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14539 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
14540 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
14541 { echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
14542 echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
14546 { echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
14547 echo $ECHO_N "checking
for gif_lib.h...
$ECHO_C" >&6; }
14548 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14549 echo $ECHO_N "(cached
) $ECHO_C" >&6
14551 ac_cv_header_gif_lib_h=$ac_header_preproc
14553 { echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
14554 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14557 if test $ac_cv_header_gif_lib_h = yes; then
14558 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14559 # Earlier versions can crash Emacs.
14560 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
14561 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lgif...
$ECHO_C" >&6; }
14562 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14563 echo $ECHO_N "(cached
) $ECHO_C" >&6
14565 ac_check_lib_save_LIBS=$LIBS
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14574 /* Override any GCC internal prototype to avoid an error.
14575 Use char because int might match the return type of a GCC
14576 builtin and then its argument prototype would still apply. */
14580 char EGifPutExtensionLast ();
14584 return EGifPutExtensionLast ();
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_link") 2>conftest.er1
14598 grep -v '^ *+' conftest.er1 >conftest.err
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest$ac_exeext &&
14606 $as_test_x conftest$ac_exeext; then
14607 ac_cv_lib_gif_EGifPutExtensionLast=yes
14609 echo "$as_me: failed program was
:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_lib_gif_EGifPutExtensionLast=no
14615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14616 conftest$ac_exeext conftest.$ac_ext
14617 LIBS=$ac_check_lib_save_LIBS
14619 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14620 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14621 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14631 if test "$HAVE_GIF" = yes; then
14632 ac_gif_lib_name="-lgif"
14635 # If gif_lib.h but no libgif, try libungif.
14636 if test x"$try_libungif" = xyes; then
14637 { echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
14638 echo $ECHO_N "checking
for EGifPutExtensionLast
in -lungif...
$ECHO_C" >&6; }
14639 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14640 echo $ECHO_N "(cached
) $ECHO_C" >&6
14642 ac_check_lib_save_LIBS=$LIBS
14643 LIBS="-lungif $LIBS"
14644 cat >conftest.$ac_ext <<_ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14651 /* Override any GCC internal prototype to avoid an error.
14652 Use char because int might match the return type of a GCC
14653 builtin and then its argument prototype would still apply. */
14657 char EGifPutExtensionLast ();
14661 return EGifPutExtensionLast ();
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext &&
14683 $as_test_x conftest$ac_exeext; then
14684 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14686 echo "$as_me: failed program was
:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_cv_lib_ungif_EGifPutExtensionLast=no
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693 conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14696 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14697 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14698 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14703 if test "$HAVE_GIF" = yes; then
14705 cat >>confdefs.h <<\_ACEOF
14706 #define LIBGIF -lungif
14709 ac_gif_lib_name="-lungif"
14713 if test "${HAVE_GIF}" = "yes"; then
14715 cat >>confdefs.h <<\_ACEOF
14722 if test "${HAVE_X11}" = "yes"; then
14725 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
14726 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
14727 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
14728 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
14729 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
14730 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
14731 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
14732 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
14733 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
14734 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
14736 if test "X
${MISSING}" != X; then
14737 { { echo "$as_me:$LINENO: error
: The following required libraries were not found
:
14739 Maybe some development libraries
/packages are missing?
14740 If you don
't want to link with them give
14742 as options to configure" >&5
14743 echo "$as_me: error: The following required libraries were not found:
14745 Maybe some development libraries/packages are missing?
14746 If you don't want to link with them give
14748 as options to configure
" >&2;}
14749 { (exit 1); exit 1; }; }
14753 ### Use -lgpm if available, unless `--with-gpm=no'.
14755 if test "${with_gpm}" != "no
"; then
14756 if test "${ac_cv_header_gpm_h+set}" = set; then
14757 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14758 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14759 if test "${ac_cv_header_gpm_h+set}" = set; then
14760 echo $ECHO_N "(cached
) $ECHO_C" >&6
14762 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14763 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14765 # Is the header compilable?
14766 { echo "$as_me:$LINENO: checking gpm.h usability
" >&5
14767 echo $ECHO_N "checking gpm.h usability...
$ECHO_C" >&6; }
14768 cat >conftest.$ac_ext <<_ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 $ac_includes_default
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14790 (exit $ac_status); } && {
14791 test -z "$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 } && test -s conftest.$ac_objext; then
14794 ac_header_compiler=yes
14796 echo "$as_me: failed program was
:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_header_compiler=no
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14804 echo "${ECHO_T}$ac_header_compiler" >&6; }
14806 # Is the header present?
14807 { echo "$as_me:$LINENO: checking gpm.h presence
" >&5
14808 echo $ECHO_N "checking gpm.h presence...
$ECHO_C" >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14817 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14829 (exit $ac_status); } >/dev/null && {
14830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14831 test ! -s conftest.err
14833 ac_header_preproc=yes
14835 echo "$as_me: failed program was
:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_header_preproc=no
14841 rm -f conftest.err conftest.$ac_ext
14842 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14843 echo "${ECHO_T}$ac_header_preproc" >&6; }
14845 # So? What about this header?
14846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14848 { echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14849 echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14850 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
14851 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
14852 ac_header_preproc=yes
14855 { echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
14856 echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
14857 { echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
14858 echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
14859 { echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
14860 echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
14861 { echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14862 echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14863 { echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
14864 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
14865 { echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
14866 echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
14870 { echo "$as_me:$LINENO: checking
for gpm.h
" >&5
14871 echo $ECHO_N "checking
for gpm.h...
$ECHO_C" >&6; }
14872 if test "${ac_cv_header_gpm_h+set}" = set; then
14873 echo $ECHO_N "(cached
) $ECHO_C" >&6
14875 ac_cv_header_gpm_h=$ac_header_preproc
14877 { echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
14878 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14881 if test $ac_cv_header_gpm_h = yes; then
14882 { echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
14883 echo $ECHO_N "checking
for Gpm_Open
in -lgpm...
$ECHO_C" >&6; }
14884 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14885 echo $ECHO_N "(cached
) $ECHO_C" >&6
14887 ac_check_lib_save_LIBS=$LIBS
14889 cat >conftest.$ac_ext <<_ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h. */
14896 /* Override any GCC internal prototype to avoid an error.
14897 Use char because int might match the return type of a GCC
14898 builtin and then its argument prototype would still apply. */
14906 return Gpm_Open ();
14911 rm -f conftest.$ac_objext conftest$ac_exeext
14912 if { (ac_try="$ac_link"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_link") 2>conftest.er1
14920 grep -v '^ *+' conftest.er1 >conftest.err
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14924 (exit $ac_status); } && {
14925 test -z "$ac_c_werror_flag" ||
14926 test ! -s conftest.err
14927 } && test -s conftest$ac_exeext &&
14928 $as_test_x conftest$ac_exeext; then
14929 ac_cv_lib_gpm_Gpm_Open=yes
14931 echo "$as_me: failed program was
:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_lib_gpm_Gpm_Open=no
14937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14938 conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14941 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
14942 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14943 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14952 if test "${HAVE_GPM}" = "yes"; then
14954 cat >>confdefs.h <<\_ACEOF
14960 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14961 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
14962 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
14963 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14964 echo $ECHO_N "(cached
) $ECHO_C" >&6
14966 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
14967 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14969 # Is the header compilable?
14970 { echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
14971 echo $ECHO_N "checking malloc
/malloc.h usability...
$ECHO_C" >&6; }
14972 cat >conftest.$ac_ext <<_ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 $ac_includes_default
14979 #include <malloc/malloc.h>
14981 rm -f conftest.$ac_objext
14982 if { (ac_try="$ac_compile"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14994 (exit $ac_status); } && {
14995 test -z "$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest.$ac_objext; then
14998 ac_header_compiler=yes
15000 echo "$as_me: failed program was
:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 ac_header_compiler=no
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15008 echo "${ECHO_T}$ac_header_compiler" >&6; }
15010 # Is the header present?
15011 { echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
15012 echo $ECHO_N "checking malloc
/malloc.h presence...
$ECHO_C" >&6; }
15013 cat >conftest.$ac_ext <<_ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 #include <malloc/malloc.h>
15021 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15029 grep -v '^ *+' conftest.er1 >conftest.err
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15033 (exit $ac_status); } >/dev/null && {
15034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15037 ac_header_preproc=yes
15039 echo "$as_me: failed program was
:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_preproc=no
15045 rm -f conftest.err conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15047 echo "${ECHO_T}$ac_header_preproc" >&6; }
15049 # So? What about this header?
15050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15053 echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15054 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
15055 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
15056 ac_header_preproc=yes
15059 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
15060 echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
15061 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
15062 echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
15063 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
15064 echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
15065 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15066 echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15067 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
15068 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
15069 { echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
15070 echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
15074 { echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
15075 echo $ECHO_N "checking
for malloc
/malloc.h...
$ECHO_C" >&6; }
15076 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15077 echo $ECHO_N "(cached
) $ECHO_C" >&6
15079 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15081 { echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
15082 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15085 if test $ac_cv_header_malloc_malloc_h = yes; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_MALLOC_MALLOC_H 1
15095 ### Use NeXTstep API to implement GUI.
15096 if test "${HAVE_NS}" = "yes"; then
15098 cat >>confdefs.h <<\_ACEOF
15102 if test "${NS_IMPL_COCOA}" = "yes"; then
15104 cat >>confdefs.h <<\_ACEOF
15105 #define NS_IMPL_COCOA 1
15110 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15112 cat >>confdefs.h <<\_ACEOF
15113 #define NS_IMPL_GNUSTEP 1
15116 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15118 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15120 cat >>confdefs.h <<\_ACEOF
15121 #define NS_HAVE_NSINTEGER 1
15125 # We also have mouse menus.
15130 ### Use session management (-lSM -lICE) if available
15132 if test "${HAVE_X11}" = "yes"; then
15133 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15134 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15135 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
15136 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15137 echo $ECHO_N "(cached
) $ECHO_C" >&6
15139 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15140 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15142 # Is the header compilable?
15143 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
15144 echo $ECHO_N "checking X11
/SM
/SMlib.h usability...
$ECHO_C" >&6; }
15145 cat >conftest.$ac_ext <<_ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151 $ac_includes_default
15152 #include <X11/SM/SMlib.h>
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest.$ac_objext; then
15171 ac_header_compiler=yes
15173 echo "$as_me: failed program was
:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_header_compiler=no
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6; }
15183 # Is the header present?
15184 { echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
15185 echo $ECHO_N "checking X11
/SM
/SMlib.h presence...
$ECHO_C" >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <X11/SM/SMlib.h>
15194 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15206 (exit $ac_status); } >/dev/null && {
15207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15210 ac_header_preproc=yes
15212 echo "$as_me: failed program was
:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_header_preproc=no
15218 rm -f conftest.err conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6; }
15222 # So? What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15226 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
15228 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
15229 ac_header_preproc=yes
15232 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
15233 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
15234 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
15235 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
15236 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
15237 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
15238 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15239 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
15241 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
15242 { echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
15243 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
15247 { echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
15248 echo $ECHO_N "checking
for X11
/SM
/SMlib.h...
$ECHO_C" >&6; }
15249 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15250 echo $ECHO_N "(cached
) $ECHO_C" >&6
15252 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15254 { echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
15255 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15258 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15259 { echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
15260 echo $ECHO_N "checking
for SmcOpenConnection
in -lSM...
$ECHO_C" >&6; }
15261 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15262 echo $ECHO_N "(cached
) $ECHO_C" >&6
15264 ac_check_lib_save_LIBS=$LIBS
15265 LIBS="-lSM -lICE $LIBS"
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15279 char SmcOpenConnection ();
15283 return SmcOpenConnection ();
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>conftest.er1
15297 grep -v '^ *+' conftest.er1 >conftest.err
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_c_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext &&
15305 $as_test_x conftest$ac_exeext; then
15306 ac_cv_lib_SM_SmcOpenConnection=yes
15308 echo "$as_me: failed program was
:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_cv_lib_SM_SmcOpenConnection=no
15314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15315 conftest$ac_exeext conftest.$ac_ext
15316 LIBS=$ac_check_lib_save_LIBS
15318 { echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
15319 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15320 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15328 if test "${HAVE_X_SM}" = "yes"; then
15330 cat >>confdefs.h <<\_ACEOF
15331 #define HAVE_X_SM 1
15336 *) LIBS="-lSM -lICE $LIBS" ;;
15341 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15342 { echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
15343 echo $ECHO_N "checking whether netdb declares h_errno...
$ECHO_C" >&6; }
15344 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15345 echo $ECHO_N "(cached
) $ECHO_C" >&6
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_link") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext &&
15379 $as_test_x conftest$ac_exeext; then
15380 emacs_cv_netdb_declares_h_errno=yes
15382 echo "$as_me: failed program was
:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 emacs_cv_netdb_declares_h_errno=no
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389 conftest$ac_exeext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
15392 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15393 if test $emacs_cv_netdb_declares_h_errno = yes; then
15395 cat >>confdefs.h <<\_ACEOF
15396 #define HAVE_H_ERRNO 1
15401 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15402 # for constant arguments. Useless!
15403 { echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
15404 echo $ECHO_N "checking
for working alloca.h...
$ECHO_C" >&6; }
15405 if test "${ac_cv_working_alloca_h+set}" = set; then
15406 echo $ECHO_N "(cached
) $ECHO_C" >&6
15408 cat >conftest.$ac_ext <<_ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 #include <alloca.h>
15418 char *p = (char *) alloca (2 * sizeof (int));
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest$ac_exeext &&
15441 $as_test_x conftest$ac_exeext; then
15442 ac_cv_working_alloca_h=yes
15444 echo "$as_me: failed program was
:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 ac_cv_working_alloca_h=no
15450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15451 conftest$ac_exeext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
15454 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15455 if test $ac_cv_working_alloca_h = yes; then
15457 cat >>confdefs.h <<\_ACEOF
15458 #define HAVE_ALLOCA_H 1
15463 { echo "$as_me:$LINENO: checking
for alloca
" >&5
15464 echo $ECHO_N "checking
for alloca...
$ECHO_C" >&6; }
15465 if test "${ac_cv_func_alloca_works+set}" = set; then
15466 echo $ECHO_N "(cached
) $ECHO_C" >&6
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15475 # define alloca __builtin_alloca
15478 # include <malloc.h>
15479 # define alloca _alloca
15481 # ifdef HAVE_ALLOCA_H
15482 # include <alloca.h>
15487 # ifndef alloca /* predefined by HP cc +Olibcalls */
15498 char *p = (char *) alloca (1);
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_link") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest$ac_exeext &&
15521 $as_test_x conftest$ac_exeext; then
15522 ac_cv_func_alloca_works=yes
15524 echo "$as_me: failed program was
:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_cv_func_alloca_works=no
15530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15531 conftest$ac_exeext conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
15534 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15536 if test $ac_cv_func_alloca_works = yes; then
15538 cat >>confdefs.h <<\_ACEOF
15539 #define HAVE_ALLOCA 1
15543 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15544 # that cause trouble. Some versions do not even contain alloca or
15545 # contain a buggy version. If you still want to use their alloca,
15546 # use ar to extract alloca.o from them instead of compiling alloca.c.
15548 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15550 cat >>confdefs.h <<\_ACEOF
15555 { echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
15556 echo $ECHO_N "checking whether \`alloca.c
' needs Cray hooks... $ECHO_C" >&6; }
15557 if test "${ac_cv_os_cray+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 cat >conftest.$ac_ext <<_ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 #if defined CRAY && ! defined CRAY2
15573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15574 $EGREP "webecray" >/dev/null 2>&1; then
15582 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15583 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15584 if test $ac_cv_os_cray = yes; then
15585 for ac_func in _getb67 GETB67 getb67; do
15586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15600 #define $ac_func innocuous_$ac_func
15602 /* System header to define __stub macros and hopefully few prototypes,
15603 which can conflict with char $ac_func (); below.
15604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15605 <limits.h> exists even on freestanding compilers. */
15608 # include <limits.h>
15610 # include <assert.h>
15615 /* Override any GCC internal prototype to avoid an error.
15616 Use char because int might match the return type of a GCC
15617 builtin and then its argument prototype would still apply. */
15622 /* The GNU C library defines this for functions which it implements
15623 to always fail with ENOSYS. Some functions are actually named
15624 something starting with __ and the normal name is an alias. */
15625 #if defined __stub_$ac_func || defined __stub___$ac_func
15632 return $ac_func ();
15637 rm -f conftest.$ac_objext conftest$ac_exeext
15638 if { (ac_try="$ac_link"
15639 case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_link") 2>conftest.er1
15646 grep -v '^
*+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } && {
15651 test -z "$ac_c_werror_flag" ||
15652 test ! -s conftest.err
15653 } && test -s conftest$ac_exeext &&
15654 $as_test_x conftest$ac_exeext; then
15655 eval "$as_ac_var=yes"
15657 echo "$as_me: failed program was:" >&5
15658 sed 's
/^
/|
/' conftest.$ac_ext >&5
15660 eval "$as_ac_var=no"
15663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15664 conftest$ac_exeext conftest.$ac_ext
15666 ac_res=`eval echo '${'$as_ac_var'}'`
15667 { echo "$as_me:$LINENO: result: $ac_res" >&5
15668 echo "${ECHO_T}$ac_res" >&6; }
15669 if test `eval echo '${'$as_ac_var'}'` = yes; then
15671 cat >>confdefs.h <<_ACEOF
15672 #define CRAY_STACKSEG_END $ac_func
15681 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15682 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15683 if test "${ac_cv_c_stack_direction+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 if test "$cross_compiling" = yes; then
15687 ac_cv_c_stack_direction=0
15689 cat >conftest.$ac_ext <<_ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695 $ac_includes_default
15697 find_stack_direction ()
15699 static char *addr = 0;
15704 return find_stack_direction ();
15707 return (&dummy > addr) ? 1 : -1;
15713 return find_stack_direction () < 0;
15716 rm -f conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_link") 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
15727 { (case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_try") 2>&5
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_cv_c_stack_direction=1
15738 echo "$as_me: program exited with status $ac_status" >&5
15739 echo "$as_me: failed program was:" >&5
15740 sed 's
/^
/|
/' conftest.$ac_ext >&5
15742 ( exit $ac_status )
15743 ac_cv_c_stack_direction=-1
15745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15750 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15751 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15753 cat >>confdefs.h <<_ACEOF
15754 #define STACK_DIRECTION $ac_cv_c_stack_direction
15761 if test x"$ac_cv_func_alloca_works" != xyes; then
15762 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15763 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15764 { (exit 1); exit 1; }; }
15767 # fmod, logb, and frexp are found in -lm on most systems.
15768 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15770 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15771 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15772 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 ac_check_lib_save_LIBS=$LIBS
15777 cat >conftest.$ac_ext <<_ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15784 /* Override any GCC internal prototype to avoid an error.
15785 Use char because int might match the return type of a GCC
15786 builtin and then its argument prototype would still apply. */
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (ac_try="$ac_link"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_link") 2>conftest.er1
15808 grep -v '^
*+' conftest.er1 >conftest.err
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } && {
15813 test -z "$ac_c_werror_flag" ||
15814 test ! -s conftest.err
15815 } && test -s conftest$ac_exeext &&
15816 $as_test_x conftest$ac_exeext; then
15817 ac_cv_lib_m_sqrt=yes
15819 echo "$as_me: failed program was:" >&5
15820 sed 's
/^
/|
/' conftest.$ac_ext >&5
15822 ac_cv_lib_m_sqrt=no
15825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15826 conftest$ac_exeext conftest.$ac_ext
15827 LIBS=$ac_check_lib_save_LIBS
15829 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15830 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15831 if test $ac_cv_lib_m_sqrt = yes; then
15832 cat >>confdefs.h <<_ACEOF
15833 #define HAVE_LIBM 1
15841 # Check for mail-locking functions in a "mail" library. Probably this should
15842 # have the same check as for liblockfile below.
15844 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15845 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15846 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lmail $LIBS"
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15858 /* Override any GCC internal prototype to avoid an error.
15859 Use char because int might match the return type of a GCC
15860 builtin and then its argument prototype would still apply. */
15868 return maillock ();
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (ac_try="$ac_link"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_link") 2>conftest.er1
15882 grep -v '^
*+' conftest.er1 >conftest.err
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && {
15887 test -z "$ac_c_werror_flag" ||
15888 test ! -s conftest.err
15889 } && test -s conftest$ac_exeext &&
15890 $as_test_x conftest$ac_exeext; then
15891 ac_cv_lib_mail_maillock=yes
15893 echo "$as_me: failed program was:" >&5
15894 sed 's
/^
/|
/' conftest.$ac_ext >&5
15896 ac_cv_lib_mail_maillock=no
15899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LIBS=$ac_check_lib_save_LIBS
15903 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15904 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15905 if test $ac_cv_lib_mail_maillock = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907 #define HAVE_LIBMAIL 1
15910 LIBS="-lmail $LIBS"
15915 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15916 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15917 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 ac_check_lib_save_LIBS=$LIBS
15921 LIBS="-llockfile $LIBS"
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15929 /* Override any GCC internal prototype to avoid an error.
15930 Use char because int might match the return type of a GCC
15931 builtin and then its argument prototype would still apply. */
15939 return maillock ();
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>conftest.er1
15953 grep -v '^
*+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } && {
15958 test -z "$ac_c_werror_flag" ||
15959 test ! -s conftest.err
15960 } && test -s conftest$ac_exeext &&
15961 $as_test_x conftest$ac_exeext; then
15962 ac_cv_lib_lockfile_maillock=yes
15964 echo "$as_me: failed program was:" >&5
15965 sed 's
/^
/|
/' conftest.$ac_ext >&5
15967 ac_cv_lib_lockfile_maillock=no
15970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15971 conftest$ac_exeext conftest.$ac_ext
15972 LIBS=$ac_check_lib_save_LIBS
15974 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15975 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15976 if test $ac_cv_lib_lockfile_maillock = yes; then
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_LIBLOCKFILE 1
15981 LIBS="-llockfile $LIBS"
15985 # If we have the shared liblockfile, assume we must use it for mail
15986 # locking (e.g. Debian). If we couldn't link against liblockfile
15987 # (no liblockfile.a installed), ensure that we don't need to.
15988 if test "$ac_cv_lib_lockfile_maillock" = no
; then
15989 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15990 set dummy liblockfile.so
; ac_word
=$2
15991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15993 if test "${ac_cv_prog_liblockfile+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 if test -n "$liblockfile"; then
15997 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
15999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16000 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16001 for as_dir
in $as_dummy
16004 test -z "$as_dir" && as_dir
=.
16005 for ac_exec_ext
in '' $ac_executable_extensions; do
16006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16007 ac_cv_prog_liblockfile
="yes"
16008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16015 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
16018 liblockfile
=$ac_cv_prog_liblockfile
16019 if test -n "$liblockfile"; then
16020 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16021 echo "${ECHO_T}$liblockfile" >&6; }
16023 { echo "$as_me:$LINENO: result: no" >&5
16024 echo "${ECHO_T}no" >&6; }
16028 if test $ac_cv_prog_liblockfile = yes; then
16029 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16030 This probably means that movemail could lose mail.
16031 There may be a \`development' package to install containing liblockfile." >&5
16032 echo "$as_me: error: Shared liblockfile found but can't link against it.
16033 This probably means that movemail could lose mail.
16034 There may be a \`development' package to install containing liblockfile." >&2;}
16035 { (exit 1); exit 1; }; }
16040 for ac_func
in touchlock
16042 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16045 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 cat >conftest.
$ac_ext <<_ACEOF
16051 cat confdefs.h
>>conftest.
$ac_ext
16052 cat >>conftest.
$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16056 #define $ac_func innocuous_$ac_func
16058 /* System header to define __stub macros and hopefully few prototypes,
16059 which can conflict with char $ac_func (); below.
16060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16061 <limits.h> exists even on freestanding compilers. */
16064 # include <limits.h>
16066 # include <assert.h>
16071 /* Override any GCC internal prototype to avoid an error.
16072 Use char because int might match the return type of a GCC
16073 builtin and then its argument prototype would still apply. */
16078 /* The GNU C library defines this for functions which it implements
16079 to always fail with ENOSYS. Some functions are actually named
16080 something starting with __ and the normal name is an alias. */
16081 #if defined __stub_$ac_func || defined __stub___$ac_func
16088 return $ac_func ();
16093 rm -f conftest.
$ac_objext conftest
$ac_exeext
16094 if { (ac_try
="$ac_link"
16095 case "(($ac_try" in
16096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_link") 2>conftest.er1
16102 grep -v '^ *+' conftest.er1 >conftest.err
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && {
16107 test -z "$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 } && test -s conftest$ac_exeext &&
16110 $as_test_x conftest$ac_exeext; then
16111 eval "$as_ac_var=yes"
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 eval "$as_ac_var=no"
16119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16120 conftest$ac_exeext conftest.$ac_ext
16122 ac_res=`eval echo '${'$as_ac_var'}'`
16123 { echo "$as_me:$LINENO: result: $ac_res" >&5
16124 echo "${ECHO_T}$ac_res" >&6; }
16125 if test `eval echo '${'$as_ac_var'}'` = yes; then
16126 cat >>confdefs.h <<_ACEOF
16127 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16134 for ac_header in maillock.h
16136 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16147 # Is the header compilable?
16148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $ac_includes_default
16157 #include <$ac_header>
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16163 *) ac_try_echo
=$ac_try;;
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_compile") 2>conftest.er1
16168 grep -v '^ *+' conftest.er1
>conftest.err
16170 cat conftest.err
>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } && {
16173 test -z "$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 } && test -s conftest.
$ac_objext; then
16176 ac_header_compiler
=yes
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.
$ac_ext >&5
16181 ac_header_compiler
=no
16184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16186 echo "${ECHO_T}$ac_header_compiler" >&6; }
16188 # Is the header present?
16189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16191 cat >conftest.
$ac_ext <<_ACEOF
16194 cat confdefs.h
>>conftest.
$ac_ext
16195 cat >>conftest.
$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <$ac_header>
16199 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16200 case "(($ac_try" in
16201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } >/dev/null && {
16212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16215 ac_header_preproc=yes
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_preproc=no
16223 rm -f conftest.err conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16225 echo "${ECHO_T}$ac_header_preproc" >&6; }
16227 # So? What about this header?
16228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16234 ac_header_preproc=yes
16237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 eval "$as_ac_Header=\$ac_header_preproc"
16259 ac_res=`eval echo '${'$as_ac_Header'}'`
16260 { echo "$as_me:$LINENO: result: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16265 cat >>confdefs.h <<_ACEOF
16266 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16345 for ac_func in gethostname getdomainname dup2 \
16346 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16347 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16348 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16349 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16350 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16351 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16352 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16353 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16354 cfmakeraw cfsetspeed
16356 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 cat >conftest.$ac_ext <<_ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16370 #define $ac_func innocuous_$ac_func
16372 /* System header to define __stub macros and hopefully few prototypes,
16373 which can conflict with char $ac_func (); below.
16374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16375 <limits.h> exists even on freestanding compilers. */
16378 # include <limits.h>
16380 # include <assert.h>
16385 /* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16392 /* The GNU C library defines this for functions which it implements
16393 to always fail with ENOSYS. Some functions are actually named
16394 something starting with __ and the normal name is an alias. */
16395 #if defined __stub_$ac_func || defined __stub___$ac_func
16402 return $ac_func ();
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16411 *) ac_try_echo
=$ac_try;;
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_link") 2>conftest.er1
16416 grep -v '^ *+' conftest.er1
>conftest.err
16418 cat conftest.err
>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } && {
16421 test -z "$ac_c_werror_flag" ||
16422 test ! -s conftest.err
16423 } && test -s conftest
$ac_exeext &&
16424 $as_test_x conftest
$ac_exeext; then
16425 eval "$as_ac_var=yes"
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.
$ac_ext >&5
16430 eval "$as_ac_var=no"
16433 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16434 conftest
$ac_exeext conftest.
$ac_ext
16436 ac_res
=`eval echo '${'$as_ac_var'}'`
16437 { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16439 if test `eval echo '${'$as_ac_var'}'` = yes; then
16440 cat >>confdefs.h
<<_ACEOF
16441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16449 for ac_header
in sys
/un.h
16451 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16452 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16455 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 ac_res
=`eval echo '${'$as_ac_Header'}'`
16459 { echo "$as_me:$LINENO: result: $ac_res" >&5
16460 echo "${ECHO_T}$ac_res" >&6; }
16462 # Is the header compilable?
16463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16465 cat >conftest.
$ac_ext <<_ACEOF
16468 cat confdefs.h
>>conftest.
$ac_ext
16469 cat >>conftest.
$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 $ac_includes_default
16472 #include <$ac_header>
16474 rm -f conftest.
$ac_objext
16475 if { (ac_try
="$ac_compile"
16476 case "(($ac_try" in
16477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_compile") 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } && {
16488 test -z "$ac_c_werror_flag" ||
16489 test ! -s conftest.err
16490 } && test -s conftest.$ac_objext; then
16491 ac_header_compiler=yes
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_header_compiler=no
16499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16501 echo "${ECHO_T}$ac_header_compiler" >&6; }
16503 # Is the header present?
16504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16506 cat >conftest.$ac_ext <<_ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 #include <$ac_header>
16514 if { (ac_try="$ac_cpp conftest.$ac_ext"
16515 case "(($ac_try" in
16516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16517 *) ac_try_echo
=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16522 grep -v '^ *+' conftest.er1
>conftest.err
16524 cat conftest.err
>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } >/dev
/null
&& {
16527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16528 test ! -s conftest.err
16530 ac_header_preproc
=yes
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.
$ac_ext >&5
16535 ac_header_preproc
=no
16538 rm -f conftest.err conftest.
$ac_ext
16539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16540 echo "${ECHO_T}$ac_header_preproc" >&6; }
16542 # So? What about this header?
16543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16549 ac_header_preproc
=yes
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16569 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16572 eval "$as_ac_Header=\$ac_header_preproc"
16574 ac_res
=`eval echo '${'$as_ac_Header'}'`
16575 { echo "$as_me:$LINENO: result: $ac_res" >&5
16576 echo "${ECHO_T}$ac_res" >&6; }
16579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16580 cat >>confdefs.h
<<_ACEOF
16581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16593 for ac_header
in $ac_header_list
16595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 ac_res
=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16606 # Is the header compilable?
16607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16609 cat >conftest.
$ac_ext <<_ACEOF
16612 cat confdefs.h
>>conftest.
$ac_ext
16613 cat >>conftest.
$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 $ac_includes_default
16616 #include <$ac_header>
16618 rm -f conftest.
$ac_objext
16619 if { (ac_try
="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1 >conftest.err
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest.$ac_objext; then
16635 ac_header_compiler=yes
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 ac_header_compiler=no
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16645 echo "${ECHO_T}$ac_header_compiler" >&6; }
16647 # Is the header present?
16648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include <$ac_header>
16658 if { (ac_try="$ac_cpp conftest.$ac_ext"
16659 case "(($ac_try" in
16660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16661 *) ac_try_echo
=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1
>conftest.err
16668 cat conftest.err
>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev
/null
&& {
16671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16674 ac_header_preproc
=yes
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.
$ac_ext >&5
16679 ac_header_preproc
=no
16682 rm -f conftest.err conftest.
$ac_ext
16683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16684 echo "${ECHO_T}$ac_header_preproc" >&6; }
16686 # So? What about this header?
16687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16693 ac_header_preproc
=yes
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 eval "$as_ac_Header=\$ac_header_preproc"
16718 ac_res
=`eval echo '${'$as_ac_Header'}'`
16719 { echo "$as_me:$LINENO: result: $ac_res" >&5
16720 echo "${ECHO_T}$ac_res" >&6; }
16723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16724 cat >>confdefs.h
<<_ACEOF
16725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16740 for ac_func
in $ac_func_list
16742 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16745 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 cat >conftest.
$ac_ext <<_ACEOF
16751 cat confdefs.h
>>conftest.
$ac_ext
16752 cat >>conftest.
$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16756 #define $ac_func innocuous_$ac_func
16758 /* System header to define __stub macros and hopefully few prototypes,
16759 which can conflict with char $ac_func (); below.
16760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16761 <limits.h> exists even on freestanding compilers. */
16764 # include <limits.h>
16766 # include <assert.h>
16771 /* Override any GCC internal prototype to avoid an error.
16772 Use char because int might match the return type of a GCC
16773 builtin and then its argument prototype would still apply. */
16778 /* The GNU C library defines this for functions which it implements
16779 to always fail with ENOSYS. Some functions are actually named
16780 something starting with __ and the normal name is an alias. */
16781 #if defined __stub_$ac_func || defined __stub___$ac_func
16788 return $ac_func ();
16793 rm -f conftest.
$ac_objext conftest
$ac_exeext
16794 if { (ac_try
="$ac_link"
16795 case "(($ac_try" in
16796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_link") 2>conftest.er1
16802 grep -v '^ *+' conftest.er1 >conftest.err
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } && {
16807 test -z "$ac_c_werror_flag" ||
16808 test ! -s conftest.err
16809 } && test -s conftest$ac_exeext &&
16810 $as_test_x conftest$ac_exeext; then
16811 eval "$as_ac_var=yes"
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 eval "$as_ac_var=no"
16819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16820 conftest$ac_exeext conftest.$ac_ext
16822 ac_res=`eval echo '${'$as_ac_var'}'`
16823 { echo "$as_me:$LINENO: result: $ac_res" >&5
16824 echo "${ECHO_T}$ac_res" >&6; }
16825 if test `eval echo '${'$as_ac_var'}'` = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16849 { echo "$as_me:$LINENO: checking for working mktime" >&5
16850 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16851 if test "${ac_cv_func_working_mktime+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 if test "$cross_compiling" = yes; then
16855 ac_cv_func_working_mktime=no
16857 cat >conftest.$ac_ext <<_ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 /* Test program from Paul Eggert and Tony Leneis. */
16864 #ifdef TIME_WITH_SYS_TIME
16865 # include <sys/time.h>
16868 # ifdef HAVE_SYS_TIME_H
16869 # include <sys/time.h>
16875 #include <limits.h>
16876 #include <stdlib.h>
16878 #ifdef HAVE_UNISTD_H
16879 # include <unistd.h>
16883 # define alarm(X) /* empty */
16886 /* Work around redefinition to rpl_putenv by other config tests. */
16889 static time_t time_t_max;
16890 static time_t time_t_min;
16892 /* Values we'll use to set the TZ environment variable. */
16893 static char *tz_strings[] = {
16894 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16895 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16897 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16899 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16900 Based on a problem report from Andreas Jaeger. */
16902 spring_forward_gap ()
16904 /* glibc (up to about 1998-10-07) failed this test. */
16907 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16908 instead of "TZ=America/Vancouver" in order to detect the bug even
16909 on systems that don't support the Olson extension, or don't have the
16910 full zoneinfo tables installed. */
16911 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16920 return mktime (&tm) != (time_t) -1;
16928 return ! (lt = localtime (&now)) || mktime (lt) == now;
16935 return (mktime_test1 (now)
16936 && mktime_test1 ((time_t) (time_t_max - now))
16937 && mktime_test1 ((time_t) (time_t_min + now)));
16943 /* Based on code from Ariel Faigon. */
16953 return tm.tm_mon == 2 && tm.tm_mday == 31;
16962 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16963 now = mktime (&tm);
16964 if (now != (time_t) -1)
16966 struct tm *lt = localtime (&now);
16968 && lt->tm_year == tm.tm_year
16969 && lt->tm_mon == tm.tm_mon
16970 && lt->tm_mday == tm.tm_mday
16971 && lt->tm_hour == tm.tm_hour
16972 && lt->tm_min == tm.tm_min
16973 && lt->tm_sec == tm.tm_sec
16974 && lt->tm_yday == tm.tm_yday
16975 && lt->tm_wday == tm.tm_wday
16976 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16977 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16986 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16987 ignoring leap seconds. */
16988 unsigned long int answer = 2527315200UL;
16992 tm.tm_year = 2050 - 1900;
16995 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16998 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16999 instead of "TZ=America/Vancouver" in order to detect the bug even
17000 on systems that don't support the Olson extension, or don't have the
17001 full zoneinfo tables installed. */
17002 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17006 /* Check that the result is either a failure, or close enough
17007 to the correct answer that we can assume the discrepancy is
17008 due to leap seconds. */
17009 return (t == (time_t) -1
17010 || (0 < t && answer - 120 <= t && t <= answer + 120));
17019 /* This test makes some buggy mktime implementations loop.
17020 Give up after 60 seconds; a mktime slower than that
17021 isn't worth using anyway. */
17026 t = (time_t_max << 1) + 1;
17027 if (t <= time_t_max)
17031 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17033 delta = time_t_max / 997; /* a suitable prime number */
17034 for (i = 0; i < N_STRINGS; i++)
17037 putenv (tz_strings[i]);
17039 for (t = 0; t <= time_t_max - delta; t += delta)
17040 if (! mktime_test (t))
17042 if (! (mktime_test ((time_t) 1)
17043 && mktime_test ((time_t) (60 * 60))
17044 && mktime_test ((time_t) (60 * 60 * 24))))
17047 for (j = 1; ; j <<= 1)
17048 if (! bigtime_test (j))
17050 else if (INT_MAX / 2 < j)
17052 if (! bigtime_test (INT_MAX))
17055 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17058 rm -f conftest$ac_exeext
17059 if { (ac_try="$ac_link"
17060 case "(($ac_try" in
17061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17062 *) ac_try_echo
=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_link") 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17069 { (case "(($ac_try" in
17070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_try") 2>&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_cv_func_working_mktime=yes
17080 echo "$as_me: program exited with status $ac_status" >&5
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 ( exit $ac_status )
17085 ac_cv_func_working_mktime=no
17087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17092 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17093 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17094 if test $ac_cv_func_working_mktime = no; then
17095 case " $LIBOBJS " in
17096 *" mktime.$ac_objext "* ) ;;
17097 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17103 if test "$ac_cv_func_working_mktime" = no; then
17105 cat >>confdefs.h <<\_ACEOF
17106 #define BROKEN_MKTIME 1
17111 ac_have_func=no # yes means we've found a way to get the load average.
17113 # Make sure getloadavg.c is where it belongs, at configure-time.
17114 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17115 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17116 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17117 { (exit 1); exit 1; }; }
17121 # Check for getloadavg, but be sure not to touch the cache variable.
17122 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17123 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17124 if test "${ac_cv_func_getloadavg+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 cat >conftest.$ac_ext <<_ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17135 #define getloadavg innocuous_getloadavg
17137 /* System header to define __stub macros and hopefully few prototypes,
17138 which can conflict with char getloadavg (); below.
17139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17140 <limits.h> exists even on freestanding compilers. */
17143 # include <limits.h>
17145 # include <assert.h>
17150 /* Override any GCC internal prototype to avoid an error.
17151 Use char because int might match the return type of a GCC
17152 builtin and then its argument prototype would still apply. */
17156 char getloadavg ();
17157 /* The GNU C library defines this for functions which it implements
17158 to always fail with ENOSYS. Some functions are actually named
17159 something starting with __ and the normal name is an alias. */
17160 #if defined __stub_getloadavg || defined __stub___getloadavg
17167 return getloadavg ();
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (ac_try="$ac_link"
17174 case "(($ac_try" in
17175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17176 *) ac_try_echo
=$ac_try;;
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_link") 2>conftest.er1
17181 grep -v '^ *+' conftest.er1
>conftest.err
17183 cat conftest.err
>&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && {
17186 test -z "$ac_c_werror_flag" ||
17187 test ! -s conftest.err
17188 } && test -s conftest
$ac_exeext &&
17189 $as_test_x conftest
$ac_exeext; then
17190 ac_cv_func_getloadavg
=yes
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.
$ac_ext >&5
17195 ac_cv_func_getloadavg
=no
17198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17199 conftest
$ac_exeext conftest.
$ac_ext
17201 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17202 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17203 if test $ac_cv_func_getloadavg = yes; then
17208 ) && ac_have_func
=yes
17210 # On HPUX9, an unprivileged user can get load averages through this function.
17212 for ac_func
in pstat_getdynamic
17214 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17217 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 cat >conftest.
$ac_ext <<_ACEOF
17223 cat confdefs.h
>>conftest.
$ac_ext
17224 cat >>conftest.
$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228 #define $ac_func innocuous_$ac_func
17230 /* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char $ac_func (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17236 # include <limits.h>
17238 # include <assert.h>
17243 /* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17250 /* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253 #if defined __stub_$ac_func || defined __stub___$ac_func
17260 return $ac_func ();
17265 rm -f conftest.
$ac_objext conftest
$ac_exeext
17266 if { (ac_try
="$ac_link"
17267 case "(($ac_try" in
17268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17274 grep -v '^ *+' conftest.er1 >conftest.err
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest$ac_exeext &&
17282 $as_test_x conftest$ac_exeext; then
17283 eval "$as_ac_var=yes"
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 eval "$as_ac_var=no"
17291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17292 conftest$ac_exeext conftest.$ac_ext
17294 ac_res=`eval echo '${'$as_ac_var'}'`
17295 { echo "$as_me:$LINENO: result: $ac_res" >&5
17296 echo "${ECHO_T}$ac_res" >&6; }
17297 if test `eval echo '${'$as_ac_var'}'` = yes; then
17298 cat >>confdefs.h <<_ACEOF
17299 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17306 # Solaris has libkstat which does not require root.
17308 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17309 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17310 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lkstat $LIBS"
17315 cat >conftest.$ac_ext <<_ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17328 char kstat_open ();
17332 return kstat_open ();
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (ac_try="$ac_link"
17339 case "(($ac_try" in
17340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17341 *) ac_try_echo
=$ac_try;;
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_link") 2>conftest.er1
17346 grep -v '^ *+' conftest.er1
>conftest.err
17348 cat conftest.err
>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && {
17351 test -z "$ac_c_werror_flag" ||
17352 test ! -s conftest.err
17353 } && test -s conftest
$ac_exeext &&
17354 $as_test_x conftest
$ac_exeext; then
17355 ac_cv_lib_kstat_kstat_open
=yes
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.
$ac_ext >&5
17360 ac_cv_lib_kstat_kstat_open
=no
17363 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17364 conftest
$ac_exeext conftest.
$ac_ext
17365 LIBS
=$ac_check_lib_save_LIBS
17367 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17368 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17369 if test $ac_cv_lib_kstat_kstat_open = yes; then
17370 cat >>confdefs.h
<<_ACEOF
17371 #define HAVE_LIBKSTAT 1
17374 LIBS
="-lkstat $LIBS"
17378 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
17380 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17381 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17382 # to get the right answer into the cache.
17383 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17384 if test $ac_have_func = no
; then
17385 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17386 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17387 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 ac_check_lib_save_LIBS
=$LIBS
17392 cat >conftest.
$ac_ext <<_ACEOF
17395 cat confdefs.h
>>conftest.
$ac_ext
17396 cat >>conftest.
$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17399 /* Override any GCC internal prototype to avoid an error.
17400 Use char because int might match the return type of a GCC
17401 builtin and then its argument prototype would still apply. */
17409 return elf_begin ();
17414 rm -f conftest.
$ac_objext conftest
$ac_exeext
17415 if { (ac_try
="$ac_link"
17416 case "(($ac_try" in
17417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_link") 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext &&
17431 $as_test_x conftest$ac_exeext; then
17432 ac_cv_lib_elf_elf_begin=yes
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 ac_cv_lib_elf_elf_begin=no
17440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17441 conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17444 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17445 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17446 if test $ac_cv_lib_elf_elf_begin = yes; then
17451 if test $ac_have_func = no; then
17452 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17453 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17454 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17457 ac_check_lib_save_LIBS=$LIBS
17459 cat >conftest.$ac_ext <<_ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17476 return kvm_open ();
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17485 *) ac_try_echo
=$ac_try;;
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17490 grep -v '^ *+' conftest.er1
>conftest.err
17492 cat conftest.err
>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } && {
17495 test -z "$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 } && test -s conftest
$ac_exeext &&
17498 $as_test_x conftest
$ac_exeext; then
17499 ac_cv_lib_kvm_kvm_open
=yes
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.
$ac_ext >&5
17504 ac_cv_lib_kvm_kvm_open
=no
17507 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17508 conftest
$ac_exeext conftest.
$ac_ext
17509 LIBS
=$ac_check_lib_save_LIBS
17511 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17512 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17513 if test $ac_cv_lib_kvm_kvm_open = yes; then
17517 # Check for the 4.4BSD definition of getloadavg.
17518 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17519 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17520 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 ac_check_lib_save_LIBS
=$LIBS
17524 LIBS
="-lutil $LIBS"
17525 cat >conftest.
$ac_ext <<_ACEOF
17528 cat confdefs.h
>>conftest.
$ac_ext
17529 cat >>conftest.
$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17532 /* Override any GCC internal prototype to avoid an error.
17533 Use char because int might match the return type of a GCC
17534 builtin and then its argument prototype would still apply. */
17538 char getloadavg ();
17542 return getloadavg ();
17547 rm -f conftest.
$ac_objext conftest
$ac_exeext
17548 if { (ac_try
="$ac_link"
17549 case "(($ac_try" in
17550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_link") 2>conftest.er1
17556 grep -v '^ *+' conftest.er1 >conftest.err
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } && {
17561 test -z "$ac_c_werror_flag" ||
17562 test ! -s conftest.err
17563 } && test -s conftest$ac_exeext &&
17564 $as_test_x conftest$ac_exeext; then
17565 ac_cv_lib_util_getloadavg=yes
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_lib_util_getloadavg=no
17573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17574 conftest$ac_exeext conftest.$ac_ext
17575 LIBS=$ac_check_lib_save_LIBS
17577 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17578 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17579 if test $ac_cv_lib_util_getloadavg = yes; then
17580 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17585 if test $ac_have_func = no; then
17586 # There is a commonly available library for RS/6000 AIX.
17587 # Since it is not a standard part of AIX, it might be installed locally.
17588 ac_getloadavg_LIBS=$LIBS
17589 LIBS="-L/usr/local/lib $LIBS"
17590 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17591 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17592 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 ac_check_lib_save_LIBS=$LIBS
17596 LIBS="-lgetloadavg $LIBS"
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17610 char getloadavg ();
17614 return getloadavg ();
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17623 *) ac_try_echo
=$ac_try;;
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_link") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1
>conftest.err
17630 cat conftest.err
>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest
$ac_exeext &&
17636 $as_test_x conftest
$ac_exeext; then
17637 ac_cv_lib_getloadavg_getloadavg
=yes
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.
$ac_ext >&5
17642 ac_cv_lib_getloadavg_getloadavg
=no
17645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17646 conftest
$ac_exeext conftest.
$ac_ext
17647 LIBS
=$ac_check_lib_save_LIBS
17649 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17650 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17651 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17652 LIBS
="-lgetloadavg $LIBS"
17654 LIBS
=$ac_getloadavg_LIBS
17659 # Make sure it is really in the library, if we think we found it,
17660 # otherwise set up the replacement function.
17662 for ac_func
in getloadavg
17664 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17667 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17670 cat >conftest.
$ac_ext <<_ACEOF
17673 cat confdefs.h
>>conftest.
$ac_ext
17674 cat >>conftest.
$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17678 #define $ac_func innocuous_$ac_func
17680 /* System header to define __stub macros and hopefully few prototypes,
17681 which can conflict with char $ac_func (); below.
17682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17683 <limits.h> exists even on freestanding compilers. */
17686 # include <limits.h>
17688 # include <assert.h>
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17700 /* The GNU C library defines this for functions which it implements
17701 to always fail with ENOSYS. Some functions are actually named
17702 something starting with __ and the normal name is an alias. */
17703 #if defined __stub_$ac_func || defined __stub___$ac_func
17710 return $ac_func ();
17715 rm -f conftest.
$ac_objext conftest
$ac_exeext
17716 if { (ac_try
="$ac_link"
17717 case "(($ac_try" in
17718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_link") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest$ac_exeext &&
17732 $as_test_x conftest$ac_exeext; then
17733 eval "$as_ac_var=yes"
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 eval "$as_ac_var=no"
17741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17744 ac_res=`eval echo '${'$as_ac_var'}'`
17745 { echo "$as_me:$LINENO: result: $ac_res" >&5
17746 echo "${ECHO_T}$ac_res" >&6; }
17747 if test `eval echo '${'$as_ac_var'}'` = yes; then
17748 cat >>confdefs.h <<_ACEOF
17749 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17753 case " $LIBOBJS " in
17754 *" getloadavg.$ac_objext "* ) ;;
17755 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17760 cat >>confdefs.h <<\_ACEOF
17761 #define C_GETLOADAVG 1
17764 # Figure out what our getloadavg.c needs.
17766 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17767 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17768 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17769 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17773 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17775 # Is the header compilable?
17776 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17777 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17778 cat >conftest.$ac_ext <<_ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 $ac_includes_default
17785 #include <sys/dg_sys_info.h>
17787 rm -f conftest.$ac_objext
17788 if { (ac_try="$ac_compile"
17789 case "(($ac_try" in
17790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17791 *) ac_try_echo
=$ac_try;;
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_compile") 2>conftest.er1
17796 grep -v '^ *+' conftest.er1
>conftest.err
17798 cat conftest.err
>&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && {
17801 test -z "$ac_c_werror_flag" ||
17802 test ! -s conftest.err
17803 } && test -s conftest.
$ac_objext; then
17804 ac_header_compiler
=yes
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.
$ac_ext >&5
17809 ac_header_compiler
=no
17812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17814 echo "${ECHO_T}$ac_header_compiler" >&6; }
17816 # Is the header present?
17817 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17818 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17819 cat >conftest.
$ac_ext <<_ACEOF
17822 cat confdefs.h
>>conftest.
$ac_ext
17823 cat >>conftest.
$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 #include <sys/dg_sys_info.h>
17827 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
17840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17841 test ! -s conftest.err
17843 ac_header_preproc=yes
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_header_preproc=no
17851 rm -f conftest.err conftest.$ac_ext
17852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17853 echo "${ECHO_T}$ac_header_preproc" >&6; }
17855 # So? What about this header?
17856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17858 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17859 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17861 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17862 ac_header_preproc=yes
17865 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17866 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17868 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17870 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17872 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17874 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17876 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17880 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17881 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17882 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17887 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17888 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17891 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17894 cat >>confdefs.h <<\_ACEOF
17899 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17900 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17901 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17904 ac_check_lib_save_LIBS=$LIBS
17906 cat >conftest.$ac_ext <<_ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17913 /* Override any GCC internal prototype to avoid an error.
17914 Use char because int might match the return type of a GCC
17915 builtin and then its argument prototype would still apply. */
17919 char dg_sys_info ();
17923 return dg_sys_info ();
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17932 *) ac_try_echo
=$ac_try;;
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_link") 2>conftest.er1
17937 grep -v '^ *+' conftest.er1
>conftest.err
17939 cat conftest.err
>&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && {
17942 test -z "$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17944 } && test -s conftest
$ac_exeext &&
17945 $as_test_x conftest
$ac_exeext; then
17946 ac_cv_lib_dgc_dg_sys_info
=yes
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.
$ac_ext >&5
17951 ac_cv_lib_dgc_dg_sys_info
=no
17954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17955 conftest
$ac_exeext conftest.
$ac_ext
17956 LIBS
=$ac_check_lib_save_LIBS
17958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17959 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17960 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17961 cat >>confdefs.h
<<_ACEOF
17962 #define HAVE_LIBDGC 1
17973 if test "${ac_cv_header_locale_h+set}" = set; then
17974 { echo "$as_me:$LINENO: checking for locale.h" >&5
17975 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17976 if test "${ac_cv_header_locale_h+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17980 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17982 # Is the header compilable?
17983 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17984 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17985 cat >conftest.
$ac_ext <<_ACEOF
17988 cat confdefs.h
>>conftest.
$ac_ext
17989 cat >>conftest.
$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 $ac_includes_default
17992 #include <locale.h>
17994 rm -f conftest.
$ac_objext
17995 if { (ac_try
="$ac_compile"
17996 case "(($ac_try" in
17997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_compile") 2>conftest.er1
18003 grep -v '^ *+' conftest.er1 >conftest.err
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest.$ac_objext; then
18011 ac_header_compiler=yes
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_header_compiler=no
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18021 echo "${ECHO_T}$ac_header_compiler" >&6; }
18023 # Is the header present?
18024 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18025 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18026 cat >conftest.$ac_ext <<_ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 #include <locale.h>
18034 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
18047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18050 ac_header_preproc
=yes
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.
$ac_ext >&5
18055 ac_header_preproc
=no
18058 rm -f conftest.err conftest.
$ac_ext
18059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18060 echo "${ECHO_T}$ac_header_preproc" >&6; }
18062 # So? What about this header?
18063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18065 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18066 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18068 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18069 ac_header_preproc
=yes
18072 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18073 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18075 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18077 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18079 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18081 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18083 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18087 { echo "$as_me:$LINENO: checking for locale.h" >&5
18088 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18089 if test "${ac_cv_header_locale_h+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 ac_cv_header_locale_h
=$ac_header_preproc
18094 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18095 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18101 for ac_func
in setlocale
18103 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18106 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 cat >conftest.
$ac_ext <<_ACEOF
18112 cat confdefs.h
>>conftest.
$ac_ext
18113 cat >>conftest.
$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18117 #define $ac_func innocuous_$ac_func
18119 /* System header to define __stub macros and hopefully few prototypes,
18120 which can conflict with char $ac_func (); below.
18121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18122 <limits.h> exists even on freestanding compilers. */
18125 # include <limits.h>
18127 # include <assert.h>
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18139 /* The GNU C library defines this for functions which it implements
18140 to always fail with ENOSYS. Some functions are actually named
18141 something starting with __ and the normal name is an alias. */
18142 #if defined __stub_$ac_func || defined __stub___$ac_func
18149 return $ac_func ();
18154 rm -f conftest.
$ac_objext conftest
$ac_exeext
18155 if { (ac_try
="$ac_link"
18156 case "(($ac_try" in
18157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_link") 2>conftest.er1
18163 grep -v '^ *+' conftest.er1 >conftest.err
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } && {
18168 test -z "$ac_c_werror_flag" ||
18169 test ! -s conftest.err
18170 } && test -s conftest$ac_exeext &&
18171 $as_test_x conftest$ac_exeext; then
18172 eval "$as_ac_var=yes"
18174 echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18177 eval "$as_ac_var=no"
18180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18181 conftest$ac_exeext conftest.$ac_ext
18183 ac_res=`eval echo '${'$as_ac_var'}'`
18184 { echo "$as_me:$LINENO: result: $ac_res" >&5
18185 echo "${ECHO_T}$ac_res" >&6; }
18186 if test `eval echo '${'$as_ac_var'}'` = yes; then
18187 cat >>confdefs.h <<_ACEOF
18188 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18195 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18196 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18197 # Irix 4.0.5F has the header but not the library.
18198 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18201 cat >>confdefs.h <<\_ACEOF
18207 if test $ac_have_func = no; then
18208 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18209 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18210 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18211 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18215 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18217 # Is the header compilable?
18218 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18219 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18220 cat >conftest.$ac_ext <<_ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 $ac_includes_default
18227 #include <inq_stats/cpustats.h>
18229 rm -f conftest.$ac_objext
18230 if { (ac_try="$ac_compile"
18231 case "(($ac_try" in
18232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18233 *) ac_try_echo
=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_compile") 2>conftest.er1
18238 grep -v '^ *+' conftest.er1
>conftest.err
18240 cat conftest.err
>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && {
18243 test -z "$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 } && test -s conftest.
$ac_objext; then
18246 ac_header_compiler
=yes
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.
$ac_ext >&5
18251 ac_header_compiler
=no
18254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18256 echo "${ECHO_T}$ac_header_compiler" >&6; }
18258 # Is the header present?
18259 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18260 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18261 cat >conftest.
$ac_ext <<_ACEOF
18264 cat confdefs.h
>>conftest.
$ac_ext
18265 cat >>conftest.
$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267 #include <inq_stats/cpustats.h>
18269 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
18282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18285 ac_header_preproc=yes
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_header_preproc=no
18293 rm -f conftest.err conftest.$ac_ext
18294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18295 echo "${ECHO_T}$ac_header_preproc" >&6; }
18297 # So? What about this header?
18298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18300 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18301 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18303 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18304 ac_header_preproc=yes
18307 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18308 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18309 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18310 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18311 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18312 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18313 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18314 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18315 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18316 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18318 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18322 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18323 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18324 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18327 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18329 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18330 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18333 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18336 cat >>confdefs.h <<\_ACEOF
18341 cat >>confdefs.h <<\_ACEOF
18350 if test $ac_have_func = no; then
18351 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18352 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18353 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18354 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18358 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18360 # Is the header compilable?
18361 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18362 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18363 cat >conftest.$ac_ext <<_ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369 $ac_includes_default
18370 #include <sys/cpustats.h>
18372 rm -f conftest.$ac_objext
18373 if { (ac_try="$ac_compile"
18374 case "(($ac_try" in
18375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18376 *) ac_try_echo
=$ac_try;;
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_compile") 2>conftest.er1
18381 grep -v '^ *+' conftest.er1
>conftest.err
18383 cat conftest.err
>&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } && {
18386 test -z "$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 } && test -s conftest.
$ac_objext; then
18389 ac_header_compiler
=yes
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.
$ac_ext >&5
18394 ac_header_compiler
=no
18397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18399 echo "${ECHO_T}$ac_header_compiler" >&6; }
18401 # Is the header present?
18402 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18403 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18404 cat >conftest.
$ac_ext <<_ACEOF
18407 cat confdefs.h
>>conftest.
$ac_ext
18408 cat >>conftest.
$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 #include <sys/cpustats.h>
18412 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
18425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18428 ac_header_preproc=yes
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18433 ac_header_preproc=no
18436 rm -f conftest.err conftest.$ac_ext
18437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18438 echo "${ECHO_T}$ac_header_preproc" >&6; }
18440 # So? What about this header?
18441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18443 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18444 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18445 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18446 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18447 ac_header_preproc=yes
18450 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18451 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18452 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18453 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18455 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18457 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18459 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18461 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18465 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18466 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18467 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18472 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18473 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18476 if test $ac_cv_header_sys_cpustats_h = yes; then
18477 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18486 if test $ac_have_func = no; then
18488 for ac_header in mach/mach.h
18490 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 ac_res=`eval echo '${'$as_ac_Header'}'`
18498 { echo "$as_me:$LINENO: result: $ac_res" >&5
18499 echo "${ECHO_T}$ac_res" >&6; }
18501 # Is the header compilable?
18502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18504 cat >conftest.$ac_ext <<_ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18510 $ac_includes_default
18511 #include <$ac_header>
18513 rm -f conftest.$ac_objext
18514 if { (ac_try="$ac_compile"
18515 case "(($ac_try" in
18516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18517 *) ac_try_echo
=$ac_try;;
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_compile") 2>conftest.er1
18522 grep -v '^ *+' conftest.er1
>conftest.err
18524 cat conftest.err
>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } && {
18527 test -z "$ac_c_werror_flag" ||
18528 test ! -s conftest.err
18529 } && test -s conftest.
$ac_objext; then
18530 ac_header_compiler
=yes
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.
$ac_ext >&5
18535 ac_header_compiler
=no
18538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18540 echo "${ECHO_T}$ac_header_compiler" >&6; }
18542 # Is the header present?
18543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18545 cat >conftest.
$ac_ext <<_ACEOF
18548 cat confdefs.h
>>conftest.
$ac_ext
18549 cat >>conftest.
$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 #include <$ac_header>
18553 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
18566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18567 test ! -s conftest.err
18569 ac_header_preproc=yes
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_header_preproc=no
18577 rm -f conftest.err conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18579 echo "${ECHO_T}$ac_header_preproc" >&6; }
18581 # So? What about this header?
18582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18588 ac_header_preproc=yes
18591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 eval "$as_ac_Header=\$ac_header_preproc"
18613 ac_res=`eval echo '${'$as_ac_Header'}'`
18614 { echo "$as_me:$LINENO: result: $ac_res" >&5
18615 echo "${ECHO_T}$ac_res" >&6; }
18618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18619 cat >>confdefs.h <<_ACEOF
18620 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18630 for ac_header in nlist.h
18632 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
18633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 ac_res=`eval echo '${'$as_ac_Header'}'`
18640 { echo "$as_me:$LINENO: result: $ac_res" >&5
18641 echo "${ECHO_T}$ac_res" >&6; }
18643 # Is the header compilable?
18644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18646 cat >conftest.$ac_ext <<_ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18652 $ac_includes_default
18653 #include <$ac_header>
18655 rm -f conftest.$ac_objext
18656 if { (ac_try="$ac_compile"
18657 case "(($ac_try" in
18658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18659 *) ac_try_echo
=$ac_try;;
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_compile") 2>conftest.er1
18664 grep -v '^ *+' conftest.er1
>conftest.err
18666 cat conftest.err
>&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest.
$ac_objext; then
18672 ac_header_compiler
=yes
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.
$ac_ext >&5
18677 ac_header_compiler
=no
18680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18682 echo "${ECHO_T}$ac_header_compiler" >&6; }
18684 # Is the header present?
18685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18687 cat >conftest.
$ac_ext <<_ACEOF
18690 cat confdefs.h
>>conftest.
$ac_ext
18691 cat >>conftest.
$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #include <$ac_header>
18695 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
18708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18711 ac_header_preproc=yes
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_header_preproc=no
18719 rm -f conftest.err conftest.$ac_ext
18720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18721 echo "${ECHO_T}$ac_header_preproc" >&6; }
18723 # So? What about this header?
18724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18730 ac_header_preproc=yes
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18753 eval "$as_ac_Header=\$ac_header_preproc"
18755 ac_res=`eval echo '${'$as_ac_Header'}'`
18756 { echo "$as_me:$LINENO: result: $ac_res" >&5
18757 echo "${ECHO_T}$ac_res" >&6; }
18760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18761 cat >>confdefs.h <<_ACEOF
18762 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
18764 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18765 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18766 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18780 static struct nlist ac_aggr;
18781 if (ac_aggr.n_un.n_name)
18787 rm -f conftest.$ac_objext
18788 if { (ac_try="$ac_compile"
18789 case "(($ac_try" in
18790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18791 *) ac_try_echo
=$ac_try;;
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_compile") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1
>conftest.err
18798 cat conftest.err
>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } && {
18801 test -z "$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18803 } && test -s conftest.
$ac_objext; then
18804 ac_cv_member_struct_nlist_n_un_n_name
=yes
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.
$ac_ext >&5
18809 cat >conftest.
$ac_ext <<_ACEOF
18812 cat confdefs.h
>>conftest.
$ac_ext
18813 cat >>conftest.
$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18820 static struct nlist ac_aggr;
18821 if (sizeof ac_aggr.n_un.n_name)
18827 rm -f conftest.
$ac_objext
18828 if { (ac_try
="$ac_compile"
18829 case "(($ac_try" in
18830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_compile") 2>conftest.er1
18836 grep -v '^ *+' conftest.er1 >conftest.err
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest.$ac_objext; then
18844 ac_cv_member_struct_nlist_n_un_n_name=yes
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 ac_cv_member_struct_nlist_n_un_n_name=no
18852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18858 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18859 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18866 cat >>confdefs.h <<\_ACEOF
18867 #define NLIST_NAME_UNION 1
18881 # Some definitions of getloadavg require that the program be installed setgid.
18882 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18883 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18884 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18894 #ifdef LDAV_PRIVILEGED
18895 Yowza Am I SETGID yet
18898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18899 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18900 ac_cv_func_getloadavg_setgid=yes
18902 ac_cv_func_getloadavg_setgid=no
18907 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18908 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18909 if test $ac_cv_func_getloadavg_setgid = yes; then
18912 cat >>confdefs.h <<\_ACEOF
18913 #define GETLOADAVG_PRIVILEGED 1
18920 if test $ac_cv_func_getloadavg_setgid = yes; then
18921 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18922 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18923 if test "${ac_cv_group_kmem+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18927 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
18928 # If we got an error (system does not support symlinks), try without -L.
18929 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
18930 ac_cv_group_kmem=`echo $ac_ls_output \
18931 |
sed -ne 's/[ ][ ]*/ /g;
18932 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18936 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18937 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18938 KMEM_GROUP=$ac_cv_group_kmem
18940 if test "x$ac_save_LIBS" = x; then
18941 GETLOADAVG_LIBS=$LIBS
18943 GETLOADAVG_LIBS=`echo "$LIBS" |
sed "s!$ac_save_LIBS!!"`
18949 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18950 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18951 if test "${ac_cv_sys_largefile_source+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18965 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18970 rm -f conftest.$ac_objext conftest$ac_exeext
18971 if { (ac_try="$ac_link"
18972 case "(($ac_try" in
18973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18974 *) ac_try_echo
=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_link") 2>conftest.er1
18979 grep -v '^ *+' conftest.er1
>conftest.err
18981 cat conftest.err
>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && {
18984 test -z "$ac_c_werror_flag" ||
18985 test ! -s conftest.err
18986 } && test -s conftest
$ac_exeext &&
18987 $as_test_x conftest
$ac_exeext; then
18988 ac_cv_sys_largefile_source
=no
; break
18990 echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.
$ac_ext >&5
18996 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18997 conftest
$ac_exeext conftest.
$ac_ext
18998 cat >conftest.
$ac_ext <<_ACEOF
19001 cat confdefs.h
>>conftest.
$ac_ext
19002 cat >>conftest.
$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 #define _LARGEFILE_SOURCE 1
19009 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19014 rm -f conftest.
$ac_objext conftest
$ac_exeext
19015 if { (ac_try
="$ac_link"
19016 case "(($ac_try" in
19017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest$ac_exeext &&
19031 $as_test_x conftest$ac_exeext; then
19032 ac_cv_sys_largefile_source=1; break
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19041 conftest$ac_exeext conftest.$ac_ext
19042 ac_cv_sys_largefile_source=unknown
19046 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19047 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19048 case $ac_cv_sys_largefile_source in #(
19051 cat >>confdefs.h <<_ACEOF
19052 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19058 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19059 # in glibc 2.1.3, but that breaks too many other things.
19060 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19061 if test $ac_cv_sys_largefile_source != unknown; then
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_FSEEKO 1
19070 # Configure getopt.
19071 # getopt.m4 serial 10
19073 # The getopt module assume you want GNU getopt, with getopt_long etc,
19074 # rather than vanilla POSIX getopt. This means your your code should
19075 # always include <getopt.h> for the getopt prototypes.
19087 # Prerequisites of lib/getopt*.
19094 for ac_header in getopt.h
19096 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 ac_res=`eval echo '${'$as_ac_Header'}'`
19104 { echo "$as_me:$LINENO: result: $ac_res" >&5
19105 echo "${ECHO_T}$ac_res" >&6; }
19107 # Is the header compilable?
19108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19110 cat >conftest.$ac_ext <<_ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 $ac_includes_default
19117 #include <$ac_header>
19119 rm -f conftest.$ac_objext
19120 if { (ac_try="$ac_compile"
19121 case "(($ac_try" in
19122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19123 *) ac_try_echo
=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_compile") 2>conftest.er1
19128 grep -v '^ *+' conftest.er1
>conftest.err
19130 cat conftest.err
>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && {
19133 test -z "$ac_c_werror_flag" ||
19134 test ! -s conftest.err
19135 } && test -s conftest.
$ac_objext; then
19136 ac_header_compiler
=yes
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.
$ac_ext >&5
19141 ac_header_compiler
=no
19144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19146 echo "${ECHO_T}$ac_header_compiler" >&6; }
19148 # Is the header present?
19149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19151 cat >conftest.
$ac_ext <<_ACEOF
19154 cat confdefs.h
>>conftest.
$ac_ext
19155 cat >>conftest.
$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <$ac_header>
19159 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
19172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19173 test ! -s conftest.err
19175 ac_header_preproc=yes
19177 echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19180 ac_header_preproc=no
19183 rm -f conftest.err conftest.$ac_ext
19184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19185 echo "${ECHO_T}$ac_header_preproc" >&6; }
19187 # So? What about this header?
19188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19194 ac_header_preproc=yes
19197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19217 eval "$as_ac_Header=\$ac_header_preproc"
19219 ac_res=`eval echo '${'$as_ac_Header'}'`
19220 { echo "$as_me:$LINENO: result: $ac_res" >&5
19221 echo "${ECHO_T}$ac_res" >&6; }
19224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19225 cat >>confdefs.h <<_ACEOF
19226 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19235 if test -z "$GETOPT_H"; then
19237 for ac_func in getopt_long_only
19239 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19253 #define $ac_func innocuous_$ac_func
19255 /* System header to define __stub macros and hopefully few prototypes,
19256 which can conflict with char $ac_func (); below.
19257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19258 <limits.h> exists even on freestanding compilers. */
19261 # include <limits.h>
19263 # include <assert.h>
19268 /* Override any GCC internal prototype to avoid an error.
19269 Use char because int might match the return type of a GCC
19270 builtin and then its argument prototype would still apply. */
19275 /* The GNU C library defines this for functions which it implements
19276 to always fail with ENOSYS. Some functions are actually named
19277 something starting with __ and the normal name is an alias. */
19278 #if defined __stub_$ac_func || defined __stub___$ac_func
19285 return $ac_func ();
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (ac_try="$ac_link"
19292 case "(($ac_try" in
19293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19294 *) ac_try_echo
=$ac_try;;
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_link") 2>conftest.er1
19299 grep -v '^ *+' conftest.er1
>conftest.err
19301 cat conftest.err
>&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest
$ac_exeext &&
19307 $as_test_x conftest
$ac_exeext; then
19308 eval "$as_ac_var=yes"
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.
$ac_ext >&5
19313 eval "$as_ac_var=no"
19316 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19317 conftest
$ac_exeext conftest.
$ac_ext
19319 ac_res
=`eval echo '${'$as_ac_var'}'`
19320 { echo "$as_me:$LINENO: result: $ac_res" >&5
19321 echo "${ECHO_T}$ac_res" >&6; }
19322 if test `eval echo '${'$as_ac_var'}'` = yes; then
19323 cat >>confdefs.h
<<_ACEOF
19324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19334 if test -z "$GETOPT_H"; then
19335 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19336 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19337 if test "${ac_cv_have_decl_optreset+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 cat >conftest.
$ac_ext <<_ACEOF
19343 cat confdefs.h
>>conftest.
$ac_ext
19344 cat >>conftest.
$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 #include <getopt.h>
19359 rm -f conftest.
$ac_objext
19360 if { (ac_try
="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } && {
19373 test -z "$ac_c_werror_flag" ||
19374 test ! -s conftest.err
19375 } && test -s conftest.$ac_objext; then
19376 ac_cv_have_decl_optreset=yes
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_have_decl_optreset=no
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19386 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19387 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19388 if test $ac_cv_have_decl_optreset = yes; then
19394 if test -z "$GETOPT_H"; then
19395 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19396 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19397 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 if test "$cross_compiling" = yes; then
19401 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19402 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19403 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 #include <getopt.h>
19417 #ifndef getopt_clip
19418 (void) getopt_clip;
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19429 *) ac_try_echo
=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_compile") 2>conftest.er1
19434 grep -v '^ *+' conftest.er1
>conftest.err
19436 cat conftest.err
>&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } && {
19439 test -z "$ac_c_werror_flag" ||
19440 test ! -s conftest.err
19441 } && test -s conftest.
$ac_objext; then
19442 ac_cv_have_decl_getopt_clip
=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.
$ac_ext >&5
19447 ac_cv_have_decl_getopt_clip
=no
19450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19452 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19453 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19454 if test $ac_cv_have_decl_getopt_clip = yes; then
19455 gl_cv_func_gnu_getopt
=no
19457 gl_cv_func_gnu_getopt
=yes
19461 cat >conftest.
$ac_ext <<_ACEOF
19464 cat confdefs.h
>>conftest.
$ac_ext
19465 cat >>conftest.
$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <getopt.h>
19473 myargv[0] = "conftest";
19476 return getopt (2, myargv, "+a") != '?';
19482 rm -f conftest
$ac_exeext
19483 if { (ac_try
="$ac_link"
19484 case "(($ac_try" in
19485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19495 *) ac_try_echo
=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 gl_cv_func_gnu_getopt
=yes
19504 echo "$as_me: program exited with status $ac_status" >&5
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.
$ac_ext >&5
19508 ( exit $ac_status )
19509 gl_cv_func_gnu_getopt
=no
19511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19516 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19517 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19518 if test "$gl_cv_func_gnu_getopt" = "no"; then
19525 if test -n "$GETOPT_H"; then
19530 cat >>confdefs.h
<<\_ACEOF
19531 #define __GETOPT_PREFIX rpl_
19537 GETOPTOBJS
='getopt.o getopt1.o'
19544 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19545 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 # Use it with a single arg.
19550 cat >conftest.
$ac_ext <<_ACEOF
19553 cat confdefs.h
>>conftest.
$ac_ext
19554 cat >>conftest.
$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 $ac_includes_default
19565 rm -f conftest.
$ac_objext
19566 if { (ac_try
="$ac_compile"
19567 case "(($ac_try" in
19568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_compile") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest.$ac_objext; then
19582 ac_cv_func_getpgrp_void=no
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_cv_func_getpgrp_void=yes
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19594 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19595 if test $ac_cv_func_getpgrp_void = yes; then
19597 cat >>confdefs.h <<\_ACEOF
19598 #define GETPGRP_VOID 1
19605 for ac_func in strftime
19607 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19621 #define $ac_func innocuous_$ac_func
19623 /* System header to define __stub macros and hopefully few prototypes,
19624 which can conflict with char $ac_func (); below.
19625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19626 <limits.h> exists even on freestanding compilers. */
19629 # include <limits.h>
19631 # include <assert.h>
19636 /* Override any GCC internal prototype to avoid an error.
19637 Use char because int might match the return type of a GCC
19638 builtin and then its argument prototype would still apply. */
19643 /* The GNU C library defines this for functions which it implements
19644 to always fail with ENOSYS. Some functions are actually named
19645 something starting with __ and the normal name is an alias. */
19646 #if defined __stub_$ac_func || defined __stub___$ac_func
19653 return $ac_func ();
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19662 *) ac_try_echo
=$ac_try;;
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_link") 2>conftest.er1
19667 grep -v '^ *+' conftest.er1
>conftest.err
19669 cat conftest.err
>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && {
19672 test -z "$ac_c_werror_flag" ||
19673 test ! -s conftest.err
19674 } && test -s conftest
$ac_exeext &&
19675 $as_test_x conftest
$ac_exeext; then
19676 eval "$as_ac_var=yes"
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.
$ac_ext >&5
19681 eval "$as_ac_var=no"
19684 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19685 conftest
$ac_exeext conftest.
$ac_ext
19687 ac_res
=`eval echo '${'$as_ac_var'}'`
19688 { echo "$as_me:$LINENO: result: $ac_res" >&5
19689 echo "${ECHO_T}$ac_res" >&6; }
19690 if test `eval echo '${'$as_ac_var'}'` = yes; then
19691 cat >>confdefs.h
<<_ACEOF
19692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19696 # strftime is in -lintl on SCO UNIX.
19697 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19698 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19699 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 ac_check_lib_save_LIBS
=$LIBS
19703 LIBS
="-lintl $LIBS"
19704 cat >conftest.
$ac_ext <<_ACEOF
19707 cat confdefs.h
>>conftest.
$ac_ext
19708 cat >>conftest.
$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19711 /* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19721 return strftime ();
19726 rm -f conftest.
$ac_objext conftest
$ac_exeext
19727 if { (ac_try
="$ac_link"
19728 case "(($ac_try" in
19729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_link") 2>conftest.er1
19735 grep -v '^ *+' conftest.er1 >conftest.err
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_c_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest$ac_exeext &&
19743 $as_test_x conftest$ac_exeext; then
19744 ac_cv_lib_intl_strftime=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_cv_lib_intl_strftime=no
19752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19756 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19757 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19758 if test $ac_cv_lib_intl_strftime = yes; then
19759 cat >>confdefs.h <<\_ACEOF
19760 #define HAVE_STRFTIME 1
19763 LIBS="-lintl $LIBS"
19772 for ac_func in grantpt
19774 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19788 #define $ac_func innocuous_$ac_func
19790 /* System header to define __stub macros and hopefully few prototypes,
19791 which can conflict with char $ac_func (); below.
19792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19793 <limits.h> exists even on freestanding compilers. */
19796 # include <limits.h>
19798 # include <assert.h>
19803 /* Override any GCC internal prototype to avoid an error.
19804 Use char because int might match the return type of a GCC
19805 builtin and then its argument prototype would still apply. */
19810 /* The GNU C library defines this for functions which it implements
19811 to always fail with ENOSYS. Some functions are actually named
19812 something starting with __ and the normal name is an alias. */
19813 #if defined __stub_$ac_func || defined __stub___$ac_func
19820 return $ac_func ();
19825 rm -f conftest.$ac_objext conftest$ac_exeext
19826 if { (ac_try="$ac_link"
19827 case "(($ac_try" in
19828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19829 *) ac_try_echo
=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_link") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1
>conftest.err
19836 cat conftest.err
>&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest
$ac_exeext &&
19842 $as_test_x conftest
$ac_exeext; then
19843 eval "$as_ac_var=yes"
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.
$ac_ext >&5
19848 eval "$as_ac_var=no"
19851 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19852 conftest
$ac_exeext conftest.
$ac_ext
19854 ac_res
=`eval echo '${'$as_ac_var'}'`
19855 { echo "$as_me:$LINENO: result: $ac_res" >&5
19856 echo "${ECHO_T}$ac_res" >&6; }
19857 if test `eval echo '${'$as_ac_var'}'` = yes; then
19858 cat >>confdefs.h
<<_ACEOF
19859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19866 # PTY-related GNU extensions.
19868 for ac_func
in getpt
19870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19873 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19876 cat >conftest.
$ac_ext <<_ACEOF
19879 cat confdefs.h
>>conftest.
$ac_ext
19880 cat >>conftest.
$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19884 #define $ac_func innocuous_$ac_func
19886 /* System header to define __stub macros and hopefully few prototypes,
19887 which can conflict with char $ac_func (); below.
19888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19889 <limits.h> exists even on freestanding compilers. */
19892 # include <limits.h>
19894 # include <assert.h>
19899 /* Override any GCC internal prototype to avoid an error.
19900 Use char because int might match the return type of a GCC
19901 builtin and then its argument prototype would still apply. */
19906 /* The GNU C library defines this for functions which it implements
19907 to always fail with ENOSYS. Some functions are actually named
19908 something starting with __ and the normal name is an alias. */
19909 #if defined __stub_$ac_func || defined __stub___$ac_func
19916 return $ac_func ();
19921 rm -f conftest.
$ac_objext conftest
$ac_exeext
19922 if { (ac_try
="$ac_link"
19923 case "(($ac_try" in
19924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 eval "$as_ac_var=yes"
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 eval "$as_ac_var=no"
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19950 ac_res=`eval echo '${'$as_ac_var'}'`
19951 { echo "$as_me:$LINENO: result: $ac_res" >&5
19952 echo "${ECHO_T}$ac_res" >&6; }
19953 if test `eval echo '${'$as_ac_var'}'` = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19962 # Check this now, so that we will NOT find the above functions in ncurses.
19963 # That is because we have not set up to link ncurses in lib-src.
19964 # It's better to believe a function is not available
19965 # than to expect to find it in ncurses.
19967 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19968 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19969 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 ac_check_lib_save_LIBS=$LIBS
19973 LIBS="-lncurses $LIBS"
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19981 /* Override any GCC internal prototype to avoid an error.
19982 Use char because int might match the return type of a GCC
19983 builtin and then its argument prototype would still apply. */
19996 rm -f conftest.$ac_objext conftest$ac_exeext
19997 if { (ac_try="$ac_link"
19998 case "(($ac_try" in
19999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20000 *) ac_try_echo
=$ac_try;;
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_link") 2>conftest.er1
20005 grep -v '^ *+' conftest.er1
>conftest.err
20007 cat conftest.err
>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && {
20010 test -z "$ac_c_werror_flag" ||
20011 test ! -s conftest.err
20012 } && test -s conftest
$ac_exeext &&
20013 $as_test_x conftest
$ac_exeext; then
20014 ac_cv_lib_ncurses_tparm
=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.
$ac_ext >&5
20019 ac_cv_lib_ncurses_tparm
=no
20022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20023 conftest
$ac_exeext conftest.
$ac_ext
20024 LIBS
=$ac_check_lib_save_LIBS
20026 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20027 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20028 if test $ac_cv_lib_ncurses_tparm = yes; then
20029 cat >>confdefs.h
<<_ACEOF
20030 #define HAVE_LIBNCURSES 1
20033 LIBS
="-lncurses $LIBS"
20038 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20041 cat >conftest.
$ac_ext <<_ACEOF
20044 cat confdefs.h
>>conftest.
$ac_ext
20045 cat >>conftest.
$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 #include <netinet/in.h>
20048 #include <arpa/nameser.h>
20049 #include <resolv.h>
20058 rm -f conftest.
$ac_objext conftest
$ac_exeext
20059 if { (ac_try
="$ac_link"
20060 case "(($ac_try" in
20061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_link") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest$ac_exeext &&
20075 $as_test_x conftest$ac_exeext; then
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20085 conftest$ac_exeext conftest.$ac_ext
20086 if test "$have_res_init" = no; then
20088 LIBS="$LIBS -lresolv"
20089 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20090 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 #include <netinet/in.h>
20098 #include <arpa/nameser.h>
20099 #include <resolv.h>
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (ac_try="$ac_link"
20110 case "(($ac_try" in
20111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20112 *) ac_try_echo
=$ac_try;;
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_link") 2>conftest.er1
20117 grep -v '^ *+' conftest.er1
>conftest.err
20119 cat conftest.err
>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } && {
20122 test -z "$ac_c_werror_flag" ||
20123 test ! -s conftest.err
20124 } && test -s conftest
$ac_exeext &&
20125 $as_test_x conftest
$ac_exeext; then
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.
$ac_ext >&5
20134 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20135 conftest
$ac_exeext conftest.
$ac_ext
20136 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20137 echo "${ECHO_T}$have_res_init" >&6; }
20138 if test "$have_res_init" = yes ; then
20144 if test "$have_res_init" = yes; then
20146 cat >>confdefs.h
<<\_ACEOF
20147 #define HAVE_RES_INIT 1
20152 # Do we need the Hesiod library to provide the support routines?
20153 if test "$with_hesiod" != no
; then
20154 # Don't set $LIBS here -- see comments above.
20155 { echo "$as_me:$LINENO: checking for res_send" >&5
20156 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20157 if test "${ac_cv_func_res_send+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 cat >conftest.
$ac_ext <<_ACEOF
20163 cat confdefs.h
>>conftest.
$ac_ext
20164 cat >>conftest.
$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20168 #define res_send innocuous_res_send
20170 /* System header to define __stub macros and hopefully few prototypes,
20171 which can conflict with char res_send (); below.
20172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20173 <limits.h> exists even on freestanding compilers. */
20176 # include <limits.h>
20178 # include <assert.h>
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20190 /* The GNU C library defines this for functions which it implements
20191 to always fail with ENOSYS. Some functions are actually named
20192 something starting with __ and the normal name is an alias. */
20193 #if defined __stub_res_send || defined __stub___res_send
20200 return res_send ();
20205 rm -f conftest.
$ac_objext conftest
$ac_exeext
20206 if { (ac_try
="$ac_link"
20207 case "(($ac_try" in
20208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1 >conftest.err
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext &&
20222 $as_test_x conftest$ac_exeext; then
20223 ac_cv_func_res_send=yes
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_cv_func_res_send=no
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20234 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20235 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20236 if test $ac_cv_func_res_send = yes; then
20239 { echo "$as_me:$LINENO: checking for __res_send" >&5
20240 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20241 if test "${ac_cv_func___res_send+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 cat >conftest.$ac_ext <<_ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20252 #define __res_send innocuous___res_send
20254 /* System header to define __stub macros and hopefully few prototypes,
20255 which can conflict with char __res_send (); below.
20256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20257 <limits.h> exists even on freestanding compilers. */
20260 # include <limits.h>
20262 # include <assert.h>
20267 /* Override any GCC internal prototype to avoid an error.
20268 Use char because int might match the return type of a GCC
20269 builtin and then its argument prototype would still apply. */
20273 char __res_send ();
20274 /* The GNU C library defines this for functions which it implements
20275 to always fail with ENOSYS. Some functions are actually named
20276 something starting with __ and the normal name is an alias. */
20277 #if defined __stub___res_send || defined __stub_____res_send
20284 return __res_send ();
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (ac_try="$ac_link"
20291 case "(($ac_try" in
20292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20293 *) ac_try_echo
=$ac_try;;
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_link") 2>conftest.er1
20298 grep -v '^ *+' conftest.er1
>conftest.err
20300 cat conftest.err
>&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } && {
20303 test -z "$ac_c_werror_flag" ||
20304 test ! -s conftest.err
20305 } && test -s conftest
$ac_exeext &&
20306 $as_test_x conftest
$ac_exeext; then
20307 ac_cv_func___res_send
=yes
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.
$ac_ext >&5
20312 ac_cv_func___res_send
=no
20315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20316 conftest
$ac_exeext conftest.
$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20319 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20320 if test $ac_cv_func___res_send = yes; then
20323 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20324 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20325 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 ac_check_lib_save_LIBS
=$LIBS
20329 LIBS
="-lresolv $LIBS"
20330 cat >conftest.
$ac_ext <<_ACEOF
20333 cat confdefs.h
>>conftest.
$ac_ext
20334 cat >>conftest.
$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 /* Override any GCC internal prototype to avoid an error.
20338 Use char because int might match the return type of a GCC
20339 builtin and then its argument prototype would still apply. */
20347 return res_send ();
20352 rm -f conftest.
$ac_objext conftest
$ac_exeext
20353 if { (ac_try
="$ac_link"
20354 case "(($ac_try" in
20355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_link") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext &&
20369 $as_test_x conftest$ac_exeext; then
20370 ac_cv_lib_resolv_res_send=yes
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ac_cv_lib_resolv_res_send=no
20378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20379 conftest$ac_exeext conftest.$ac_ext
20380 LIBS=$ac_check_lib_save_LIBS
20382 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20383 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20384 if test $ac_cv_lib_resolv_res_send = yes; then
20387 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20388 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 ac_check_lib_save_LIBS=$LIBS
20393 LIBS="-lresolv $LIBS"
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20407 char __res_send ();
20411 return __res_send ();
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20420 *) ac_try_echo
=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20425 grep -v '^ *+' conftest.er1
>conftest.err
20427 cat conftest.err
>&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest
$ac_exeext &&
20433 $as_test_x conftest
$ac_exeext; then
20434 ac_cv_lib_resolv___res_send
=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.
$ac_ext >&5
20439 ac_cv_lib_resolv___res_send
=no
20442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20443 conftest
$ac_exeext conftest.
$ac_ext
20444 LIBS
=$ac_check_lib_save_LIBS
20446 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20447 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20448 if test $ac_cv_lib_resolv___res_send = yes; then
20458 if test "$resolv" = yes ; then
20463 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20464 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20465 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.
$ac_ext <<_ACEOF
20471 cat confdefs.h
>>conftest.
$ac_ext
20472 cat >>conftest.
$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20476 #define hes_getmailhost innocuous_hes_getmailhost
20478 /* System header to define __stub macros and hopefully few prototypes,
20479 which can conflict with char hes_getmailhost (); below.
20480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20481 <limits.h> exists even on freestanding compilers. */
20484 # include <limits.h>
20486 # include <assert.h>
20489 #undef hes_getmailhost
20491 /* Override any GCC internal prototype to avoid an error.
20492 Use char because int might match the return type of a GCC
20493 builtin and then its argument prototype would still apply. */
20497 char hes_getmailhost ();
20498 /* The GNU C library defines this for functions which it implements
20499 to always fail with ENOSYS. Some functions are actually named
20500 something starting with __ and the normal name is an alias. */
20501 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20508 return hes_getmailhost ();
20513 rm -f conftest.
$ac_objext conftest
$ac_exeext
20514 if { (ac_try
="$ac_link"
20515 case "(($ac_try" in
20516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_link") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } && {
20527 test -z "$ac_c_werror_flag" ||
20528 test ! -s conftest.err
20529 } && test -s conftest$ac_exeext &&
20530 $as_test_x conftest$ac_exeext; then
20531 ac_cv_func_hes_getmailhost=yes
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_cv_func_hes_getmailhost=no
20539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20540 conftest$ac_exeext conftest.$ac_ext
20542 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20543 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20544 if test $ac_cv_func_hes_getmailhost = yes; then
20547 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20548 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20549 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-lhesiod $RESOLVLIB $LIBS"
20554 cat >conftest.$ac_ext <<_ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 /* Override any GCC internal prototype to avoid an error.
20562 Use char because int might match the return type of a GCC
20563 builtin and then its argument prototype would still apply. */
20567 char hes_getmailhost ();
20571 return hes_getmailhost ();
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20580 *) ac_try_echo
=$ac_try;;
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_link") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1
>conftest.err
20587 cat conftest.err
>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest
$ac_exeext &&
20593 $as_test_x conftest
$ac_exeext; then
20594 ac_cv_lib_hesiod_hes_getmailhost
=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.
$ac_ext >&5
20599 ac_cv_lib_hesiod_hes_getmailhost
=no
20602 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20603 conftest
$ac_exeext conftest.
$ac_ext
20604 LIBS
=$ac_check_lib_save_LIBS
20606 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20607 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20608 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20610 cat >>confdefs.h
<<\_ACEOF
20611 #define HAVE_LIBHESIOD 1
20622 # Do we need libresolv (due to res_init or Hesiod)?
20623 if test "$resolv" = yes ; then
20625 cat >>confdefs.h
<<\_ACEOF
20626 #define HAVE_LIBRESOLV 1
20631 # These tell us which Kerberos-related libraries to use.
20632 if test "${with_kerberos}" != no
; then
20634 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20635 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20636 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 ac_check_lib_save_LIBS
=$LIBS
20640 LIBS
="-lcom_err $LIBS"
20641 cat >conftest.
$ac_ext <<_ACEOF
20644 cat confdefs.h
>>conftest.
$ac_ext
20645 cat >>conftest.
$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 /* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20663 rm -f conftest.
$ac_objext conftest
$ac_exeext
20664 if { (ac_try
="$ac_link"
20665 case "(($ac_try" in
20666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest$ac_exeext &&
20680 $as_test_x conftest$ac_exeext; then
20681 ac_cv_lib_com_err_com_err=yes
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_cv_lib_com_err_com_err=no
20689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20690 conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_lib_save_LIBS
20693 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20694 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20695 if test $ac_cv_lib_com_err_com_err = yes; then
20696 cat >>confdefs.h <<_ACEOF
20697 #define HAVE_LIBCOM_ERR 1
20700 LIBS="-lcom_err $LIBS"
20705 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20706 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20707 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20710 ac_check_lib_save_LIBS=$LIBS
20711 LIBS="-lk5crypto $LIBS"
20712 cat >conftest.$ac_ext <<_ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 /* Override any GCC internal prototype to avoid an error.
20720 Use char because int might match the return type of a GCC
20721 builtin and then its argument prototype would still apply. */
20725 char mit_des_cbc_encrypt ();
20729 return mit_des_cbc_encrypt ();
20734 rm -f conftest.$ac_objext conftest$ac_exeext
20735 if { (ac_try="$ac_link"
20736 case "(($ac_try" in
20737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20738 *) ac_try_echo
=$ac_try;;
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_link") 2>conftest.er1
20743 grep -v '^ *+' conftest.er1
>conftest.err
20745 cat conftest.err
>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } && {
20748 test -z "$ac_c_werror_flag" ||
20749 test ! -s conftest.err
20750 } && test -s conftest
$ac_exeext &&
20751 $as_test_x conftest
$ac_exeext; then
20752 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.
$ac_ext >&5
20757 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
20760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20761 conftest
$ac_exeext conftest.
$ac_ext
20762 LIBS
=$ac_check_lib_save_LIBS
20764 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20765 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20766 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20767 cat >>confdefs.h
<<_ACEOF
20768 #define HAVE_LIBK5CRYPTO 1
20771 LIBS
="-lk5crypto $LIBS"
20776 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20777 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20778 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 ac_check_lib_save_LIBS
=$LIBS
20782 LIBS
="-lcrypto $LIBS"
20783 cat >conftest.
$ac_ext <<_ACEOF
20786 cat confdefs.h
>>conftest.
$ac_ext
20787 cat >>conftest.
$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20790 /* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
20796 char mit_des_cbc_encrypt ();
20800 return mit_des_cbc_encrypt ();
20805 rm -f conftest.
$ac_objext conftest
$ac_exeext
20806 if { (ac_try
="$ac_link"
20807 case "(($ac_try" in
20808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_link") 2>conftest.er1
20814 grep -v '^ *+' conftest.er1 >conftest.err
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } && {
20819 test -z "$ac_c_werror_flag" ||
20820 test ! -s conftest.err
20821 } && test -s conftest$ac_exeext &&
20822 $as_test_x conftest$ac_exeext; then
20823 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832 conftest$ac_exeext conftest.$ac_ext
20833 LIBS=$ac_check_lib_save_LIBS
20835 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20836 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20837 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20838 cat >>confdefs.h <<_ACEOF
20839 #define HAVE_LIBCRYPTO 1
20842 LIBS="-lcrypto $LIBS"
20847 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20848 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20849 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20852 ac_check_lib_save_LIBS=$LIBS
20853 LIBS="-lkrb5 $LIBS"
20854 cat >conftest.$ac_ext <<_ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20861 /* Override any GCC internal prototype to avoid an error.
20862 Use char because int might match the return type of a GCC
20863 builtin and then its argument prototype would still apply. */
20867 char krb5_init_context ();
20871 return krb5_init_context ();
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (ac_try="$ac_link"
20878 case "(($ac_try" in
20879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20880 *) ac_try_echo
=$ac_try;;
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_link") 2>conftest.er1
20885 grep -v '^ *+' conftest.er1
>conftest.err
20887 cat conftest.err
>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_c_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest
$ac_exeext &&
20893 $as_test_x conftest
$ac_exeext; then
20894 ac_cv_lib_krb5_krb5_init_context
=yes
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.
$ac_ext >&5
20899 ac_cv_lib_krb5_krb5_init_context
=no
20902 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20903 conftest
$ac_exeext conftest.
$ac_ext
20904 LIBS
=$ac_check_lib_save_LIBS
20906 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20907 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20908 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20909 cat >>confdefs.h
<<_ACEOF
20910 #define HAVE_LIBKRB5 1
20913 LIBS
="-lkrb5 $LIBS"
20917 if test "${with_kerberos5}" = no
; then
20919 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20920 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20921 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20924 ac_check_lib_save_LIBS
=$LIBS
20925 LIBS
="-ldes425 $LIBS"
20926 cat >conftest.
$ac_ext <<_ACEOF
20929 cat confdefs.h
>>conftest.
$ac_ext
20930 cat >>conftest.
$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20933 /* Override any GCC internal prototype to avoid an error.
20934 Use char because int might match the return type of a GCC
20935 builtin and then its argument prototype would still apply. */
20939 char des_cbc_encrypt ();
20943 return des_cbc_encrypt ();
20948 rm -f conftest.
$ac_objext conftest
$ac_exeext
20949 if { (ac_try
="$ac_link"
20950 case "(($ac_try" in
20951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_link") 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && {
20962 test -z "$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 } && test -s conftest$ac_exeext &&
20965 $as_test_x conftest$ac_exeext; then
20966 ac_cv_lib_des425_des_cbc_encrypt=yes
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_lib_des425_des_cbc_encrypt=no
20974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20975 conftest$ac_exeext conftest.$ac_ext
20976 LIBS=$ac_check_lib_save_LIBS
20978 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20979 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20980 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982 #define HAVE_LIBDES425 1
20985 LIBS="-ldes425 $LIBS"
20989 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20990 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20991 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 ac_check_lib_save_LIBS=$LIBS
20996 cat >conftest.$ac_ext <<_ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21009 char des_cbc_encrypt ();
21013 return des_cbc_encrypt ();
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21022 *) ac_try_echo
=$ac_try;;
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_link") 2>conftest.er1
21027 grep -v '^ *+' conftest.er1
>conftest.err
21029 cat conftest.err
>&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } && {
21032 test -z "$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21034 } && test -s conftest
$ac_exeext &&
21035 $as_test_x conftest
$ac_exeext; then
21036 ac_cv_lib_des_des_cbc_encrypt
=yes
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.
$ac_ext >&5
21041 ac_cv_lib_des_des_cbc_encrypt
=no
21044 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21045 conftest
$ac_exeext conftest.
$ac_ext
21046 LIBS
=$ac_check_lib_save_LIBS
21048 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21049 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21050 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21051 cat >>confdefs.h
<<_ACEOF
21052 #define HAVE_LIBDES 1
21062 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21063 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21064 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 ac_check_lib_save_LIBS
=$LIBS
21068 LIBS
="-lkrb4 $LIBS"
21069 cat >conftest.
$ac_ext <<_ACEOF
21072 cat confdefs.h
>>conftest.
$ac_ext
21073 cat >>conftest.
$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21082 char krb_get_cred ();
21086 return krb_get_cred ();
21091 rm -f conftest.
$ac_objext conftest
$ac_exeext
21092 if { (ac_try
="$ac_link"
21093 case "(($ac_try" in
21094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_link") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest$ac_exeext &&
21108 $as_test_x conftest$ac_exeext; then
21109 ac_cv_lib_krb4_krb_get_cred=yes
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_lib_krb4_krb_get_cred=no
21117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21118 conftest$ac_exeext conftest.$ac_ext
21119 LIBS=$ac_check_lib_save_LIBS
21121 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21122 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21123 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE_LIBKRB4 1
21128 LIBS="-lkrb4 $LIBS"
21132 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21133 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21134 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21137 ac_check_lib_save_LIBS=$LIBS
21139 cat >conftest.$ac_ext <<_ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21152 char krb_get_cred ();
21156 return krb_get_cred ();
21161 rm -f conftest.$ac_objext conftest$ac_exeext
21162 if { (ac_try="$ac_link"
21163 case "(($ac_try" in
21164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21165 *) ac_try_echo
=$ac_try;;
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_link") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1
>conftest.err
21172 cat conftest.err
>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest
$ac_exeext &&
21178 $as_test_x conftest
$ac_exeext; then
21179 ac_cv_lib_krb_krb_get_cred
=yes
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.
$ac_ext >&5
21184 ac_cv_lib_krb_krb_get_cred
=no
21187 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21188 conftest
$ac_exeext conftest.
$ac_ext
21189 LIBS
=$ac_check_lib_save_LIBS
21191 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21192 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21193 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21194 cat >>confdefs.h
<<_ACEOF
21195 #define HAVE_LIBKRB 1
21206 if test "${with_kerberos5}" != no
; then
21208 for ac_header
in krb5.h
21210 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21211 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21214 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 ac_res
=`eval echo '${'$as_ac_Header'}'`
21218 { echo "$as_me:$LINENO: result: $ac_res" >&5
21219 echo "${ECHO_T}$ac_res" >&6; }
21221 # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21224 cat >conftest.
$ac_ext <<_ACEOF
21227 cat confdefs.h
>>conftest.
$ac_ext
21228 cat >>conftest.
$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21231 #include <$ac_header>
21233 rm -f conftest.
$ac_objext
21234 if { (ac_try
="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21242 grep -v '^ *+' conftest.er1 >conftest.err
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest.$ac_objext; then
21250 ac_header_compiler=yes
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_header_compiler=no
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21260 echo "${ECHO_T}$ac_header_compiler" >&6; }
21262 # Is the header present?
21263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include <$ac_header>
21273 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
21286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21289 ac_header_preproc
=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.
$ac_ext >&5
21294 ac_header_preproc
=no
21297 rm -f conftest.err conftest.
$ac_ext
21298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21299 echo "${ECHO_T}$ac_header_preproc" >&6; }
21301 # So? What about this header?
21302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21308 ac_header_preproc
=yes
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21328 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 eval "$as_ac_Header=\$ac_header_preproc"
21333 ac_res
=`eval echo '${'$as_ac_Header'}'`
21334 { echo "$as_me:$LINENO: result: $ac_res" >&5
21335 echo "${ECHO_T}$ac_res" >&6; }
21338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21339 cat >>confdefs.h
<<_ACEOF
21340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21342 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21343 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21344 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 cat >conftest.
$ac_ext <<_ACEOF
21350 cat confdefs.h
>>conftest.
$ac_ext
21351 cat >>conftest.
$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21358 static krb5_error ac_aggr;
21365 rm -f conftest.
$ac_objext
21366 if { (ac_try
="$ac_compile"
21367 case "(($ac_try" in
21368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21374 grep -v '^ *+' conftest.er1 >conftest.err
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21382 ac_cv_member_krb5_error_text=yes
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21398 static krb5_error ac_aggr;
21399 if (sizeof ac_aggr.text)
21405 rm -f conftest.$ac_objext
21406 if { (ac_try="$ac_compile"
21407 case "(($ac_try" in
21408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21409 *) ac_try_echo
=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compile") 2>conftest.er1
21414 grep -v '^ *+' conftest.er1
>conftest.err
21416 cat conftest.err
>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest.
$ac_objext; then
21422 ac_cv_member_krb5_error_text
=yes
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.
$ac_ext >&5
21427 ac_cv_member_krb5_error_text
=no
21430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21436 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21437 if test $ac_cv_member_krb5_error_text = yes; then
21439 cat >>confdefs.h
<<_ACEOF
21440 #define HAVE_KRB5_ERROR_TEXT 1
21445 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21446 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21447 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21448 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 cat >conftest.
$ac_ext <<_ACEOF
21453 cat confdefs.h
>>conftest.
$ac_ext
21454 cat >>conftest.
$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21461 static krb5_error ac_aggr;
21462 if (ac_aggr.e_text)
21468 rm -f conftest.
$ac_objext
21469 if { (ac_try
="$ac_compile"
21470 case "(($ac_try" in
21471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_compile") 2>conftest.er1
21477 grep -v '^ *+' conftest.er1 >conftest.err
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } && {
21482 test -z "$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21484 } && test -s conftest.$ac_objext; then
21485 ac_cv_member_krb5_error_e_text=yes
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 cat >conftest.$ac_ext <<_ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21501 static krb5_error ac_aggr;
21502 if (sizeof ac_aggr.e_text)
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21512 *) ac_try_echo
=$ac_try;;
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_compile") 2>conftest.er1
21517 grep -v '^ *+' conftest.er1
>conftest.err
21519 cat conftest.err
>&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest.
$ac_objext; then
21525 ac_cv_member_krb5_error_e_text
=yes
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.
$ac_ext >&5
21530 ac_cv_member_krb5_error_e_text
=no
21533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21538 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21539 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21540 if test $ac_cv_member_krb5_error_e_text = yes; then
21542 cat >>confdefs.h
<<_ACEOF
21543 #define HAVE_KRB5_ERROR_E_TEXT 1
21555 for ac_header
in des.h
21557 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21558 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21561 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 ac_res
=`eval echo '${'$as_ac_Header'}'`
21565 { echo "$as_me:$LINENO: result: $ac_res" >&5
21566 echo "${ECHO_T}$ac_res" >&6; }
21568 # Is the header compilable?
21569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21571 cat >conftest.
$ac_ext <<_ACEOF
21574 cat confdefs.h
>>conftest.
$ac_ext
21575 cat >>conftest.
$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21578 #include <$ac_header>
21580 rm -f conftest.
$ac_objext
21581 if { (ac_try
="$ac_compile"
21582 case "(($ac_try" in
21583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_compile") 2>conftest.er1
21589 grep -v '^ *+' conftest.er1 >conftest.err
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest.$ac_objext; then
21597 ac_header_compiler=yes
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ac_header_compiler=no
21605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21607 echo "${ECHO_T}$ac_header_compiler" >&6; }
21609 # Is the header present?
21610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21612 cat >conftest.$ac_ext <<_ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #include <$ac_header>
21620 if { (ac_try="$ac_cpp conftest.$ac_ext"
21621 case "(($ac_try" in
21622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21623 *) ac_try_echo
=$ac_try;;
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21628 grep -v '^ *+' conftest.er1
>conftest.err
21630 cat conftest.err
>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } >/dev
/null
&& {
21633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21636 ac_header_preproc
=yes
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.
$ac_ext >&5
21641 ac_header_preproc
=no
21644 rm -f conftest.err conftest.
$ac_ext
21645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21646 echo "${ECHO_T}$ac_header_preproc" >&6; }
21648 # So? What about this header?
21649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21655 ac_header_preproc
=yes
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21675 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 eval "$as_ac_Header=\$ac_header_preproc"
21680 ac_res
=`eval echo '${'$as_ac_Header'}'`
21681 { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21686 cat >>confdefs.h
<<_ACEOF
21687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21692 for ac_header
in kerberosIV
/des.h
21694 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21695 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21698 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 ac_res
=`eval echo '${'$as_ac_Header'}'`
21702 { echo "$as_me:$LINENO: result: $ac_res" >&5
21703 echo "${ECHO_T}$ac_res" >&6; }
21705 # Is the header compilable?
21706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21708 cat >conftest.
$ac_ext <<_ACEOF
21711 cat confdefs.h
>>conftest.
$ac_ext
21712 cat >>conftest.
$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 $ac_includes_default
21715 #include <$ac_header>
21717 rm -f conftest.
$ac_objext
21718 if { (ac_try
="$ac_compile"
21719 case "(($ac_try" in
21720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_compile") 2>conftest.er1
21726 grep -v '^ *+' conftest.er1 >conftest.err
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } && {
21731 test -z "$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 } && test -s conftest.$ac_objext; then
21734 ac_header_compiler=yes
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_header_compiler=no
21742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21744 echo "${ECHO_T}$ac_header_compiler" >&6; }
21746 # Is the header present?
21747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21749 cat >conftest.$ac_ext <<_ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21755 #include <$ac_header>
21757 if { (ac_try="$ac_cpp conftest.$ac_ext"
21758 case "(($ac_try" in
21759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21760 *) ac_try_echo
=$ac_try;;
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21765 grep -v '^ *+' conftest.er1
>conftest.err
21767 cat conftest.err
>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } >/dev
/null
&& {
21770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21773 ac_header_preproc
=yes
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.
$ac_ext >&5
21778 ac_header_preproc
=no
21781 rm -f conftest.err conftest.
$ac_ext
21782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21783 echo "${ECHO_T}$ac_header_preproc" >&6; }
21785 # So? What about this header?
21786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21792 ac_header_preproc
=yes
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21812 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 eval "$as_ac_Header=\$ac_header_preproc"
21817 ac_res
=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21823 cat >>confdefs.h
<<_ACEOF
21824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21829 for ac_header
in kerberos
/des.h
21831 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21832 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21835 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 ac_res
=`eval echo '${'$as_ac_Header'}'`
21839 { echo "$as_me:$LINENO: result: $ac_res" >&5
21840 echo "${ECHO_T}$ac_res" >&6; }
21842 # Is the header compilable?
21843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21845 cat >conftest.
$ac_ext <<_ACEOF
21848 cat confdefs.h
>>conftest.
$ac_ext
21849 cat >>conftest.
$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 $ac_includes_default
21852 #include <$ac_header>
21854 rm -f conftest.
$ac_objext
21855 if { (ac_try
="$ac_compile"
21856 case "(($ac_try" in
21857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21871 ac_header_compiler=yes
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_header_compiler=no
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21881 echo "${ECHO_T}$ac_header_compiler" >&6; }
21883 # Is the header present?
21884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21886 cat >conftest.$ac_ext <<_ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 #include <$ac_header>
21894 if { (ac_try="$ac_cpp conftest.$ac_ext"
21895 case "(($ac_try" in
21896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21897 *) ac_try_echo
=$ac_try;;
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1
>conftest.err
21904 cat conftest.err
>&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } >/dev
/null
&& {
21907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21910 ac_header_preproc
=yes
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.
$ac_ext >&5
21915 ac_header_preproc
=no
21918 rm -f conftest.err conftest.
$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21920 echo "${ECHO_T}$ac_header_preproc" >&6; }
21922 # So? What about this header?
21923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21929 ac_header_preproc
=yes
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21949 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 eval "$as_ac_Header=\$ac_header_preproc"
21954 ac_res
=`eval echo '${'$as_ac_Header'}'`
21955 { echo "$as_me:$LINENO: result: $ac_res" >&5
21956 echo "${ECHO_T}$ac_res" >&6; }
21959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21960 cat >>confdefs.h
<<_ACEOF
21961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 for ac_header
in krb.h
21979 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21980 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21983 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21986 ac_res
=`eval echo '${'$as_ac_Header'}'`
21987 { echo "$as_me:$LINENO: result: $ac_res" >&5
21988 echo "${ECHO_T}$ac_res" >&6; }
21990 # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21993 cat >conftest.
$ac_ext <<_ACEOF
21996 cat confdefs.h
>>conftest.
$ac_ext
21997 cat >>conftest.
$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #include <$ac_header>
22002 rm -f conftest.
$ac_objext
22003 if { (ac_try
="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_header_compiler=yes
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_header_compiler=no
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22029 echo "${ECHO_T}$ac_header_compiler" >&6; }
22031 # Is the header present?
22032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 #include <$ac_header>
22042 if { (ac_try="$ac_cpp conftest.$ac_ext"
22043 case "(($ac_try" in
22044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22045 *) ac_try_echo
=$ac_try;;
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1
>conftest.err
22052 cat conftest.err
>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } >/dev
/null
&& {
22055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22058 ac_header_preproc
=yes
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.
$ac_ext >&5
22063 ac_header_preproc
=no
22066 rm -f conftest.err conftest.
$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22068 echo "${ECHO_T}$ac_header_preproc" >&6; }
22070 # So? What about this header?
22071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22077 ac_header_preproc
=yes
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22097 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22100 eval "$as_ac_Header=\$ac_header_preproc"
22102 ac_res
=`eval echo '${'$as_ac_Header'}'`
22103 { echo "$as_me:$LINENO: result: $ac_res" >&5
22104 echo "${ECHO_T}$ac_res" >&6; }
22107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22108 cat >>confdefs.h
<<_ACEOF
22109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22114 for ac_header
in kerberosIV
/krb.h
22116 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22117 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22120 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 ac_res
=`eval echo '${'$as_ac_Header'}'`
22124 { echo "$as_me:$LINENO: result: $ac_res" >&5
22125 echo "${ECHO_T}$ac_res" >&6; }
22127 # Is the header compilable?
22128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22130 cat >conftest.
$ac_ext <<_ACEOF
22133 cat confdefs.h
>>conftest.
$ac_ext
22134 cat >>conftest.
$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136 $ac_includes_default
22137 #include <$ac_header>
22139 rm -f conftest.
$ac_objext
22140 if { (ac_try
="$ac_compile"
22141 case "(($ac_try" in
22142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22143 *) ac_try_echo=$ac_try;;
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146 (eval "$ac_compile") 2>conftest.er1
22148 grep -v '^ *+' conftest.er1 >conftest.err
22150 cat conftest.err >&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } && {
22153 test -z "$ac_c_werror_flag" ||
22154 test ! -s conftest.err
22155 } && test -s conftest.$ac_objext; then
22156 ac_header_compiler=yes
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 ac_header_compiler=no
22164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22166 echo "${ECHO_T}$ac_header_compiler" >&6; }
22168 # Is the header present?
22169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 #include <$ac_header>
22179 if { (ac_try="$ac_cpp conftest.$ac_ext"
22180 case "(($ac_try" in
22181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22182 *) ac_try_echo
=$ac_try;;
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22187 grep -v '^ *+' conftest.er1
>conftest.err
22189 cat conftest.err
>&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } >/dev
/null
&& {
22192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22195 ac_header_preproc
=yes
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.
$ac_ext >&5
22200 ac_header_preproc
=no
22203 rm -f conftest.err conftest.
$ac_ext
22204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22205 echo "${ECHO_T}$ac_header_preproc" >&6; }
22207 # So? What about this header?
22208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22214 ac_header_preproc
=yes
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22234 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 eval "$as_ac_Header=\$ac_header_preproc"
22239 ac_res
=`eval echo '${'$as_ac_Header'}'`
22240 { echo "$as_me:$LINENO: result: $ac_res" >&5
22241 echo "${ECHO_T}$ac_res" >&6; }
22244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22245 cat >>confdefs.h
<<_ACEOF
22246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22251 for ac_header
in kerberos
/krb.h
22253 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22254 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22257 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 ac_res
=`eval echo '${'$as_ac_Header'}'`
22261 { echo "$as_me:$LINENO: result: $ac_res" >&5
22262 echo "${ECHO_T}$ac_res" >&6; }
22264 # Is the header compilable?
22265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22267 cat >conftest.
$ac_ext <<_ACEOF
22270 cat confdefs.h
>>conftest.
$ac_ext
22271 cat >>conftest.
$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22274 #include <$ac_header>
22276 rm -f conftest.
$ac_objext
22277 if { (ac_try
="$ac_compile"
22278 case "(($ac_try" in
22279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283 (eval "$ac_compile") 2>conftest.er1
22285 grep -v '^ *+' conftest.er1 >conftest.err
22287 cat conftest.err >&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && {
22290 test -z "$ac_c_werror_flag" ||
22291 test ! -s conftest.err
22292 } && test -s conftest.$ac_objext; then
22293 ac_header_compiler=yes
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ac_header_compiler=no
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303 echo "${ECHO_T}$ac_header_compiler" >&6; }
22305 # Is the header present?
22306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22314 #include <$ac_header>
22316 if { (ac_try="$ac_cpp conftest.$ac_ext"
22317 case "(($ac_try" in
22318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22319 *) ac_try_echo
=$ac_try;;
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22324 grep -v '^ *+' conftest.er1
>conftest.err
22326 cat conftest.err
>&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } >/dev
/null
&& {
22329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22332 ac_header_preproc
=yes
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.
$ac_ext >&5
22337 ac_header_preproc
=no
22340 rm -f conftest.err conftest.
$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22342 echo "${ECHO_T}$ac_header_preproc" >&6; }
22344 # So? What about this header?
22345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22351 ac_header_preproc
=yes
22354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22371 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 eval "$as_ac_Header=\$ac_header_preproc"
22376 ac_res
=`eval echo '${'$as_ac_Header'}'`
22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378 echo "${ECHO_T}$ac_res" >&6; }
22381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22382 cat >>confdefs.h
<<_ACEOF
22383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22400 for ac_header
in com_err.h
22402 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22403 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22406 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 ac_res
=`eval echo '${'$as_ac_Header'}'`
22410 { echo "$as_me:$LINENO: result: $ac_res" >&5
22411 echo "${ECHO_T}$ac_res" >&6; }
22413 # Is the header compilable?
22414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22416 cat >conftest.
$ac_ext <<_ACEOF
22419 cat confdefs.h
>>conftest.
$ac_ext
22420 cat >>conftest.
$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422 $ac_includes_default
22423 #include <$ac_header>
22425 rm -f conftest.
$ac_objext
22426 if { (ac_try
="$ac_compile"
22427 case "(($ac_try" in
22428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_compile") 2>conftest.er1
22434 grep -v '^ *+' conftest.er1 >conftest.err
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest.$ac_objext; then
22442 ac_header_compiler=yes
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 ac_header_compiler=no
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22452 echo "${ECHO_T}$ac_header_compiler" >&6; }
22454 # Is the header present?
22455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 #include <$ac_header>
22465 if { (ac_try="$ac_cpp conftest.$ac_ext"
22466 case "(($ac_try" in
22467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22468 *) ac_try_echo
=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22473 grep -v '^ *+' conftest.er1
>conftest.err
22475 cat conftest.err
>&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } >/dev
/null
&& {
22478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22481 ac_header_preproc
=yes
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.
$ac_ext >&5
22486 ac_header_preproc
=no
22489 rm -f conftest.err conftest.
$ac_ext
22490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22491 echo "${ECHO_T}$ac_header_preproc" >&6; }
22493 # So? What about this header?
22494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22500 ac_header_preproc
=yes
22503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22520 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22523 eval "$as_ac_Header=\$ac_header_preproc"
22525 ac_res
=`eval echo '${'$as_ac_Header'}'`
22526 { echo "$as_me:$LINENO: result: $ac_res" >&5
22527 echo "${ECHO_T}$ac_res" >&6; }
22530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22531 cat >>confdefs.h
<<_ACEOF
22532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22541 # Solaris requires -lintl if you want strerror (which calls dgettext)
22542 # to return localized messages.
22544 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22545 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22546 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
22549 ac_check_lib_save_LIBS
=$LIBS
22550 LIBS
="-lintl $LIBS"
22551 cat >conftest.
$ac_ext <<_ACEOF
22554 cat confdefs.h
>>conftest.
$ac_ext
22555 cat >>conftest.
$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22558 /* Override any GCC internal prototype to avoid an error.
22559 Use char because int might match the return type of a GCC
22560 builtin and then its argument prototype would still apply. */
22568 return dgettext ();
22573 rm -f conftest.
$ac_objext conftest
$ac_exeext
22574 if { (ac_try
="$ac_link"
22575 case "(($ac_try" in
22576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580 (eval "$ac_link") 2>conftest.er1
22582 grep -v '^ *+' conftest.er1 >conftest.err
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } && {
22587 test -z "$ac_c_werror_flag" ||
22588 test ! -s conftest.err
22589 } && test -s conftest$ac_exeext &&
22590 $as_test_x conftest$ac_exeext; then
22591 ac_cv_lib_intl_dgettext=yes
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_cv_lib_intl_dgettext=no
22599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22600 conftest$ac_exeext conftest.$ac_ext
22601 LIBS=$ac_check_lib_save_LIBS
22603 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22604 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22605 if test $ac_cv_lib_intl_dgettext = yes; then
22606 cat >>confdefs.h <<_ACEOF
22607 #define HAVE_LIBINTL 1
22610 LIBS="-lintl $LIBS"
22615 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22616 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22617 if test "${emacs_cv_localtime_cache+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 if test x$ac_cv_func_tzset = xyes; then
22621 if test "$cross_compiling" = yes; then
22622 # If we have tzset, assume the worst when cross-compiling.
22623 emacs_cv_localtime_cache=yes
22625 cat >conftest.$ac_ext <<_ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22632 extern char **environ;
22636 for (to = from = environ; (*to = *from); from++)
22637 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22640 char TZ_GMT0[] = "TZ=GMT0";
22641 char TZ_PST8[] = "TZ=PST8";
22644 time_t now = time ((time_t *) 0);
22645 int hour_GMT0, hour_unset;
22646 if (putenv (TZ_GMT0) != 0)
22648 hour_GMT0 = localtime (&now)->tm_hour;
22650 hour_unset = localtime (&now)->tm_hour;
22651 if (putenv (TZ_PST8) != 0)
22653 if (localtime (&now)->tm_hour == hour_GMT0)
22656 if (localtime (&now)->tm_hour != hour_unset)
22661 rm -f conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22665 *) ac_try_echo
=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_link") 2>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; }; then
22681 emacs_cv_localtime_cache=no
22683 echo "$as_me: program exited with status $ac_status" >&5
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22687 ( exit $ac_status )
22688 emacs_cv_localtime_cache=yes
22690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22695 # If we lack tzset, report that localtime does not cache TZ,
22696 # since we can't invalidate the cache if we don't have tzset.
22697 emacs_cv_localtime_cache=no
22700 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22701 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22702 if test $emacs_cv_localtime_cache = yes; then
22704 cat >>confdefs.h <<\_ACEOF
22705 #define LOCALTIME_CACHE 1
22710 if test "x$HAVE_TIMEVAL" = xyes; then
22712 for ac_func in gettimeofday
22714 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 cat >conftest.$ac_ext <<_ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22728 #define $ac_func innocuous_$ac_func
22730 /* System header to define __stub macros and hopefully few prototypes,
22731 which can conflict with char $ac_func (); below.
22732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22733 <limits.h> exists even on freestanding compilers. */
22736 # include <limits.h>
22738 # include <assert.h>
22743 /* Override any GCC internal prototype to avoid an error.
22744 Use char because int might match the return type of a GCC
22745 builtin and then its argument prototype would still apply. */
22750 /* The GNU C library defines this for functions which it implements
22751 to always fail with ENOSYS. Some functions are actually named
22752 something starting with __ and the normal name is an alias. */
22753 #if defined __stub_$ac_func || defined __stub___$ac_func
22760 return $ac_func ();
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22769 *) ac_try_echo
=$ac_try;;
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>conftest.er1
22774 grep -v '^ *+' conftest.er1
>conftest.err
22776 cat conftest.err
>&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest
$ac_exeext &&
22782 $as_test_x conftest
$ac_exeext; then
22783 eval "$as_ac_var=yes"
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.
$ac_ext >&5
22788 eval "$as_ac_var=no"
22791 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22792 conftest
$ac_exeext conftest.
$ac_ext
22794 ac_res
=`eval echo '${'$as_ac_var'}'`
22795 { echo "$as_me:$LINENO: result: $ac_res" >&5
22796 echo "${ECHO_T}$ac_res" >&6; }
22797 if test `eval echo '${'$as_ac_var'}'` = yes; then
22798 cat >>confdefs.h
<<_ACEOF
22799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22805 if test $ac_cv_func_gettimeofday = yes; then
22806 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22807 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22808 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 cat >conftest.
$ac_ext <<_ACEOF
22814 cat confdefs.h
>>conftest.
$ac_ext
22815 cat >>conftest.
$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22818 #ifdef TIME_WITH_SYS_TIME
22819 #include <sys/time.h>
22822 #ifdef HAVE_SYS_TIME_H
22823 #include <sys/time.h>
22831 struct timeval time;
22832 gettimeofday (&time, 0);
22837 rm -f conftest.
$ac_objext
22838 if { (ac_try
="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22854 emacs_cv_gettimeofday_two_arguments=yes
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 emacs_cv_gettimeofday_two_arguments=no
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22865 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22866 if test $emacs_cv_gettimeofday_two_arguments = no; then
22868 cat >>confdefs.h <<\_ACEOF
22869 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22877 { echo "$as_me:$LINENO: checking for socket" >&5
22878 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22879 if test "${ac_cv_func_socket+set}" = set; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 cat >conftest.$ac_ext <<_ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h. */
22888 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22890 #define socket innocuous_socket
22892 /* System header to define __stub macros and hopefully few prototypes,
22893 which can conflict with char socket (); below.
22894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22895 <limits.h> exists even on freestanding compilers. */
22898 # include <limits.h>
22900 # include <assert.h>
22905 /* Override any GCC internal prototype to avoid an error.
22906 Use char because int might match the return type of a GCC
22907 builtin and then its argument prototype would still apply. */
22912 /* The GNU C library defines this for functions which it implements
22913 to always fail with ENOSYS. Some functions are actually named
22914 something starting with __ and the normal name is an alias. */
22915 #if defined __stub_socket || defined __stub___socket
22927 rm -f conftest.$ac_objext conftest$ac_exeext
22928 if { (ac_try="$ac_link"
22929 case "(($ac_try" in
22930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22931 *) ac_try_echo
=$ac_try;;
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_link") 2>conftest.er1
22936 grep -v '^ *+' conftest.er1
>conftest.err
22938 cat conftest.err
>&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && {
22941 test -z "$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 } && test -s conftest
$ac_exeext &&
22944 $as_test_x conftest
$ac_exeext; then
22945 ac_cv_func_socket
=yes
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.
$ac_ext >&5
22950 ac_cv_func_socket
=no
22953 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22954 conftest
$ac_exeext conftest.
$ac_ext
22956 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22957 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22958 if test $ac_cv_func_socket = yes; then
22964 if test $ok_so_far = yes; then
22965 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22966 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22967 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22968 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22972 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22974 # Is the header compilable?
22975 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22976 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22977 cat >conftest.
$ac_ext <<_ACEOF
22980 cat confdefs.h
>>conftest.
$ac_ext
22981 cat >>conftest.
$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 $ac_includes_default
22984 #include <netinet/in.h>
22986 rm -f conftest.
$ac_objext
22987 if { (ac_try
="$ac_compile"
22988 case "(($ac_try" in
22989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22990 *) ac_try_echo=$ac_try;;
22992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22993 (eval "$ac_compile") 2>conftest.er1
22995 grep -v '^ *+' conftest.er1 >conftest.err
22997 cat conftest.err >&5
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); } && {
23000 test -z "$ac_c_werror_flag" ||
23001 test ! -s conftest.err
23002 } && test -s conftest.$ac_objext; then
23003 ac_header_compiler=yes
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_header_compiler=no
23011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23013 echo "${ECHO_T}$ac_header_compiler" >&6; }
23015 # Is the header present?
23016 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23017 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 #include <netinet/in.h>
23026 if { (ac_try="$ac_cpp conftest.$ac_ext"
23027 case "(($ac_try" in
23028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23029 *) ac_try_echo
=$ac_try;;
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23034 grep -v '^ *+' conftest.er1
>conftest.err
23036 cat conftest.err
>&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } >/dev
/null
&& {
23039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23042 ac_header_preproc
=yes
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.
$ac_ext >&5
23047 ac_header_preproc
=no
23050 rm -f conftest.err conftest.
$ac_ext
23051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23052 echo "${ECHO_T}$ac_header_preproc" >&6; }
23054 # So? What about this header?
23055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23057 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23058 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23060 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23061 ac_header_preproc
=yes
23064 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23065 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23067 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23069 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23071 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23073 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23075 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23079 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23080 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
23081 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 ac_cv_header_netinet_in_h
=$ac_header_preproc
23086 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23087 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
23090 if test $ac_cv_header_netinet_in_h = yes; then
23098 if test $ok_so_far = yes; then
23099 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23100 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23101 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23102 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23105 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23106 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23108 # Is the header compilable?
23109 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23110 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23111 cat >conftest.
$ac_ext <<_ACEOF
23114 cat confdefs.h
>>conftest.
$ac_ext
23115 cat >>conftest.
$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 $ac_includes_default
23118 #include <arpa/inet.h>
23120 rm -f conftest.
$ac_objext
23121 if { (ac_try
="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.$ac_objext; then
23137 ac_header_compiler=yes
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 ac_header_compiler=no
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23147 echo "${ECHO_T}$ac_header_compiler" >&6; }
23149 # Is the header present?
23150 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23151 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23152 cat >conftest.$ac_ext <<_ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158 #include <arpa/inet.h>
23160 if { (ac_try="$ac_cpp conftest.$ac_ext"
23161 case "(($ac_try" in
23162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23163 *) ac_try_echo
=$ac_try;;
23165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23168 grep -v '^ *+' conftest.er1
>conftest.err
23170 cat conftest.err
>&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } >/dev
/null
&& {
23173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23174 test ! -s conftest.err
23176 ac_header_preproc
=yes
23178 echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.
$ac_ext >&5
23181 ac_header_preproc
=no
23184 rm -f conftest.err conftest.
$ac_ext
23185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23186 echo "${ECHO_T}$ac_header_preproc" >&6; }
23188 # So? What about this header?
23189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23191 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23192 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23193 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23194 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23195 ac_header_preproc
=yes
23198 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23199 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23200 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23201 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23202 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23203 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23204 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23205 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23206 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23207 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23208 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23209 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23213 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23214 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23215 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 ac_cv_header_arpa_inet_h
=$ac_header_preproc
23220 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23221 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23224 if test $ac_cv_header_arpa_inet_h = yes; then
23232 if test $ok_so_far = yes; then
23234 cat >>confdefs.h
<<\_ACEOF
23235 #define HAVE_INET_SOCKETS 1
23241 for ac_header
in sys
/ioctl.h
23243 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23244 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23247 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 ac_res
=`eval echo '${'$as_ac_Header'}'`
23251 { echo "$as_me:$LINENO: result: $ac_res" >&5
23252 echo "${ECHO_T}$ac_res" >&6; }
23254 # Is the header compilable?
23255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23257 cat >conftest.
$ac_ext <<_ACEOF
23260 cat confdefs.h
>>conftest.
$ac_ext
23261 cat >>conftest.
$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23263 $ac_includes_default
23264 #include <$ac_header>
23266 rm -f conftest.
$ac_objext
23267 if { (ac_try
="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23275 grep -v '^ *+' conftest.er1 >conftest.err
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_header_compiler=yes
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23288 ac_header_compiler=no
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23293 echo "${ECHO_T}$ac_header_compiler" >&6; }
23295 # Is the header present?
23296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23298 cat >conftest.$ac_ext <<_ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 #include <$ac_header>
23306 if { (ac_try="$ac_cpp conftest.$ac_ext"
23307 case "(($ac_try" in
23308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23309 *) ac_try_echo
=$ac_try;;
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23314 grep -v '^ *+' conftest.er1
>conftest.err
23316 cat conftest.err
>&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } >/dev
/null
&& {
23319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23320 test ! -s conftest.err
23322 ac_header_preproc
=yes
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.
$ac_ext >&5
23327 ac_header_preproc
=no
23330 rm -f conftest.err conftest.
$ac_ext
23331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23332 echo "${ECHO_T}$ac_header_preproc" >&6; }
23334 # So? What about this header?
23335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23341 ac_header_preproc
=yes
23344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23361 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 eval "$as_ac_Header=\$ac_header_preproc"
23366 ac_res
=`eval echo '${'$as_ac_Header'}'`
23367 { echo "$as_me:$LINENO: result: $ac_res" >&5
23368 echo "${ECHO_T}$ac_res" >&6; }
23371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23372 cat >>confdefs.h
<<_ACEOF
23373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23381 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
23383 cat >>confdefs.h
<<\_ACEOF
23384 #define HAVE_AIX_SMT_EXP 1
23389 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23390 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23391 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
23392 { echo "$as_me:$LINENO: result: yes" >&5
23393 echo "${ECHO_T}yes" >&6; }
23395 cat >>confdefs.h
<<\_ACEOF
23396 #define HAVE_DEV_PTMX 1
23400 { echo "$as_me:$LINENO: result: no" >&5
23401 echo "${ECHO_T}no" >&6; }
23404 { echo "$as_me:$LINENO: checking for pid_t" >&5
23405 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23406 if test "${ac_cv_type_pid_t+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 cat >conftest.
$ac_ext <<_ACEOF
23412 cat confdefs.h
>>conftest.
$ac_ext
23413 cat >>conftest.
$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 $ac_includes_default
23416 typedef pid_t ac__type_new_;
23420 if ((ac__type_new_ *) 0)
23422 if (sizeof (ac__type_new_))
23428 rm -f conftest.
$ac_objext
23429 if { (ac_try
="$ac_compile"
23430 case "(($ac_try" in
23431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435 (eval "$ac_compile") 2>conftest.er1
23437 grep -v '^ *+' conftest.er1 >conftest.err
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && {
23442 test -z "$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23444 } && test -s conftest.$ac_objext; then
23445 ac_cv_type_pid_t=yes
23447 echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ac_cv_type_pid_t=no
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23456 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23457 if test $ac_cv_type_pid_t = yes; then
23461 cat >>confdefs.h <<_ACEOF
23468 for ac_header in vfork.h
23470 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 ac_res=`eval echo '${'$as_ac_Header'}'`
23478 { echo "$as_me:$LINENO: result: $ac_res" >&5
23479 echo "${ECHO_T}$ac_res" >&6; }
23481 # Is the header compilable?
23482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 $ac_includes_default
23491 #include <$ac_header>
23493 rm -f conftest.$ac_objext
23494 if { (ac_try="$ac_compile"
23495 case "(($ac_try" in
23496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23497 *) ac_try_echo
=$ac_try;;
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_compile") 2>conftest.er1
23502 grep -v '^ *+' conftest.er1
>conftest.err
23504 cat conftest.err
>&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest.
$ac_objext; then
23510 ac_header_compiler
=yes
23512 echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.
$ac_ext >&5
23515 ac_header_compiler
=no
23518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23520 echo "${ECHO_T}$ac_header_compiler" >&6; }
23522 # Is the header present?
23523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23525 cat >conftest.
$ac_ext <<_ACEOF
23528 cat confdefs.h
>>conftest.
$ac_ext
23529 cat >>conftest.
$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
23531 #include <$ac_header>
23533 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23534 case "(($ac_try" in
23535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23541 grep -v '^ *+' conftest.er1 >conftest.err
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } >/dev/null && {
23546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23549 ac_header_preproc=yes
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ac_header_preproc=no
23557 rm -f conftest.err conftest.$ac_ext
23558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23559 echo "${ECHO_T}$ac_header_preproc" >&6; }
23561 # So? What about this header?
23562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23568 ac_header_preproc=yes
23571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23591 eval "$as_ac_Header=\$ac_header_preproc"
23593 ac_res=`eval echo '${'$as_ac_Header'}'`
23594 { echo "$as_me:$LINENO: result: $ac_res" >&5
23595 echo "${ECHO_T}$ac_res" >&6; }
23598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23609 for ac_func in fork vfork
23611 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23615 echo $ECHO_N "(cached) $ECHO_C" >&6
23617 cat >conftest.$ac_ext <<_ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23625 #define $ac_func innocuous_$ac_func
23627 /* System header to define __stub macros and hopefully few prototypes,
23628 which can conflict with char $ac_func (); below.
23629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23630 <limits.h> exists even on freestanding compilers. */
23633 # include <limits.h>
23635 # include <assert.h>
23640 /* Override any GCC internal prototype to avoid an error.
23641 Use char because int might match the return type of a GCC
23642 builtin and then its argument prototype would still apply. */
23647 /* The GNU C library defines this for functions which it implements
23648 to always fail with ENOSYS. Some functions are actually named
23649 something starting with __ and the normal name is an alias. */
23650 #if defined __stub_$ac_func || defined __stub___$ac_func
23657 return $ac_func ();
23662 rm -f conftest.$ac_objext conftest$ac_exeext
23663 if { (ac_try="$ac_link"
23664 case "(($ac_try" in
23665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23666 *) ac_try_echo
=$ac_try;;
23668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23669 (eval "$ac_link") 2>conftest.er1
23671 grep -v '^ *+' conftest.er1
>conftest.err
23673 cat conftest.err
>&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } && {
23676 test -z "$ac_c_werror_flag" ||
23677 test ! -s conftest.err
23678 } && test -s conftest
$ac_exeext &&
23679 $as_test_x conftest
$ac_exeext; then
23680 eval "$as_ac_var=yes"
23682 echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.
$ac_ext >&5
23685 eval "$as_ac_var=no"
23688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23689 conftest
$ac_exeext conftest.
$ac_ext
23691 ac_res
=`eval echo '${'$as_ac_var'}'`
23692 { echo "$as_me:$LINENO: result: $ac_res" >&5
23693 echo "${ECHO_T}$ac_res" >&6; }
23694 if test `eval echo '${'$as_ac_var'}'` = yes; then
23695 cat >>confdefs.h
<<_ACEOF
23696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23702 if test "x$ac_cv_func_fork" = xyes
; then
23703 { echo "$as_me:$LINENO: checking for working fork" >&5
23704 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23705 if test "${ac_cv_func_fork_works+set}" = set; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23708 if test "$cross_compiling" = yes; then
23709 ac_cv_func_fork_works
=cross
23711 cat >conftest.
$ac_ext <<_ACEOF
23714 cat confdefs.h
>>conftest.
$ac_ext
23715 cat >>conftest.
$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23717 $ac_includes_default
23722 /* By Ruediger Kuhlmann. */
23723 return fork () < 0;
23729 rm -f conftest
$ac_exeext
23730 if { (ac_try
="$ac_link"
23731 case "(($ac_try" in
23732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_link") 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23740 { (case "(($ac_try" in
23741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23742 *) ac_try_echo
=$ac_try;;
23744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23745 (eval "$ac_try") 2>&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; }; then
23749 ac_cv_func_fork_works
=yes
23751 echo "$as_me: program exited with status $ac_status" >&5
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.
$ac_ext >&5
23755 ( exit $ac_status )
23756 ac_cv_func_fork_works
=no
23758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23763 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23764 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23767 ac_cv_func_fork_works
=$ac_cv_func_fork
23769 if test "x$ac_cv_func_fork_works" = xcross
; then
23771 *-*-amigaos* |
*-*-msdosdjgpp*)
23772 # Override, as these systems have only a dummy fork() stub
23773 ac_cv_func_fork_works
=no
23776 ac_cv_func_fork_works
=yes
23779 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23780 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23782 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23783 if test "x$ac_cv_func_vfork" = xyes
; then
23784 { echo "$as_me:$LINENO: checking for working vfork" >&5
23785 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23786 if test "${ac_cv_func_vfork_works+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23789 if test "$cross_compiling" = yes; then
23790 ac_cv_func_vfork_works
=cross
23792 cat >conftest.
$ac_ext <<_ACEOF
23795 cat confdefs.h
>>conftest.
$ac_ext
23796 cat >>conftest.
$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 /* Thanks to Paul Eggert for this test. */
23799 $ac_includes_default
23800 #include <sys/wait.h>
23801 #ifdef HAVE_VFORK_H
23802 # include <vfork.h>
23804 /* On some sparc systems, changes by the child to local and incoming
23805 argument registers are propagated back to the parent. The compiler
23806 is told about this with #include <vfork.h>, but some compilers
23807 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23808 static variable whose address is put into a register that is
23809 clobbered by the vfork. */
23812 sparc_address_test (int arg)
23814 sparc_address_test (arg) int arg;
23817 static pid_t child;
23835 pid_t parent = getpid ();
23838 sparc_address_test (0);
23843 /* Here is another test for sparc vfork register problems. This
23844 test uses lots of local variables, at least as many local
23845 variables as main has allocated so far including compiler
23846 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23847 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23848 reuse the register of parent for one of the local variables,
23849 since it will think that parent can't possibly be used any more
23850 in this routine. Assigning to the local variable will thus
23851 munge parent in the parent process. */
23853 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23854 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23855 /* Convince the compiler that p..p7 are live; otherwise, it might
23856 use the same hardware register for all 8 local variables. */
23857 if (p != p1 || p != p2 || p != p3 || p != p4
23858 || p != p5 || p != p6 || p != p7)
23861 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23862 from child file descriptors. If the child closes a descriptor
23863 before it execs or exits, this munges the parent's descriptor
23864 as well. Test for this by closing stdout in the child. */
23865 _exit(close(fileno(stdout)) != 0);
23870 while (wait(&status) != child)
23873 /* Was there some problem with vforking? */
23876 /* Did the child fail? (This shouldn't happen.) */
23879 /* Did the vfork/compiler bug occur? */
23880 || parent != getpid()
23882 /* Did the file descriptor bug occur? */
23883 || fstat(fileno(stdout), &st) != 0
23888 rm -f conftest
$ac_exeext
23889 if { (ac_try
="$ac_link"
23890 case "(($ac_try" in
23891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23892 *) ac_try_echo=$ac_try;;
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895 (eval "$ac_link") 2>&5
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23899 { (case "(($ac_try" in
23900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23901 *) ac_try_echo
=$ac_try;;
23903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904 (eval "$ac_try") 2>&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908 ac_cv_func_vfork_works
=yes
23910 echo "$as_me: program exited with status $ac_status" >&5
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.
$ac_ext >&5
23914 ( exit $ac_status )
23915 ac_cv_func_vfork_works
=no
23917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23922 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23923 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23926 if test "x$ac_cv_func_fork_works" = xcross
; then
23927 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23928 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23929 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23932 if test "x$ac_cv_func_vfork_works" = xyes
; then
23934 cat >>confdefs.h
<<\_ACEOF
23935 #define HAVE_WORKING_VFORK 1
23940 cat >>confdefs.h
<<\_ACEOF
23945 if test "x$ac_cv_func_fork_works" = xyes
; then
23947 cat >>confdefs.h
<<\_ACEOF
23948 #define HAVE_WORKING_FORK 1
23954 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23955 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23956 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23959 cat >conftest.
$ac_ext <<_ACEOF
23962 cat confdefs.h
>>conftest.
$ac_ext
23963 cat >>conftest.
$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 #include <langinfo.h>
23969 char* cs = nl_langinfo(CODESET);
23974 rm -f conftest.
$ac_objext conftest
$ac_exeext
23975 if { (ac_try
="$ac_link"
23976 case "(($ac_try" in
23977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_link") 2>conftest.er1
23983 grep -v '^ *+' conftest.er1 >conftest.err
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } && {
23988 test -z "$ac_c_werror_flag" ||
23989 test ! -s conftest.err
23990 } && test -s conftest$ac_exeext &&
23991 $as_test_x conftest$ac_exeext; then
23992 emacs_cv_langinfo_codeset=yes
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 emacs_cv_langinfo_codeset=no
24000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24001 conftest$ac_exeext conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24005 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
24006 if test $emacs_cv_langinfo_codeset = yes; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define HAVE_LANGINFO_CODESET 1
24014 { echo "$as_me:$LINENO: checking for size_t" >&5
24015 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24016 if test "${ac_cv_type_size_t+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 cat >conftest.$ac_ext <<_ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h. */
24025 $ac_includes_default
24026 typedef size_t ac__type_new_;
24030 if ((ac__type_new_ *) 0)
24032 if (sizeof (ac__type_new_))
24038 rm -f conftest.$ac_objext
24039 if { (ac_try="$ac_compile"
24040 case "(($ac_try" in
24041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24042 *) ac_try_echo
=$ac_try;;
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_compile") 2>conftest.er1
24047 grep -v '^ *+' conftest.er1
>conftest.err
24049 cat conftest.err
>&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } && {
24052 test -z "$ac_c_werror_flag" ||
24053 test ! -s conftest.err
24054 } && test -s conftest.
$ac_objext; then
24055 ac_cv_type_size_t
=yes
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.
$ac_ext >&5
24060 ac_cv_type_size_t
=no
24063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24066 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24067 if test $ac_cv_type_size_t = yes; then
24069 cat >>confdefs.h
<<_ACEOF
24070 #define HAVE_SIZE_T 1
24077 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
24078 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
24079 if test "${ac_cv_type_mbstate_t+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24082 cat >conftest.
$ac_ext <<_ACEOF
24085 cat confdefs.h
>>conftest.
$ac_ext
24086 cat >>conftest.
$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24088 $ac_includes_default
24089 # include <wchar.h>
24093 mbstate_t x; return sizeof x;
24098 rm -f conftest.
$ac_objext
24099 if { (ac_try
="$ac_compile"
24100 case "(($ac_try" in
24101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24107 grep -v '^ *+' conftest.er1 >conftest.err
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest.$ac_objext; then
24115 ac_cv_type_mbstate_t=yes
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ac_cv_type_mbstate_t=no
24123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24126 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24127 if test $ac_cv_type_mbstate_t = yes; then
24129 cat >>confdefs.h <<\_ACEOF
24130 #define HAVE_MBSTATE_T 1
24135 cat >>confdefs.h <<\_ACEOF
24136 #define mbstate_t int
24141 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24142 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24143 if test "${emacs_cv_c_restrict+set}" = set; then
24144 echo $ECHO_N "(cached) $ECHO_C" >&6
24146 cat >conftest.$ac_ext <<_ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 void fred (int *restrict x);
24161 rm -f conftest.$ac_objext
24162 if { (ac_try="$ac_compile"
24163 case "(($ac_try" in
24164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24165 *) ac_try_echo
=$ac_try;;
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_compile") 2>conftest.er1
24170 grep -v '^ *+' conftest.er1
>conftest.err
24172 cat conftest.err
>&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } && {
24175 test -z "$ac_c_werror_flag" ||
24176 test ! -s conftest.err
24177 } && test -s conftest.
$ac_objext; then
24178 emacs_cv_c_restrict
=yes
24180 echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.
$ac_ext >&5
24183 cat >conftest.
$ac_ext <<_ACEOF
24186 cat confdefs.h
>>conftest.
$ac_ext
24187 cat >>conftest.
$ac_ext <<_ACEOF
24188 /* end confdefs.h. */
24189 void fred (int *__restrict x);
24198 rm -f conftest.
$ac_objext
24199 if { (ac_try
="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_compile") 2>conftest.er1
24207 grep -v '^ *+' conftest.er1 >conftest.err
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest.$ac_objext; then
24215 emacs_cv_c_restrict=__restrict
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 emacs_cv_c_restrict=no
24223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24229 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24230 case "$emacs_cv_c_restrict" in
24231 yes) emacs_restrict=restrict;;
24232 no) emacs_restrict="";;
24233 *) emacs_restrict="$emacs_cv_c_restrict";;
24235 if test "$emacs_restrict" != __restrict; then
24237 cat >>confdefs.h <<_ACEOF
24238 #define __restrict $emacs_restrict
24243 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24244 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24245 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24246 echo $ECHO_N "(cached) $ECHO_C" >&6
24248 cat >conftest.$ac_ext <<_ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 void fred (int x[__restrict]);
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24267 *) ac_try_echo
=$ac_try;;
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270 (eval "$ac_compile") 2>conftest.er1
24272 grep -v '^ *+' conftest.er1
>conftest.err
24274 cat conftest.err
>&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } && {
24277 test -z "$ac_c_werror_flag" ||
24278 test ! -s conftest.err
24279 } && test -s conftest.
$ac_objext; then
24280 emacs_cv_c_restrict_arr
=yes
24282 echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.
$ac_ext >&5
24285 emacs_cv_c_restrict_arr
=no
24288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24290 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24291 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24292 if test "$emacs_cv_c_restrict_arr" = yes; then
24294 cat >>confdefs.h
<<\_ACEOF
24295 #define __restrict_arr __restrict
24302 # Set up the CFLAGS for real compilation, so we can substitute it.
24303 CFLAGS
="$REAL_CFLAGS"
24304 CPPFLAGS
="$REAL_CPPFLAGS"
24306 #### Find out which version of Emacs this is.
24307 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24308 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24309 if test x
"${version}" = x
; then
24310 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24311 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24312 { (exit 1); exit 1; }; }
24315 ### Specify what sort of things we'll be editing into Makefile and config.h.
24316 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24360 cat >>confdefs.h
<<_ACEOF
24361 #define EMACS_CONFIGURATION "${canonical}"
24365 cat >>confdefs.h
<<_ACEOF
24366 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24370 cat >>confdefs.h
<<_ACEOF
24371 #define config_machfile "${machfile}"
24375 cat >>confdefs.h
<<_ACEOF
24376 #define config_opsysfile "${opsysfile}"
24380 cat >>confdefs.h
<<_ACEOF
24381 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24385 cat >>confdefs.h
<<_ACEOF
24386 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24390 cat >>confdefs.h
<<_ACEOF
24391 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24395 cat >>confdefs.h
<<_ACEOF
24396 #define UNEXEC_SRC ${UNEXEC_SRC}
24400 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24402 cat >>confdefs.h
<<\_ACEOF
24403 #define HAVE_X_WINDOWS 1
24407 if test "${USE_X_TOOLKIT}" != "none" ; then
24409 cat >>confdefs.h
<<\_ACEOF
24410 #define USE_X_TOOLKIT 1
24413 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24415 cat >>confdefs.h
<<\_ACEOF
24416 #define USE_LUCID 1
24419 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24421 cat >>confdefs.h
<<\_ACEOF
24422 #define USE_MOTIF 1
24427 if test "${HAVE_X11}" = "yes" ; then
24429 cat >>confdefs.h
<<\_ACEOF
24434 if test "${HAVE_MENUS}" = "yes" ; then
24436 cat >>confdefs.h
<<\_ACEOF
24437 #define HAVE_MENUS 1
24441 if test "${GNU_MALLOC}" = "yes" ; then
24443 cat >>confdefs.h
<<\_ACEOF
24444 #define GNU_MALLOC 1
24448 if test "${REL_ALLOC}" = "yes" ; then
24450 cat >>confdefs.h
<<\_ACEOF
24451 #define REL_ALLOC 1
24461 #### Report on what we decided to do.
24462 #### Report GTK as a toolkit, even if it doesn't use Xt.
24463 #### It makes printing result more understandable as using GTK sets
24464 #### toolkit_scroll_bars to yes by default.
24465 if test "${HAVE_GTK}" = "yes"; then
24470 Configured for \`${canonical}'.
24472 Where should the build process find the source code? ${srcdir}
24473 What operating system and machine description files should Emacs use?
24474 \`${opsysfile}' and \`${machfile}'
24475 What compiler should emacs be built with? ${CC} ${CFLAGS}
24476 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24477 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24478 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24479 What window system should Emacs use? ${window_system}
24480 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24482 if test -n "${x_includes}"; then
24483 echo " Where do we find X Windows header files? ${x_includes}"
24485 echo " Where do we find X Windows header files? Standard dirs"
24487 if test -n "${x_libraries}"; then
24488 echo " Where do we find X Windows libraries? ${x_libraries}"
24490 echo " Where do we find X Windows libraries? Standard dirs"
24493 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24494 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24495 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24496 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24497 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24498 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24499 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24500 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24501 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24503 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24504 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24505 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24506 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24508 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24511 if test $USE_XASSERTS = yes; then
24512 echo " Compiling with asserts turned on."
24513 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
24518 if test "$USE_X_TOOLKIT" = GTK
; then
24519 case "$canonical" in
24521 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24522 will probably get a crash on startup. If this happens, please use another
24523 toolkit for Emacs. See etc/PROBLEMS for more information."
24528 if test "$HAVE_NS" = "yes"; then
24530 echo "You must run \"make install\" in order to test the built application.
24531 The installed application will go to nextstep/Emacs.app and can be
24532 run or moved from there."
24533 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24534 echo "The application will be fully self-contained."
24536 echo "The lisp resources for the application will be installed under ${prefix}.
24537 You may need to run \"make install\" with sudo. The application will fail
24538 to run if these resources are not installed."
24543 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24544 echo "D-Bus integration has been tested for GNU/Linux only."
24549 # Remove any trailing slashes in these variables.
24550 test "${prefix}" != NONE
&&
24551 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24552 test "${exec_prefix}" != NONE
&&
24553 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24555 # Now get this: Some word that is part of the ${srcdir} directory name
24556 # or the ${configuration} value might, just might, happen to be an
24557 # identifier like `sun4' or `i386' or something, and be predefined by
24558 # the C preprocessor to some helpful value like 1, or maybe the empty
24559 # string. Needless to say consequent macro substitutions are less
24560 # than conducive to the makefile finding the correct directory.
24561 cpp_undefs
="`echo $srcdir $configuration $canonical |
24562 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24563 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24565 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24566 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24567 ## from Makefile.c can correctly provide the arg `-traditional' to the
24570 cat >conftest.
$ac_ext <<_ACEOF
24573 cat confdefs.h
>>conftest.
$ac_ext
24574 cat >>conftest.
$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24579 $EGREP "yes..yes" >/dev
/null
2>&1; then
24580 CPP_NEED_TRADITIONAL
=no
24582 CPP_NEED_TRADITIONAL
=yes
24587 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"
24589 ac_config_commands
="$ac_config_commands default"
24591 cat >confcache
<<\_ACEOF
24592 # This file is a shell script that caches the results of configure
24593 # tests run on this system so they can be shared between configure
24594 # scripts and configure runs, see configure's option --config-cache.
24595 # It is not useful on other systems. If it contains results you don't
24596 # want to keep, you may remove or edit it.
24598 # config.status only pays attention to the cache file if you give it
24599 # the --recheck option to rerun configure.
24601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24603 # following values.
24607 # The following way of writing the cache mishandles newlines in values,
24608 # but we know of no workaround that is simple, portable, and efficient.
24609 # So, we kill variables containing newlines.
24610 # Ultrix sh set writes to stderr and can't be redirected directly,
24611 # and sets the high bit in the cache file unless we assign to the vars.
24613 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24614 eval ac_val
=\$
$ac_var
24618 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24619 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24622 _ | IFS | as_nl
) ;; #(
24623 *) $as_unset $ac_var ;;
24629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24630 *${as_nl}ac_space
=\
*)
24631 # `set' does not quote correctly, so add quotes (double-quote
24632 # substitution turns \\\\ into \\, and sed turns \\ into \).
24635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24638 # `set' quotes correctly as required by POSIX, so do not add quotes.
24639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24652 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24653 if test -w "$cache_file"; then
24654 test "x$cache_file" != "x/dev/null" &&
24655 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24656 echo "$as_me: updating cache $cache_file" >&6;}
24657 cat confcache
>$cache_file
24659 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24660 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24665 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24666 # Let make expand exec_prefix.
24667 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24669 DEFS
=-DHAVE_CONFIG_H
24673 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24674 # 1. Remove the extension, and $U if already installed.
24675 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24676 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24678 # will be set to the directory where LIBOBJS objects are built.
24679 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24680 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24682 LIBOBJS
=$ac_libobjs
24684 LTLIBOBJS
=$ac_ltlibobjs
24688 : ${CONFIG_STATUS=./config.status}
24689 ac_clean_files_save
=$ac_clean_files
24690 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24693 cat >$CONFIG_STATUS <<_ACEOF
24695 # Generated by $as_me.
24696 # Run this file to recreate the current configuration.
24697 # Compiler output produced by configure, useful for debugging
24698 # configure, is in config.log if it exists.
24701 ac_cs_recheck=false
24703 SHELL=\${CONFIG_SHELL-$SHELL}
24706 cat >>$CONFIG_STATUS <<\_ACEOF
24707 ## --------------------- ##
24708 ## M4sh Initialization. ##
24709 ## --------------------- ##
24711 # Be more Bourne compatible
24712 DUALCASE
=1; export DUALCASE
# for MKS sh
24713 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24716 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24717 # is contrary to our usage. Disable this feature.
24718 alias -g '${1+"$@"}'='"$@"'
24719 setopt NO_GLOB_SUBST
24721 case `(set -o) 2>/dev/null` in
24722 *posix
*) set -o posix
;;
24731 # Avoid depending upon Character Ranges.
24732 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24733 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24734 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24735 as_cr_digits
='0123456789'
24736 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24738 # The user is always right.
24739 if test "${PATH_SEPARATOR+set}" != set; then
24740 echo "#! /bin/sh" >conf$$.sh
24741 echo "exit 0" >>conf$$.sh
24743 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24751 # Support unset when possible.
24752 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24760 # We need space, tab and new line, in precisely that order. Quoting is
24761 # there to prevent editors from complaining about space-tab.
24762 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24763 # splitting by setting IFS to empty value.)
24768 # Find who we are. Look in the path if we contain no directory separator.
24770 *[\\/]* ) as_myself
=$0 ;;
24771 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24772 for as_dir
in $PATH
24775 test -z "$as_dir" && as_dir
=.
24776 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24782 # We did not find ourselves, most probably we were run as `sh COMMAND'
24783 # in which case we are not to be found in the path.
24784 if test "x$as_myself" = x
; then
24787 if test ! -f "$as_myself"; then
24788 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24789 { (exit 1); exit 1; }
24792 # Work around bugs in pre-3.0 UWIN ksh.
24793 for as_var
in ENV MAIL MAILPATH
24794 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24802 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24803 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24804 LC_TELEPHONE LC_TIME
24806 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24807 eval $as_var=C
; export $as_var
24809 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24813 # Required to use basename.
24814 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24815 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24821 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24822 as_basename
=basename
24828 # Name of the executable.
24829 as_me
=`$as_basename -- "$0" ||
24830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24831 X"$0" : 'X\(//\)$' \| \
24832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24834 sed '/^.*\/\([^/][^/]*\)\/*$/{
24853 as_lineno_1
=$LINENO
24854 as_lineno_2
=$LINENO
24855 test "x$as_lineno_1" != "x$as_lineno_2" &&
24856 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24858 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24859 # uniformly replaced by the line number. The first 'sed' inserts a
24860 # line-number line after each line using $LINENO; the second 'sed'
24861 # does the real work. The second script uses 'N' to pair each
24862 # line-number line with the line containing $LINENO, and appends
24863 # trailing '-' during substitution so that $LINENO is not a special
24864 # case at line end.
24865 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24866 # scripts with optimization help from Paolo Bonzini. Blame Lee
24867 # E. McMahon (1931-1989) for sed's syntax. :-)
24879 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24882 ' >$as_me.lineno
&&
24883 chmod +x
"$as_me.lineno" ||
24884 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24885 { (exit 1); exit 1; }; }
24887 # Don't try to exec as it changes $[0], causing all sort of problems
24888 # (the dirname of $[0] is not the place where we might find the
24889 # original and so on. Autoconf is especially sensitive to this).
24890 .
"./$as_me.lineno"
24891 # Exit status is that of the last command.
24896 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24902 ECHO_C
= ECHO_N
= ECHO_T
=
24903 case `echo -n x` in
24905 case `echo 'x\c'` in
24906 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24913 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24914 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24920 rm -f conf$$ conf$$.exe conf$$.
file
24921 if test -d conf$$.dir
; then
24922 rm -f conf$$.dir
/conf$$.
file
24928 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24930 # ... but there are two gotchas:
24931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24933 # In both cases, we have to default to `cp -p'.
24934 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24936 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24941 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24942 rmdir conf$$.dir
2>/dev
/null
24944 if mkdir
-p .
2>/dev
/null
; then
24947 test -d .
/-p && rmdir .
/-p
24951 if test -x / >/dev
/null
2>&1; then
24952 as_test_x
='test -x'
24954 if ls -dL / >/dev
/null
2>&1; then
24961 if test -d "$1"; then
24967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24968 ???[sx]*):;;*)false;;esac;fi
24972 as_executable_p
=$as_test_x
24974 # Sed expression to map a string onto a valid CPP name.
24975 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24977 # Sed expression to map a string onto a valid variable name.
24978 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24983 # Save the log message, to keep $[0] and so on meaningful, and to
24984 # report actual input values of CONFIG_FILES etc. instead of their
24985 # values after options handling.
24987 This file was extended by emacs $as_me 23.1.50, which was
24988 generated by GNU Autoconf 2.61. Invocation command line was
24990 CONFIG_FILES = $CONFIG_FILES
24991 CONFIG_HEADERS = $CONFIG_HEADERS
24992 CONFIG_LINKS = $CONFIG_LINKS
24993 CONFIG_COMMANDS = $CONFIG_COMMANDS
24996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25001 cat >>$CONFIG_STATUS <<_ACEOF
25002 # Files that config.status was made for.
25003 config_files="$ac_config_files"
25004 config_headers="$ac_config_headers"
25005 config_commands="$ac_config_commands"
25009 cat >>$CONFIG_STATUS <<\_ACEOF
25011 \`$as_me' instantiates files from templates according to the
25012 current configuration.
25014 Usage: $0 [OPTIONS] [FILE]...
25016 -h, --help print this help, then exit
25017 -V, --version print version number and configuration settings, then exit
25018 -q, --quiet do not print progress messages
25019 -d, --debug don't remove temporary files
25020 --recheck update $as_me by reconfiguring in the same conditions
25021 --file=FILE[:TEMPLATE]
25022 instantiate the configuration file FILE
25023 --header=FILE[:TEMPLATE]
25024 instantiate the configuration header FILE
25026 Configuration files:
25029 Configuration headers:
25032 Configuration commands:
25035 Report bugs to <bug-autoconf@gnu.org>."
25038 cat >>$CONFIG_STATUS <<_ACEOF
25040 emacs config.status 23.1.50
25041 configured by $0, generated by GNU Autoconf 2.61,
25042 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25044 Copyright (C) 2006 Free Software Foundation, Inc.
25045 This config.status script is free software; the Free Software Foundation
25046 gives unlimited permission to copy, distribute and modify it."
25053 cat >>$CONFIG_STATUS <<\_ACEOF
25054 # If no file are specified by the user, then we need to provide default
25055 # value. By we need to know if files were specified by the user.
25061 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25062 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25073 # Handling of the options.
25074 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25076 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25077 echo "$ac_cs_version"; exit ;;
25078 --debug |
--debu |
--deb |
--de |
--d |
-d )
25080 --file |
--fil |
--fi |
--f )
25082 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25083 ac_need_defaults
=false
;;
25084 --header |
--heade |
--head |
--hea )
25086 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25087 ac_need_defaults
=false
;;
25089 # Conflict between --help and --header
25090 { echo "$as_me: error: ambiguous option: $1
25091 Try \`$0 --help' for more information." >&2
25092 { (exit 1); exit 1; }; };;
25093 --help |
--hel |
-h )
25094 echo "$ac_cs_usage"; exit ;;
25095 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25096 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25099 # This is an error.
25100 -*) { echo "$as_me: error: unrecognized option: $1
25101 Try \`$0 --help' for more information." >&2
25102 { (exit 1); exit 1; }; } ;;
25104 *) ac_config_targets
="$ac_config_targets $1"
25105 ac_need_defaults
=false
;;
25111 ac_configure_extra_args
=
25113 if $ac_cs_silent; then
25115 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25119 cat >>$CONFIG_STATUS <<_ACEOF
25120 if \$ac_cs_recheck; then
25121 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25122 CONFIG_SHELL=$SHELL
25123 export CONFIG_SHELL
25124 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25128 cat >>$CONFIG_STATUS <<\_ACEOF
25132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25133 ## Running $as_me. ##
25139 cat >>$CONFIG_STATUS <<_ACEOF
25143 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25147 cat >>$CONFIG_STATUS <<\_ACEOF
25149 # Handling of arguments.
25150 for ac_config_target
in $ac_config_targets
25152 case $ac_config_target in
25153 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25154 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25155 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25156 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
25157 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25158 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25159 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25160 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25161 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25162 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25163 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25164 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25165 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25167 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25168 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25169 { (exit 1); exit 1; }; };;
25174 # If the user did not use the arguments to specify the items to instantiate,
25175 # then the envvar interface is used. Set only those that are not.
25176 # We use the long form for the default assignment because of an extremely
25177 # bizarre bug on SunOS 4.1.3.
25178 if $ac_need_defaults; then
25179 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25180 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25181 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25184 # Have a temporary directory for convenience. Make it in the build tree
25185 # simply because there is no reason against having it here, and in addition,
25186 # creating and moving files from /tmp can sometimes cause problems.
25187 # Hook for its removal unless debugging.
25188 # Note that there is a small window in which the directory will not be cleaned:
25189 # after its creation but before its name has been assigned to `$tmp'.
25193 trap 'exit_status=$?
25194 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25196 trap '{ (exit 1); exit 1; }' 1 2 13 15
25198 # Create a (secure) tmp directory for tmp files.
25201 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25202 test -n "$tmp" && test -d "$tmp"
25205 tmp
=.
/conf$$
-$RANDOM
25206 (umask 077 && mkdir
"$tmp")
25209 echo "$me: cannot create a temporary directory in ." >&2
25210 { (exit 1); exit 1; }
25214 # Set up the sed scripts for CONFIG_FILES section.
25217 # No need to generate the scripts if there are no CONFIG_FILES.
25218 # This happens for instance when ./config.status config.h
25219 if test -n "$CONFIG_FILES"; then
25226 for ac_last_try
in false false false false false
:; do
25227 cat >conf$
$subs.
sed <<_ACEOF
25228 SHELL!$SHELL$ac_delim
25229 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25230 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25231 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25232 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25233 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25234 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25235 exec_prefix!$exec_prefix$ac_delim
25236 prefix!$prefix$ac_delim
25237 program_transform_name!$program_transform_name$ac_delim
25238 bindir!$bindir$ac_delim
25239 sbindir!$sbindir$ac_delim
25240 libexecdir!$libexecdir$ac_delim
25241 datarootdir!$datarootdir$ac_delim
25242 datadir!$datadir$ac_delim
25243 sysconfdir!$sysconfdir$ac_delim
25244 sharedstatedir!$sharedstatedir$ac_delim
25245 localstatedir!$localstatedir$ac_delim
25246 includedir!$includedir$ac_delim
25247 oldincludedir!$oldincludedir$ac_delim
25248 docdir!$docdir$ac_delim
25249 infodir!$infodir$ac_delim
25250 htmldir!$htmldir$ac_delim
25251 dvidir!$dvidir$ac_delim
25252 pdfdir!$pdfdir$ac_delim
25253 psdir!$psdir$ac_delim
25254 libdir!$libdir$ac_delim
25255 localedir!$localedir$ac_delim
25256 mandir!$mandir$ac_delim
25257 DEFS!$DEFS$ac_delim
25258 ECHO_C!$ECHO_C$ac_delim
25259 ECHO_N!$ECHO_N$ac_delim
25260 ECHO_T!$ECHO_T$ac_delim
25261 LIBS!$LIBS$ac_delim
25262 build_alias!$build_alias$ac_delim
25263 host_alias!$host_alias$ac_delim
25264 target_alias!$target_alias$ac_delim
25265 MAINT!$MAINT$ac_delim
25266 build!$build$ac_delim
25267 build_cpu!$build_cpu$ac_delim
25268 build_vendor!$build_vendor$ac_delim
25269 build_os!$build_os$ac_delim
25270 host!$host$ac_delim
25271 host_cpu!$host_cpu$ac_delim
25272 host_vendor!$host_vendor$ac_delim
25273 host_os!$host_os$ac_delim
25275 CFLAGS!$CFLAGS$ac_delim
25276 LDFLAGS!$LDFLAGS$ac_delim
25277 CPPFLAGS!$CPPFLAGS$ac_delim
25278 ac_ct_CC!$ac_ct_CC$ac_delim
25279 EXEEXT!$EXEEXT$ac_delim
25280 OBJEXT!$OBJEXT$ac_delim
25282 GREP!$GREP$ac_delim
25283 EGREP!$EGREP$ac_delim
25284 LN_S!$LN_S$ac_delim
25285 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25286 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25287 INSTALL_DATA!$INSTALL_DATA$ac_delim
25288 RANLIB!$RANLIB$ac_delim
25289 INSTALL_INFO!$INSTALL_INFO$ac_delim
25290 GZIP_PROG!$GZIP_PROG$ac_delim
25291 MAKEINFO!$MAKEINFO$ac_delim
25292 LIBSOUND!$LIBSOUND$ac_delim
25293 PKG_CONFIG!$PKG_CONFIG$ac_delim
25294 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25295 ALSA_LIBS!$ALSA_LIBS$ac_delim
25296 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25297 SET_MAKE!$SET_MAKE$ac_delim
25298 XMKMF!$XMKMF$ac_delim
25299 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25300 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25301 RSVG_LIBS!$RSVG_LIBS$ac_delim
25302 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25303 GTK_LIBS!$GTK_LIBS$ac_delim
25304 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25305 DBUS_LIBS!$DBUS_LIBS$ac_delim
25306 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25307 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25308 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25309 XFT_LIBS!$XFT_LIBS$ac_delim
25310 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25311 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25312 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25313 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25314 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25315 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25316 ALLOCA!$ALLOCA$ac_delim
25317 liblockfile!$liblockfile$ac_delim
25318 LIBOBJS!$LIBOBJS$ac_delim
25319 NEED_SETGID!$NEED_SETGID$ac_delim
25320 KMEM_GROUP!$KMEM_GROUP$ac_delim
25321 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25322 GETOPT_H!$GETOPT_H$ac_delim
25323 GETOPTOBJS!$GETOPTOBJS$ac_delim
25324 version!$version$ac_delim
25327 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25329 elif $ac_last_try; then
25330 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25331 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25332 { (exit 1); exit 1; }; }
25334 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25338 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25339 if test -n "$ac_eof"; then
25340 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25341 ac_eof
=`expr $ac_eof + 1`
25344 cat >>$CONFIG_STATUS <<_ACEOF
25345 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25349 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25350 s/^/s,@/; s/!/@,|#_!!_#|/
25353 s/'"$ac_delim"'$/,g/; t
25355 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25356 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25357 rm -f conf$
$subs.
sed
25358 cat >>$CONFIG_STATUS <<_ACEOF
25364 for ac_last_try
in false false false false false
:; do
25365 cat >conf$
$subs.
sed <<_ACEOF
25366 configuration!$configuration$ac_delim
25367 canonical!$canonical$ac_delim
25368 srcdir!$srcdir$ac_delim
25369 lispdir!$lispdir$ac_delim
25370 locallisppath!$locallisppath$ac_delim
25371 lisppath!$lisppath$ac_delim
25372 x_default_search_path!$x_default_search_path$ac_delim
25373 etcdir!$etcdir$ac_delim
25374 archlibdir!$archlibdir$ac_delim
25375 bitmapdir!$bitmapdir$ac_delim
25376 gamedir!$gamedir$ac_delim
25377 gameuser!$gameuser$ac_delim
25378 c_switch_system!$c_switch_system$ac_delim
25379 c_switch_machine!$c_switch_machine$ac_delim
25380 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25381 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25382 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25383 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25384 machfile!$machfile$ac_delim
25385 opsysfile!$opsysfile$ac_delim
25386 ns_appdir!$ns_appdir$ac_delim
25387 ns_appbindir!$ns_appbindir$ac_delim
25388 ns_appresdir!$ns_appresdir$ac_delim
25389 ns_appsrc!$ns_appsrc$ac_delim
25390 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25391 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25392 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25393 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25394 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25395 LTLIBOBJS!$LTLIBOBJS$ac_delim
25398 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25400 elif $ac_last_try; then
25401 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25402 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25403 { (exit 1); exit 1; }; }
25405 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25409 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25410 if test -n "$ac_eof"; then
25411 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25412 ac_eof
=`expr $ac_eof + 1`
25415 cat >>$CONFIG_STATUS <<_ACEOF
25416 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25420 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25421 s/^/s,@/; s/!/@,|#_!!_#|/
25424 s/'"$ac_delim"'$/,g/; t
25426 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25427 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25428 rm -f conf$
$subs.
sed
25429 cat >>$CONFIG_STATUS <<_ACEOF
25436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25438 # trailing colons and then remove the whole line if VPATH becomes empty
25439 # (actually we leave an empty line to preserve line numbers).
25440 if test "x$srcdir" = x.
; then
25441 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25442 s/:*\$(srcdir):*/:/
25443 s/:*\${srcdir}:*/:/
25445 s/^\([^=]*=[ ]*\):*/\1/
25451 cat >>$CONFIG_STATUS <<\_ACEOF
25452 fi # test -n "$CONFIG_FILES"
25455 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25458 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25460 case $ac_mode$ac_tag in
25462 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25463 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25464 { (exit 1); exit 1; }; };;
25465 :[FH
]-) ac_tag
=-:-;;
25466 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25483 -) ac_f
="$tmp/stdin";;
25484 *) # Look for the file first in the build tree, then in the source tree
25485 # (if the path is not absolute). The absolute path cannot be DOS-style,
25486 # because $ac_f cannot contain `:'.
25490 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25492 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25493 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25494 { (exit 1); exit 1; }; };;
25496 ac_file_inputs
="$ac_file_inputs $ac_f"
25499 # Let's still pretend it is `configure' which instantiates (i.e., don't
25500 # use $as_me), people would be surprised to read:
25501 # /* config.h. Generated by config.status. */
25502 configure_input
="Generated from "`IFS=:
25503 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25504 if test x
"$ac_file" != x-
; then
25505 configure_input
="$ac_file. $configure_input"
25506 { echo "$as_me:$LINENO: creating $ac_file" >&5
25507 echo "$as_me: creating $ac_file" >&6;}
25511 *:-:* |
*:-) cat >"$tmp/stdin";;
25516 ac_dir
=`$as_dirname -- "$ac_file" ||
25517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25518 X"$ac_file" : 'X\(//\)[^/]' \| \
25519 X"$ac_file" : 'X\(//\)$' \| \
25520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25526 /^X\(\/\/\)[^/].*/{
25541 -*) as_dir
=.
/$as_dir;;
25543 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25547 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25548 *) as_qdir
=$as_dir;;
25550 as_dirs
="'$as_qdir' $as_dirs"
25551 as_dir
=`$as_dirname -- "$as_dir" ||
25552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25553 X"$as_dir" : 'X\(//\)[^/]' \| \
25554 X"$as_dir" : 'X\(//\)$' \| \
25555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25561 /^X\(\/\/\)[^/].*/{
25574 test -d "$as_dir" && break
25576 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25577 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25578 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25579 { (exit 1); exit 1; }; }; }
25583 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25585 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25586 # A ".." for each directory in $ac_dir_suffix.
25587 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25588 case $ac_top_builddir_sub in
25589 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25590 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25593 ac_abs_top_builddir
=$ac_pwd
25594 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25595 # for backward compatibility:
25596 ac_top_builddir
=$ac_top_build_prefix
25599 .
) # We are building in place.
25601 ac_top_srcdir
=$ac_top_builddir_sub
25602 ac_abs_top_srcdir
=$ac_pwd ;;
25603 [\\/]* | ?
:[\\/]* ) # Absolute name.
25604 ac_srcdir
=$srcdir$ac_dir_suffix;
25605 ac_top_srcdir
=$srcdir
25606 ac_abs_top_srcdir
=$srcdir ;;
25607 *) # Relative name.
25608 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25609 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25610 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25612 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25622 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25623 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25627 cat >>$CONFIG_STATUS <<\_ACEOF
25628 # If the template does not know about datarootdir, expand it.
25629 # FIXME: This hack should be removed a few years after 2.60.
25630 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25632 case `sed -n '/datarootdir/ {
25641 ' $ac_file_inputs` in
25642 *datarootdir
*) ac_datarootdir_seen
=yes;;
25643 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25644 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25645 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25647 cat >>$CONFIG_STATUS <<_ACEOF
25648 ac_datarootdir_hack='
25649 s&@datadir@&$datadir&g
25650 s&@docdir@&$docdir&g
25651 s&@infodir@&$infodir&g
25652 s&@localedir@&$localedir&g
25653 s&@mandir@&$mandir&g
25654 s&\\\${datarootdir}&$datarootdir&g' ;;
25658 # Neutralize VPATH when `$srcdir' = `.'.
25659 # Shell code in configure.ac might set extrasub.
25660 # FIXME: do we really want to maintain this feature?
25661 cat >>$CONFIG_STATUS <<_ACEOF
25665 cat >>$CONFIG_STATUS <<\_ACEOF
25667 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25668 s
&@configure_input@
&$configure_input&;t t
25669 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25670 s
&@srcdir@
&$ac_srcdir&;t t
25671 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25672 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25673 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25674 s
&@builddir@
&$ac_builddir&;t t
25675 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25676 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25677 s
&@INSTALL@
&$ac_INSTALL&;t t
25678 $ac_datarootdir_hack
25679 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25681 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25682 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25684 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25685 which seems to be undefined. Please make sure it is defined." >&5
25686 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25687 which seems to be undefined. Please make sure it is defined." >&2;}
25691 -) cat "$tmp/out"; rm -f "$tmp/out";;
25692 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25701 # Transform confdefs.h into a sed script `conftest.defines', that
25702 # substitutes the proper values into config.h.in to produce config.h.
25703 rm -f conftest.defines conftest.
tail
25704 # First, append a space to every undef/define line, to ease matching.
25705 echo 's/$/ /' >conftest.defines
25706 # Then, protect against being on the right side of a sed subst, or in
25707 # an unquoted here document, in config.status. If some macros were
25708 # called several times there might be several #defines for the same
25709 # symbol, which is useless. But do not sort them, since the last
25710 # AC_DEFINE must be honored.
25711 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25712 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25713 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25714 # PARAMS is the parameter list in the macro definition--in most cases, it's
25715 # just an empty string.
25716 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25717 ac_dB
='\\)[ (].*,\\1define\\2'
25725 s/^[ ]*#[ ]*define[ ][ ]*//
25730 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25731 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25732 ' >>conftest.defines
25734 # Remove the space that was appended to ease matching.
25735 # Then replace #undef with comments. This is necessary, for
25736 # example, in the case of _POSIX_SOURCE, which is predefined and required
25737 # on some systems where configure will not decide to define it.
25738 # (The regexp can be short, since the line contains either #define or #undef.)
25740 s,^[ #]*u.*,/* & */,' >>conftest.defines
25742 # Break up conftest.defines:
25743 ac_max_sed_lines
=50
25745 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25746 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25747 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25749 ac_in
='$ac_file_inputs'
25750 ac_out
='"$tmp/out1"'
25751 ac_nxt
='"$tmp/out2"'
25755 # Write a here document:
25756 cat >>$CONFIG_STATUS <<_ACEOF
25757 # First, check the format of the line:
25758 cat >"\$tmp/defines.sed" <<\\CEOF
25759 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25760 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25764 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25766 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25767 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25768 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25769 grep . conftest.
tail >/dev
/null ||
break
25770 rm -f conftest.defines
25771 mv conftest.
tail conftest.defines
25773 rm -f conftest.defines conftest.
tail
25775 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25776 cat >>$CONFIG_STATUS <<\_ACEOF
25777 if test x
"$ac_file" != x-
; then
25778 echo "/* $configure_input */" >"$tmp/config.h"
25779 cat "$ac_result" >>"$tmp/config.h"
25780 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25781 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25782 echo "$as_me: $ac_file is unchanged" >&6;}
25785 mv "$tmp/config.h" $ac_file
25788 echo "/* $configure_input */"
25794 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25795 echo "$as_me: executing $ac_file commands" >&6;}
25800 case $ac_file$ac_mode in
25803 ### Make the necessary directories, if they don't exist.
25804 for dir
in etc lisp
; do
25805 test -d ${dir} || mkdir
${dir}
25808 # Build src/Makefile from ${srcdir}/src/Makefile.c
25809 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25810 # This must be done after src/config.h is built, since we rely on that file.
25812 echo creating src
/epaths.h
25813 ${MAKE-make} epaths-force
25815 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25816 # `..' to `. .' unless invoked with -traditional
25818 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25819 CPPFLAGS
="$CPPFLAGS -traditional"
25822 echo creating lib-src
/Makefile
25824 rm -f junk.c junk1.c junk2.c
25825 sed -e '/start of cpp stuff/q' \
25826 < Makefile.c
> junk1.c
25827 sed -e '1,/start of cpp stuff/d'\
25828 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25829 < Makefile.c
> junk.c
25830 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25831 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25832 cat junk1.c junk2.c
> Makefile.new
25833 rm -f junk.c junk1.c junk2.c
25834 chmod 444 Makefile.new
25835 mv -f Makefile.new Makefile
25838 echo creating src
/Makefile
25840 rm -f junk.c junk1.c junk2.c
25841 sed -e '/start of cpp stuff/q' \
25842 < Makefile.c
> junk1.c
25843 sed -e '1,/start of cpp stuff/d'\
25844 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25845 < Makefile.c
> junk.c
25846 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25847 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25848 cat junk1.c junk2.c
> Makefile.new
25849 rm -f junk.c junk1.c junk2.c
25850 chmod 444 Makefile.new
25851 mv -f Makefile.new Makefile
25854 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25855 echo creating src
/.gdbinit
25856 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25865 { (exit 0); exit 0; }
25867 chmod +x
$CONFIG_STATUS
25868 ac_clean_files
=$ac_clean_files_save
25871 # configure is writing to config.log, and then calls config.status.
25872 # config.status does its own redirection, appending to config.log.
25873 # Unfortunately, on DOS this fails, as config.log is still kept open
25874 # by configure, so config.status won't be able to write to it; its
25875 # output is simply discarded. So we exec the FD to /dev/null,
25876 # effectively closing config.log, so it can be properly (re)opened and
25877 # appended to by config.status. When coming back to configure, we
25878 # need to make the FD available again.
25879 if test "$no_create" != yes; then
25881 ac_config_status_args
=
25882 test "$silent" = yes &&
25883 ac_config_status_args
="$ac_config_status_args --quiet"
25885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25888 # would make configure fail if this is the last instruction.
25889 $ac_cs_success ||
{ (exit 1); exit 1; }