2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo Please tell bug-autoconf@gnu.org about your system
,
416 echo including any error possibly output before this message.
417 echo This can
help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
715 x_default_search_path
732 ac_precious_vars
='build_alias
744 # Initialize some variables set by options.
746 ac_init_version
=false
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name
=s
,x
,x
,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir
='${exec_prefix}/bin'
771 sbindir
='${exec_prefix}/sbin'
772 libexecdir
='${exec_prefix}/libexec'
773 datarootdir
='${prefix}/share'
774 datadir
='${datarootdir}'
775 sysconfdir
='${prefix}/etc'
776 sharedstatedir
='${prefix}/com'
777 localstatedir
='${prefix}/var'
778 includedir
='${prefix}/include'
779 oldincludedir
='/usr/include'
780 docdir
='${datarootdir}/doc/${PACKAGE}'
781 infodir
='${datarootdir}/info'
786 libdir
='${exec_prefix}/lib'
787 localedir
='${datarootdir}/locale'
788 mandir
='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\
$ac_option
802 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 # Accept the important Cygnus configure options, so we can diagnose typos.
808 case $ac_dashdash$ac_option in
812 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
814 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
817 -build |
--build |
--buil |
--bui |
--bu)
818 ac_prev
=build_alias
;;
819 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
820 build_alias
=$ac_optarg ;;
822 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
823 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
824 ac_prev
=cache_file
;;
825 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
826 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
827 cache_file
=$ac_optarg ;;
830 cache_file
=config.cache
;;
832 -datadir |
--datadir |
--datadi |
--datad)
834 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
835 datadir
=$ac_optarg ;;
837 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
838 |
--dataroo |
--dataro |
--datar)
839 ac_prev
=datarootdir
;;
840 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
841 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
842 datarootdir
=$ac_optarg ;;
844 -disable-* |
--disable-*)
845 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_
$ac_feature=no
;;
853 -docdir |
--docdir |
--docdi |
--doc |
--do)
855 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
858 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
860 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
863 -enable-* |
--enable-*)
864 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_
$ac_feature=\
$ac_optarg ;;
872 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
873 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
874 |
--exec |
--exe |
--ex)
875 ac_prev
=exec_prefix
;;
876 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
877 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
878 |
--exec=* |
--exe=* |
--ex=*)
879 exec_prefix
=$ac_optarg ;;
881 -gas |
--gas |
--ga |
--g)
882 # Obsolete; use --with-gas.
885 -help |
--help |
--hel |
--he |
-h)
887 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
888 ac_init_help
=recursive
;;
889 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
890 ac_init_help
=short
;;
892 -host |
--host |
--hos |
--ho)
893 ac_prev
=host_alias
;;
894 -host=* |
--host=* |
--hos=* |
--ho=*)
895 host_alias
=$ac_optarg ;;
897 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
899 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
901 htmldir
=$ac_optarg ;;
903 -includedir |
--includedir |
--includedi |
--included |
--include \
904 |
--includ |
--inclu |
--incl |
--inc)
905 ac_prev
=includedir
;;
906 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
907 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
908 includedir
=$ac_optarg ;;
910 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
912 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
913 infodir
=$ac_optarg ;;
915 -libdir |
--libdir |
--libdi |
--libd)
917 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
920 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
921 |
--libexe |
--libex |
--libe)
922 ac_prev
=libexecdir
;;
923 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
924 |
--libexe=* |
--libex=* |
--libe=*)
925 libexecdir
=$ac_optarg ;;
927 -localedir |
--localedir |
--localedi |
--localed |
--locale)
929 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
930 localedir
=$ac_optarg ;;
932 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
933 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
934 ac_prev
=localstatedir
;;
935 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
936 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
937 localstatedir
=$ac_optarg ;;
939 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
941 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
945 # Obsolete; use --without-fp.
948 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
949 |
--no-cr |
--no-c |
-n)
952 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
953 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
956 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
957 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
958 |
--oldin |
--oldi |
--old |
--ol |
--o)
959 ac_prev
=oldincludedir
;;
960 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
961 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
962 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
963 oldincludedir
=$ac_optarg ;;
965 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
967 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
970 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
971 |
--program-pre |
--program-pr |
--program-p)
972 ac_prev
=program_prefix
;;
973 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
974 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
975 program_prefix
=$ac_optarg ;;
977 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
978 |
--program-suf |
--program-su |
--program-s)
979 ac_prev
=program_suffix
;;
980 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
981 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
982 program_suffix
=$ac_optarg ;;
984 -program-transform-name |
--program-transform-name \
985 |
--program-transform-nam |
--program-transform-na \
986 |
--program-transform-n |
--program-transform- \
987 |
--program-transform |
--program-transfor \
988 |
--program-transfo |
--program-transf \
989 |
--program-trans |
--program-tran \
990 |
--progr-tra |
--program-tr |
--program-t)
991 ac_prev
=program_transform_name
;;
992 -program-transform-name=* |
--program-transform-name=* \
993 |
--program-transform-nam=* |
--program-transform-na=* \
994 |
--program-transform-n=* |
--program-transform-=* \
995 |
--program-transform=* |
--program-transfor=* \
996 |
--program-transfo=* |
--program-transf=* \
997 |
--program-trans=* |
--program-tran=* \
998 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
999 program_transform_name
=$ac_optarg ;;
1001 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1003 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1004 pdfdir
=$ac_optarg ;;
1006 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1008 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1011 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1012 |
-silent |
--silent |
--silen |
--sile |
--sil)
1015 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1017 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1019 sbindir
=$ac_optarg ;;
1021 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1022 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1023 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1025 ac_prev
=sharedstatedir
;;
1026 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1027 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1028 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1030 sharedstatedir
=$ac_optarg ;;
1032 -site |
--site |
--sit)
1034 -site=* |
--site=* |
--sit=*)
1037 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1039 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1040 srcdir
=$ac_optarg ;;
1042 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1043 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1044 ac_prev
=sysconfdir
;;
1045 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1046 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1047 sysconfdir
=$ac_optarg ;;
1049 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1050 ac_prev
=target_alias
;;
1051 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1052 target_alias
=$ac_optarg ;;
1054 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1057 -version |
--version |
--versio |
--versi |
--vers |
-V)
1058 ac_init_version
=: ;;
1061 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_
$ac_package=\
$ac_optarg ;;
1069 -without-* |
--without-*)
1070 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_
$ac_package=no
;;
1079 # Obsolete; use --with-x.
1082 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1083 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1084 ac_prev
=x_includes
;;
1085 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1086 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1087 x_includes
=$ac_optarg ;;
1089 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1090 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1091 ac_prev
=x_libraries
;;
1092 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1093 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1094 x_libraries
=$ac_optarg ;;
1096 -*) { echo "$as_me: error: unrecognized option: $ac_option
1097 Try \`$0 --help' for more information." >&2
1098 { (exit 1); exit 1; }; }
1102 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1105 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1106 { (exit 1); exit 1; }; }
1107 eval $ac_envvar=\
$ac_optarg
1108 export $ac_envvar ;;
1111 # FIXME: should be removed in autoconf 3.0.
1112 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1113 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1114 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1115 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 if test -n "$ac_prev"; then
1122 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1123 { echo "$as_me: error: missing argument to $ac_option" >&2
1124 { (exit 1); exit 1; }; }
1127 # Be sure to have absolute directory names.
1128 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1129 datadir sysconfdir sharedstatedir localstatedir includedir \
1130 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1131 libdir localedir mandir
1133 eval ac_val
=\$
$ac_var
1135 [\\/$
]* | ?
:[\\/]* ) continue;;
1136 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1138 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1139 { (exit 1); exit 1; }; }
1142 # There might be people who depend on the old broken behavior: `$host'
1143 # used to hold the argument of --host etc.
1144 # FIXME: To remove some day.
1147 target
=$target_alias
1149 # FIXME: To remove some day.
1150 if test "x$host_alias" != x
; then
1151 if test "x$build_alias" = x
; then
1152 cross_compiling
=maybe
1153 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1154 If a cross compiler is detected then cross compile mode will be used." >&2
1155 elif test "x$build_alias" != "x$host_alias"; then
1161 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1163 test "$silent" = yes && exec 6>/dev
/null
1166 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1167 ac_ls_di
=`ls -di .` &&
1168 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1169 { echo "$as_me: error: Working directory cannot be determined" >&2
1170 { (exit 1); exit 1; }; }
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 { echo "$as_me: error: pwd does not report name of working directory" >&2
1173 { (exit 1); exit 1; }; }
1176 # Find the source files, if location was not specified.
1177 if test -z "$srcdir"; then
1178 ac_srcdir_defaulted
=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir
=`$as_dirname -- "$0" ||
1181 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$0" : 'X\(//\)[^/]' \| \
1183 X"$0" : 'X\(//\)$' \| \
1184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1208 ac_srcdir_defaulted
=no
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1212 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1213 { (exit 1); exit 1; }; }
1215 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1218 { (exit 1); exit 1; }; }
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1228 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 for ac_var
in $ac_precious_vars; do
1231 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1233 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1238 # Report the --help message.
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1244 \`configure' configures this package to adapt to many kinds of systems.
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1251 Defaults for the options are specified in brackets.
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1275 For better control, use the options below.
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1307 --x-includes=DIR X include files are
in DIR
1308 --x-libraries=DIR X library files are
in DIR
1311 --build=BUILD configure
for building on BUILD
[guessed
]
1312 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1316 if test -n "$ac_init_help"; then
1321 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1322 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1323 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1324 specify
install directory
for Emacs.app on Mac OS X
1325 --enable-font-backend compile code of font-backend support
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode enable make rules and dependencies not useful
1328 (and sometimes confusing
) to the casual installer
1329 --enable-locallisppath=PATH
1330 directories Emacs should search
for lisp files
1331 specific to this site
1332 --disable-largefile omit support
for large files
1335 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1336 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1337 --without-gcc don
't use GCC to compile Emacs if GCC is found
1338 --without-pop don't support POP
mail retrieval with movemail
1339 --with-kerberos support Kerberos-authenticated POP
1340 --with-kerberos5 support Kerberos version
5 authenticated POP
1341 --with-hesiod support Hesiod to get the POP server
host
1342 --without-sound don
't compile with sound support
1343 --with-x-toolkit=KIT use an X toolkit
1344 (KIT = yes/lucid/athena/motif/gtk/no)
1345 --with-xpm use -lXpm for displaying XPM images
1346 --with-jpeg use -ljpeg for displaying JPEG images
1347 --with-tiff use -ltiff for displaying TIFF images
1348 --with-gif use -lungif for displaying GIF images
1349 --with-png use -lpng for displaying PNG images
1350 --with-freetype use -lfreetype for local fonts support
1351 --with-xft use -lXft for anti aliased fonts
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don
't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1370 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s
,x
,x
', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1814 lispdir='${datadir}/emacs
/${version}/lisp
'
1815 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1816 '${datadir}/emacs
/site-lisp
'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1818 etcdir='${datadir}/emacs
/${version}/etc
'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs
/${version}/etc
'
1821 gamedir='${localstatedir}/games
/emacs
'
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1867 cat >>confdefs.h <<\_ACEOF
1873 cat >>confdefs.h <<\_ACEOF
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1885 cat >>confdefs.h <<\_ACEOF
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=gtk ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1912 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1913 Currently, \`yes' and \
`gtk', and \`athena
' and \`lucid' are synonyms.
" >&5
1914 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid\;
1915 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1916 Currently, \`yes' and \`gtk', and \
`athena' and \`lucid
' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1967 # Check whether --with-gpm was given.
1968 if test "${with_gpm+set}" = set; then
1973 # Check whether --with-gtk was given.
1974 if test "${with_gtk+set}" = set; then
1979 # Check whether --with-pkg-config-prog was given.
1980 if test "${with_pkg_config_prog+set}" = set; then
1981 withval=$with_pkg_config_prog;
1985 # Check whether --with-toolkit-scroll-bars was given.
1986 if test "${with_toolkit_scroll_bars+set}" = set; then
1987 withval=$with_toolkit_scroll_bars;
1991 # Check whether --with-xim was given.
1992 if test "${with_xim+set}" = set; then
1997 # Check whether --with-carbon was given.
1998 if test "${with_carbon+set}" = set; then
1999 withval=$with_carbon;
2002 # Check whether --enable-carbon-app was given.
2003 if test "${enable_carbon_app+set}" = set; then
2004 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2008 # Check whether --enable-font-backend was given.
2009 if test "${enable_font_backend+set}" = set; then
2010 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2016 # Check whether --enable-asserts was given.
2017 if test "${enable_asserts+set}" = set; then
2018 enableval=$enable_asserts; USE_XASSERTS=$enableval
2024 # Check whether --enable-maintainer-mode was given.
2025 if test "${enable_maintainer_mode+set}" = set; then
2026 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2028 USE_MAINTAINER_MODE=no
2031 if test $USE_MAINTAINER_MODE = yes; then
2038 # Check whether --enable-locallisppath was given.
2039 if test "${enable_locallisppath+set}" = set; then
2040 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2042 elif test "${enableval}" != "yes"; then
2043 locallisppath=${enableval}
2048 #### Make srcdir absolute, if it isn't already. It
's important to
2049 #### avoid running the path through pwd unnecessarily, since pwd can
2050 #### give you automounter prefixes, which can go away. We do all this
2051 #### so Emacs can find its files when run uninstalled.
2052 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2057 ## We may be able to use the $PWD environment variable to make this
2058 ## absolute. But sometimes PWD is inaccurate.
2059 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2060 ## but that tested only for a well-formed and valid PWD,
2061 ## it did not object when PWD was well-formed and valid but just wrong.
2062 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2066 srcdir
="`(cd ${srcdir}; pwd)`"
2069 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2072 #### Check if the source directory already has a configured system in it.
2073 if test `pwd` != `(cd ${srcdir} && pwd)` \
2074 && test -f "${srcdir}/src/config.h" ; then
2075 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&5
2081 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2082 as a build directory right now; it has been configured in its own
2083 right. To configure in another directory as well, you MUST
2084 use GNU make. If you do not have GNU make, then you must
2085 now do \`make distclean' in ${srcdir},
2086 and then run $0 again." >&2;}
2089 #### Given the configuration name, set machfile and opsysfile to the
2090 #### names of the m/*.h and s/*.h files we should use.
2092 ### Canonicalize the configuration name.
2095 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096 if test -f "$ac_dir/install-sh"; then
2098 ac_install_sh
="$ac_aux_dir/install-sh -c"
2100 elif test -f "$ac_dir/install.sh"; then
2102 ac_install_sh
="$ac_aux_dir/install.sh -c"
2104 elif test -f "$ac_dir/shtool"; then
2106 ac_install_sh
="$ac_aux_dir/shtool install -c"
2110 if test -z "$ac_aux_dir"; then
2111 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2112 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2113 { (exit 1); exit 1; }; }
2116 # These three variables are undocumented and unsupported,
2117 # and are intended to be withdrawn in a future Autoconf release.
2118 # They can cause serious problems if a builder's source tree is in a directory
2119 # whose full name contains unusual characters.
2120 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2125 # Make sure we can run config.sub.
2126 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2129 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: checking build system type" >&5
2132 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_build_alias
=$build_alias
2137 test "x$ac_build_alias" = x
&&
2138 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2139 test "x$ac_build_alias" = x
&&
2140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
2143 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150 echo "${ECHO_T}$ac_cv_build" >&6; }
2151 case $ac_cv_build in
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154 echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS
=$IFS; IFS
='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking host system type" >&5
2172 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test "x$host_alias" = x
; then
2177 ac_cv_host
=$ac_cv_build
2179 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187 echo "${ECHO_T}$ac_cv_host" >&6; }
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191 echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2195 ac_save_IFS
=$IFS; IFS
='-'
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2205 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2209 configuration
=${host_alias-${build_alias-$host}}
2213 ### If you add support for a new configuration, add code to this
2214 ### switch statement to recognize your configuration name and select
2215 ### the appropriate operating system and machine description files.
2217 ### You would hope that you could choose an m/*.h file pretty much
2218 ### based on the machine portion of the configuration name, and an s-
2219 ### file based on the operating system portion. However, it turns out
2220 ### that each m/*.h file is pretty manufacturer-specific - for
2221 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2222 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2223 ### machines. So we basically have to have a special case for each
2224 ### configuration name.
2226 ### As far as handling version numbers on operating systems is
2227 ### concerned, make sure things will fail in a fixable way. If
2228 ### /etc/MACHINES doesn't say anything about version numbers, be
2229 ### prepared to handle anything reasonably. If version numbers
2230 ### matter, be sure /etc/MACHINES says something about it.
2232 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2233 ### "System V Release 4"; he writes, "The old convention encouraged
2234 ### confusion between `system' and `release' levels'."
2236 machine
='' opsys
='' unported
=no
2237 case "${canonical}" in
2242 case "${canonical}" in
2243 alpha
*-*-freebsd*) machine
=alpha
;;
2244 ia64-
*-freebsd*) machine
=ia64
;;
2245 sparc64-
*-freebsd*) machine
=sparc
;;
2246 powerpc-
*-freebsd*) machine
=macppc
;;
2247 i
[3456]86-*-freebsd*) machine
=intel386
;;
2248 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2255 if test -f /usr
/lib
/crti.o
; then
2257 cat >>confdefs.h
<<\_ACEOF
2263 case "${canonical}" in
2264 alpha
*-*-netbsd*) machine
=alpha
;;
2265 i
[3456]86-*-netbsd*) machine
=intel386
;;
2267 # This is somewhat bogus.
2268 machine
=hp9000s300
;;
2269 mips-
*-netbsd*) machine
=pmax
;;
2270 mipsel-
*-netbsd*) machine
=pmax
;;
2271 mipseb-
*-netbsd*) machine
=pmax
;;
2272 ns32k-
*-netbsd*) machine
=ns32000
;;
2273 powerpc-
*-netbsd*) machine
=macppc
;;
2274 sparc
*-*-netbsd*) machine
=sparc
;;
2275 vax-
*-netbsd*) machine
=vax
;;
2276 arm-
*-netbsd*) machine
=arm
;;
2277 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2278 hppa-
*-netbsd*) machine
=hp800
;;
2279 shle-
*-netbsd*) machine
=sh3el
;;
2286 case "${canonical}" in
2287 alpha
*-*-openbsd*) machine
=alpha
;;
2288 arm-
*-openbsd*) machine
=arm
;;
2289 hppa-
*-openbsd*) machine
=hp9000s300
;;
2290 i386-
*-openbsd*) machine
=intel386
;;
2291 m68k-
*-openbsd*) machine
=hp9000s300
;;
2292 m88k-
*-openbsd*) machine
=aviion
;;
2293 mips64-
*-openbsd*) machine
=mips64
;;
2294 powerpc-
*-openbsd*) machine
=macppc
;;
2295 sh-
*-openbsd*) machine
=sh3el
;;
2296 sparc
*-*-openbsd*) machine
=sparc
;;
2297 vax-
*-openbsd*) machine
=vax
;;
2298 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2305 case "${canonical}" in
2306 i
[3456]86-*-lynxos*) machine
=intel386
;;
2307 powerpc-
*-lynxos*) machine
=powerpc
;;
2312 arm-acorn-riscix1.1
* )
2313 machine
=acorn opsys
=riscix1-1
2315 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2316 ## This name is riscix12 instead of riscix1.2
2317 ## to avoid a file name conflict on MSDOS.
2318 machine
=acorn opsys
=riscix12
2324 case "${canonical}" in
2325 i
[345]86-*-bsdi*) machine
=intel386
;;
2326 sparc-
*-bsdi*) machine
=sparc
;;
2327 powerpc-
*-bsdi*) machine
=macppc
;;
2329 case "${canonical}" in
2330 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2331 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2332 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2333 *-*-bsdi3* ) opsys
=bsdos3
;;
2334 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2339 ## Strictly speaking, we need the version of the alliant operating
2340 ## system to choose the right machine file, but currently the
2341 ## configuration name doesn't tell us enough to choose the right
2342 ## one; we need to give alliants their own operating system name to
2343 ## do this right. When someone cares, they can help us.
2345 machine
=alliant4 opsys
=bsd4-2
2348 machine
=alliant-2800 opsys
=bsd4-3
2351 ## Alpha (DEC) machines.
2353 machine
=alpha opsys
=osf1
2354 # This is needed to find X11R6.1 libraries for certain tests.
2355 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2356 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2357 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2358 # due to non-traditional preprocessing with the current compiler
2359 # defaults. OSF 4 can also have that compiler version, and there
2360 # seems always to have been a usable /usr/bin/cpp.
2361 NON_GNU_CPP
=/usr
/bin
/cpp
2362 case "${canonical}" in
2363 alpha
*-dec-osf[5-9]*)
2368 alpha
*-*-linux-gnu* )
2369 machine
=alpha opsys
=gnu-linux
2373 machine
=arm opsys
=gnu-linux
2378 machine
=altos opsys
=usg5-2
2383 machine
=amdahl opsys
=usg5-2-2
2386 ## Apollo, Domain/OS
2388 machine
=apollo opsys
=bsd4-3
2391 ## Apple Darwin / Mac OS X
2393 case "${canonical}" in
2394 i
[3456]86-* ) machine
=intel386
;;
2395 powerpc-
* ) machine
=powermac
;;
2399 # Define CPP as follows to make autoconf work correctly.
2400 CPP
="${CC-cc} -E -no-cpp-precomp"
2401 # Use fink packages if available.
2402 if test -d /sw
/include
&& test -d /sw
/lib
; then
2403 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2404 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2405 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2409 ## AT&T 3b2, 3b5, 3b15, 3b20
2411 machine
=att3b opsys
=usg5-2-2
2414 ## AT&T 3b1 - The Mighty Unix PC!
2416 machine
=7300 opsys
=usg5-2-2
2421 machine
=ibmrs6000 opsys
=aix3-2
2426 machine
=dpx2 opsys
=usg5-3
2431 machine
=sps7 opsys
=usg5-2
2434 ## CCI 5/32, 6/32 -- see "Tahoe".
2437 ## I don't know what configuration name to use for this; config.sub
2438 ## doesn't seem to know anything about it. Hey, Celerity users, get
2439 ## in touch with us!
2440 celerity-celerity-bsd
* )
2441 machine
=celerity opsys
=bsd4-2
2445 ## What operating systems does this chip run that Emacs has been
2449 ## We'll use the catch-all code at the bottom to guess the
2450 ## operating system.
2454 mips-compaq-nonstopux
* )
2455 machine
=nonstopux opsys
=nonstopux
2459 *-convex-bsd* |
*-convex-convexos* )
2460 machine
=convex opsys
=bsd4-3
2461 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2462 NON_GNU_CPP
="cc -E -P"
2466 i
[3456]86-cubix-sysv* )
2467 machine
=intel386 opsys
=usg5-3
2471 cydra
*-cydrome-sysv* )
2472 machine
=cydra5 opsys
=usg5-3
2475 ## Data General AViiON Machines
2476 ## DG changed naming conventions with the release of 5.4.4.10, they
2477 ## dropped the initial 5.4 but left the intervening R. Because of the
2478 ## R this shouldn't conflict with older versions of the OS (which I
2479 ## think were named like dgux4.*). In addition, DG new AViiONs series
2480 ## uses either Motorola M88k or Intel Pentium CPUs.
2481 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2482 machine
=aviion opsys
=dgux4
2484 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2485 ## This name is dgux5-4-3 instead of dgux5-4r3
2486 ## to avoid a file name conflict on MSDOS.
2487 machine
=aviion opsys
=dgux5-4-3
2489 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2490 machine
=aviion opsys
=dgux5-4r2
2493 machine
=aviion opsys
=dgux
2496 ## Data General AViiON Intel (x86) Machines
2497 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2498 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2499 i
[345]86-dg-dguxR4* )
2500 machine
=aviion-intel opsys
=dgux4
2504 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2505 machine
=pmax opsys
=bsd4-2
2507 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2508 machine
=pmax opsys
=bsd4-3
2511 machine
=pmax opsys
=ultrix4-3
2514 machine
=pmax opsys
=osf1
2516 mips-dec-mach_bsd4.3
* )
2517 machine
=pmax opsys
=mach-bsd4-3
2520 ## Motorola Delta machines
2521 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2522 machine
=delta opsys
=usg5-3
2523 if test -z "`type gnucc | grep 'not found'`"
2525 if test -s /etc
/167config
2526 then CC
="gnucc -m68040"
2527 else CC
="gnucc -m68881"
2530 if test -z "`type gcc | grep 'not found'`"
2536 m88k-motorola-sysv4
* )
2537 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2538 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2539 # I hope there are not other 4.0 versions for this machine
2540 # which really need usg5-4 instead.
2541 machine
=delta88k opsys
=usg5-4-2
2543 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2544 machine
=delta88k opsys
=usg5-3
2549 machine
=dual opsys
=usg5-2
2551 m68
*-dual-uniplus* )
2552 machine
=dual opsys
=unipl5-2
2557 machine
=elxsi opsys
=usg5-2
2562 machine
=ns16000 opsys
=umax
2565 ## The GEC 63 - apparently, this port isn't really finished yet.
2566 # I'm sure we finished off the last of the machines, though. -- fx
2568 ## Gould Power Node and NP1
2570 machine
=gould opsys
=bsd4-2
2573 machine
=gould opsys
=bsd4-3
2576 machine
=gould-np1 opsys
=bsd4-3
2579 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2580 ## as far as Emacs is concerned).
2582 # Build needs to be different on 7.0 and later releases
2583 case "`uname -r`" in
2584 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2585 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2587 NON_GNU_CPP
="/lib/cpp"
2589 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2591 machine
=nh3000 opsys
=cxux
2593 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2594 powerpc-harris-powerunix
)
2595 machine
=nh6000 opsys
=powerunix
2596 NON_GNU_CPP
="cc -Xo -E -P"
2598 ## SR2001/SR2201 running HI-UX/MPP
2599 hppa1.1
-hitachi-hiuxmpp* )
2600 machine
=sr2k opsys
=hiuxmpp
2602 hppa1.1
-hitachi-hiuxwe2* )
2603 machine
=sr2k opsys
=hiuxwe2
2606 xps
*-honeywell-sysv* )
2607 machine
=xps100 opsys
=usg5-2
2610 ## HP 9000 series 200 or 300
2612 machine
=hp9000s300 opsys
=bsd4-3
2614 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2616 case "`uname -r`" in
2617 ## Someone's system reports A.B8.05 for this.
2618 ## I wonder what other possibilities there are.
2619 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2620 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2621 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2622 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2623 *) machine
=hp9000s300 opsys
=hpux
;;
2627 ## HP 9000 series 700 and 800, running HP/UX
2629 machine
=hp800 opsys
=hpux
2632 machine
=hp800 opsys
=hpux8
2634 hppa
*-hp-hpux9shr* )
2635 machine
=hp800 opsys
=hpux9shr
2638 machine
=hp800 opsys
=hpux9
2640 hppa
*-hp-hpux10.2
* )
2641 machine
=hp800 opsys
=hpux10-20
2644 machine
=hp800 opsys
=hpux10
2646 hppa
*-hp-hpux1[1-9]* )
2647 machine
=hp800 opsys
=hpux11
2648 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2651 hppa
*-*-linux-gnu* )
2652 machine
=hp800 opsys
=gnu-linux
2655 ## HP 9000 series 700 and 800, running HP/UX
2657 ## Cross-compilation? Nah!
2658 case "`uname -r`" in
2659 ## Someone's system reports A.B8.05 for this.
2660 ## I wonder what other possibilities there are.
2661 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2662 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2663 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2664 *) machine
=hp800 opsys
=hpux10
;;
2668 machine
=hp800 opsys
=nextstep
2673 machine
=orion opsys
=bsd4-2
2675 clipper-orion-bsd
* )
2676 machine
=orion105 opsys
=bsd4-2
2680 i
[3456]86-ibm-aix1.1
* )
2681 machine
=ibmps2-aix opsys
=usg5-2-2
2683 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2684 machine
=ibmps2-aix opsys
=usg5-3
2687 machine
=ibm370aix opsys
=usg5-3
2690 machine
=ibms390 opsys
=gnu-linux
2692 s390x-
*-linux-gnu* )
2693 machine
=ibms390x opsys
=gnu-linux
2695 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2696 machine
=ibmrs6000 opsys
=aix3-1
2698 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2699 machine
=ibmrs6000 opsys
=aix3-2-5
2701 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2702 machine
=ibmrs6000 opsys
=aix4-1
2704 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2705 machine
=ibmrs6000 opsys
=aix4-2
2707 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2708 machine
=ibmrs6000 opsys
=aix4-2
2710 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2711 machine
=ibmrs6000 opsys
=aix4-2
2713 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2714 machine
=ibmrs6000 opsys
=aix4
2716 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2717 machine
=ibmrs6000 opsys
=aix4-1
2719 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2720 machine
=ibmrs6000 opsys
=aix3-2
2723 machine
=ibmrt opsys
=bsd4-3
2726 machine
=ibmrt opsys
=bsd4-2
2729 machine
=ibmrt opsys
=bsd4-3
2732 machine
=ibmrt opsys
=bsd4-2
2735 machine
=ibmrt opsys
=bsd4-3
2738 machine
=ibmrt opsys
=bsd4-3
2741 machine
=ibmrt-aix opsys
=usg5-2-2
2744 ## Integrated Solutions `Optimum V'
2746 machine
=isi-ov opsys
=bsd4-2
2749 machine
=isi-ov opsys
=bsd4-3
2752 ## Intel 386 machines where we do care about the manufacturer
2753 i
[3456]86-intsys-sysv* )
2754 machine
=is386 opsys
=usg5-2-2
2758 i
[3456]86-prime-sysv* )
2759 machine
=i386 opsys
=usg5-3
2762 ## Sequent Symmetry running Dynix
2763 i
[3456]86-sequent-bsd* )
2764 machine
=symmetry opsys
=bsd4-3
2767 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2768 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2769 machine
=sequent-ptx opsys
=ptx4
2770 NON_GNU_CPP
=/lib
/cpp
2773 ## Sequent Symmetry running DYNIX/ptx
2774 ## Use the old cpp rather than the newer ANSI one.
2775 i
[3456]86-sequent-ptx* )
2776 machine
=sequent-ptx opsys
=ptx
2777 NON_GNU_CPP
="/lib/cpp"
2780 ## ncr machine running svr4.3.
2781 i
[3456]86-ncr-sysv4.3
)
2782 machine
=ncr386 opsys
=usg5-4-3
2785 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2786 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2787 i
[3456]86-ncr-sysv* )
2788 machine
=ncr386 opsys
=usg5-4-2
2791 ## Intel Paragon OSF/1
2793 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2798 machine
=i860 opsys
=usg5-4
2799 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2800 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2803 ## Macintosh PowerPC
2804 powerpc
*-*-linux-gnu* )
2805 machine
=macppc opsys
=gnu-linux
2808 ## Masscomp machines
2809 m68
*-masscomp-rtu* )
2810 machine
=masscomp opsys
=rtu
2813 ## Megatest machines
2814 m68
*-megatest-bsd* )
2815 machine
=mega68 opsys
=bsd4-2
2818 ## Workstations sold by MIPS
2819 ## This is not necessarily all workstations using the MIPS processor -
2820 ## Irises are produced by SGI, and DECstations by DEC.
2822 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2823 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2824 ## it gives for choosing between the alternatives seems to be "Use
2825 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2826 ## the BSD world." I'll assume that these are instructions for
2827 ## handling two odd situations, and that every other situation
2828 ## should use mips.h and usg5-2-2, they being listed first.
2831 ## Fall through to the general code at the bottom to decide on the OS.
2833 mips-mips-riscos4
* )
2834 machine
=mips4 opsys
=bsd4-3
2835 NON_GNU_CC
="cc -systype bsd43"
2836 NON_GNU_CPP
="cc -systype bsd43 -E"
2838 mips-mips-riscos5
* )
2839 machine
=mips4 opsys
=riscos5
2840 NON_GNU_CC
="cc -systype bsd43"
2841 NON_GNU_CPP
="cc -systype bsd43 -E"
2844 machine
=mips opsys
=bsd4-3
2847 machine
=mips opsys
=usg5-2-2
2851 m68
*-next-* | m68k-
*-nextstep* )
2852 machine
=m68k opsys
=nextstep
2855 ## The complete machine from National Semiconductor
2857 machine
=ns32000 opsys
=usg5-2
2861 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2862 machine
=tower32 opsys
=usg5-2-2
2864 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2865 machine
=tower32v3 opsys
=usg5-3
2870 machine
=ews4800 opsys
=ux4800
2873 ## Nixdorf Targon 31
2874 m68
*-nixdorf-sysv* )
2875 machine
=targon31 opsys
=usg5-2-2
2880 machine
=nu opsys
=usg5-2
2885 machine
=plexus opsys
=usg5-2
2889 ## I don't really have any idea what sort of processor the Pyramid has,
2890 ## so I'm assuming it is its own architecture.
2891 pyramid-pyramid-bsd
* )
2892 machine
=pyramid opsys
=bsd4-2
2896 ns32k-sequent-bsd4.2
* )
2897 machine
=sequent opsys
=bsd4-2
2899 ns32k-sequent-bsd4.3
* )
2900 machine
=sequent opsys
=bsd4-3
2904 mips-siemens-sysv
* | mips-sni-sysv
*)
2905 machine
=mips-siemens opsys
=usg5-4
2906 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2907 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2910 ## Silicon Graphics machines
2911 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2913 machine
=irist opsys
=iris3-5
2915 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2916 machine
=irist opsys
=iris3-6
2920 machine
=iris4d opsys
=irix3-3
2923 machine
=iris4d opsys
=irix4-0
2926 machine
=iris4d opsys
=irix6-5
2927 # Without defining _LANGUAGE_C, things get masked out in the headers
2928 # so that, for instance, grepping for `free' in stdlib.h fails and
2929 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2930 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2931 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2934 machine
=iris4d opsys
=irix6-0
2935 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2936 # but presumably it does no harm.
2937 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2938 # -32 probably isn't necessary in later v.6s -- anyone know which?
2939 NON_GCC_TEST_OPTIONS
=-32
2941 mips-sgi-irix5.
[01]* )
2942 machine
=iris4d opsys
=irix5-0
2944 mips-sgi-irix5
* | mips-sgi-irix
* )
2945 machine
=iris4d opsys
=irix5-2
2950 machine
=news opsys
=bsd4-2
2953 machine
=news opsys
=bsd4-3
2955 m68
*-sony-newsos3* | m68
*-sony-news3*)
2956 machine
=news opsys
=bsd4-3
2958 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2959 machine
=news-risc opsys
=bsd4-3
2961 mips-sony-newsos6
* )
2962 machine
=news-r6 opsys
=newsos6
2965 machine
=news-risc opsys
=newsos5
2970 machine
=stride opsys
=usg5-2
2974 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2975 machine
=sparc opsys
=gnu-linux
2978 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2979 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2980 | rs6000-
*-solaris2*)
2981 case "${canonical}" in
2982 m68
*-sunos1* ) machine
=sun1
;;
2983 m68
*-sunos2* ) machine
=sun2
;;
2984 m68
* ) machine
=sun3
;;
2985 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2986 i
[3456]86-*-* ) machine
=intel386
;;
2987 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2988 powerpcle
* ) machine
=powerpcle
;;
2989 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2990 sparc
* ) machine
=sparc
;;
2993 case "${canonical}" in
2994 ## The Sun386 didn't get past 4.0.
2995 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2996 *-sunos4.0
* ) opsys
=sunos4-0
;;
2997 *-sunos4.1.
[3-9]*noshare
)
2998 ## This name is sunos413 instead of sunos4-1-3
2999 ## to avoid a file name conflict on MSDOS.
3001 NON_GNU_CPP
=/usr
/lib
/cpp
3002 NON_GCC_TEST_OPTIONS
=-Bstatic
3003 GCC_TEST_OPTIONS
=-static
3005 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3007 NON_GNU_CPP
=/usr
/lib
/cpp
3009 *-sunos4* |
*-sunos )
3011 NON_GCC_TEST_OPTIONS
=-Bstatic
3012 GCC_TEST_OPTIONS
=-static
3014 *-sunos5.3
* |
*-solaris2.3
* )
3016 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3018 *-sunos5.4
* |
*-solaris2.4
* )
3020 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3023 *-sunos5.5
* |
*-solaris2.5
* )
3025 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3028 *-sunos5.6
* |
*-solaris2.6
* )
3030 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3033 *-sunos5* |
*-solaris* )
3035 emacs_check_sunpro_c
=yes
3036 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3040 ## Watch out for a compiler that we know will not work.
3041 case "${canonical}" in
3042 *-solaris* |
*-sunos5* )
3043 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3044 ## /usr/ucb/cc doesn't work;
3045 ## we should find some other compiler that does work.
3053 machine
=sparc opsys
=nextstep
3057 m68
*-tadpole-sysv* )
3058 machine
=tad68k opsys
=usg5-3
3062 tahoe-tahoe-bsd4.2
* )
3063 machine
=tahoe opsys
=bsd4-2
3065 tahoe-tahoe-bsd4.3
* )
3066 machine
=tahoe opsys
=bsd4-3
3069 ## Tandem Integrity S2
3071 machine
=tandem-s2 opsys
=usg5-3
3075 m88k-tektronix-sysv3
* )
3076 machine
=tekxd88 opsys
=usg5-3
3079 ## Tektronix 16000 box (6130?)
3080 ns16k-tektronix-bsd
* )
3081 machine
=ns16000 opsys
=bsd4-2
3084 ## src/m/tek4300.h hints that this is a m68k machine.
3085 m68
*-tektronix-bsd* )
3086 machine
=tek4300 opsys
=bsd4-3
3090 ## We seem to have lost the machine-description file titan.h!
3092 machine
=titan opsys
=usg5-3
3095 ## Ustation E30 (SS5E)
3096 m68
*-unisys-uniplus* )
3097 machine
=ustation opsystem
=unipl5-2
3103 case "${canonical}" in
3104 *-bsd4.1
* ) opsys
=bsd4-1
;;
3105 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3106 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3107 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3108 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3109 *-vms* ) opsys
=vms
;;
3115 ns16k-whitechapel-
* )
3117 ## We don't know what sort of OS runs on these; we'll let the
3118 ## operating system guessing code below try.
3123 machine
=wicat opsys
=usg5-2
3128 machine
=ia64 opsys
=gnu-linux
3131 ## Intel 386 machines where we don't care about the manufacturer
3134 case "${canonical}" in
3135 *-cygwin ) opsys
=cygwin
;;
3136 *-darwin* ) opsys
=darwin
3137 CPP
="${CC-cc} -E -no-cpp-precomp"
3139 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3140 *-isc2.2
* ) opsys
=isc2-2
;;
3141 *-isc4.0
* ) opsys
=isc4-0
;;
3142 *-isc4.
* ) opsys
=isc4-1
3143 GCC_TEST_OPTIONS
=-posix
3144 NON_GCC_TEST_OPTIONS
=-Xp
3146 *-isc* ) opsys
=isc3-0
;;
3147 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3148 *-esix* ) opsys
=esix
;;
3149 *-xenix* ) opsys
=xenix
;;
3150 *-linux-gnu* ) opsys
=gnu-linux
;;
3151 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3152 *-sco3.2v5
* ) opsys
=sco5
3153 NON_GNU_CPP
=/lib
/cpp
3154 # Prevent -belf from being passed to $CPP.
3155 # /lib/cpp does not accept it.
3156 OVERRIDE_CPPFLAGS
=" "
3158 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3159 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3160 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3161 *-386bsd* ) opsys
=386bsd
;;
3162 *-nextstep* ) opsys
=nextstep
;;
3163 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3167 ## m68k Linux-based GNU system
3169 machine
=m68k opsys
=gnu-linux
3172 ## Mips Linux-based GNU system
3173 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3174 machine
=mips opsys
=gnu-linux
3178 sparc-fujitsu-sysv4
* )
3179 machine
=sparc opsys
=uxpds
3180 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3185 f301-fujitsu-uxpv4.1
)
3186 machine
=f301 opsys
=uxpv
3189 ## AMD x86-64 Linux-based GNU system
3190 x86_64-
*-linux-gnu* )
3191 machine
=amdx86-64 opsys
=gnu-linux
3194 ## Tensilica Xtensa Linux-based GNU system
3195 xtensa-
*-linux-gnu* )
3196 machine
=xtensa opsys
=gnu-linux
3204 ### If the code above didn't choose an operating system, just choose
3205 ### an operating system based on the configuration name. You really
3206 ### only want to use this when you have no idea what the right
3207 ### operating system is; if you know what operating systems a machine
3208 ### runs, it's cleaner to make it explicit in the case statement
3210 if test x
"${opsys}" = x
; then
3211 case "${canonical}" in
3212 *-gnu* ) opsys
=gnu
;;
3213 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3214 *-bsd4.2
) opsys
=bsd4-2
;;
3215 *-bsd4.3
) opsys
=bsd4-3
;;
3216 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3217 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3218 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3219 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3220 *-sysv4.2uw
* ) opsys
=unixware
;;
3221 *-sysv5uw* ) opsys
=unixware
;;
3222 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3223 *-sysv4.1
* |
*-sysvr4.1
* )
3224 NON_GNU_CPP
=/usr
/lib
/cpp
3226 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3227 if [ x
$NON_GNU_CPP = x
]; then
3228 if [ -f /usr
/ccs
/lib
/cpp
]; then
3229 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3231 NON_GNU_CPP
=/lib
/cpp
3235 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3244 if test $unported = yes; then
3245 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3246 Check \`etc/MACHINES' for recognized configuration names." >&5
3247 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3248 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3249 { (exit 1); exit 1; }; }
3252 machfile
="m/${machine}.h"
3253 opsysfile
="s/${opsys}.h"
3256 #### Choose a compiler.
3257 test -n "$CC" && cc_specified
=yes
3259 # Save the value of CFLAGS that the user specified.
3260 SPECIFIED_CFLAGS
="$CFLAGS"
3263 "yes" ) CC
="gcc" GCC
=yes ;;
3264 "no" ) : ${CC=cc} ;;
3268 ac_cpp
='$CPP $CPPFLAGS'
3269 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC
="$CC" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test -n "$CC"; then
3302 { echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6; }
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3311 if test -z "$ac_cv_prog_CC"; then
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc
; ac_word
=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_ac_ct_CC
="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6; }
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3349 if test "x$ac_ct_CC" = x
; then
3352 case $cross_compiling:$ac_tool_warned in
3354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&5
3357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3358 whose name does not start with the host triplet. If you think this
3359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3360 ac_tool_warned
=yes ;;
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC
="$CC" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test -n "$CC"; then
3399 { echo "$as_me:$LINENO: result: $CC" >&5
3400 echo "${ECHO_T}$CC" >&6; }
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3409 if test -z "$CC"; then
3410 # Extract the first word of "cc", so it can be a program name with args.
3411 set dummy cc
; ac_word
=$2
3412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3414 if test "${ac_cv_prog_CC+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC
="$CC" # Let the user override the test.
3421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir
=.
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429 ac_prog_rejected
=yes
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test $ac_prog_rejected = yes; then
3441 # We found a bogon in the path, so make sure we never use it.
3442 set dummy
$ac_cv_prog_CC
3444 if test $# != 0; then
3445 # We chose a different compiler from the bogus one.
3446 # However, it has the same basename, so the bogon will be chosen
3447 # first if we set CC to just the basename; use the full file name.
3449 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3455 if test -n "$CC"; then
3456 { echo "$as_me:$LINENO: result: $CC" >&5
3457 echo "${ECHO_T}$CC" >&6; }
3459 { echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6; }
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog
in cl.exe
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC
="$CC" # Let the user override the test.
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_exec_ext
in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { echo "$as_me:$LINENO: result: $CC" >&5
3499 echo "${ECHO_T}$CC" >&6; }
3501 { echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6; }
3506 test -n "$CC" && break
3509 if test -z "$CC"; then
3511 for ac_prog
in cl.exe
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy
$ac_prog; ac_word
=$2
3515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir
=.
3528 for ac_exec_ext
in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CC
="$ac_prog"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3543 echo "${ECHO_T}$ac_ct_CC" >&6; }
3545 { echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6; }
3550 test -n "$ac_ct_CC" && break
3553 if test "x$ac_ct_CC" = x
; then
3556 case $cross_compiling:$ac_tool_warned in
3558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&5
3561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3562 whose name does not start with the host triplet. If you think this
3563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3564 ac_tool_warned
=yes ;;
3573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&5
3575 echo "$as_me: error: no acceptable C compiler found in \$PATH
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3579 # Provide some information about the compiler.
3580 echo "$as_me:$LINENO: checking for C compiler version" >&5
3581 ac_compiler
=`set X $ac_compile; echo $2`
3582 { (ac_try
="$ac_compiler --version >&5"
3584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compiler --version >&5") 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (ac_try="$ac_compiler -v >&5"
3594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3595 *) ac_try_echo
=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compiler -v >&5") 2>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (ac_try
="$ac_compiler -V >&5"
3604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler -V >&5") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3633 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3635 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3637 # List of possible output files, starting from the most likely.
3638 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3639 # only as a last resort. b.out is created by i960 compilers.
3640 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3642 # The IRIX 6 linker writes into existing files which may not be
3643 # executable, retaining their permissions. Remove them first so a
3644 # subsequent execution test works.
3646 for ac_file in $ac_files
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3650 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655 if { (ac_try="$ac_link_default"
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_link_default") 2>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; then
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3670 for ac_file
in $ac_files ''
3672 test -f "$ac_file" ||
continue
3674 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3677 # We found the default executable, but exeext='' is most
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3683 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3695 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3701 { echo "$as_me:$LINENO: result: $ac_file" >&5
3702 echo "${ECHO_T}$ac_file" >&6; }
3703 if test -z "$ac_file"; then
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.
$ac_ext >&5
3707 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3708 See \`config.log' for more details." >&5
3709 echo "$as_me: error: C compiler cannot create executables
3710 See \`config.log' for more details." >&2;}
3711 { (exit 77); exit 77; }; }
3714 ac_exeext
=$ac_cv_exeext
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3719 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3720 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3721 # If not cross compiling, check that we can run a simple program.
3722 if test "$cross_compiling" != yes; then
3723 if { ac_try
='./$ac_file'
3724 { (case "(($ac_try" in
3725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_try") 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3735 if test "$cross_compiling" = maybe; then
3738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details.
" >&5
3741 echo "$as_me: error
: cannot run C compiled programs.
3742 If you meant to cross compile
, use \
`--host'.
3743 See \`config.log
' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3748 { echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6; }
3751 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3752 ac_clean_files=$ac_clean_files_save
3753 # Check that the compiler produces executables we can run. If not, either
3754 # the compiler is broken, or we cross compile.
3755 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3756 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3757 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3758 echo "${ECHO_T}$cross_compiling" >&6; }
3760 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3761 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3762 if { (ac_try="$ac_link"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_link") 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; then
3772 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3773 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3774 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3776 for ac_file
in conftest.exe conftest conftest.
*; do
3777 test -f "$ac_file" ||
continue
3779 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3780 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3786 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details." >&5
3788 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3789 See \`config.log' for more details." >&2;}
3790 { (exit 1); exit 1; }; }
3793 rm -f conftest
$ac_cv_exeext
3794 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3795 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3797 rm -f conftest.
$ac_ext
3798 EXEEXT
=$ac_cv_exeext
3800 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3802 if test "${ac_cv_objext+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat >conftest.
$ac_ext <<_ACEOF
3808 cat confdefs.h
>>conftest.
$ac_ext
3809 cat >>conftest.
$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3820 rm -f conftest.o conftest.obj
3821 if { (ac_try
="$ac_compile"
3823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; then
3831 for ac_file in conftest.o conftest.obj conftest.*; do
3832 test -f "$ac_file" || continue;
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3843 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3844 See \`config.log
' for more details." >&5
3845 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3846 See \`config.log' for more details.
" >&2;}
3847 { (exit 1); exit 1; }; }
3850 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3852 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3853 echo "${ECHO_T}$ac_cv_objext" >&6; }
3854 OBJEXT=$ac_cv_objext
3856 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3857 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3858 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3859 echo $ECHO_N "(cached
) $ECHO_C" >&6
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3898 echo "$as_me: failed program was
:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3908 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3910 GCC=`test $ac_compiler_gnu = yes && echo yes`
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3914 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_g+set}" = set; then
3916 echo $ECHO_N "(cached
) $ECHO_C" >&6
3918 ac_save_c_werror_flag=$ac_c_werror_flag
3919 ac_c_werror_flag=yes
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3956 echo "$as_me: failed program was
:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3975 rm -f conftest.$ac_objext
3976 if { (ac_try="$ac_compile"
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3984 grep -v '^ *+' conftest.er1 >conftest.err
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3988 (exit $ac_status); } && {
3989 test -z "$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 } && test -s conftest.$ac_objext; then
3994 echo "$as_me: failed program was
:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4033 echo "$as_me: failed program was
:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4048 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4049 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4059 if test "$GCC" = yes; then
4065 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4066 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then
4068 echo $ECHO_N "(cached
) $ECHO_C" >&6
4070 ac_cv_prog_cc_c89=no
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4080 #include <sys/types.h>
4081 #include <sys/stat.h>
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4096 s = g (p, va_arg (v,int));
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4132 CC="$ac_save_CC $ac_arg"
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_prog_cc_c89=$ac_arg
4152 echo "$as_me: failed program was
:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4161 rm -f conftest.$ac_ext
4166 case "x
$ac_cv_prog_cc_c89" in
4168 { echo "$as_me:$LINENO: result
: none needed
" >&5
4169 echo "${ECHO_T}none needed
" >&6; } ;;
4171 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4172 echo "${ECHO_T}unsupported
" >&6; } ;;
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4176 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4192 ## If not using gcc, and on Solaris, and no CPP specified, see if
4193 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4194 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4195 test x"$CPP" = x; then
4196 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4197 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4199 if test "${emacs_cv_sunpro_c+set}" = set; then
4200 echo $ECHO_N "(cached
) $ECHO_C" >&6
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4220 rm -f conftest.$ac_objext conftest$ac_exeext
4221 if { (ac_try="$ac_link"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_link") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4233 (exit $ac_status); } && {
4234 test -z "$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4236 } && test -s conftest$ac_exeext &&
4237 $as_test_x conftest$ac_exeext; then
4238 emacs_cv_sunpro_c=yes
4240 echo "$as_me: failed program was
:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 emacs_cv_sunpro_c=no
4246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4247 conftest$ac_exeext conftest.$ac_ext
4250 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4251 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4253 if test x"$emacs_cv_sunpro_c" = xyes; then
4254 NON_GNU_CPP="$CC -E -Xs"
4258 #### Some systems specify a CPP to use unless we are using GCC.
4259 #### Now that we know whether we are using GCC, we can decide whether
4260 #### to use that one.
4261 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4266 #### Some systems specify a CC to use unless we are using GCC.
4267 #### Now that we know whether we are using GCC, we can decide whether
4268 #### to use that one.
4269 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4270 test x$cc_specified != xyes
4275 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4277 CC="$CC $GCC_TEST_OPTIONS"
4280 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4282 CC="$CC $NON_GCC_TEST_OPTIONS"
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4291 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4292 # On Suns, sometimes $CPP names a directory.
4293 if test -n "$CPP" && test -d "$CPP"; then
4296 if test -z "$CPP"; then
4297 if test "${ac_cv_prog_CPP+set}" = set; then
4298 echo $ECHO_N "(cached
) $ECHO_C" >&6
4300 # Double quotes because CPP needs to be expanded
4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4304 for ac_c_preproc_warn_flag in '' yes
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error
" is here to catch this case.
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4319 # include <limits.h>
4321 # include <assert.h>
4325 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4333 grep -v '^ *+' conftest.er1 >conftest.err
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4337 (exit $ac_status); } >/dev/null && {
4338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4339 test ! -s conftest.err
4343 echo "$as_me: failed program was
:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 # Broken: fails on valid input.
4350 rm -f conftest.err conftest.$ac_ext
4352 # OK, works on sane cases. Now check whether nonexistent headers
4353 # can be detected and how.
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 #include <ac_nonexistent.h>
4362 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4378 # Broken: success on invalid input.
4381 echo "$as_me: failed program was
:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 # Passes both tests.
4389 rm -f conftest.err conftest.$ac_ext
4392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4393 rm -f conftest.err conftest.$ac_ext
4394 if $ac_preproc_ok; then
4406 { echo "$as_me:$LINENO: result
: $CPP" >&5
4407 echo "${ECHO_T}$CPP" >&6; }
4409 for ac_c_preproc_warn_flag in '' yes
4411 # Use a header file that comes with gcc, so configuring glibc
4412 # with a fresh cross-compiler works.
4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 # <limits.h> exists even on freestanding compilers.
4415 # On the NeXT, cc -E runs the code through the compiler's parser,
4416 # not just through cpp. "Syntax error
" is here to catch this case.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4424 # include <limits.h>
4426 # include <assert.h>
4430 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4442 (exit $ac_status); } >/dev/null && {
4443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4444 test ! -s conftest.err
4448 echo "$as_me: failed program was
:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # Broken: fails on valid input.
4455 rm -f conftest.err conftest.$ac_ext
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4467 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4479 (exit $ac_status); } >/dev/null && {
4480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4483 # Broken: success on invalid input.
4486 echo "$as_me: failed program was
:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 # Passes both tests.
4494 rm -f conftest.err conftest.$ac_ext
4497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498 rm -f conftest.err conftest.$ac_ext
4499 if $ac_preproc_ok; then
4502 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4503 See \
`config.log' for more details." >&5
4504 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4505 See \`config.log
' for more details." >&2;}
4506 { (exit 1); exit 1; }; }
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4512 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4517 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4518 if test "${ac_cv_path_GREP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 # Extract the first word of "grep ggrep" to use in msg output
4522 if test -z "$GREP"; then
4523 set dummy grep ggrep; ac_prog_name=$2
4524 if test "${ac_cv_path_GREP+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 ac_path_GREP_found=false
4528 # Loop through the user's path and
test for each of PROGNAME-LIST
4529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4530 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4533 test -z "$as_dir" && as_dir
=.
4534 for ac_prog
in grep ggrep
; do
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4538 # Check for GNU ac_path_GREP and select it if it is found.
4539 # Check for GNU $ac_path_GREP
4540 case `"$ac_path_GREP" --version 2>&1` in
4542 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4545 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 echo 'GREP' >> "conftest.nl"
4552 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4553 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4554 ac_count
=`expr $ac_count + 1`
4555 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_GREP
="$ac_path_GREP"
4558 ac_path_GREP_max
=$ac_count
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
4563 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4567 $ac_path_GREP_found && break 3
4577 GREP
="$ac_cv_path_GREP"
4578 if test -z "$GREP"; then
4579 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4580 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4581 { (exit 1); exit 1; }; }
4585 ac_cv_path_GREP
=$GREP
4590 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4591 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4592 GREP
="$ac_cv_path_GREP"
4595 { echo "$as_me:$LINENO: checking for egrep" >&5
4596 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4597 if test "${ac_cv_path_EGREP+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4601 then ac_cv_path_EGREP
="$GREP -E"
4603 # Extract the first word of "egrep" to use in msg output
4604 if test -z "$EGREP"; then
4605 set dummy
egrep; ac_prog_name
=$2
4606 if test "${ac_cv_path_EGREP+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 ac_path_EGREP_found
=false
4610 # Loop through the user's path and test for each of PROGNAME-LIST
4611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4612 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4615 test -z "$as_dir" && as_dir
=.
4616 for ac_prog
in egrep; do
4617 for ac_exec_ext
in '' $ac_executable_extensions; do
4618 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4619 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4620 # Check for GNU ac_path_EGREP and select it if it is found.
4621 # Check for GNU $ac_path_EGREP
4622 case `"$ac_path_EGREP" --version 2>&1` in
4624 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4627 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4630 cat "conftest.in" "conftest.in" >"conftest.tmp"
4631 mv "conftest.tmp" "conftest.in"
4632 cp "conftest.in" "conftest.nl"
4633 echo 'EGREP' >> "conftest.nl"
4634 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4635 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4636 ac_count
=`expr $ac_count + 1`
4637 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4638 # Best one so far, save it but keep looking for a better one
4639 ac_cv_path_EGREP
="$ac_path_EGREP"
4640 ac_path_EGREP_max
=$ac_count
4642 # 10*(2^10) chars as input seems more than enough
4643 test $ac_count -gt 10 && break
4645 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4649 $ac_path_EGREP_found && break 3
4659 EGREP
="$ac_cv_path_EGREP"
4660 if test -z "$EGREP"; then
4661 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4662 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4663 { (exit 1); exit 1; }; }
4667 ac_cv_path_EGREP
=$EGREP
4673 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4674 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4675 EGREP
="$ac_cv_path_EGREP"
4679 { echo "$as_me:$LINENO: checking for AIX" >&5
4680 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4681 cat >conftest.
$ac_ext <<_ACEOF
4684 cat confdefs.h
>>conftest.
$ac_ext
4685 cat >>conftest.
$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 $EGREP "yes" >/dev
/null
2>&1; then
4694 { echo "$as_me:$LINENO: result: yes" >&5
4695 echo "${ECHO_T}yes" >&6; }
4696 cat >>confdefs.h
<<\_ACEOF
4697 #define _ALL_SOURCE 1
4701 { echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6; }
4708 cat >>confdefs.h
<<\_ACEOF
4709 #define _GNU_SOURCE 1
4714 ### Use -Wno-pointer-sign if the compiler supports it
4715 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4716 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4717 SAVE_CFLAGS
="$CFLAGS"
4718 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4719 cat >conftest.
$ac_ext <<_ACEOF
4722 cat confdefs.h
>>conftest.
$ac_ext
4723 cat >>conftest.
$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4734 rm -f conftest.
$ac_objext
4735 if { (ac_try
="$ac_compile"
4737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_compile") 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && {
4748 test -z "$ac_c_werror_flag" ||
4749 test ! -s conftest.err
4750 } && test -s conftest.$ac_objext; then
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 if test $has_option = yes; then
4761 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4763 { echo "$as_me:$LINENO: result: $has_option" >&5
4764 echo "${ECHO_T}$has_option" >&6; }
4765 CFLAGS="$SAVE_CFLAGS"
4769 #### Some other nice autoconf tests.
4771 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4772 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4774 if test "$LN_S" = "ln -s"; then
4775 { echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6; }
4778 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4779 echo "${ECHO_T}no, using $LN_S" >&6; }
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4789 # On Suns, sometimes $CPP names a directory.
4790 if test -n "$CPP" && test -d "$CPP"; then
4793 if test -z "$CPP"; then
4794 if test "${ac_cv_prog_CPP+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 # Double quotes because CPP needs to be expanded
4798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4801 for ac_c_preproc_warn_flag in '' yes
4803 # Use a header file that comes with gcc, so configuring glibc
4804 # with a fresh cross-compiler works.
4805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806 # <limits.h> exists even on freestanding compilers.
4807 # On the NeXT, cc -E runs the code through the compiler's parser,
4808 # not just through cpp. "Syntax error" is here to catch this case.
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4816 # include <limits.h>
4818 # include <assert.h>
4822 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4825 *) ac_try_echo
=$ac_try;;
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4830 grep -v '^ *+' conftest.er1
>conftest.err
4832 cat conftest.err
>&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev
/null
&& {
4835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.
$ac_ext >&5
4843 # Broken: fails on valid input.
4847 rm -f conftest.err conftest.
$ac_ext
4849 # OK, works on sane cases. Now check whether nonexistent headers
4850 # can be detected and how.
4851 cat >conftest.
$ac_ext <<_ACEOF
4854 cat confdefs.h
>>conftest.
$ac_ext
4855 cat >>conftest.
$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4857 #include <ac_nonexistent.h>
4859 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4867 grep -v '^ *+' conftest.er1 >conftest.err
4869 cat conftest.err >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } >/dev/null && {
4872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4873 test ! -s conftest.err
4875 # Broken: success on invalid input.
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 # Passes both tests.
4886 rm -f conftest.err conftest.$ac_ext
4889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4890 rm -f conftest.err conftest.
$ac_ext
4891 if $ac_preproc_ok; then
4903 { echo "$as_me:$LINENO: result: $CPP" >&5
4904 echo "${ECHO_T}$CPP" >&6; }
4906 for ac_c_preproc_warn_flag
in '' yes
4908 # Use a header file that comes with gcc, so configuring glibc
4909 # with a fresh cross-compiler works.
4910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4911 # <limits.h> exists even on freestanding compilers.
4912 # On the NeXT, cc -E runs the code through the compiler's parser,
4913 # not just through cpp. "Syntax error" is here to catch this case.
4914 cat >conftest.
$ac_ext <<_ACEOF
4917 cat confdefs.h
>>conftest.
$ac_ext
4918 cat >>conftest.
$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4921 # include <limits.h>
4923 # include <assert.h>
4927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4935 grep -v '^ *+' conftest.er1 >conftest.err
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } >/dev/null && {
4940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4948 # Broken: fails on valid input.
4952 rm -f conftest.err conftest.$ac_ext
4954 # OK, works on sane cases. Now check whether nonexistent headers
4955 # can be detected and how.
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 #include <ac_nonexistent.h>
4964 if { (ac_try="$ac_cpp conftest.$ac_ext"
4966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4967 *) ac_try_echo
=$ac_try;;
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4972 grep -v '^ *+' conftest.er1
>conftest.err
4974 cat conftest.err
>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } >/dev
/null
&& {
4977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4980 # Broken: success on invalid input.
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.
$ac_ext >&5
4986 # Passes both tests.
4991 rm -f conftest.err conftest.
$ac_ext
4994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4995 rm -f conftest.err conftest.
$ac_ext
4996 if $ac_preproc_ok; then
4999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5000 See \`config.log' for more details." >&5
5001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5002 See \`config.log' for more details." >&2;}
5003 { (exit 1); exit 1; }; }
5007 ac_cpp
='$CPP $CPPFLAGS'
5008 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5012 # Find a good install program. We prefer a C program (faster),
5013 # so one script is as good as another. But avoid the broken or
5014 # incompatible versions:
5015 # SysV /etc/install, /usr/sbin/install
5016 # SunOS /usr/etc/install
5017 # IRIX /sbin/install
5019 # AmigaOS /C/install, which installs bootblocks on floppy discs
5020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5023 # OS/2's system install, which has a completely different semantic
5024 # ./install, which can be erroneously created by make from ./install.sh.
5025 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5026 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5027 if test -z "$INSTALL"; then
5028 if test "${ac_cv_path_install+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir
=.
5036 # Account for people who put trailing slashes in PATH elements.
5038 .
/ | .
// |
/cC
/* | \
5039 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5040 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5043 # OSF1 and SCO ODT 3.0 have their own names for install.
5044 # Don't use installbsd from OSF since it installs stuff as root
5046 for ac_prog
in ginstall scoinst
install; do
5047 for ac_exec_ext
in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5049 if test $ac_prog = install &&
5050 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5051 # AIX install. It has an incompatible calling convention.
5053 elif test $ac_prog = install &&
5054 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5055 # program-specific install script used by HP pwplus--don't use.
5058 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5071 if test "${ac_cv_path_install+set}" = set; then
5072 INSTALL
=$ac_cv_path_install
5074 # As a last resort, use the slow shell script. Don't cache a
5075 # value for INSTALL within a source directory, because that will
5076 # break other packages using the cache if that directory is
5077 # removed, or if the value is a relative name.
5078 INSTALL
=$ac_install_sh
5081 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5082 echo "${ECHO_T}$INSTALL" >&6; }
5084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5085 # It thinks the first close brace ends the variable substitution.
5086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5090 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5092 if test "x$RANLIB" = x
; then
5093 if test -n "$ac_tool_prefix"; then
5094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5095 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_prog_RANLIB+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 if test -n "$RANLIB"; then
5102 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir
=.
5109 for ac_exec_ext
in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 RANLIB
=$ac_cv_prog_RANLIB
5122 if test -n "$RANLIB"; then
5123 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5124 echo "${ECHO_T}$RANLIB" >&6; }
5126 { echo "$as_me:$LINENO: result: no" >&5
5127 echo "${ECHO_T}no" >&6; }
5132 if test -z "$ac_cv_prog_RANLIB"; then
5133 ac_ct_RANLIB
=$RANLIB
5134 # Extract the first word of "ranlib", so it can be a program name with args.
5135 set dummy ranlib
; ac_word
=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test -n "$ac_ct_RANLIB"; then
5142 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir
=.
5149 for ac_exec_ext
in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5162 if test -n "$ac_ct_RANLIB"; then
5163 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5166 { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5170 if test "x$ac_ct_RANLIB" = x
; then
5173 case $cross_compiling:$ac_tool_warned in
5175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5176 whose name does not start with the host triplet. If you think this
5177 configuration is useful to you, please write to autoconf@gnu.org." >&5
5178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5179 whose name does not start with the host triplet. If you think this
5180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5181 ac_tool_warned
=yes ;;
5183 RANLIB
=$ac_ct_RANLIB
5186 RANLIB
="$ac_cv_prog_RANLIB"
5190 # Extract the first word of "install-info", so it can be a program name with args.
5191 set dummy install-info
; ac_word
=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 case $INSTALL_INFO in
5199 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir
=.
5207 for ac_exec_ext
in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5221 if test -n "$INSTALL_INFO"; then
5222 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5223 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5230 # Extract the first word of "install-info", so it can be a program name with args.
5231 set dummy install-info
; ac_word
=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 case $INSTALL_INFO in
5239 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5243 for as_dir
in /usr
/sbin
5246 test -z "$as_dir" && as_dir
=.
5247 for ac_exec_ext
in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5261 if test -n "$INSTALL_INFO"; then
5262 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5263 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5265 { echo "$as_me:$LINENO: result: no" >&5
5266 echo "${ECHO_T}no" >&6; }
5270 # Extract the first word of "install-info", so it can be a program name with args.
5271 set dummy install-info
; ac_word
=$2
5272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5274 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 case $INSTALL_INFO in
5279 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir
=.
5287 for ac_exec_ext
in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5301 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5302 if test -n "$INSTALL_INFO"; then
5303 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5304 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5311 # Extract the first word of "gzip", so it can be a program name with args.
5312 set dummy
gzip; ac_word
=$2
5313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5315 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5327 test -z "$as_dir" && as_dir
=.
5328 for ac_exec_ext
in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5342 if test -n "$GZIP_PROG"; then
5343 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5344 echo "${ECHO_T}$GZIP_PROG" >&6; }
5346 { echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6; }
5353 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5355 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5358 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5360 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5364 late_LDFLAGS
=$LDFLAGS
5365 if test "$GCC" = yes; then
5366 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5368 LDFLAGS
="$LDFLAGS -znocombreloc"
5371 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5372 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5373 cat >conftest.
$ac_ext <<_ACEOF
5376 rm -f conftest.
$ac_objext conftest
$ac_exeext
5377 if { (ac_try
="$ac_link"
5379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383 (eval "$ac_link") 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } && {
5390 test -z "$ac_c_werror_flag" ||
5391 test ! -s conftest.err
5392 } && test -s conftest$ac_exeext &&
5393 $as_test_x conftest$ac_exeext; then
5394 { echo "$as_me:$LINENO: result: yes" >&5
5395 echo "${ECHO_T}yes" >&6; }
5397 echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 LDFLAGS=$late_LDFLAGS
5401 { echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6; }
5405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5406 conftest$ac_exeext conftest.$ac_ext
5408 #### Extract some information from the operating system and machine files.
5410 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5411 - which libraries the lib-src programs will want, and
5412 - whether the GNU malloc routines are usable..." >&5
5413 echo "$as_me: checking the machine- and system-dependent files to find out
5414 - which libraries the lib-src programs will want, and
5415 - whether the GNU malloc routines are usable..." >&6;}
5417 ### First figure out CFLAGS (which we use for running the compiler here)
5418 ### and REAL_CFLAGS (which we use for real compilation).
5419 ### The two are the same except on a few systems, where they are made
5420 ### different to work around various lossages. For example,
5421 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5422 ### as implying static linking.
5424 ### If the CFLAGS env var is specified, we use that value
5425 ### instead of the default.
5427 ### It's not important that this name contain the PID; you can't run
5428 ### two configures in the same directory and have anything work
5430 tempcname="conftest.c"
5433 #include "'${srcdir}'/src/'${opsysfile}'"
5434 #include "'${srcdir}'/src/'${machfile}'"
5435 #ifndef LIBS_MACHINE
5436 #define LIBS_MACHINE
5441 #ifndef C_SWITCH_SYSTEM
5442 #define C_SWITCH_SYSTEM
5444 #ifndef C_SWITCH_MACHINE
5445 #define C_SWITCH_MACHINE
5447 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5448 configure___ c_switch_system=C_SWITCH_SYSTEM
5449 configure___ c_switch_machine=C_SWITCH_MACHINE
5452 #define LIB_X11_LIB -lX11
5455 #ifndef LIBX11_MACHINE
5456 #define LIBX11_MACHINE
5459 #ifndef LIBX11_SYSTEM
5460 #define LIBX11_SYSTEM
5462 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5465 configure___ unexec=UNEXEC
5467 configure___ unexec=unexec.o
5470 #ifdef SYSTEM_MALLOC
5471 configure___ system_malloc=yes
5473 configure___ system_malloc=no
5476 #ifdef USE_MMAP_FOR_BUFFERS
5477 configure___ use_mmap_for_buffers=yes
5479 configure___ use_mmap_for_buffers=no
5482 #ifndef C_DEBUG_SWITCH
5483 #define C_DEBUG_SWITCH -g
5486 #ifndef C_OPTIMIZE_SWITCH
5488 #define C_OPTIMIZE_SWITCH -O2
5490 #define C_OPTIMIZE_SWITCH -O
5494 #ifndef C_WARNINGS_SWITCH
5495 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5498 #ifndef LD_SWITCH_MACHINE
5499 #define LD_SWITCH_MACHINE
5502 #ifndef LD_SWITCH_SYSTEM
5503 #define LD_SWITCH_SYSTEM
5506 #ifndef LD_SWITCH_X_SITE_AUX
5507 #define LD_SWITCH_X_SITE_AUX
5510 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5511 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5513 #ifdef THIS_IS_CONFIGURE
5515 /* Get the CFLAGS for tests in configure. */
5517 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5519 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5522 #else /* not THIS_IS_CONFIGURE */
5524 /* Get the CFLAGS for real compilation. */
5526 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5528 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5531 #endif /* not THIS_IS_CONFIGURE */
5534 # The value of CPP is a quoted variable reference, so we need to do this
5535 # to get its actual value...
5536 CPP=`eval "echo $CPP"`
5537 eval `${CPP} -Isrc ${tempcname} \
5538 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5539 if test "x$SPECIFIED_CFLAGS" = x; then
5540 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5541 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5543 REAL_CFLAGS="$CFLAGS"
5547 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5549 ### Make sure subsequent tests use flags consistent with the build flags.
5551 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5552 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5554 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5559 # Check whether --enable-largefile was given.
5560 if test "${enable_largefile+set}" = set; then
5561 enableval=$enable_largefile;
5564 if test "$enable_largefile" != no; then
5566 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5567 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5568 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_cv_sys_largefile_CC=no
5572 if test "$GCC" != yes; then
5575 # IRIX 6.2 and later do not support large files by default,
5576 # so use the C compiler's -n32 option if that helps.
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <sys/types.h>
5584 /* Check that off_t can represent 2**63 - 1 correctly.
5585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5586 since some C++ compilers masquerading as C compilers
5587 incorrectly reject 9223372036854775807. */
5588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5590 && LARGE_OFF_T % 2147483647 == 1)
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5604 *) ac_try_echo
=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1
>conftest.err
5611 cat conftest.err
>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.
$ac_objext; then
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.
$ac_ext >&5
5625 rm -f core conftest.err conftest.
$ac_objext
5627 rm -f conftest.
$ac_objext
5628 if { (ac_try
="$ac_compile"
5630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_cv_sys_largefile_CC=' -n32'; break
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5652 rm -f core conftest.err conftest.$ac_objext
5656 rm -f conftest.$ac_ext
5659 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5660 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5661 if test "$ac_cv_sys_largefile_CC" != no; then
5662 CC=$CC$ac_cv_sys_largefile_CC
5665 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5666 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5667 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 cat >conftest.$ac_ext <<_ACEOF
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 #include <sys/types.h>
5678 /* Check that off_t can represent 2**63 - 1 correctly.
5679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5680 since some C++ compilers masquerading as C compilers
5681 incorrectly reject 9223372036854775807. */
5682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5684 && LARGE_OFF_T % 2147483647 == 1)
5694 rm -f conftest.$ac_objext
5695 if { (ac_try="$ac_compile"
5697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5698 *) ac_try_echo
=$ac_try;;
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_compile") 2>conftest.er1
5703 grep -v '^ *+' conftest.er1
>conftest.err
5705 cat conftest.err
>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && {
5708 test -z "$ac_c_werror_flag" ||
5709 test ! -s conftest.err
5710 } && test -s conftest.
$ac_objext; then
5711 ac_cv_sys_file_offset_bits
=no
; break
5713 echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.
$ac_ext >&5
5719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5720 cat >conftest.
$ac_ext <<_ACEOF
5723 cat confdefs.h
>>conftest.
$ac_ext
5724 cat >>conftest.
$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #define _FILE_OFFSET_BITS 64
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5744 rm -f conftest.
$ac_objext
5745 if { (ac_try
="$ac_compile"
5747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compile") 2>conftest.er1
5753 grep -v '^ *+' conftest.er1 >conftest.err
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } && {
5758 test -z "$ac_c_werror_flag" ||
5759 test ! -s conftest.err
5760 } && test -s conftest.$ac_objext; then
5761 ac_cv_sys_file_offset_bits=64; break
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770 ac_cv_sys_file_offset_bits=unknown
5774 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5775 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5776 case $ac_cv_sys_file_offset_bits in #(
5779 cat >>confdefs.h <<_ACEOF
5780 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5785 if test $ac_cv_sys_file_offset_bits = unknown; then
5786 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5787 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5788 if test "${ac_cv_sys_large_files+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.$ac_ext <<_ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #include <sys/types.h>
5799 /* Check that off_t can represent 2**63 - 1 correctly.
5800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5801 since some C++ compilers masquerading as C compilers
5802 incorrectly reject 9223372036854775807. */
5803 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5805 && LARGE_OFF_T % 2147483647 == 1)
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5819 *) ac_try_echo
=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1
>conftest.err
5826 cat conftest.err
>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.
$ac_objext; then
5832 ac_cv_sys_large_files
=no
; break
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.
$ac_ext >&5
5840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 #define _LARGE_FILES 1
5848 #include <sys/types.h>
5849 /* Check that off_t can represent 2**63 - 1 correctly.
5850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5851 since some C++ compilers masquerading as C compilers
5852 incorrectly reject 9223372036854775807. */
5853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5855 && LARGE_OFF_T % 2147483647 == 1)
5865 rm -f conftest.
$ac_objext
5866 if { (ac_try
="$ac_compile"
5868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5874 grep -v '^ *+' conftest.er1 >conftest.err
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5882 ac_cv_sys_large_files=1; break
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 ac_cv_sys_large_files=unknown
5895 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5896 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5897 case $ac_cv_sys_large_files in #(
5900 cat >>confdefs.h <<_ACEOF
5901 #define _LARGE_FILES $ac_cv_sys_large_files
5911 ### The standard library on x86-64 GNU/Linux distributions can
5912 ### be located in either /usr/lib64 or /usr/lib.
5913 case "${canonical}" in
5914 x86_64-*-linux-gnu* )
5915 if test -d /usr/lib64; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_X86_64_LIB64_DIR 1
5927 if test "${with_sound}" != "no"; then
5928 # Sound support for GNU/Linux and the free BSDs.
5929 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5931 if test "${ac_cv_header_stdc+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5957 *) ac_try_echo
=$ac_try;;
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5962 grep -v '^ *+' conftest.er1
>conftest.err
5964 cat conftest.err
>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.
$ac_objext; then
5970 ac_cv_header_stdc
=yes
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.
$ac_ext >&5
5975 ac_cv_header_stdc
=no
5978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5980 if test $ac_cv_header_stdc = yes; then
5981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5982 cat >conftest.
$ac_ext <<_ACEOF
5985 cat confdefs.h
>>conftest.
$ac_ext
5986 cat >>conftest.
$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5992 $EGREP "memchr" >/dev
/null
2>&1; then
5995 ac_cv_header_stdc
=no
6001 if test $ac_cv_header_stdc = yes; then
6002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6003 cat >conftest.
$ac_ext <<_ACEOF
6006 cat confdefs.h
>>conftest.
$ac_ext
6007 cat >>conftest.
$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "free" >/dev
/null
2>&1; then
6016 ac_cv_header_stdc
=no
6022 if test $ac_cv_header_stdc = yes; then
6023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6024 if test "$cross_compiling" = yes; then
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6035 #if ((' ' & 0x0FF) == 0x020)
6036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6039 # define ISLOWER(c) \
6040 (('a' <= (c) && (c) <= 'i') \
6041 || ('j' <= (c) && (c) <= 'r') \
6042 || ('s' <= (c) && (c) <= 'z'))
6043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6051 for (i = 0; i < 256; i++)
6052 if (XOR (islower (i), ISLOWER (i))
6053 || toupper (i) != TOUPPER (i))
6058 rm -f conftest
$ac_exeext
6059 if { (ac_try
="$ac_link"
6061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_link") 2>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069 { (case "(($ac_try" in
6070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6071 *) ac_try_echo
=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_try") 2>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6080 echo "$as_me: program exited with status $ac_status" >&5
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6085 ac_cv_header_stdc
=no
6087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6095 if test $ac_cv_header_stdc = yes; then
6097 cat >>confdefs.h
<<\_ACEOF
6098 #define STDC_HEADERS 1
6103 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6113 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6114 inttypes.h stdint.h unistd.h
6116 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6119 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 cat >conftest.
$ac_ext <<_ACEOF
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 $ac_includes_default
6130 #include <$ac_header>
6132 rm -f conftest.
$ac_objext
6133 if { (ac_try
="$ac_compile"
6135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 eval "$as_ac_Header=yes"
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 eval "$as_ac_Header=no"
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 ac_res=`eval echo '${'$as_ac_Header'}'`
6160 { echo "$as_me:$LINENO: result: $ac_res" >&5
6161 echo "${ECHO_T}$ac_res" >&6; }
6162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6163 cat >>confdefs.h <<_ACEOF
6164 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6175 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6177 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 ac_res=`eval echo '${'$as_ac_Header'}'`
6185 { echo "$as_me:$LINENO: result: $ac_res" >&5
6186 echo "${ECHO_T}$ac_res" >&6; }
6188 # Is the header compilable?
6189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6191 cat >conftest.$ac_ext <<_ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6197 $ac_includes_default
6198 #include <$ac_header>
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6204 *) ac_try_echo
=$ac_try;;
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6209 grep -v '^ *+' conftest.er1
>conftest.err
6211 cat conftest.err
>&5
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.
$ac_objext; then
6217 ac_header_compiler
=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.
$ac_ext >&5
6222 ac_header_compiler
=no
6225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6227 echo "${ECHO_T}$ac_header_compiler" >&6; }
6229 # Is the header present?
6230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6232 cat >conftest.
$ac_ext <<_ACEOF
6235 cat confdefs.h
>>conftest.
$ac_ext
6236 cat >>conftest.
$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 #include <$ac_header>
6240 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } >/dev/null && {
6253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6256 ac_header_preproc=yes
6258 echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6261 ac_header_preproc=no
6264 rm -f conftest.err conftest.$ac_ext
6265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6266 echo "${ECHO_T}$ac_header_preproc" >&6; }
6268 # So? What about this header?
6269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6275 ac_header_preproc=yes
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 eval "$as_ac_Header=\$ac_header_preproc"
6300 ac_res=`eval echo '${'$as_ac_Header'}'`
6301 { echo "$as_me:$LINENO: result: $ac_res" >&5
6302 echo "${ECHO_T}$ac_res" >&6; }
6305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6306 cat >>confdefs.h <<_ACEOF
6307 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6314 # Emulation library used on NetBSD.
6315 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6316 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6317 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_check_lib_save_LIBS=$LIBS
6321 LIBS="-lossaudio $LIBS"
6322 cat >conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6329 /* Override any GCC internal prototype to avoid an error.
6330 Use char because int might match the return type of a GCC
6331 builtin and then its argument prototype would still apply. */
6339 return _oss_ioctl ();
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6348 *) ac_try_echo
=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_link") 2>conftest.er1
6353 grep -v '^ *+' conftest.er1
>conftest.err
6355 cat conftest.err
>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest
$ac_exeext &&
6361 $as_test_x conftest
$ac_exeext; then
6362 ac_cv_lib_ossaudio__oss_ioctl
=yes
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.
$ac_ext >&5
6367 ac_cv_lib_ossaudio__oss_ioctl
=no
6370 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6371 conftest
$ac_exeext conftest.
$ac_ext
6372 LIBS
=$ac_check_lib_save_LIBS
6374 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6375 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6376 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6385 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6386 if test "X${with_pkg_config_prog}" != X
; then
6387 PKG_CONFIG
="${with_pkg_config_prog}"
6392 if test -z "$PKG_CONFIG"; then
6393 # Extract the first word of "pkg-config", so it can be a program name with args.
6394 set dummy pkg-config
; ac_word
=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir
=.
6410 for ac_exec_ext
in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6424 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6425 if test -n "$PKG_CONFIG"; then
6426 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6427 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6429 { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6436 if test "$PKG_CONFIG" = "no" ; then
6439 PKG_CONFIG_MIN_VERSION
=0.9.0
6440 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6441 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6442 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6444 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6445 { echo "$as_me:$LINENO: result: yes" >&5
6446 echo "${ECHO_T}yes" >&6; }
6449 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6450 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6451 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6452 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6453 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6455 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6456 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6457 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6458 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6459 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6461 { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6465 ## If we have a custom action on failure, don't print errors, but
6466 ## do set a variable so people can do so.
6467 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6474 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6475 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6479 if test $succeeded = yes; then
6485 if test $HAVE_ALSA = yes; then
6486 SAVE_CFLAGS
="$CFLAGS"
6487 SAVE_LDFLAGS
="$LDFLAGS"
6488 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6489 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6490 cat >conftest.
$ac_ext <<_ACEOF
6493 cat confdefs.h
>>conftest.
$ac_ext
6494 cat >>conftest.
$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <asoundlib.h>
6500 snd_lib_error_set_handler (0);
6505 rm -f conftest.
$ac_objext
6506 if { (ac_try
="$ac_compile"
6508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest.$ac_objext; then
6522 emacs_alsa_normal=yes
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 emacs_alsa_normal=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 if test "$emacs_alsa_normal" != yes; then
6532 cat >conftest.$ac_ext <<_ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 #include <alsa/asoundlib.h>
6542 snd_lib_error_set_handler (0);
6547 rm -f conftest.$ac_objext
6548 if { (ac_try="$ac_compile"
6550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6551 *) ac_try_echo
=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_compile") 2>conftest.er1
6556 grep -v '^ *+' conftest.er1
>conftest.err
6558 cat conftest.err
>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest.
$ac_objext; then
6564 emacs_alsa_subdir
=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.
$ac_ext >&5
6569 emacs_alsa_subdir
=no
6572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6573 if test "$emacs_alsa_subdir" != yes; then
6574 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6575 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6576 { (exit 1); exit 1; }; }
6578 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6581 CFLAGS
="$SAVE_CFLAGS"
6582 LDFLAGS
="$SAVE_LDFLAGS"
6583 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6584 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6586 cat >>confdefs.h
<<\_ACEOF
6619 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6620 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6621 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6622 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6625 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6629 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 ac_res
=`eval echo '${'$as_ac_Header'}'`
6633 { echo "$as_me:$LINENO: result: $ac_res" >&5
6634 echo "${ECHO_T}$ac_res" >&6; }
6636 # Is the header compilable?
6637 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6639 cat >conftest.
$ac_ext <<_ACEOF
6642 cat confdefs.h
>>conftest.
$ac_ext
6643 cat >>conftest.
$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 $ac_includes_default
6646 #include <$ac_header>
6648 rm -f conftest.
$ac_objext
6649 if { (ac_try
="$ac_compile"
6651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6655 (eval "$ac_compile") 2>conftest.er1
6657 grep -v '^ *+' conftest.er1 >conftest.err
6659 cat conftest.err >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && {
6662 test -z "$ac_c_werror_flag" ||
6663 test ! -s conftest.err
6664 } && test -s conftest.$ac_objext; then
6665 ac_header_compiler=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6670 ac_header_compiler=no
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6675 echo "${ECHO_T}$ac_header_compiler" >&6; }
6677 # Is the header present?
6678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6686 #include <$ac_header>
6688 if { (ac_try="$ac_cpp conftest.$ac_ext"
6690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6691 *) ac_try_echo
=$ac_try;;
6693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6696 grep -v '^ *+' conftest.er1
>conftest.err
6698 cat conftest.err
>&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } >/dev
/null
&& {
6701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6702 test ! -s conftest.err
6704 ac_header_preproc
=yes
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.
$ac_ext >&5
6709 ac_header_preproc
=no
6712 rm -f conftest.err conftest.
$ac_ext
6713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6714 echo "${ECHO_T}$ac_header_preproc" >&6; }
6716 # So? What about this header?
6717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6723 ac_header_preproc
=yes
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6730 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6732 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6733 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6736 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6743 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 eval "$as_ac_Header=\$ac_header_preproc"
6748 ac_res
=`eval echo '${'$as_ac_Header'}'`
6749 { echo "$as_me:$LINENO: result: $ac_res" >&5
6750 echo "${ECHO_T}$ac_res" >&6; }
6753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6754 cat >>confdefs.h
<<_ACEOF
6755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6763 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6764 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6765 cat >conftest.
$ac_ext <<_ACEOF
6768 cat confdefs.h
>>conftest.
$ac_ext
6769 cat >>conftest.
$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <sys/personality.h>
6775 personality (PER_LINUX32)
6780 rm -f conftest.
$ac_objext
6781 if { (ac_try
="$ac_compile"
6783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6784 *) ac_try_echo=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6789 grep -v '^ *+' conftest.er1 >conftest.err
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6797 emacs_cv_personality_linux32=yes
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.$ac_ext >&5
6802 emacs_cv_personality_linux32=no
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6807 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6809 if test $emacs_cv_personality_linux32 = yes; then
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_PERSONALITY_LINUX32 1
6818 for ac_header in term.h
6820 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <$ac_header>
6834 if { (ac_try="$ac_cpp conftest.$ac_ext"
6836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6837 *) ac_try_echo
=$ac_try;;
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1
>conftest.err
6844 cat conftest.err
>&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } >/dev
/null
&& {
6847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6850 eval "$as_ac_Header=yes"
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.
$ac_ext >&5
6855 eval "$as_ac_Header=no"
6858 rm -f conftest.err conftest.
$ac_ext
6860 ac_res
=`eval echo '${'$as_ac_Header'}'`
6861 { echo "$as_me:$LINENO: result: $ac_res" >&5
6862 echo "${ECHO_T}$ac_res" >&6; }
6863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6864 cat >>confdefs.h
<<_ACEOF
6865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6872 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6873 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6874 if test "${ac_cv_header_stdc+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 cat >conftest.
$ac_ext <<_ACEOF
6880 cat confdefs.h
>>conftest.
$ac_ext
6881 cat >>conftest.
$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6896 rm -f conftest.
$ac_objext
6897 if { (ac_try
="$ac_compile"
6899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6905 grep -v '^ *+' conftest.er1 >conftest.err
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 ac_cv_header_stdc=yes
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 ac_cv_header_stdc=no
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 if test $ac_cv_header_stdc = yes; then
6924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6935 $EGREP "memchr" >/dev/null 2>&1; then
6938 ac_cv_header_stdc=no
6944 if test $ac_cv_header_stdc = yes; then
6945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6946 cat >conftest.$ac_ext <<_ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6956 $EGREP "free" >/dev/null 2>&1; then
6959 ac_cv_header_stdc=no
6965 if test $ac_cv_header_stdc = yes; then
6966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6967 if test "$cross_compiling" = yes; then
6970 cat >conftest.$ac_ext <<_ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6978 #if ((' ' & 0x0FF) == 0x020)
6979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6982 # define ISLOWER(c) \
6983 (('a' <= (c) && (c) <= 'i') \
6984 || ('j' <= (c) && (c) <= 'r') \
6985 || ('s' <= (c) && (c) <= 'z'))
6986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6994 for (i = 0; i < 256; i++)
6995 if (XOR (islower (i), ISLOWER (i))
6996 || toupper (i) != TOUPPER (i))
7001 rm -f conftest$ac_exeext
7002 if { (ac_try="$ac_link"
7004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7005 *) ac_try_echo
=$ac_try;;
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_link") 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7012 { (case "(($ac_try" in
7013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_try") 2>&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7023 echo "$as_me: program exited with status $ac_status" >&5
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_cv_header_stdc=no
7030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7038 if test $ac_cv_header_stdc = yes; then
7040 cat >>confdefs.h <<\_ACEOF
7041 #define STDC_HEADERS 1
7046 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7047 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7048 if test "${ac_cv_header_time+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7058 #include <sys/time.h>
7064 if ((struct tm *) 0)
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7074 *) ac_try_echo
=$ac_try;;
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7079 grep -v '^ *+' conftest.er1
>conftest.err
7081 cat conftest.err
>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.
$ac_objext; then
7087 ac_cv_header_time
=yes
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.
$ac_ext >&5
7092 ac_cv_header_time
=no
7095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7097 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7098 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7099 if test $ac_cv_header_time = yes; then
7101 cat >>confdefs.h
<<\_ACEOF
7102 #define TIME_WITH_SYS_TIME 1
7107 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7108 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7109 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 cat >conftest.
$ac_ext <<_ACEOF
7115 cat confdefs.h
>>conftest.
$ac_ext
7116 cat >>conftest.
$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7130 rm -f conftest.
$ac_objext
7131 if { (ac_try
="$ac_compile"
7133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_compile") 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest.$ac_objext; then
7147 ac_cv_have_decl_sys_siglist=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_cv_have_decl_sys_siglist=no
7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7158 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7159 if test $ac_cv_have_decl_sys_siglist = yes; then
7161 cat >>confdefs.h <<_ACEOF
7162 #define HAVE_DECL_SYS_SIGLIST 1
7167 cat >>confdefs.h <<_ACEOF
7168 #define HAVE_DECL_SYS_SIGLIST 0
7175 if test $ac_cv_have_decl_sys_siglist != yes; then
7176 # For Tru64, at least:
7177 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7178 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7179 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 $ac_includes_default
7192 #ifndef __sys_siglist
7193 (void) __sys_siglist;
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7204 *) ac_try_echo
=$ac_try;;
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7209 grep -v '^ *+' conftest.er1
>conftest.err
7211 cat conftest.err
>&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.
$ac_objext; then
7217 ac_cv_have_decl___sys_siglist
=yes
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.
$ac_ext >&5
7222 ac_cv_have_decl___sys_siglist
=no
7225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7227 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7228 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7229 if test $ac_cv_have_decl___sys_siglist = yes; then
7231 cat >>confdefs.h
<<_ACEOF
7232 #define HAVE_DECL___SYS_SIGLIST 1
7237 cat >>confdefs.h
<<_ACEOF
7238 #define HAVE_DECL___SYS_SIGLIST 0
7245 if test $ac_cv_have_decl___sys_siglist = yes; then
7247 cat >>confdefs.h
<<\_ACEOF
7248 #define sys_siglist __sys_siglist
7253 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7254 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7255 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7258 cat >conftest.
$ac_ext <<_ACEOF
7261 cat confdefs.h
>>conftest.
$ac_ext
7262 cat >>conftest.
$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 #include <sys/types.h>
7265 #include <sys/wait.h>
7267 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7270 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7278 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7283 rm -f conftest.
$ac_objext
7284 if { (ac_try
="$ac_compile"
7286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_compile") 2>conftest.er1
7292 grep -v '^ *+' conftest.er1 >conftest.err
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.$ac_objext; then
7300 ac_cv_header_sys_wait_h=yes
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_header_sys_wait_h=no
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7311 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7312 if test $ac_cv_header_sys_wait_h = yes; then
7314 cat >>confdefs.h <<\_ACEOF
7315 #define HAVE_SYS_WAIT_H 1
7321 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7322 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7323 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7332 #ifdef TIME_WITH_SYS_TIME
7333 #include <sys/time.h>
7336 #ifdef HAVE_SYS_TIME_H
7337 #include <sys/time.h>
7348 static struct utimbuf x; x.actime = x.modtime;
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7357 *) ac_try_echo
=$ac_try;;
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7362 grep -v '^ *+' conftest.er1
>conftest.err
7364 cat conftest.err
>&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.
$ac_objext; then
7370 emacs_cv_struct_utimbuf
=yes
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.
$ac_ext >&5
7375 emacs_cv_struct_utimbuf
=no
7378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7380 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7381 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7382 if test $emacs_cv_struct_utimbuf = yes; then
7384 cat >>confdefs.h
<<\_ACEOF
7385 #define HAVE_STRUCT_UTIMBUF 1
7390 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7391 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7392 if test "${ac_cv_type_signal+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 cat >conftest.
$ac_ext <<_ACEOF
7398 cat confdefs.h
>>conftest.
$ac_ext
7399 cat >>conftest.
$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 #include <sys/types.h>
7407 return *(signal (0, 0)) (0) == 1;
7412 rm -f conftest.
$ac_objext
7413 if { (ac_try
="$ac_compile"
7415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7429 ac_cv_type_signal=int
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 ac_cv_type_signal=void
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7440 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7442 cat >>confdefs.h <<_ACEOF
7443 #define RETSIGTYPE $ac_cv_type_signal
7448 { echo "$as_me:$LINENO: checking for speed_t" >&5
7449 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7450 if test "${emacs_cv_speed_t+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <termios.h>
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7472 *) ac_try_echo
=$ac_try;;
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1
>conftest.err
7479 cat conftest.err
>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.
$ac_objext; then
7485 emacs_cv_speed_t
=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.
$ac_ext >&5
7493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7495 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7496 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7497 if test $emacs_cv_speed_t = yes; then
7499 cat >>confdefs.h
<<\_ACEOF
7500 #define HAVE_SPEED_T 1
7505 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7506 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7507 if test "${emacs_cv_struct_timeval+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 cat >conftest.
$ac_ext <<_ACEOF
7513 cat confdefs.h
>>conftest.
$ac_ext
7514 cat >>conftest.
$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 #ifdef TIME_WITH_SYS_TIME
7517 #include <sys/time.h>
7520 #ifdef HAVE_SYS_TIME_H
7521 #include <sys/time.h>
7529 static struct timeval x; x.tv_sec = x.tv_usec;
7534 rm -f conftest.
$ac_objext
7535 if { (ac_try
="$ac_compile"
7537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.$ac_objext; then
7551 emacs_cv_struct_timeval=yes
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7556 emacs_cv_struct_timeval=no
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7562 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7563 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7564 if test $emacs_cv_struct_timeval = yes; then
7566 cat >>confdefs.h <<\_ACEOF
7567 #define HAVE_TIMEVAL 1
7572 { echo "$as_me:$LINENO: checking for struct exception" >&5
7573 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7574 if test "${emacs_cv_struct_exception+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 cat >conftest.$ac_ext <<_ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7587 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7592 rm -f conftest.$ac_objext
7593 if { (ac_try="$ac_compile"
7595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7596 *) ac_try_echo
=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1
>conftest.err
7603 cat conftest.err
>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.
$ac_objext; then
7609 emacs_cv_struct_exception
=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.
$ac_ext >&5
7614 emacs_cv_struct_exception
=no
7617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7620 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7621 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7622 if test $emacs_cv_struct_exception != yes; then
7624 cat >>confdefs.h
<<\_ACEOF
7625 #define NO_MATHERR 1
7631 for ac_header
in sys
/socket.h
7633 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7637 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_res
=`eval echo '${'$as_ac_Header'}'`
7641 { echo "$as_me:$LINENO: result: $ac_res" >&5
7642 echo "${ECHO_T}$ac_res" >&6; }
7644 # Is the header compilable?
7645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7647 cat >conftest.
$ac_ext <<_ACEOF
7650 cat confdefs.h
>>conftest.
$ac_ext
7651 cat >>conftest.
$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 #include <$ac_header>
7656 rm -f conftest.
$ac_objext
7657 if { (ac_try
="$ac_compile"
7659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7665 grep -v '^ *+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_header_compiler=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_header_compiler=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 echo "${ECHO_T}$ac_header_compiler" >&6; }
7685 # Is the header present?
7686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7688 cat >conftest.$ac_ext <<_ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <$ac_header>
7696 if { (ac_try="$ac_cpp conftest.$ac_ext"
7698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7699 *) ac_try_echo
=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1
>conftest.err
7706 cat conftest.err
>&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } >/dev
/null
&& {
7709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7712 ac_header_preproc
=yes
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.
$ac_ext >&5
7717 ac_header_preproc
=no
7720 rm -f conftest.err conftest.
$ac_ext
7721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7722 echo "${ECHO_T}$ac_header_preproc" >&6; }
7724 # So? What about this header?
7725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7731 ac_header_preproc
=yes
7734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7751 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 eval "$as_ac_Header=\$ac_header_preproc"
7756 ac_res
=`eval echo '${'$as_ac_Header'}'`
7757 { echo "$as_me:$LINENO: result: $ac_res" >&5
7758 echo "${ECHO_T}$ac_res" >&6; }
7761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7762 cat >>confdefs.h
<<_ACEOF
7763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7771 for ac_header
in net
/if.h
7773 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7776 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 cat >conftest.
$ac_ext <<_ACEOF
7782 cat confdefs.h
>>conftest.
$ac_ext
7783 cat >>conftest.
$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 $ac_includes_default
7786 #if HAVE_SYS_SOCKET_H
7787 #include <sys/socket.h>
7790 #include <$ac_header>
7792 rm -f conftest.
$ac_objext
7793 if { (ac_try
="$ac_compile"
7795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1 >conftest.err
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.$ac_objext; then
7809 eval "$as_ac_Header=yes"
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 eval "$as_ac_Header=no"
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 ac_res=`eval echo '${'$as_ac_Header'}'`
7820 { echo "$as_me:$LINENO: result: $ac_res" >&5
7821 echo "${ECHO_T}$ac_res" >&6; }
7822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7823 cat >>confdefs.h <<_ACEOF
7824 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7832 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7833 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7834 if test "${ac_cv_struct_tm+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 #include <sys/types.h>
7850 int *p = &tm.tm_sec;
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7860 *) ac_try_echo
=$ac_try;;
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1
>conftest.err
7867 cat conftest.err
>&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.
$ac_objext; then
7873 ac_cv_struct_tm
=time.h
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.
$ac_ext >&5
7878 ac_cv_struct_tm
=sys
/time.h
7881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7883 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7884 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7885 if test $ac_cv_struct_tm = sys
/time.h
; then
7887 cat >>confdefs.h
<<\_ACEOF
7888 #define TM_IN_SYS_TIME 1
7893 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7894 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7895 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 cat >conftest.
$ac_ext <<_ACEOF
7901 cat confdefs.h
>>conftest.
$ac_ext
7902 cat >>conftest.
$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <sys/types.h>
7905 #include <$ac_cv_struct_tm>
7911 static struct tm ac_aggr;
7912 if (ac_aggr.tm_zone)
7918 rm -f conftest.
$ac_objext
7919 if { (ac_try
="$ac_compile"
7921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_compile") 2>conftest.er1
7927 grep -v '^ *+' conftest.er1 >conftest.err
7929 cat conftest.err >&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } && {
7932 test -z "$ac_c_werror_flag" ||
7933 test ! -s conftest.err
7934 } && test -s conftest.$ac_objext; then
7935 ac_cv_member_struct_tm_tm_zone=yes
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <sys/types.h>
7947 #include <$ac_cv_struct_tm>
7953 static struct tm ac_aggr;
7954 if (sizeof ac_aggr.tm_zone)
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7964 *) ac_try_echo
=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1
>conftest.err
7971 cat conftest.err
>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.
$ac_objext; then
7977 ac_cv_member_struct_tm_tm_zone
=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.
$ac_ext >&5
7982 ac_cv_member_struct_tm_tm_zone
=no
7985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7991 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7992 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7994 cat >>confdefs.h
<<_ACEOF
7995 #define HAVE_STRUCT_TM_TM_ZONE 1
8001 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8003 cat >>confdefs.h
<<\_ACEOF
8004 #define HAVE_TM_ZONE 1
8008 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8009 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8010 if test "${ac_cv_have_decl_tzname+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 cat >conftest.
$ac_ext <<_ACEOF
8016 cat confdefs.h
>>conftest.
$ac_ext
8017 cat >>conftest.
$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8032 rm -f conftest.
$ac_objext
8033 if { (ac_try
="$ac_compile"
8035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 ac_cv_have_decl_tzname=yes
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 ac_cv_have_decl_tzname=no
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8060 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8061 if test $ac_cv_have_decl_tzname = yes; then
8063 cat >>confdefs.h <<_ACEOF
8064 #define HAVE_DECL_TZNAME 1
8069 cat >>confdefs.h <<_ACEOF
8070 #define HAVE_DECL_TZNAME 0
8077 { echo "$as_me:$LINENO: checking for tzname" >&5
8078 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8079 if test "${ac_cv_var_tzname+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8089 #if !HAVE_DECL_TZNAME
8090 extern char *tzname[];
8096 return tzname[0][0];
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (ac_try="$ac_link"
8104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8105 *) ac_try_echo
=$ac_try;;
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_link") 2>conftest.er1
8110 grep -v '^ *+' conftest.er1
>conftest.err
8112 cat conftest.err
>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest
$ac_exeext &&
8118 $as_test_x conftest
$ac_exeext; then
8119 ac_cv_var_tzname
=yes
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8128 conftest
$ac_exeext conftest.
$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8131 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8132 if test $ac_cv_var_tzname = yes; then
8134 cat >>confdefs.h
<<\_ACEOF
8135 #define HAVE_TZNAME 1
8141 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8142 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8143 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 cat >conftest.
$ac_ext <<_ACEOF
8149 cat confdefs.h
>>conftest.
$ac_ext
8150 cat >>conftest.
$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8157 static struct tm ac_aggr;
8158 if (ac_aggr.tm_gmtoff)
8164 rm -f conftest.
$ac_objext
8165 if { (ac_try
="$ac_compile"
8167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8173 grep -v '^ *+' conftest.er1 >conftest.err
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8181 ac_cv_member_struct_tm_tm_gmtoff=yes
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 cat >conftest.$ac_ext <<_ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8197 static struct tm ac_aggr;
8198 if (sizeof ac_aggr.tm_gmtoff)
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8208 *) ac_try_echo
=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1
>conftest.err
8215 cat conftest.err
>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.
$ac_objext; then
8221 ac_cv_member_struct_tm_tm_gmtoff
=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8226 ac_cv_member_struct_tm_tm_gmtoff
=no
8229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8235 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8236 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8238 cat >>confdefs.h
<<\_ACEOF
8239 #define HAVE_TM_GMTOFF 1
8244 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8245 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8246 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 cat >conftest.
$ac_ext <<_ACEOF
8252 cat confdefs.h
>>conftest.
$ac_ext
8253 cat >>conftest.
$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 #if HAVE_SYS_SOCKET_H
8257 #include <sys/socket.h>
8266 static struct ifreq ac_aggr;
8267 if (ac_aggr.ifr_flags)
8273 rm -f conftest.
$ac_objext
8274 if { (ac_try
="$ac_compile"
8276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8282 grep -v '^ *+' conftest.er1 >conftest.err
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest.$ac_objext; then
8290 ac_cv_member_struct_ifreq_ifr_flags=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8302 #if HAVE_SYS_SOCKET_H
8303 #include <sys/socket.h>
8312 static struct ifreq ac_aggr;
8313 if (sizeof ac_aggr.ifr_flags)
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8323 *) ac_try_echo
=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1
>conftest.err
8330 cat conftest.err
>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest.
$ac_objext; then
8336 ac_cv_member_struct_ifreq_ifr_flags
=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.
$ac_ext >&5
8341 ac_cv_member_struct_ifreq_ifr_flags
=no
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8350 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8351 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8353 cat >>confdefs.h
<<_ACEOF
8354 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8359 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8360 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8361 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.
$ac_ext <<_ACEOF
8367 cat confdefs.h
>>conftest.
$ac_ext
8368 cat >>conftest.
$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #if HAVE_SYS_SOCKET_H
8372 #include <sys/socket.h>
8381 static struct ifreq ac_aggr;
8382 if (ac_aggr.ifr_hwaddr)
8388 rm -f conftest.
$ac_objext
8389 if { (ac_try
="$ac_compile"
8391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 $ac_includes_default
8417 #if HAVE_SYS_SOCKET_H
8418 #include <sys/socket.h>
8427 static struct ifreq ac_aggr;
8428 if (sizeof ac_aggr.ifr_hwaddr)
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8438 *) ac_try_echo
=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8443 grep -v '^ *+' conftest.er1
>conftest.err
8445 cat conftest.err
>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.
$ac_objext; then
8451 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.
$ac_ext >&5
8456 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8465 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8466 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8468 cat >>confdefs.h
<<_ACEOF
8469 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8474 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8475 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8476 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 cat >conftest.
$ac_ext <<_ACEOF
8482 cat confdefs.h
>>conftest.
$ac_ext
8483 cat >>conftest.
$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 #if HAVE_SYS_SOCKET_H
8487 #include <sys/socket.h>
8496 static struct ifreq ac_aggr;
8497 if (ac_aggr.ifr_netmask)
8503 rm -f conftest.
$ac_objext
8504 if { (ac_try
="$ac_compile"
8506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_compile") 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } && {
8517 test -z "$ac_c_werror_flag" ||
8518 test ! -s conftest.err
8519 } && test -s conftest.$ac_objext; then
8520 ac_cv_member_struct_ifreq_ifr_netmask=yes
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 #if HAVE_SYS_SOCKET_H
8533 #include <sys/socket.h>
8542 static struct ifreq ac_aggr;
8543 if (sizeof ac_aggr.ifr_netmask)
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8553 *) ac_try_echo
=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1
>conftest.err
8560 cat conftest.err
>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.
$ac_objext; then
8566 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.
$ac_ext >&5
8571 ac_cv_member_struct_ifreq_ifr_netmask
=no
8574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8579 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8580 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8581 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8583 cat >>confdefs.h
<<_ACEOF
8584 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8589 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8590 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8591 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 cat >conftest.
$ac_ext <<_ACEOF
8597 cat confdefs.h
>>conftest.
$ac_ext
8598 cat >>conftest.
$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8601 #if HAVE_SYS_SOCKET_H
8602 #include <sys/socket.h>
8611 static struct ifreq ac_aggr;
8612 if (ac_aggr.ifr_broadaddr)
8618 rm -f conftest.
$ac_objext
8619 if { (ac_try
="$ac_compile"
8621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_compile") 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && {
8632 test -z "$ac_c_werror_flag" ||
8633 test ! -s conftest.err
8634 } && test -s conftest.$ac_objext; then
8635 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 $ac_includes_default
8647 #if HAVE_SYS_SOCKET_H
8648 #include <sys/socket.h>
8657 static struct ifreq ac_aggr;
8658 if (sizeof ac_aggr.ifr_broadaddr)
8664 rm -f conftest.$ac_objext
8665 if { (ac_try="$ac_compile"
8667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8668 *) ac_try_echo
=$ac_try;;
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_compile") 2>conftest.er1
8673 grep -v '^ *+' conftest.er1
>conftest.err
8675 cat conftest.err
>&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } && {
8678 test -z "$ac_c_werror_flag" ||
8679 test ! -s conftest.err
8680 } && test -s conftest.
$ac_objext; then
8681 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.
$ac_ext >&5
8686 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8695 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8696 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8698 cat >>confdefs.h
<<_ACEOF
8699 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8704 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8705 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8706 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.
$ac_ext <<_ACEOF
8712 cat confdefs.h
>>conftest.
$ac_ext
8713 cat >>conftest.
$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 $ac_includes_default
8716 #if HAVE_SYS_SOCKET_H
8717 #include <sys/socket.h>
8726 static struct ifreq ac_aggr;
8727 if (ac_aggr.ifr_addr)
8733 rm -f conftest.
$ac_objext
8734 if { (ac_try
="$ac_compile"
8736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_compile") 2>conftest.er1
8742 grep -v '^ *+' conftest.er1 >conftest.err
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } && {
8747 test -z "$ac_c_werror_flag" ||
8748 test ! -s conftest.err
8749 } && test -s conftest.$ac_objext; then
8750 ac_cv_member_struct_ifreq_ifr_addr=yes
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 cat >conftest.$ac_ext <<_ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8761 $ac_includes_default
8762 #if HAVE_SYS_SOCKET_H
8763 #include <sys/socket.h>
8772 static struct ifreq ac_aggr;
8773 if (sizeof ac_aggr.ifr_addr)
8779 rm -f conftest.$ac_objext
8780 if { (ac_try="$ac_compile"
8782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8783 *) ac_try_echo
=$ac_try;;
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8788 grep -v '^ *+' conftest.er1
>conftest.err
8790 cat conftest.err
>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.
$ac_objext; then
8796 ac_cv_member_struct_ifreq_ifr_addr
=yes
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.
$ac_ext >&5
8801 ac_cv_member_struct_ifreq_ifr_addr
=no
8804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8809 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8810 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8811 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8813 cat >>confdefs.h
<<_ACEOF
8814 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8822 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8823 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8824 if test "$ac_cv_prog_cc_c89" != no
; then
8825 { echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6; }
8828 cat >>confdefs.h
<<\_ACEOF
8829 #define PROTOTYPES 1
8833 cat >>confdefs.h
<<\_ACEOF
8834 #define __PROTOTYPES 1
8838 { echo "$as_me:$LINENO: result: no" >&5
8839 echo "${ECHO_T}no" >&6; }
8842 { echo "$as_me:$LINENO: checking for working volatile" >&5
8843 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8844 if test "${ac_cv_c_volatile+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 cat >conftest.
$ac_ext <<_ACEOF
8850 cat confdefs.h
>>conftest.
$ac_ext
8851 cat >>conftest.
$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8859 int * volatile y = (int *) 0;
8865 rm -f conftest.
$ac_objext
8866 if { (ac_try
="$ac_compile"
8868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_compile") 2>conftest.er1
8874 grep -v '^ *+' conftest.er1 >conftest.err
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && {
8879 test -z "$ac_c_werror_flag" ||
8880 test ! -s conftest.err
8881 } && test -s conftest.$ac_objext; then
8882 ac_cv_c_volatile=yes
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8893 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8894 if test $ac_cv_c_volatile = no; then
8896 cat >>confdefs.h <<\_ACEOF
8902 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8903 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8904 if test "${ac_cv_c_const+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8917 /* FIXME: Include the comments suggested by Paul. */
8919 /* Ultrix mips cc rejects this. */
8920 typedef int charset[2];
8922 /* SunOS 4.1.1 cc rejects this. */
8923 char const *const *pcpcc;
8925 /* NEC SVR4.0.2 mips cc rejects this. */
8926 struct point {int x, y;};
8927 static struct point const zero = {0,0};
8928 /* AIX XL C 1.02.0.0 rejects this.
8929 It does not let you subtract one const X* pointer from another in
8930 an arm of an if-expression whose if-part is not a constant
8932 const char *g = "string";
8933 pcpcc = &g + (g ? g-g : 0);
8934 /* HPUX 7.0 cc rejects these. */
8936 ppc = (char**) pcpcc;
8937 pcpcc = (char const *const *) ppc;
8938 { /* SCO 3.2v4 cc rejects this. */
8940 char const *s = 0 ? (char *) 0 : (char const *) 0;
8945 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8947 const int *foo = &x[0];
8950 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8951 typedef const int *iptr;
8955 { /* AIX XL C 1.02.0.0 rejects this saying
8956 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8957 struct s { int j; const int *ap[3]; };
8958 struct s *b; b->j = 5;
8960 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8964 return !cs[0] && !zero.x;
8971 rm -f conftest.$ac_objext
8972 if { (ac_try="$ac_compile"
8974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8975 *) ac_try_echo
=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_compile") 2>conftest.er1
8980 grep -v '^ *+' conftest.er1
>conftest.err
8982 cat conftest.err
>&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest.
$ac_objext; then
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.
$ac_ext >&5
8996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8998 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8999 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9000 if test $ac_cv_c_const = no
; then
9002 cat >>confdefs.h
<<\_ACEOF
9008 { echo "$as_me:$LINENO: checking for void * support" >&5
9009 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9010 if test "${emacs_cv_void_star+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 cat >conftest.
$ac_ext <<_ACEOF
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9028 rm -f conftest.
$ac_objext
9029 if { (ac_try
="$ac_compile"
9031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_compile") 2>conftest.er1
9037 grep -v '^ *+' conftest.er1 >conftest.err
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } && {
9042 test -z "$ac_c_werror_flag" ||
9043 test ! -s conftest.err
9044 } && test -s conftest.$ac_objext; then
9045 emacs_cv_void_star=yes
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9050 emacs_cv_void_star=no
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9055 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9056 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9057 if test $emacs_cv_void_star = yes; then
9058 cat >>confdefs.h <<\_ACEOF
9059 #define POINTER_TYPE void
9063 cat >>confdefs.h <<\_ACEOF
9064 #define POINTER_TYPE char
9073 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9074 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9075 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9076 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 cat >conftest.make <<\_ACEOF
9082 @echo '@@@%%%=$(MAKE)=@@@%%%'
9084 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9085 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9087 eval ac_cv_prog_make_${ac_make}_set=yes;;
9089 eval ac_cv_prog_make_${ac_make}_set=no;;
9093 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9094 { echo "$as_me:$LINENO: result: yes" >&5
9095 echo "${ECHO_T}yes" >&6; }
9098 { echo "$as_me:$LINENO: result: no" >&5
9099 echo "${ECHO_T}no" >&6; }
9100 SET_MAKE="MAKE=${MAKE-make}"
9104 { echo "$as_me:$LINENO: checking for long file names" >&5
9105 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9106 if test "${ac_cv_sys_long_file_names+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 ac_cv_sys_long_file_names=yes
9110 # Test for long file names in all the places we know might matter:
9111 # . the current directory, where building will happen
9112 # $prefix/lib where we will be installing things
9113 # $exec_prefix/lib likewise
9114 # $TMPDIR if set, where it might want to write temporary files
9115 # /tmp where it might want to write temporary files
9118 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9119 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9120 # in the usual case where exec_prefix is '${prefix}'.
9122 . | /* | ?:[\\/]*) ;; #(
9125 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9126 ac_xdir=$ac_dir/cf$$
9127 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9128 ac_tf1=$ac_xdir/conftest9012345
9129 ac_tf2=$ac_xdir/conftest9012346
9130 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9131 ac_cv_sys_long_file_names=no
9132 rm -f -r "$ac_xdir" 2>/dev/null
9133 test $ac_cv_sys_long_file_names = no && break
9136 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9137 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9138 if test $ac_cv_sys_long_file_names = yes; then
9140 cat >>confdefs.h <<\_ACEOF
9141 #define HAVE_LONG_FILE_NAMES 1
9147 #### Choose a window system.
9149 { echo "$as_me:$LINENO: checking for X" >&5
9150 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9153 # Check whether --with-x was given.
9154 if test "${with_x+set}" = set; then
9158 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9159 if test "x$with_x" = xno; then
9160 # The user explicitly disabled X.
9163 case $x_includes,$x_libraries in #(
9164 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9165 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9166 { (exit 1); exit 1; }; };; #(
9167 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 # One or both of the vars are not set, and there is no cached value.
9171 ac_x_includes=no ac_x_libraries=no
9172 rm -f -r conftest.dir
9173 if mkdir conftest.dir; then
9175 cat >Imakefile <<'_ACEOF'
9177 @echo incroot='${INCROOT}'
9179 @echo usrlibdir='${USRLIBDIR}'
9181 @echo libdir='${LIBDIR}'
9183 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9184 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9185 for ac_var in incroot usrlibdir libdir; do
9186 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9188 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9189 for ac_extension in a so sl; do
9190 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9191 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9192 ac_im_usrlibdir=$ac_im_libdir; break
9195 # Screen out bogus values from the imake configuration. They are
9196 # bogus both because they are the default anyway, and because
9197 # using them would break gcc on systems where it needs fixed includes.
9198 case $ac_im_incroot in
9199 /usr/include) ac_x_includes= ;;
9200 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9202 case $ac_im_usrlibdir in
9204 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9208 rm -f -r conftest.dir
9211 # Standard set of common directories for X headers.
9212 # Check X11 before X11Rn because it is often a symlink to the current release.
9224 /usr/local/X11/include
9225 /usr/local/X11R6/include
9226 /usr/local/X11R5/include
9227 /usr/local/X11R4/include
9229 /usr/local/include/X11
9230 /usr/local/include/X11R6
9231 /usr/local/include/X11R5
9232 /usr/local/include/X11R4
9236 /usr/XFree86/include/X11
9240 /usr/unsupported/include
9242 /usr/local/x11r5/include
9243 /usr/lpp/Xamples/include
9245 /usr/openwin/include
9246 /usr/openwin/share/include'
9248 if test "$ac_x_includes" = no; then
9249 # Guess where to find include files, by looking for Xlib.h.
9250 # First, try using that file with no special directory specified.
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <X11/Xlib.h>
9259 if { (ac_try="$ac_cpp conftest.$ac_ext"
9261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9262 *) ac_try_echo
=$ac_try;;
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1
>conftest.err
9269 cat conftest.err
>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } >/dev
/null
&& {
9272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9275 # We can compile using X headers with no special include directory.
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.
$ac_ext >&5
9281 for ac_dir
in $ac_x_header_dirs; do
9282 if test -r "$ac_dir/X11/Xlib.h"; then
9283 ac_x_includes
=$ac_dir
9289 rm -f conftest.err conftest.
$ac_ext
9290 fi # $ac_x_includes = no
9292 if test "$ac_x_libraries" = no
; then
9293 # Check for the libraries.
9294 # See if we find them without any special options.
9295 # Don't add to $LIBS permanently.
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 #include <X11/Xlib.h>
9313 rm -f conftest.
$ac_objext conftest
$ac_exeext
9314 if { (ac_try
="$ac_link"
9316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_link") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext &&
9330 $as_test_x conftest$ac_exeext; then
9332 # We can link X programs with no special library path.
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9339 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9341 # Don't even attempt the hair of trying to link an X program!
9342 for ac_extension in a so sl; do
9343 if test -r "$ac_dir/libX11.$ac_extension"; then
9344 ac_x_libraries=$ac_dir
9351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9352 conftest$ac_exeext conftest.$ac_ext
9353 fi # $ac_x_libraries = no
9355 case $ac_x_includes,$ac_x_libraries in #(
9357 # Didn't find X, or a directory has "'" in its name.
9358 ac_cv_have_x="have_x=no";; #(
9360 # Record where we found X for the cache.
9361 ac_cv_have_x="have_x=yes\
9362 ac_x_includes='$ac_x_includes'\
9363 ac_x_libraries='$ac_x_libraries'"
9369 eval "$ac_cv_have_x"
9372 if test "$have_x" != yes; then
9373 { echo "$as_me:$LINENO: result: $have_x" >&5
9374 echo "${ECHO_T}$have_x" >&6; }
9377 # If each of the values was on the command line, it overrides each guess.
9378 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9379 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9380 # Update the cache value to reflect the command line values.
9381 ac_cv_have_x="have_x=yes\
9382 ac_x_includes='$x_includes'\
9383 ac_x_libraries='$x_libraries'"
9384 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9385 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9388 if test "$no_x" = yes; then
9394 if test "${x_libraries}" != NONE; then
9395 if test -n "${x_libraries}"; then
9396 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9397 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9399 x_default_search_path=""
9400 x_search_path=${x_libraries}
9401 if test -z "${x_search_path}"; then
9402 x_search_path=/usr/lib
9404 for x_library in `echo ${x_search_path}: | \
9405 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9407 ${x_library}/X11/%L/%T/%N%C%S:\
9408 ${x_library}/X11/%l/%T/%N%C%S:\
9409 ${x_library}/X11/%T/%N%C%S:\
9410 ${x_library}/X11/%L/%T/%N%S:\
9411 ${x_library}/X11/%l/%T/%N%S:\
9412 ${x_library}/X11/%T/%N%S"
9413 if test x"${x_default_search_path}" = x; then
9414 x_default_search_path=${x_search_path}
9416 x_default_search_path="${x_search_path}:${x_default_search_path}"
9420 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9421 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9424 if test x"${x_includes}" = x; then
9425 bitmapdir=/usr/include/X11/bitmaps
9427 # accumulate include directories that have X11 bitmap subdirectories
9429 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9430 if test -d "${bmd}/X11/bitmaps"; then
9431 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9433 if test -d "${bmd}/bitmaps"; then
9434 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9437 if test ${bmd_acc} != "dummyval"; then
9438 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9443 if test "${with_carbon}" != no; then
9444 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9445 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9446 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9447 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9451 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9453 # Is the header compilable?
9454 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9455 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9456 cat >conftest.$ac_ext <<_ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 $ac_includes_default
9463 #include <Carbon/Carbon.h>
9465 rm -f conftest.$ac_objext
9466 if { (ac_try="$ac_compile"
9468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9469 *) ac_try_echo
=$ac_try;;
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9474 grep -v '^ *+' conftest.er1
>conftest.err
9476 cat conftest.err
>&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.
$ac_objext; then
9482 ac_header_compiler
=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.
$ac_ext >&5
9487 ac_header_compiler
=no
9490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9492 echo "${ECHO_T}$ac_header_compiler" >&6; }
9494 # Is the header present?
9495 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9496 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9497 cat >conftest.
$ac_ext <<_ACEOF
9500 cat confdefs.h
>>conftest.
$ac_ext
9501 cat >>conftest.
$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 #include <Carbon/Carbon.h>
9505 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } >/dev/null && {
9518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9521 ac_header_preproc=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_header_preproc=no
9529 rm -f conftest.err conftest.$ac_ext
9530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9531 echo "${ECHO_T}$ac_header_preproc" >&6; }
9533 # So? What about this header?
9534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9536 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9537 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9539 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9540 ac_header_preproc=yes
9543 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9544 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9546 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9547 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9548 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9549 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9550 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9551 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9552 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9554 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9558 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9559 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9560 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9565 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9566 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9569 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9575 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9576 if test "${with_carbon+set}" != set \
9577 && test "${carbon_appdir_x+set}" != set; then
9578 for var in with_x with_x_toolkit with_gtk with_xim \
9579 with_xpm with_jpeg with_tiff with_gif with_png; do
9580 if eval test \"\${$var+set}\" = set; then
9587 if test "${HAVE_CARBON}" = yes; then
9591 case "${window_system}" in
9595 case "${with_x_toolkit}" in
9596 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9597 motif ) USE_X_TOOLKIT=MOTIF ;;
9599 USE_X_TOOLKIT=none ;;
9600 no ) USE_X_TOOLKIT=none ;;
9602 if test x"$with_gtk" = xyes; then
9617 ### If we're using X11, we should use the X menu package.
9620 yes ) HAVE_MENUS=yes ;;
9623 if test "${opsys}" = "hpux9"; then
9624 case "${x_libraries}" in
9626 opsysfile="s/hpux9-x11r4.h"
9631 if test "${opsys}" = "hpux9shr"; then
9632 case "${x_libraries}" in
9634 opsysfile="s/hpux9shxr4.h"
9639 ### Compute the unexec source name from the object name.
9640 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9642 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9643 # Assume not, until told otherwise.
9646 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9647 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9648 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9659 #define malloc_get_state innocuous_malloc_get_state
9661 /* System header to define __stub macros and hopefully few prototypes,
9662 which can conflict with char malloc_get_state (); below.
9663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9664 <limits.h> exists even on freestanding compilers. */
9667 # include <limits.h>
9669 # include <assert.h>
9672 #undef malloc_get_state
9674 /* Override any GCC internal prototype to avoid an error.
9675 Use char because int might match the return type of a GCC
9676 builtin and then its argument prototype would still apply. */
9680 char malloc_get_state ();
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9691 return malloc_get_state ();
9696 rm -f conftest.$ac_objext conftest$ac_exeext
9697 if { (ac_try="$ac_link"
9699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9700 *) ac_try_echo
=$ac_try;;
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703 (eval "$ac_link") 2>conftest.er1
9705 grep -v '^ *+' conftest.er1
>conftest.err
9707 cat conftest.err
>&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } && {
9710 test -z "$ac_c_werror_flag" ||
9711 test ! -s conftest.err
9712 } && test -s conftest
$ac_exeext &&
9713 $as_test_x conftest
$ac_exeext; then
9714 ac_cv_func_malloc_get_state
=yes
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.
$ac_ext >&5
9719 ac_cv_func_malloc_get_state
=no
9722 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9723 conftest
$ac_exeext conftest.
$ac_ext
9725 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9726 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9727 if test $ac_cv_func_malloc_get_state = yes; then
9733 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9734 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9735 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 cat >conftest.
$ac_ext <<_ACEOF
9741 cat confdefs.h
>>conftest.
$ac_ext
9742 cat >>conftest.
$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9746 #define malloc_set_state innocuous_malloc_set_state
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char malloc_set_state (); below.
9750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9751 <limits.h> exists even on freestanding compilers. */
9754 # include <limits.h>
9756 # include <assert.h>
9759 #undef malloc_set_state
9761 /* Override any GCC internal prototype to avoid an error.
9762 Use char because int might match the return type of a GCC
9763 builtin and then its argument prototype would still apply. */
9767 char malloc_set_state ();
9768 /* The GNU C library defines this for functions which it implements
9769 to always fail with ENOSYS. Some functions are actually named
9770 something starting with __ and the normal name is an alias. */
9771 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9778 return malloc_set_state ();
9783 rm -f conftest.
$ac_objext conftest
$ac_exeext
9784 if { (ac_try
="$ac_link"
9786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext &&
9800 $as_test_x conftest$ac_exeext; then
9801 ac_cv_func_malloc_set_state=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 ac_cv_func_malloc_set_state=no
9809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9810 conftest$ac_exeext conftest.$ac_ext
9812 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9813 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9814 if test $ac_cv_func_malloc_set_state = yes; then
9820 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9821 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9822 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 extern void (* __after_morecore_hook)();
9835 __after_morecore_hook = 0
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9844 *) ac_try_echo
=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>conftest.er1
9849 grep -v '^ *+' conftest.er1
>conftest.err
9851 cat conftest.err
>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && {
9854 test -z "$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest
$ac_exeext &&
9857 $as_test_x conftest
$ac_exeext; then
9858 emacs_cv_var___after_morecore_hook
=yes
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.
$ac_ext >&5
9863 emacs_cv_var___after_morecore_hook
=no
9866 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9867 conftest
$ac_exeext conftest.
$ac_ext
9869 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9870 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9871 if test $emacs_cv_var___after_morecore_hook = no
; then
9874 if test "${system_malloc}" = "yes"; then
9877 (The GNU allocators don't work with this system configuration.)"
9879 if test "$doug_lea_malloc" = "yes" ; then
9880 if test "$GNU_MALLOC" = yes ; then
9882 (Using Doug Lea's new malloc from the GNU C Library.)"
9885 cat >>confdefs.h
<<\_ACEOF
9886 #define DOUG_LEA_MALLOC 1
9891 if test x
"${REL_ALLOC}" = x
; then
9892 REL_ALLOC
=${GNU_MALLOC}
9898 for ac_header
in stdlib.h unistd.h
9900 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9901 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9904 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 ac_res
=`eval echo '${'$as_ac_Header'}'`
9908 { echo "$as_me:$LINENO: result: $ac_res" >&5
9909 echo "${ECHO_T}$ac_res" >&6; }
9911 # Is the header compilable?
9912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9914 cat >conftest.
$ac_ext <<_ACEOF
9917 cat confdefs.h
>>conftest.
$ac_ext
9918 cat >>conftest.
$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9921 #include <$ac_header>
9923 rm -f conftest.
$ac_objext
9924 if { (ac_try
="$ac_compile"
9926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 ac_header_compiler=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_header_compiler=no
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9950 echo "${ECHO_T}$ac_header_compiler" >&6; }
9952 # Is the header present?
9953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9955 cat >conftest.$ac_ext <<_ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 #include <$ac_header>
9963 if { (ac_try="$ac_cpp conftest.$ac_ext"
9965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9966 *) ac_try_echo
=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9971 grep -v '^ *+' conftest.er1
>conftest.err
9973 cat conftest.err
>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } >/dev
/null
&& {
9976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9979 ac_header_preproc
=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.
$ac_ext >&5
9984 ac_header_preproc
=no
9987 rm -f conftest.err conftest.
$ac_ext
9988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9989 echo "${ECHO_T}$ac_header_preproc" >&6; }
9991 # So? What about this header?
9992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9998 ac_header_preproc
=yes
10001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10018 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 eval "$as_ac_Header=\$ac_header_preproc"
10023 ac_res
=`eval echo '${'$as_ac_Header'}'`
10024 { echo "$as_me:$LINENO: result: $ac_res" >&5
10025 echo "${ECHO_T}$ac_res" >&6; }
10028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10029 cat >>confdefs.h
<<_ACEOF
10030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10038 for ac_func
in getpagesize
10040 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10043 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 cat >conftest.
$ac_ext <<_ACEOF
10049 cat confdefs.h
>>conftest.
$ac_ext
10050 cat >>conftest.
$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10054 #define $ac_func innocuous_$ac_func
10056 /* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char $ac_func (); below.
10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059 <limits.h> exists even on freestanding compilers. */
10062 # include <limits.h>
10064 # include <assert.h>
10069 /* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10076 /* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079 #if defined __stub_$ac_func || defined __stub___$ac_func
10086 return $ac_func ();
10091 rm -f conftest.
$ac_objext conftest
$ac_exeext
10092 if { (ac_try
="$ac_link"
10093 case "(($ac_try" in
10094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_link") 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest$ac_exeext &&
10108 $as_test_x conftest$ac_exeext; then
10109 eval "$as_ac_var=yes"
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 eval "$as_ac_var=no"
10117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10120 ac_res=`eval echo '${'$as_ac_var'}'`
10121 { echo "$as_me:$LINENO: result: $ac_res" >&5
10122 echo "${ECHO_T}$ac_res" >&6; }
10123 if test `eval echo '${'$as_ac_var'}'` = yes; then
10124 cat >>confdefs.h <<_ACEOF
10125 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10131 { echo "$as_me:$LINENO: checking for working mmap" >&5
10132 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10133 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 if test "$cross_compiling" = yes; then
10137 ac_cv_func_mmap_fixed_mapped=no
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 $ac_includes_default
10146 /* malloc might have been renamed as rpl_malloc. */
10149 /* Thanks to Mike Haertel and Jim Avera for this test.
10150 Here is a matrix of mmap possibilities:
10151 mmap private not fixed
10152 mmap private fixed at somewhere currently unmapped
10153 mmap private fixed at somewhere already mapped
10154 mmap shared not fixed
10155 mmap shared fixed at somewhere currently unmapped
10156 mmap shared fixed at somewhere already mapped
10157 For private mappings, we should verify that changes cannot be read()
10158 back from the file, nor mmap's back from the file at a different
10159 address. (There have been systems where private was not correctly
10160 implemented like the infamous i386 svr4.0, and systems where the
10161 VM page cache was not coherent with the file system buffer cache
10162 like early versions of FreeBSD and possibly contemporary NetBSD.)
10163 For shared mappings, we should conversely verify that changes get
10164 propagated back to all the places they're supposed to be.
10166 Grep wants private fixed already mapped.
10167 The main things grep needs to know about mmap are:
10168 * does it exist and is it safe to write into the mmap'd area
10169 * how to use it (BSD variants) */
10172 #include <sys/mman.h>
10174 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10178 /* This mess was copied from the GNU getpagesize.h. */
10179 #ifndef HAVE_GETPAGESIZE
10180 /* Assume that all systems that can run configure have sys/param.h. */
10181 # ifndef HAVE_SYS_PARAM_H
10182 # define HAVE_SYS_PARAM_H 1
10185 # ifdef _SC_PAGESIZE
10186 # define getpagesize() sysconf(_SC_PAGESIZE)
10187 # else /* no _SC_PAGESIZE */
10188 # ifdef HAVE_SYS_PARAM_H
10189 # include <sys/param.h>
10190 # ifdef EXEC_PAGESIZE
10191 # define getpagesize() EXEC_PAGESIZE
10192 # else /* no EXEC_PAGESIZE */
10194 # define getpagesize() NBPG * CLSIZE
10197 # endif /* no CLSIZE */
10198 # else /* no NBPG */
10200 # define getpagesize() NBPC
10201 # else /* no NBPC */
10203 # define getpagesize() PAGESIZE
10204 # endif /* PAGESIZE */
10205 # endif /* no NBPC */
10206 # endif /* no NBPG */
10207 # endif /* no EXEC_PAGESIZE */
10208 # else /* no HAVE_SYS_PARAM_H */
10209 # define getpagesize() 8192 /* punt totally */
10210 # endif /* no HAVE_SYS_PARAM_H */
10211 # endif /* no _SC_PAGESIZE */
10213 #endif /* no HAVE_GETPAGESIZE */
10218 char *data, *data2, *data3;
10222 pagesize = getpagesize ();
10224 /* First, make a file with some known garbage in it. */
10225 data = (char *) malloc (pagesize);
10228 for (i = 0; i < pagesize; ++i)
10229 *(data + i) = rand ();
10231 fd = creat ("conftest.mmap", 0600);
10234 if (write (fd, data, pagesize) != pagesize)
10238 /* Next, try to mmap the file at a fixed address which already has
10239 something else allocated at it. If we can, also make sure that
10240 we see the same garbage. */
10241 fd = open ("conftest.mmap", O_RDWR);
10244 data2 = (char *) malloc (2 * pagesize);
10247 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10248 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10249 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10251 for (i = 0; i < pagesize; ++i)
10252 if (*(data + i) != *(data2 + i))
10255 /* Finally, make sure that changes to the mapped area do not
10256 percolate back to the file as seen by read(). (This is a bug on
10257 some variants of i386 svr4.0.) */
10258 for (i = 0; i < pagesize; ++i)
10259 *(data2 + i) = *(data2 + i) + 1;
10260 data3 = (char *) malloc (pagesize);
10263 if (read (fd, data3, pagesize) != pagesize)
10265 for (i = 0; i < pagesize; ++i)
10266 if (*(data + i) != *(data3 + i))
10272 rm -f conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10276 *) ac_try_echo
=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_func_mmap_fixed_mapped=yes
10294 echo "$as_me: program exited with status $ac_status" >&5
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ( exit $ac_status )
10299 ac_cv_func_mmap_fixed_mapped=no
10301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10306 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10307 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10308 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_MMAP 1
10315 rm -f conftest.mmap
10317 if test $use_mmap_for_buffers = yes; then
10321 LIBS="$libsrc_libs $LIBS"
10324 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10325 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10326 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-ldnet $LIBS"
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10338 /* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
10348 return dnet_ntoa ();
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10357 *) ac_try_echo
=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1
>conftest.err
10364 cat conftest.err
>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest
$ac_exeext &&
10370 $as_test_x conftest
$ac_exeext; then
10371 ac_cv_lib_dnet_dnet_ntoa
=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.
$ac_ext >&5
10376 ac_cv_lib_dnet_dnet_ntoa
=no
10379 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10380 conftest
$ac_exeext conftest.
$ac_ext
10381 LIBS
=$ac_check_lib_save_LIBS
10383 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10384 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10385 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10386 cat >>confdefs.h
<<_ACEOF
10387 #define HAVE_LIBDNET 1
10390 LIBS
="-ldnet $LIBS"
10395 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10396 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10397 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 ac_check_lib_save_LIBS
=$LIBS
10401 LIBS
="-lXbsd $LIBS"
10402 cat >conftest.
$ac_ext <<_ACEOF
10405 cat confdefs.h
>>conftest.
$ac_ext
10406 cat >>conftest.
$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10418 rm -f conftest.
$ac_objext conftest
$ac_exeext
10419 if { (ac_try
="$ac_link"
10420 case "(($ac_try" in
10421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10427 grep -v '^ *+' conftest.er1 >conftest.err
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext &&
10435 $as_test_x conftest$ac_exeext; then
10436 ac_cv_lib_Xbsd_main=yes
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 ac_cv_lib_Xbsd_main=no
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10446 LIBS=$ac_check_lib_save_LIBS
10448 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10449 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10450 if test $ac_cv_lib_Xbsd_main = yes; then
10451 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10456 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10457 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10458 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-lpthreads $LIBS"
10463 cat >conftest.$ac_ext <<_ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10480 return cma_open ();
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (ac_try="$ac_link"
10487 case "(($ac_try" in
10488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10489 *) ac_try_echo
=$ac_try;;
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_link") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1
>conftest.err
10496 cat conftest.err
>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest
$ac_exeext &&
10502 $as_test_x conftest
$ac_exeext; then
10503 ac_cv_lib_pthreads_cma_open
=yes
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.
$ac_ext >&5
10508 ac_cv_lib_pthreads_cma_open
=no
10511 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10512 conftest
$ac_exeext conftest.
$ac_ext
10513 LIBS
=$ac_check_lib_save_LIBS
10515 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10516 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10517 if test $ac_cv_lib_pthreads_cma_open = yes; then
10518 cat >>confdefs.h
<<_ACEOF
10519 #define HAVE_LIBPTHREADS 1
10522 LIBS
="-lpthreads $LIBS"
10527 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10528 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10529 if test -d /usr
/X386
/include
; then
10531 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10535 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10536 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10541 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10542 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10543 if test "${gdb_cv_bigtoc+set}" = set; then
10544 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10549 *) gdb_cv_bigtoc
=-bbigtoc ;;
10552 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10553 cat >conftest.
$ac_ext <<_ACEOF
10556 cat confdefs.h
>>conftest.
$ac_ext
10557 cat >>conftest.
$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10568 rm -f conftest.
$ac_objext conftest
$ac_exeext
10569 if { (ac_try
="$ac_link"
10570 case "(($ac_try" in
10571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_link") 2>conftest.er1
10577 grep -v '^ *+' conftest.er1 >conftest.err
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && {
10582 test -z "$ac_c_werror_flag" ||
10583 test ! -s conftest.err
10584 } && test -s conftest$ac_exeext &&
10585 $as_test_x conftest$ac_exeext; then
10588 echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10595 conftest$ac_exeext conftest.$ac_ext
10598 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10599 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10603 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10604 # used for the tests that follow. We set them back to REAL_CFLAGS and
10605 # REAL_CPPFLAGS later on.
10607 REAL_CPPFLAGS="$CPPFLAGS"
10609 if test "${HAVE_X11}" = "yes"; then
10610 DEFS="$C_SWITCH_X_SITE $DEFS"
10611 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10613 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10614 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10616 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10617 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10618 # but it's more convenient here to set LD_RUN_PATH
10619 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10620 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10621 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10625 if test "${opsys}" = "gnu-linux"; then
10626 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10627 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10638 XOpenDisplay ("foo");
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10647 *) ac_try_echo
=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10652 grep -v '^ *+' conftest.er1
>conftest.err
10654 cat conftest.err
>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest
$ac_exeext &&
10660 $as_test_x conftest
$ac_exeext; then
10661 xlinux_first_failure
=no
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.
$ac_ext >&5
10666 xlinux_first_failure
=yes
10669 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10670 conftest
$ac_exeext conftest.
$ac_ext
10671 if test "${xlinux_first_failure}" = "yes"; then
10672 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10673 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10674 OLD_CPPFLAGS
="$CPPFLAGS"
10676 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10677 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10678 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10679 LIBS
="$LIBS -b i486-linuxaout"
10680 cat >conftest.
$ac_ext <<_ACEOF
10683 cat confdefs.h
>>conftest.
$ac_ext
10684 cat >>conftest.
$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10690 XOpenDisplay ("foo");
10695 rm -f conftest.
$ac_objext conftest
$ac_exeext
10696 if { (ac_try
="$ac_link"
10697 case "(($ac_try" in
10698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest$ac_exeext &&
10712 $as_test_x conftest$ac_exeext; then
10713 xlinux_second_failure=no
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10718 xlinux_second_failure=yes
10721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10722 conftest$ac_exeext conftest.$ac_ext
10723 if test "${xlinux_second_failure}" = "yes"; then
10724 # If we get the same failure with -b, there is no use adding -b.
10725 # So take it out. This plays safe.
10726 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10727 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10728 CPPFLAGS="$OLD_CPPFLAGS"
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10733 { echo "$as_me:$LINENO: result: yes" >&5
10734 echo "${ECHO_T}yes" >&6; }
10737 { echo "$as_me:$LINENO: result: no" >&5
10738 echo "${ECHO_T}no" >&6; }
10742 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10743 # header files included from there.
10744 { echo "$as_me:$LINENO: checking for Xkb" >&5
10745 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 #include <X11/Xlib.h>
10753 #include <X11/XKBlib.h>
10757 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10762 rm -f conftest.$ac_objext conftest$ac_exeext
10763 if { (ac_try="$ac_link"
10764 case "(($ac_try" in
10765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10766 *) ac_try_echo
=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_link") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1
>conftest.err
10773 cat conftest.err
>&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest
$ac_exeext &&
10779 $as_test_x conftest
$ac_exeext; then
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.
$ac_ext >&5
10788 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10789 conftest
$ac_exeext conftest.
$ac_ext
10790 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10791 echo "${ECHO_T}$emacs_xkb" >&6; }
10792 if test $emacs_xkb = yes; then
10794 cat >>confdefs.h
<<\_ACEOF
10795 #define HAVE_XKBGETKEYBOARD 1
10804 for ac_func
in XrmSetDatabase XScreenResourceString \
10805 XScreenNumberOfScreen XSetWMProtocols
10807 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10808 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10810 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 cat >conftest.
$ac_ext <<_ACEOF
10816 cat confdefs.h
>>conftest.
$ac_ext
10817 cat >>conftest.
$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10821 #define $ac_func innocuous_$ac_func
10823 /* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char $ac_func (); below.
10825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10826 <limits.h> exists even on freestanding compilers. */
10829 # include <limits.h>
10831 # include <assert.h>
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10843 /* The GNU C library defines this for functions which it implements
10844 to always fail with ENOSYS. Some functions are actually named
10845 something starting with __ and the normal name is an alias. */
10846 #if defined __stub_$ac_func || defined __stub___$ac_func
10853 return $ac_func ();
10858 rm -f conftest.
$ac_objext conftest
$ac_exeext
10859 if { (ac_try
="$ac_link"
10860 case "(($ac_try" in
10861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_link") 2>conftest.er1
10867 grep -v '^ *+' conftest.er1 >conftest.err
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest$ac_exeext &&
10875 $as_test_x conftest$ac_exeext; then
10876 eval "$as_ac_var=yes"
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 eval "$as_ac_var=no"
10884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10885 conftest$ac_exeext conftest.$ac_ext
10887 ac_res=`eval echo '${'$as_ac_var'}'`
10888 { echo "$as_me:$LINENO: result: $ac_res" >&5
10889 echo "${ECHO_T}$ac_res" >&6; }
10890 if test `eval echo '${'$as_ac_var'}'` = yes; then
10891 cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10900 if test "${window_system}" = "x11"; then
10901 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10902 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10903 if test "${emacs_cv_x11_version_6+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #include <X11/Xlib.h>
10916 #if XlibSpecificationRelease < 6
10924 rm -f conftest.$ac_objext conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10928 *) ac_try_echo
=$ac_try;;
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_link") 2>conftest.er1
10933 grep -v '^ *+' conftest.er1
>conftest.err
10935 cat conftest.err
>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest
$ac_exeext &&
10941 $as_test_x conftest
$ac_exeext; then
10942 emacs_cv_x11_version_6
=yes
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.
$ac_ext >&5
10947 emacs_cv_x11_version_6
=no
10950 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10951 conftest
$ac_exeext conftest.
$ac_ext
10954 if test $emacs_cv_x11_version_6 = yes; then
10955 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10956 echo "${ECHO_T}6 or newer" >&6; }
10958 cat >>confdefs.h
<<\_ACEOF
10959 #define HAVE_X11R6 1
10963 { echo "$as_me:$LINENO: result: before 6" >&5
10964 echo "${ECHO_T}before 6" >&6; }
10968 if test "${window_system}" = "x11"; then
10969 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10970 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10971 if test "${emacs_cv_x11_version_5+set}" = set; then
10972 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 cat >conftest.
$ac_ext <<_ACEOF
10977 cat confdefs.h
>>conftest.
$ac_ext
10978 cat >>conftest.
$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 #include <X11/Xlib.h>
10984 #if XlibSpecificationRelease < 5
10992 rm -f conftest.
$ac_objext conftest
$ac_exeext
10993 if { (ac_try
="$ac_link"
10994 case "(($ac_try" in
10995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_link") 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } && {
11006 test -z "$ac_c_werror_flag" ||
11007 test ! -s conftest.err
11008 } && test -s conftest$ac_exeext &&
11009 $as_test_x conftest$ac_exeext; then
11010 emacs_cv_x11_version_5=yes
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 emacs_cv_x11_version_5=no
11018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11019 conftest$ac_exeext conftest.$ac_ext
11022 if test $emacs_cv_x11_version_5 = yes; then
11023 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11024 echo "${ECHO_T}5 or newer" >&6; }
11027 cat >>confdefs.h <<\_ACEOF
11028 #define HAVE_X11R5 1
11033 { echo "$as_me:$LINENO: result: before 5" >&5
11034 echo "${ECHO_T}before 5" >&6; }
11039 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11042 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11043 test "$USE_X_TOOLKIT" = "maybe"; then
11044 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11045 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11046 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11047 { (exit 1); exit 1; }; };
11051 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11053 if test "X${with_pkg_config_prog}" != X; then
11054 PKG_CONFIG="${with_pkg_config_prog}"
11059 if test -z "$PKG_CONFIG"; then
11060 # Extract the first word of "pkg-config", so it can be a program name with args.
11061 set dummy pkg-config; ac_word=$2
11062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 case $PKG_CONFIG in
11069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11076 test -z "$as_dir" && as_dir=.
11077 for ac_exec_ext in '' $ac_executable_extensions; do
11078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11092 if test -n "$PKG_CONFIG"; then
11093 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11094 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11096 { echo "$as_me:$LINENO: result: no" >&5
11097 echo "${ECHO_T}no" >&6; }
11103 if test "$PKG_CONFIG" = "no" ; then
11106 PKG_CONFIG_MIN_VERSION=0.9.0
11107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11108 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11109 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11111 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11112 { echo "$as_me:$LINENO: result: yes" >&5
11113 echo "${ECHO_T}yes" >&6; }
11116 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11117 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11118 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11119 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11120 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11122 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11123 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11124 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11125 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11126 echo "${ECHO_T}$GTK_LIBS" >&6; }
11128 { echo "$as_me:$LINENO: result: no" >&5
11129 echo "${ECHO_T}no" >&6; }
11132 ## If we have a custom action on failure, don't print errors, but
11133 ## do set a variable so people can do so.
11134 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11146 if test $succeeded = yes; then
11152 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11153 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11154 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11155 { (exit 1); exit 1; }; }
11160 if test x"$pkg_check_gtk" = xyes; then
11164 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11165 CFLAGS="$CFLAGS $GTK_CFLAGS"
11166 LIBS="$GTK_LIBS $LIBS"
11169 for ac_func in gtk_main
11171 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 cat >conftest.$ac_ext <<_ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11185 #define $ac_func innocuous_$ac_func
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char $ac_func (); below.
11189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190 <limits.h> exists even on freestanding compilers. */
11193 # include <limits.h>
11195 # include <assert.h>
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11207 /* The GNU C library defines this for functions which it implements
11208 to always fail with ENOSYS. Some functions are actually named
11209 something starting with __ and the normal name is an alias. */
11210 #if defined __stub_$ac_func || defined __stub___$ac_func
11217 return $ac_func ();
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11226 *) ac_try_echo
=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1
>conftest.err
11233 cat conftest.err
>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest
$ac_exeext &&
11239 $as_test_x conftest
$ac_exeext; then
11240 eval "$as_ac_var=yes"
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.
$ac_ext >&5
11245 eval "$as_ac_var=no"
11248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11249 conftest
$ac_exeext conftest.
$ac_ext
11251 ac_res
=`eval echo '${'$as_ac_var'}'`
11252 { echo "$as_me:$LINENO: result: $ac_res" >&5
11253 echo "${ECHO_T}$ac_res" >&6; }
11254 if test `eval echo '${'$as_ac_var'}'` = yes; then
11255 cat >>confdefs.h
<<_ACEOF
11256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11262 if test "${GTK_COMPILES}" != "yes"; then
11263 if test "$USE_X_TOOLKIT" != "maybe"; then
11264 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11265 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11266 { (exit 1); exit 1; }; };
11271 cat >>confdefs.h
<<\_ACEOF
11281 if test "${HAVE_GTK}" = "yes"; then
11283 if test "$with_toolkit_scroll_bars" != no
; then
11284 with_toolkit_scroll_bars
=yes
11287 HAVE_GTK_MULTIDISPLAY
=no
11289 for ac_func
in gdk_display_open
11291 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11294 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.
$ac_ext <<_ACEOF
11300 cat confdefs.h
>>conftest.
$ac_ext
11301 cat >>conftest.
$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305 #define $ac_func innocuous_$ac_func
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11313 # include <limits.h>
11315 # include <assert.h>
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined __stub_$ac_func || defined __stub___$ac_func
11337 return $ac_func ();
11342 rm -f conftest.
$ac_objext conftest
$ac_exeext
11343 if { (ac_try
="$ac_link"
11344 case "(($ac_try" in
11345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1 >conftest.err
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest$ac_exeext &&
11359 $as_test_x conftest$ac_exeext; then
11360 eval "$as_ac_var=yes"
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 eval "$as_ac_var=no"
11368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11369 conftest$ac_exeext conftest.$ac_ext
11371 ac_res=`eval echo '${'$as_ac_var'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11374 if test `eval echo '${'$as_ac_var'}'` = yes; then
11375 cat >>confdefs.h <<_ACEOF
11376 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11378 HAVE_GTK_MULTIDISPLAY=yes
11382 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11384 cat >>confdefs.h <<\_ACEOF
11385 #define HAVE_GTK_MULTIDISPLAY 1
11389 HAVE_GTK_FILE_SELECTION=no
11391 for ac_func in gtk_file_selection_new
11393 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 cat >conftest.$ac_ext <<_ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11407 #define $ac_func innocuous_$ac_func
11409 /* System header to define __stub macros and hopefully few prototypes,
11410 which can conflict with char $ac_func (); below.
11411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11412 <limits.h> exists even on freestanding compilers. */
11415 # include <limits.h>
11417 # include <assert.h>
11422 /* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11429 /* The GNU C library defines this for functions which it implements
11430 to always fail with ENOSYS. Some functions are actually named
11431 something starting with __ and the normal name is an alias. */
11432 #if defined __stub_$ac_func || defined __stub___$ac_func
11439 return $ac_func ();
11444 rm -f conftest.$ac_objext conftest$ac_exeext
11445 if { (ac_try="$ac_link"
11446 case "(($ac_try" in
11447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11448 *) ac_try_echo
=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_link") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1
>conftest.err
11455 cat conftest.err
>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest
$ac_exeext &&
11461 $as_test_x conftest
$ac_exeext; then
11462 eval "$as_ac_var=yes"
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.
$ac_ext >&5
11467 eval "$as_ac_var=no"
11470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11471 conftest
$ac_exeext conftest.
$ac_ext
11473 ac_res
=`eval echo '${'$as_ac_var'}'`
11474 { echo "$as_me:$LINENO: result: $ac_res" >&5
11475 echo "${ECHO_T}$ac_res" >&6; }
11476 if test `eval echo '${'$as_ac_var'}'` = yes; then
11477 cat >>confdefs.h
<<_ACEOF
11478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480 HAVE_GTK_FILE_SELECTION
=yes
11485 HAVE_GTK_FILE_CHOOSER
=no
11487 for ac_func
in gtk_file_chooser_dialog_new
11489 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11492 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 cat >conftest.
$ac_ext <<_ACEOF
11498 cat confdefs.h
>>conftest.
$ac_ext
11499 cat >>conftest.
$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11503 #define $ac_func innocuous_$ac_func
11505 /* System header to define __stub macros and hopefully few prototypes,
11506 which can conflict with char $ac_func (); below.
11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 <limits.h> exists even on freestanding compilers. */
11511 # include <limits.h>
11513 # include <assert.h>
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11525 /* The GNU C library defines this for functions which it implements
11526 to always fail with ENOSYS. Some functions are actually named
11527 something starting with __ and the normal name is an alias. */
11528 #if defined __stub_$ac_func || defined __stub___$ac_func
11535 return $ac_func ();
11540 rm -f conftest.
$ac_objext conftest
$ac_exeext
11541 if { (ac_try
="$ac_link"
11542 case "(($ac_try" in
11543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
11549 grep -v '^ *+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && {
11554 test -z "$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 } && test -s conftest$ac_exeext &&
11557 $as_test_x conftest$ac_exeext; then
11558 eval "$as_ac_var=yes"
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11563 eval "$as_ac_var=no"
11566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11567 conftest$ac_exeext conftest.$ac_ext
11569 ac_res=`eval echo '${'$as_ac_var'}'`
11570 { echo "$as_me:$LINENO: result: $ac_res" >&5
11571 echo "${ECHO_T}$ac_res" >&6; }
11572 if test `eval echo '${'$as_ac_var'}'` = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11576 HAVE_GTK_FILE_CHOOSER=yes
11581 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11582 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11584 cat >>confdefs.h <<\_ACEOF
11585 #define HAVE_GTK_FILE_BOTH 1
11590 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11591 HAVE_GTK_AND_PTHREAD=no
11593 for ac_header in pthread.h
11595 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 ac_res=`eval echo '${'$as_ac_Header'}'`
11603 { echo "$as_me:$LINENO: result: $ac_res" >&5
11604 echo "${ECHO_T}$ac_res" >&6; }
11606 # Is the header compilable?
11607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11608 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11616 #include <$ac_header>
11618 rm -f conftest.$ac_objext
11619 if { (ac_try="$ac_compile"
11620 case "(($ac_try" in
11621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11622 *) ac_try_echo
=$ac_try;;
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11627 grep -v '^ *+' conftest.er1
>conftest.err
11629 cat conftest.err
>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.
$ac_objext; then
11635 ac_header_compiler
=yes
11637 echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.
$ac_ext >&5
11640 ac_header_compiler
=no
11643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11645 echo "${ECHO_T}$ac_header_compiler" >&6; }
11647 # Is the header present?
11648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11650 cat >conftest.
$ac_ext <<_ACEOF
11653 cat confdefs.h
>>conftest.
$ac_ext
11654 cat >>conftest.
$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 #include <$ac_header>
11658 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11659 case "(($ac_try" in
11660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } >/dev/null && {
11671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11674 ac_header_preproc=yes
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_header_preproc=no
11682 rm -f conftest.err conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684 echo "${ECHO_T}$ac_header_preproc" >&6; }
11686 # So? What about this header?
11687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11693 ac_header_preproc=yes
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 eval "$as_ac_Header=\$ac_header_preproc"
11718 ac_res=`eval echo '${'$as_ac_Header'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11732 if test "$ac_cv_header_pthread_h"; then
11733 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11734 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11735 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 ac_check_lib_save_LIBS=$LIBS
11739 LIBS="-lpthread $LIBS"
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11753 char pthread_self ();
11757 return pthread_self ();
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11766 *) ac_try_echo
=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1
>conftest.err
11773 cat conftest.err
>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest
$ac_exeext &&
11779 $as_test_x conftest
$ac_exeext; then
11780 ac_cv_lib_pthread_pthread_self
=yes
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.
$ac_ext >&5
11785 ac_cv_lib_pthread_pthread_self
=no
11788 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11789 conftest
$ac_exeext conftest.
$ac_ext
11790 LIBS
=$ac_check_lib_save_LIBS
11792 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11793 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11794 if test $ac_cv_lib_pthread_pthread_self = yes; then
11795 HAVE_GTK_AND_PTHREAD
=yes
11799 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11800 GTK_LIBS
="$GTK_LIBS -lpthread"
11802 cat >>confdefs.h
<<\_ACEOF
11803 #define HAVE_GTK_AND_PTHREAD 1
11810 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11811 if test x
"${HAVE_X11R5}" = xyes
; then
11812 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11813 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11814 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 cat >conftest.
$ac_ext <<_ACEOF
11820 cat confdefs.h
>>conftest.
$ac_ext
11821 cat >>conftest.
$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11824 #include <X11/Intrinsic.h>
11825 #include <X11/Xaw/Simple.h>
11834 rm -f conftest.
$ac_objext conftest
$ac_exeext
11835 if { (ac_try
="$ac_link"
11836 case "(($ac_try" in
11837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_link") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest$ac_exeext &&
11851 $as_test_x conftest$ac_exeext; then
11852 emacs_cv_x11_version_5_with_xaw=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 emacs_cv_x11_version_5_with_xaw=no
11860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11861 conftest$ac_exeext conftest.$ac_ext
11864 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11865 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11866 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11867 USE_X_TOOLKIT=LUCID
11869 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11870 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11871 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11872 { (exit 1); exit 1; }; }
11874 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11875 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11884 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11886 if test "${USE_X_TOOLKIT}" != "none"; then
11887 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11888 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11889 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <X11/Intrinsic.h>
11902 #if XtSpecificationRelease < 6
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11914 *) ac_try_echo
=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_link") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1
>conftest.err
11921 cat conftest.err
>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest
$ac_exeext &&
11927 $as_test_x conftest
$ac_exeext; then
11928 emacs_cv_x11_toolkit_version_6
=yes
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.
$ac_ext >&5
11933 emacs_cv_x11_toolkit_version_6
=no
11936 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11937 conftest
$ac_exeext conftest.
$ac_ext
11940 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11941 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11942 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11943 echo "${ECHO_T}6 or newer" >&6; }
11945 cat >>confdefs.h
<<\_ACEOF
11946 #define HAVE_X11XTR6 1
11950 { echo "$as_me:$LINENO: result: before 6" >&5
11951 echo "${ECHO_T}before 6" >&6; }
11955 if test x
$HAVE_X11XTR6 = xyes
; then
11956 LIBS
="-lXt -lSM -lICE $LIBS"
11961 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11962 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11963 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 ac_check_lib_save_LIBS
=$LIBS
11968 cat >conftest.
$ac_ext <<_ACEOF
11971 cat confdefs.h
>>conftest.
$ac_ext
11972 cat >>conftest.
$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11981 char XmuConvertStandardSelection ();
11985 return XmuConvertStandardSelection ();
11990 rm -f conftest.
$ac_objext conftest
$ac_exeext
11991 if { (ac_try
="$ac_link"
11992 case "(($ac_try" in
11993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest$ac_exeext &&
12007 $as_test_x conftest$ac_exeext; then
12008 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12021 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12022 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define HAVE_LIBXMU 1
12031 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12034 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12035 if test "${HAVE_X11}" = "yes"; then
12036 if test "${USE_X_TOOLKIT}" != "none"; then
12038 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12039 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12040 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-lXext $LIBS"
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12058 char XShapeQueryExtension ();
12062 return XShapeQueryExtension ();
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12071 *) ac_try_echo
=$ac_try;;
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1
>conftest.err
12078 cat conftest.err
>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest
$ac_exeext &&
12084 $as_test_x conftest
$ac_exeext; then
12085 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.
$ac_ext >&5
12090 ac_cv_lib_Xext_XShapeQueryExtension
=no
12093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12094 conftest
$ac_exeext conftest.
$ac_ext
12095 LIBS
=$ac_check_lib_save_LIBS
12097 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12098 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12099 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12100 cat >>confdefs.h
<<_ACEOF
12101 #define HAVE_LIBXEXT 1
12104 LIBS
="-lXext $LIBS"
12111 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12112 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12113 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12114 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 cat >conftest.
$ac_ext <<_ACEOF
12120 cat confdefs.h
>>conftest.
$ac_ext
12121 cat >>conftest.
$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12127 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12130 Motif version prior to 2.1.
12136 rm -f conftest.
$ac_objext
12137 if { (ac_try
="$ac_compile"
12138 case "(($ac_try" in
12139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_compile") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest.$ac_objext; then
12153 emacs_cv_motif_version_2_1=yes
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 emacs_cv_motif_version_2_1=no
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12164 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12165 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12166 if test $emacs_cv_motif_version_2_1 = yes; then
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_MOTIF_2_1 1
12173 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12174 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12175 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 ac_check_lib_save_LIBS=$LIBS
12180 cat >conftest.$ac_ext <<_ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12193 char XpCreateContext ();
12197 return XpCreateContext ();
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (ac_try="$ac_link"
12204 case "(($ac_try" in
12205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12206 *) ac_try_echo
=$ac_try;;
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_link") 2>conftest.er1
12211 grep -v '^ *+' conftest.er1
>conftest.err
12213 cat conftest.err
>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest
$ac_exeext &&
12219 $as_test_x conftest
$ac_exeext; then
12220 ac_cv_lib_Xp_XpCreateContext
=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.
$ac_ext >&5
12225 ac_cv_lib_Xp_XpCreateContext
=no
12228 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12229 conftest
$ac_exeext conftest.
$ac_ext
12230 LIBS
=$ac_check_lib_save_LIBS
12232 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12233 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12234 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12238 if test ${HAVE_LIBXP} = yes; then
12240 cat >>confdefs.h
<<\_ACEOF
12241 #define HAVE_LIBXP 1
12246 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12247 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12248 if test "${emacs_cv_lesstif+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 # We put this in CFLAGS temporarily to precede other -I options
12252 # that might be in CFLAGS temporarily.
12253 # We put this in CPPFLAGS where it precedes the other -I options.
12254 OLD_CPPFLAGS
=$CPPFLAGS
12256 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12257 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12258 cat >conftest.
$ac_ext <<_ACEOF
12261 cat confdefs.h
>>conftest.
$ac_ext
12262 cat >>conftest.
$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12273 rm -f conftest.
$ac_objext
12274 if { (ac_try
="$ac_compile"
12275 case "(($ac_try" in
12276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_compile") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest.$ac_objext; then
12290 emacs_cv_lesstif=yes
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12295 emacs_cv_lesstif=no
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12301 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12302 if test $emacs_cv_lesstif = yes; then
12303 # Make sure this -I option remains in CPPFLAGS after it is set
12304 # back to REAL_CPPFLAGS.
12305 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12306 # have those other -I options anyway. Ultimately, having this
12307 # directory ultimately in CPPFLAGS will be enough.
12308 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12309 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12312 CPPFLAGS=$OLD_CPPFLAGS
12317 ### Is -lXaw3d available?
12319 if test "${HAVE_X11}" = "yes"; then
12320 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12321 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12322 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12323 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 #include <X11/Xaw3d/Scrollbar.h>
12334 if { (ac_try="$ac_cpp conftest.$ac_ext"
12335 case "(($ac_try" in
12336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12337 *) ac_try_echo
=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1
>conftest.err
12344 cat conftest.err
>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } >/dev
/null
&& {
12347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12350 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.
$ac_ext >&5
12355 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12358 rm -f conftest.err conftest.
$ac_ext
12360 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12361 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12362 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12363 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12364 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12365 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 ac_check_lib_save_LIBS
=$LIBS
12369 LIBS
="-lXaw3d $LIBS"
12370 cat >conftest.
$ac_ext <<_ACEOF
12373 cat confdefs.h
>>conftest.
$ac_ext
12374 cat >>conftest.
$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12383 char XawScrollbarSetThumb ();
12387 return XawScrollbarSetThumb ();
12392 rm -f conftest.
$ac_objext conftest
$ac_exeext
12393 if { (ac_try
="$ac_link"
12394 case "(($ac_try" in
12395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_link") 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest$ac_exeext &&
12409 $as_test_x conftest$ac_exeext; then
12410 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12419 conftest$ac_exeext conftest.$ac_ext
12420 LIBS=$ac_check_lib_save_LIBS
12422 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12423 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12424 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12431 if test "${HAVE_XAW3D}" = "yes"; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define HAVE_XAW3D 1
12443 USE_TOOLKIT_SCROLL_BARS=no
12444 if test "${with_toolkit_scroll_bars}" != "no"; then
12445 if test "${USE_X_TOOLKIT}" != "none"; then
12446 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define USE_TOOLKIT_SCROLL_BARS 1
12452 USE_TOOLKIT_SCROLL_BARS=yes
12453 elif test "${HAVE_XAW3D}" = "yes"; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define USE_TOOLKIT_SCROLL_BARS 1
12458 USE_TOOLKIT_SCROLL_BARS=yes
12460 elif test "${HAVE_GTK}" = "yes"; then
12461 cat >>confdefs.h <<\_ACEOF
12462 #define USE_TOOLKIT_SCROLL_BARS 1
12465 USE_TOOLKIT_SCROLL_BARS=yes
12466 elif test "${HAVE_CARBON}" = "yes"; then
12467 cat >>confdefs.h <<\_ACEOF
12468 #define USE_TOOLKIT_SCROLL_BARS 1
12471 USE_TOOLKIT_SCROLL_BARS=yes
12475 cat >conftest.$ac_ext <<_ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12482 #include <X11/Xlib.h>
12483 #include <X11/Xresource.h>
12492 rm -f conftest.$ac_objext
12493 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
12511 cat >>confdefs.h
<<\_ACEOF
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.
$ac_ext >&5
12522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12525 if test "${with_xim}" != "no"; then
12527 cat >>confdefs.h
<<\_ACEOF
12534 if test "${HAVE_XIM}" != "no"; then
12535 late_CFLAGS
=$CFLAGS
12536 if test "$GCC" = yes; then
12537 CFLAGS
="$CFLAGS --pedantic-errors"
12539 cat >conftest.
$ac_ext <<_ACEOF
12542 cat confdefs.h
>>conftest.
$ac_ext
12543 cat >>conftest.
$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12546 #include <X11/Xlib.h>
12547 #include <X11/Xresource.h>
12556 XPointer *client_data;
12558 /* If we're not using GCC, it's probably not XFree86, and this is
12559 probably right, but we can't use something like --pedantic-errors. */
12560 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12561 char*, XIMProc, XPointer*);
12563 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12569 rm -f conftest.
$ac_objext
12570 if { (ac_try
="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_compile") 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest.$ac_objext; then
12586 emacs_cv_arg6_star=yes
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 if test "$emacs_cv_arg6_star" = yes; then
12597 cat >>confdefs.h <<\_ACEOF
12598 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12602 cat >>confdefs.h <<\_ACEOF
12603 #define XRegisterIMInstantiateCallback_arg6 XPointer
12607 CFLAGS=$late_CFLAGS
12610 ### For font-backend
12611 if test "${USE_FONT_BACKEND}" = "yes"; then
12614 cat >>confdefs.h <<\_ACEOF
12615 #define USE_FONT_BACKEND 1
12619 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12621 if test "${HAVE_X11}" = "yes"; then
12622 if test "x${with_freetype}" = "xno"; then
12625 if test "x${with_xft}" != "xno"; then
12627 if test "X${with_pkg_config_prog}" != X
; then
12628 PKG_CONFIG
="${with_pkg_config_prog}"
12634 if test -z "$PKG_CONFIG"; then
12635 # Extract the first word of "pkg-config", so it can be a program name with args.
12636 set dummy pkg-config
; ac_word
=$2
12637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12639 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12642 case $PKG_CONFIG in
12644 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12648 for as_dir
in $PATH
12651 test -z "$as_dir" && as_dir
=.
12652 for ac_exec_ext
in '' $ac_executable_extensions; do
12653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12654 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12666 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12667 if test -n "$PKG_CONFIG"; then
12668 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12669 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12671 { echo "$as_me:$LINENO: result: no" >&5
12672 echo "${ECHO_T}no" >&6; }
12678 if test "$PKG_CONFIG" = "no" ; then
12681 PKG_CONFIG_MIN_VERSION
=0.9.0
12682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12683 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12684 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12686 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12687 { echo "$as_me:$LINENO: result: yes" >&5
12688 echo "${ECHO_T}yes" >&6; }
12691 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12692 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12693 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12694 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12695 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12697 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12698 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12699 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12700 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12701 echo "${ECHO_T}$XFT_LIBS" >&6; }
12703 { echo "$as_me:$LINENO: result: no" >&5
12704 echo "${ECHO_T}no" >&6; }
12707 ## If we have a custom action on failure, don't print errors, but
12708 ## do set a variable so people can do so.
12709 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12721 if test $succeeded = yes; then
12727 if test "$HAVE_XFT" != no
; then
12728 OLD_CPPFLAGS
="$CPPFLAGS"
12729 OLD_CFLAGS
="$CFLAGS"
12731 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12732 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12733 LIBS
="$XFT_LIBS $LIBS"
12734 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12735 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12736 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12737 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12740 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12741 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12743 # Is the header compilable?
12744 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12745 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12746 cat >conftest.
$ac_ext <<_ACEOF
12749 cat confdefs.h
>>conftest.
$ac_ext
12750 cat >>conftest.
$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 #include <X11/Xft/Xft.h>
12755 rm -f conftest.
$ac_objext
12756 if { (ac_try
="$ac_compile"
12757 case "(($ac_try" in
12758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_compile") 2>conftest.er1
12764 grep -v '^ *+' conftest.er1 >conftest.err
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest.$ac_objext; then
12772 ac_header_compiler=yes
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 ac_header_compiler=no
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12782 echo "${ECHO_T}$ac_header_compiler" >&6; }
12784 # Is the header present?
12785 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12786 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 #include <X11/Xft/Xft.h>
12795 if { (ac_try="$ac_cpp conftest.$ac_ext"
12796 case "(($ac_try" in
12797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12798 *) ac_try_echo
=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12803 grep -v '^ *+' conftest.er1
>conftest.err
12805 cat conftest.err
>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } >/dev
/null
&& {
12808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12809 test ! -s conftest.err
12811 ac_header_preproc
=yes
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.
$ac_ext >&5
12816 ac_header_preproc
=no
12819 rm -f conftest.err conftest.
$ac_ext
12820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821 echo "${ECHO_T}$ac_header_preproc" >&6; }
12823 # So? What about this header?
12824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12826 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12827 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12828 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12829 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12830 ac_header_preproc
=yes
12833 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12834 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12835 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12836 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12838 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12840 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12842 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12844 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12848 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12849 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12850 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12853 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12855 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12856 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12859 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12860 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12861 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12862 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 ac_check_lib_save_LIBS
=$LIBS
12866 LIBS
="-lXft $XFT_LIBS $LIBS"
12867 cat >conftest.
$ac_ext <<_ACEOF
12870 cat confdefs.h
>>conftest.
$ac_ext
12871 cat >>conftest.
$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12874 /* Override any GCC internal prototype to avoid an error.
12875 Use char because int might match the return type of a GCC
12876 builtin and then its argument prototype would still apply. */
12880 char XftFontOpen ();
12884 return XftFontOpen ();
12889 rm -f conftest.
$ac_objext conftest
$ac_exeext
12890 if { (ac_try
="$ac_link"
12891 case "(($ac_try" in
12892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_link") 2>conftest.er1
12898 grep -v '^ *+' conftest.er1 >conftest.err
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } && {
12903 test -z "$ac_c_werror_flag" ||
12904 test ! -s conftest.err
12905 } && test -s conftest$ac_exeext &&
12906 $as_test_x conftest$ac_exeext; then
12907 ac_cv_lib_Xft_XftFontOpen=yes
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_cv_lib_Xft_XftFontOpen=no
12915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12919 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12920 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12921 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12929 if test "${HAVE_XFT}" = "yes"; then
12931 cat >>confdefs.h <<\_ACEOF
12936 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12938 CFLAGS="$OLD_CPPFLAGS"
12939 CFLAGS="$OLD_CFLAGS"
12947 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12948 if test "${HAVE_XFT}" = "yes"; then
12950 elif test "x${with_freetype}" != "xno"; then
12951 if test "X${with_pkg_config_prog}" != X; then
12952 PKG_CONFIG="${with_pkg_config_prog}"
12958 if test -z "$PKG_CONFIG"; then
12959 # Extract the first word of "pkg-config", so it can be a program name with args.
12960 set dummy pkg-config; ac_word=$2
12961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 case $PKG_CONFIG in
12968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972 for as_dir in $PATH
12975 test -z "$as_dir" && as_dir=.
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12991 if test -n "$PKG_CONFIG"; then
12992 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12993 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12995 { echo "$as_me:$LINENO: result: no" >&5
12996 echo "${ECHO_T}no" >&6; }
13002 if test "$PKG_CONFIG" = "no" ; then
13005 PKG_CONFIG_MIN_VERSION=0.9.0
13006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13007 { echo "$as_me:$LINENO: checking for freetype2" >&5
13008 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13010 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13011 { echo "$as_me:$LINENO: result: yes" >&5
13012 echo "${ECHO_T}yes" >&6; }
13015 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13016 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13017 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13018 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13019 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13021 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13022 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13023 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13024 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13025 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13027 { echo "$as_me:$LINENO: result: no" >&5
13028 echo "${ECHO_T}no" >&6; }
13031 ## If we have a custom action on failure, don't print errors
, but
13032 ## do set a variable so people can do so.
13033 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13040 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13041 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13045 if test $succeeded = yes; then
13051 if test "${HAVE_FREETYPE}" = "yes"; then
13055 if test -z "$PKG_CONFIG"; then
13056 # Extract the first word of "pkg-config", so it can be a program name with args.
13057 set dummy pkg-config
; ac_word
=$2
13058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 case $PKG_CONFIG in
13065 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13069 for as_dir
in $PATH
13072 test -z "$as_dir" && as_dir
=.
13073 for ac_exec_ext
in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13087 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13088 if test -n "$PKG_CONFIG"; then
13089 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13090 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13092 { echo "$as_me:$LINENO: result: no" >&5
13093 echo "${ECHO_T}no" >&6; }
13099 if test "$PKG_CONFIG" = "no" ; then
13102 PKG_CONFIG_MIN_VERSION
=0.9.0
13103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13104 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13105 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13107 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13108 { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13112 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13113 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13114 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13115 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13116 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13118 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13119 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13120 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13121 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13122 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13124 { echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6; }
13126 FONTCONFIG_CFLAGS
=""
13128 ## If we have a custom action on failure, don't print errors, but
13129 ## do set a variable so people can do so.
13130 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13142 if test $succeeded = yes; then
13148 if test "${HAVE_FC}" = "no"; then
13153 if test "${HAVE_FREETYPE}" = "yes"; then
13155 cat >>confdefs.h
<<\_ACEOF
13156 #define HAVE_FREETYPE 1
13159 # Extract the first word of "libotf-config", so it can be a program name with args.
13160 set dummy libotf-config
; ac_word
=$2
13161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13163 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 if test -n "$HAVE_LIBOTF"; then
13167 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13170 for as_dir
in $PATH
13173 test -z "$as_dir" && as_dir
=.
13174 for ac_exec_ext
in '' $ac_executable_extensions; do
13175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13176 ac_cv_prog_HAVE_LIBOTF
="yes"
13177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13184 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13187 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13188 if test -n "$HAVE_LIBOTF"; then
13189 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13190 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13192 { echo "$as_me:$LINENO: result: no" >&5
13193 echo "${ECHO_T}no" >&6; }
13197 if test "${HAVE_LIBOTF}" = "yes"; then
13199 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13200 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13201 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 ac_check_lib_save_LIBS
=$LIBS
13206 cat >conftest.
$ac_ext <<_ACEOF
13209 cat confdefs.h
>>conftest.
$ac_ext
13210 cat >>conftest.
$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13219 char OTF_get_features ();
13223 return OTF_get_features ();
13228 rm -f conftest.
$ac_objext conftest
$ac_exeext
13229 if { (ac_try
="$ac_link"
13230 case "(($ac_try" in
13231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_link") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest$ac_exeext &&
13245 $as_test_x conftest$ac_exeext; then
13246 ac_cv_lib_otf_OTF_get_features=yes
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 ac_cv_lib_otf_OTF_get_features=no
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255 conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13258 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13259 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13260 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13261 cat >>confdefs.h <<_ACEOF
13262 #define HAVE_LIBOTF 1
13271 if test "${HAVE_LIBOTF}" = "yes"; then
13273 cat >>confdefs.h <<\_ACEOF
13274 #define HAVE_LIBOTF 1
13277 LIBOTF_CFLAGS=`libotf-config
--cflags`
13278 LIBOTF_LIBS=`libotf-config
--libs`
13291 ### Use -lXpm if available, unless `--with-xpm=no
'.
13293 if test "${HAVE_X11}" = "yes"; then
13294 if test "${with_xpm}" != "no"; then
13295 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13296 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13297 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13298 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13302 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13304 # Is the header compilable?
13305 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13306 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13307 cat >conftest.$ac_ext <<_ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 $ac_includes_default
13314 #include <X11/xpm.h>
13316 rm -f conftest.$ac_objext
13317 if { (ac_try="$ac_compile"
13318 case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_compile") 2>conftest.er1
13325 grep -v '^
*+' conftest.er1 >conftest.err
13327 cat conftest.err >&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && {
13330 test -z "$ac_c_werror_flag" ||
13331 test ! -s conftest.err
13332 } && test -s conftest.$ac_objext; then
13333 ac_header_compiler=yes
13335 echo "$as_me: failed program was:" >&5
13336 sed 's
/^
/|
/' conftest.$ac_ext >&5
13338 ac_header_compiler=no
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13343 echo "${ECHO_T}$ac_header_compiler" >&6; }
13345 # Is the header present?
13346 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13347 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <X11/xpm.h>
13356 if { (ac_try="$ac_cpp conftest.$ac_ext"
13357 case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13364 grep -v '^
*+' conftest.er1 >conftest.err
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } >/dev/null && {
13369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13370 test ! -s conftest.err
13372 ac_header_preproc=yes
13374 echo "$as_me: failed program was:" >&5
13375 sed 's
/^
/|
/' conftest.$ac_ext >&5
13377 ac_header_preproc=no
13380 rm -f conftest.err conftest.$ac_ext
13381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13382 echo "${ECHO_T}$ac_header_preproc" >&6; }
13384 # So? What about this header?
13385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13387 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13388 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13389 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13390 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13391 ac_header_preproc=yes
13394 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13395 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13397 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13403 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13409 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13410 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13411 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 ac_cv_header_X11_xpm_h=$ac_header_preproc
13416 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13417 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13420 if test $ac_cv_header_X11_xpm_h = yes; then
13421 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13422 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13423 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 ac_check_lib_save_LIBS=$LIBS
13427 LIBS="-lXpm -lX11 $LIBS"
13428 cat >conftest.$ac_ext <<_ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13441 char XpmReadFileToPixmap ();
13445 return XpmReadFileToPixmap ();
13450 rm -f conftest.$ac_objext conftest$ac_exeext
13451 if { (ac_try="$ac_link"
13452 case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_link") 2>conftest.er1
13459 grep -v '^
*+' conftest.er1 >conftest.err
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest$ac_exeext &&
13467 $as_test_x conftest$ac_exeext; then
13468 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's
/^
/|
/' conftest.$ac_ext >&5
13473 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13477 conftest$ac_exeext conftest.$ac_ext
13478 LIBS=$ac_check_lib_save_LIBS
13480 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13481 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13482 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13489 if test "${HAVE_XPM}" = "yes"; then
13490 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13491 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include "X11/xpm.h"
13499 #ifndef XpmReturnAllocPixels
13500 no_return_alloc_pixels
13504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13505 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13513 if test "${HAVE_XPM}" = "yes"; then
13514 { echo "$as_me:$LINENO: result: yes" >&5
13515 echo "${ECHO_T}yes" >&6; }
13517 { echo "$as_me:$LINENO: result: no" >&5
13518 echo "${ECHO_T}no" >&6; }
13523 if test "${HAVE_XPM}" = "yes"; then
13525 cat >>confdefs.h <<\_ACEOF
13532 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13534 if test "${HAVE_X11}" = "yes"; then
13535 if test "${with_jpeg}" != "no"; then
13536 if test "${ac_cv_header_jerror_h+set}" = set; then
13537 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13538 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13539 if test "${ac_cv_header_jerror_h+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13545 # Is the header compilable?
13546 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13547 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13548 cat >conftest.
$ac_ext <<_ACEOF
13551 cat confdefs.h
>>conftest.
$ac_ext
13552 cat >>conftest.
$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13555 #include <jerror.h>
13557 rm -f conftest.
$ac_objext
13558 if { (ac_try
="$ac_compile"
13559 case "(($ac_try" in
13560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compile") 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } && {
13571 test -z "$ac_c_werror_flag" ||
13572 test ! -s conftest.err
13573 } && test -s conftest.$ac_objext; then
13574 ac_header_compiler=yes
13576 echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_header_compiler=no
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13584 echo "${ECHO_T}$ac_header_compiler" >&6; }
13586 # Is the header present?
13587 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13588 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 #include <jerror.h>
13597 if { (ac_try="$ac_cpp conftest.$ac_ext"
13598 case "(($ac_try" in
13599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13600 *) ac_try_echo
=$ac_try;;
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13605 grep -v '^ *+' conftest.er1
>conftest.err
13607 cat conftest.err
>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev
/null
&& {
13610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13613 ac_header_preproc
=yes
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.
$ac_ext >&5
13618 ac_header_preproc
=no
13621 rm -f conftest.err conftest.
$ac_ext
13622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13623 echo "${ECHO_T}$ac_header_preproc" >&6; }
13625 # So? What about this header?
13626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13628 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13629 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13631 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13632 ac_header_preproc
=yes
13635 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13636 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13638 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13640 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13642 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13644 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13646 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13650 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13651 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13652 if test "${ac_cv_header_jerror_h+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 ac_cv_header_jerror_h
=$ac_header_preproc
13657 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13658 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13661 if test $ac_cv_header_jerror_h = yes; then
13662 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13663 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13664 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 ac_check_lib_save_LIBS
=$LIBS
13668 LIBS
="-ljpeg $LIBS"
13669 cat >conftest.
$ac_ext <<_ACEOF
13672 cat confdefs.h
>>conftest.
$ac_ext
13673 cat >>conftest.
$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13682 char jpeg_destroy_compress ();
13686 return jpeg_destroy_compress ();
13691 rm -f conftest.
$ac_objext conftest
$ac_exeext
13692 if { (ac_try
="$ac_link"
13693 case "(($ac_try" in
13694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest$ac_exeext &&
13708 $as_test_x conftest$ac_exeext; then
13709 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13721 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13722 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13723 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13733 if test "${HAVE_JPEG}" = "yes"; then
13734 cat >>confdefs.h <<\_ACEOF
13735 #define HAVE_JPEG 1
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <jpeglib.h>
13745 version=JPEG_LIB_VERSION
13748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13750 cat >>confdefs.h <<\_ACEOF
13751 #define HAVE_JPEG 1
13755 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13756 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13764 ### Use -lpng if available, unless `--with-png=no
'.
13766 if test "${HAVE_X11}" = "yes"; then
13767 if test "${with_png}" != "no"; then
13768 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13769 # in /usr/include/libpng.
13772 for ac_header in png.h libpng/png.h
13774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 ac_res=`eval echo '${'$as_ac_Header'}'`
13782 { echo "$as_me:$LINENO: result: $ac_res" >&5
13783 echo "${ECHO_T}$ac_res" >&6; }
13785 # Is the header compilable?
13786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13788 cat >conftest.$ac_ext <<_ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 $ac_includes_default
13795 #include <$ac_header>
13797 rm -f conftest.$ac_objext
13798 if { (ac_try="$ac_compile"
13799 case "(($ac_try" in
13800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_compile") 2>conftest.er1
13806 grep -v '^
*+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest.$ac_objext; then
13814 ac_header_compiler=yes
13816 echo "$as_me: failed program was:" >&5
13817 sed 's
/^
/|
/' conftest.$ac_ext >&5
13819 ac_header_compiler=no
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13824 echo "${ECHO_T}$ac_header_compiler" >&6; }
13826 # Is the header present?
13827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 #include <$ac_header>
13837 if { (ac_try="$ac_cpp conftest.$ac_ext"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13845 grep -v '^
*+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } >/dev/null && {
13850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13853 ac_header_preproc=yes
13855 echo "$as_me: failed program was:" >&5
13856 sed 's
/^
/|
/' conftest.$ac_ext >&5
13858 ac_header_preproc=no
13861 rm -f conftest.err conftest.$ac_ext
13862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13863 echo "${ECHO_T}$ac_header_preproc" >&6; }
13865 # So? What about this header?
13866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13871 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13872 ac_header_preproc=yes
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13884 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 eval "$as_ac_Header=\$ac_header_preproc"
13897 ac_res=`eval echo '${'$as_ac_Header'}'`
13898 { echo "$as_me:$LINENO: result: $ac_res" >&5
13899 echo "${ECHO_T}$ac_res" >&6; }
13902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13911 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13912 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13913 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13914 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 ac_check_lib_save_LIBS=$LIBS
13918 LIBS="-lpng -lz -lm $LIBS"
13919 cat >conftest.$ac_ext <<_ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13932 char png_get_channels ();
13936 return png_get_channels ();
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13950 grep -v '^
*+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } && {
13955 test -z "$ac_c_werror_flag" ||
13956 test ! -s conftest.err
13957 } && test -s conftest$ac_exeext &&
13958 $as_test_x conftest$ac_exeext; then
13959 ac_cv_lib_png_png_get_channels=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's
/^
/|
/' conftest.$ac_ext >&5
13964 ac_cv_lib_png_png_get_channels=no
13967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13972 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13973 if test $ac_cv_lib_png_png_get_channels = yes; then
13980 if test "${HAVE_PNG}" = "yes"; then
13982 cat >>confdefs.h <<\_ACEOF
13989 ### Use -ltiff if available, unless `--with-tiff=no'.
13991 if test "${HAVE_X11}" = "yes"; then
13992 if test "${with_tiff}" != "no"; then
13993 if test "${ac_cv_header_tiffio_h+set}" = set; then
13994 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13995 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13996 if test "${ac_cv_header_tiffio_h+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14000 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14002 # Is the header compilable?
14003 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14004 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14005 cat >conftest.
$ac_ext <<_ACEOF
14008 cat confdefs.h
>>conftest.
$ac_ext
14009 cat >>conftest.
$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 $ac_includes_default
14012 #include <tiffio.h>
14014 rm -f conftest.
$ac_objext
14015 if { (ac_try
="$ac_compile"
14016 case "(($ac_try" in
14017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_compile") 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest.$ac_objext; then
14031 ac_header_compiler=yes
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_header_compiler=no
14039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 echo "${ECHO_T}$ac_header_compiler" >&6; }
14043 # Is the header present?
14044 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14045 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <tiffio.h>
14054 if { (ac_try="$ac_cpp conftest.$ac_ext"
14055 case "(($ac_try" in
14056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14057 *) ac_try_echo
=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14062 grep -v '^ *+' conftest.er1
>conftest.err
14064 cat conftest.err
>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } >/dev
/null
&& {
14067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14070 ac_header_preproc
=yes
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.
$ac_ext >&5
14075 ac_header_preproc
=no
14078 rm -f conftest.err conftest.
$ac_ext
14079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14080 echo "${ECHO_T}$ac_header_preproc" >&6; }
14082 # So? What about this header?
14083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14085 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14086 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14088 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14089 ac_header_preproc
=yes
14092 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14093 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14095 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14097 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14099 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14101 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14103 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14107 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14108 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14109 if test "${ac_cv_header_tiffio_h+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 ac_cv_header_tiffio_h
=$ac_header_preproc
14114 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14115 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14118 if test $ac_cv_header_tiffio_h = yes; then
14120 # At least one tiff package requires the jpeg library.
14121 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14122 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14123 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14124 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 ac_check_lib_save_LIBS
=$LIBS
14128 LIBS
="-ltiff $tifflibs $LIBS"
14129 cat >conftest.
$ac_ext <<_ACEOF
14132 cat confdefs.h
>>conftest.
$ac_ext
14133 cat >>conftest.
$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14136 /* Override any GCC internal prototype to avoid an error.
14137 Use char because int might match the return type of a GCC
14138 builtin and then its argument prototype would still apply. */
14142 char TIFFGetVersion ();
14146 return TIFFGetVersion ();
14151 rm -f conftest.
$ac_objext conftest
$ac_exeext
14152 if { (ac_try
="$ac_link"
14153 case "(($ac_try" in
14154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158 (eval "$ac_link") 2>conftest.er1
14160 grep -v '^ *+' conftest.er1 >conftest.err
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } && {
14165 test -z "$ac_c_werror_flag" ||
14166 test ! -s conftest.err
14167 } && test -s conftest$ac_exeext &&
14168 $as_test_x conftest$ac_exeext; then
14169 ac_cv_lib_tiff_TIFFGetVersion=yes
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14174 ac_cv_lib_tiff_TIFFGetVersion=no
14177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14178 conftest$ac_exeext conftest.$ac_ext
14179 LIBS=$ac_check_lib_save_LIBS
14181 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14182 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14183 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14192 if test "${HAVE_TIFF}" = "yes"; then
14194 cat >>confdefs.h <<\_ACEOF
14195 #define HAVE_TIFF 1
14201 ### Use -lgif if available, unless `--with-gif=no
'.
14203 if test "${HAVE_X11}" = "yes"; then
14204 if test "${with_gif}" != "no"; then
14205 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14206 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14207 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14208 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14209 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14212 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14214 # Is the header compilable?
14215 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14216 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 $ac_includes_default
14224 #include <gif_lib.h>
14226 rm -f conftest.$ac_objext
14227 if { (ac_try="$ac_compile"
14228 case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_compile") 2>conftest.er1
14235 grep -v '^
*+' conftest.er1 >conftest.err
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && {
14240 test -z "$ac_c_werror_flag" ||
14241 test ! -s conftest.err
14242 } && test -s conftest.$ac_objext; then
14243 ac_header_compiler=yes
14245 echo "$as_me: failed program was:" >&5
14246 sed 's
/^
/|
/' conftest.$ac_ext >&5
14248 ac_header_compiler=no
14251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14253 echo "${ECHO_T}$ac_header_compiler" >&6; }
14255 # Is the header present?
14256 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14257 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14258 cat >conftest.$ac_ext <<_ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 #include <gif_lib.h>
14266 if { (ac_try="$ac_cpp conftest.$ac_ext"
14267 case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14274 grep -v '^
*+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } >/dev/null && {
14279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14280 test ! -s conftest.err
14282 ac_header_preproc=yes
14284 echo "$as_me: failed program was:" >&5
14285 sed 's
/^
/|
/' conftest.$ac_ext >&5
14287 ac_header_preproc=no
14290 rm -f conftest.err conftest.$ac_ext
14291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14292 echo "${ECHO_T}$ac_header_preproc" >&6; }
14294 # So? What about this header?
14295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14297 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14298 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
14300 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
14301 ac_header_preproc=yes
14304 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14305 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14307 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14309 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14310 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14311 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14312 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
14313 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
14314 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14315 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14319 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14320 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14321 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 ac_cv_header_gif_lib_h=$ac_header_preproc
14326 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14327 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14330 if test $ac_cv_header_gif_lib_h = yes; then
14331 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14332 # Earlier versions can crash Emacs.
14333 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14334 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14335 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 ac_check_lib_save_LIBS=$LIBS
14339 LIBS="-lungif $LIBS"
14340 cat >conftest.$ac_ext <<_ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14347 /* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14353 char EGifPutExtensionLast ();
14357 return EGifPutExtensionLast ();
14362 rm -f conftest.$ac_objext conftest$ac_exeext
14363 if { (ac_try="$ac_link"
14364 case "(($ac_try" in
14365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14366 *) ac_try_echo=$ac_try;;
14368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14369 (eval "$ac_link") 2>conftest.er1
14371 grep -v '^
*+' conftest.er1 >conftest.err
14373 cat conftest.err >&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest$ac_exeext &&
14379 $as_test_x conftest$ac_exeext; then
14380 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14382 echo "$as_me: failed program was:" >&5
14383 sed 's
/^
/|
/' conftest.$ac_ext >&5
14385 ac_cv_lib_ungif_EGifPutExtensionLast=no
14388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14389 conftest$ac_exeext conftest.$ac_ext
14390 LIBS=$ac_check_lib_save_LIBS
14392 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14393 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14394 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14403 if test "${HAVE_GIF}" = "yes"; then
14405 cat >>confdefs.h <<\_ACEOF
14412 ### Use -lgpm if available, unless `--with-gpm=no'.
14414 if test "${with_gpm}" != "no"; then
14415 if test "${ac_cv_header_gpm_h+set}" = set; then
14416 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14417 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14418 if test "${ac_cv_header_gpm_h+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14422 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14424 # Is the header compilable?
14425 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14426 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14427 cat >conftest.
$ac_ext <<_ACEOF
14430 cat confdefs.h
>>conftest.
$ac_ext
14431 cat >>conftest.
$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 $ac_includes_default
14436 rm -f conftest.
$ac_objext
14437 if { (ac_try
="$ac_compile"
14438 case "(($ac_try" in
14439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_compile") 2>conftest.er1
14445 grep -v '^ *+' conftest.er1 >conftest.err
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } && {
14450 test -z "$ac_c_werror_flag" ||
14451 test ! -s conftest.err
14452 } && test -s conftest.$ac_objext; then
14453 ac_header_compiler=yes
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ac_header_compiler=no
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14463 echo "${ECHO_T}$ac_header_compiler" >&6; }
14465 # Is the header present?
14466 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14467 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14468 cat >conftest.$ac_ext <<_ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14476 if { (ac_try="$ac_cpp conftest.$ac_ext"
14477 case "(($ac_try" in
14478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14479 *) ac_try_echo
=$ac_try;;
14481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14484 grep -v '^ *+' conftest.er1
>conftest.err
14486 cat conftest.err
>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } >/dev
/null
&& {
14489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14490 test ! -s conftest.err
14492 ac_header_preproc
=yes
14494 echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.
$ac_ext >&5
14497 ac_header_preproc
=no
14500 rm -f conftest.err conftest.
$ac_ext
14501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14502 echo "${ECHO_T}$ac_header_preproc" >&6; }
14504 # So? What about this header?
14505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14507 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14508 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14510 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14511 ac_header_preproc
=yes
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14515 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14517 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14519 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14521 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14523 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14525 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14529 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14530 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14531 if test "${ac_cv_header_gpm_h+set}" = set; then
14532 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 ac_cv_header_gpm_h
=$ac_header_preproc
14536 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14537 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14540 if test $ac_cv_header_gpm_h = yes; then
14541 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14542 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14543 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 ac_check_lib_save_LIBS
=$LIBS
14548 cat >conftest.
$ac_ext <<_ACEOF
14551 cat confdefs.h
>>conftest.
$ac_ext
14552 cat >>conftest.
$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14565 return Gpm_Open ();
14570 rm -f conftest.
$ac_objext conftest
$ac_exeext
14571 if { (ac_try
="$ac_link"
14572 case "(($ac_try" in
14573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577 (eval "$ac_link") 2>conftest.er1
14579 grep -v '^ *+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest$ac_exeext &&
14587 $as_test_x conftest$ac_exeext; then
14588 ac_cv_lib_gpm_Gpm_Open=yes
14590 echo "$as_me: failed program was:" >&5
14591 sed 's/^/| /' conftest.$ac_ext >&5
14593 ac_cv_lib_gpm_Gpm_Open=no
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597 conftest$ac_exeext conftest.$ac_ext
14598 LIBS=$ac_check_lib_save_LIBS
14600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14601 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14602 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14611 if test "${HAVE_GPM}" = "yes"; then
14613 cat >>confdefs.h <<\_ACEOF
14619 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14620 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14621 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14622 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14626 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14628 # Is the header compilable?
14629 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14630 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14631 cat >conftest.$ac_ext <<_ACEOF
14634 cat confdefs.h >>conftest.$ac_ext
14635 cat >>conftest.$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14637 $ac_includes_default
14638 #include <malloc/malloc.h>
14640 rm -f conftest.$ac_objext
14641 if { (ac_try="$ac_compile"
14642 case "(($ac_try" in
14643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14644 *) ac_try_echo
=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_compile") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1
>conftest.err
14651 cat conftest.err
>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest.
$ac_objext; then
14657 ac_header_compiler
=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.
$ac_ext >&5
14662 ac_header_compiler
=no
14665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14667 echo "${ECHO_T}$ac_header_compiler" >&6; }
14669 # Is the header present?
14670 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14671 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14672 cat >conftest.
$ac_ext <<_ACEOF
14675 cat confdefs.h
>>conftest.
$ac_ext
14676 cat >>conftest.
$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <malloc/malloc.h>
14680 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14681 case "(($ac_try" in
14682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14688 grep -v '^ *+' conftest.er1 >conftest.err
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } >/dev/null && {
14693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14694 test ! -s conftest.err
14696 ac_header_preproc=yes
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_header_preproc=no
14704 rm -f conftest.err conftest.$ac_ext
14705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14706 echo "${ECHO_T}$ac_header_preproc" >&6; }
14708 # So? What about this header?
14709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14711 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14712 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14714 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14715 ac_header_preproc=yes
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14723 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14725 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14726 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14727 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14728 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14729 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14733 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14734 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14735 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14740 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14741 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14744 if test $ac_cv_header_malloc_malloc_h = yes; then
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_MALLOC_MALLOC_H 1
14754 ### Use Mac OS X Carbon API to implement GUI.
14755 if test "${HAVE_CARBON}" = "yes"; then
14757 cat >>confdefs.h <<\_ACEOF
14758 #define HAVE_CARBON 1
14761 ## Specify the install directory
14763 if test "${carbon_appdir_x}" != ""; then
14764 case ${carbon_appdir_x} in
14765 y | ye | yes) carbon_appdir=/Applications ;;
14766 * ) carbon_appdir=${carbon_appdir_x} ;;
14769 # We also have mouse menus.
14773 ### Use session management (-lSM -lICE) if available
14775 if test "${HAVE_X11}" = "yes"; then
14776 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14777 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14778 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14779 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14783 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14785 # Is the header compilable?
14786 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14787 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 $ac_includes_default
14795 #include <X11/SM/SMlib.h>
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14801 *) ac_try_echo
=$ac_try;;
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804 (eval "$ac_compile") 2>conftest.er1
14806 grep -v '^ *+' conftest.er1
>conftest.err
14808 cat conftest.err
>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } && {
14811 test -z "$ac_c_werror_flag" ||
14812 test ! -s conftest.err
14813 } && test -s conftest.
$ac_objext; then
14814 ac_header_compiler
=yes
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.
$ac_ext >&5
14819 ac_header_compiler
=no
14822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6; }
14826 # Is the header present?
14827 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14828 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14829 cat >conftest.
$ac_ext <<_ACEOF
14832 cat confdefs.h
>>conftest.
$ac_ext
14833 cat >>conftest.
$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 #include <X11/SM/SMlib.h>
14837 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14838 case "(($ac_try" in
14839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } >/dev/null && {
14850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14853 ac_header_preproc=yes
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_header_preproc=no
14861 rm -f conftest.err conftest.$ac_ext
14862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 echo "${ECHO_T}$ac_header_preproc" >&6; }
14865 # So? What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14868 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14869 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14871 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14872 ac_header_preproc=yes
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14880 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14882 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14884 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14886 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14890 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14891 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14892 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14893 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14897 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14898 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14901 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14902 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14903 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14904 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 ac_check_lib_save_LIBS=$LIBS
14908 LIBS="-lSM -lICE $LIBS"
14909 cat >conftest.$ac_ext <<_ACEOF
14912 cat confdefs.h >>conftest.$ac_ext
14913 cat >>conftest.$ac_ext <<_ACEOF
14914 /* end confdefs.h. */
14916 /* Override any GCC internal prototype to avoid an error.
14917 Use char because int might match the return type of a GCC
14918 builtin and then its argument prototype would still apply. */
14922 char SmcOpenConnection ();
14926 return SmcOpenConnection ();
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (ac_try="$ac_link"
14933 case "(($ac_try" in
14934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14935 *) ac_try_echo
=$ac_try;;
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_link") 2>conftest.er1
14940 grep -v '^ *+' conftest.er1
>conftest.err
14942 cat conftest.err
>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } && {
14945 test -z "$ac_c_werror_flag" ||
14946 test ! -s conftest.err
14947 } && test -s conftest
$ac_exeext &&
14948 $as_test_x conftest
$ac_exeext; then
14949 ac_cv_lib_SM_SmcOpenConnection
=yes
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.
$ac_ext >&5
14954 ac_cv_lib_SM_SmcOpenConnection
=no
14957 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14958 conftest
$ac_exeext conftest.
$ac_ext
14959 LIBS
=$ac_check_lib_save_LIBS
14961 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14962 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14963 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14971 if test "${HAVE_X_SM}" = "yes"; then
14973 cat >>confdefs.h
<<\_ACEOF
14974 #define HAVE_X_SM 1
14979 *) LIBS
="-lSM -lICE $LIBS" ;;
14984 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14985 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14986 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14987 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 cat >conftest.
$ac_ext <<_ACEOF
14993 cat confdefs.h
>>conftest.
$ac_ext
14994 cat >>conftest.
$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
15005 rm -f conftest.
$ac_objext conftest
$ac_exeext
15006 if { (ac_try
="$ac_link"
15007 case "(($ac_try" in
15008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_link") 2>conftest.er1
15014 grep -v '^ *+' conftest.er1 >conftest.err
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest$ac_exeext &&
15022 $as_test_x conftest$ac_exeext; then
15023 emacs_cv_netdb_declares_h_errno=yes
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 emacs_cv_netdb_declares_h_errno=no
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032 conftest$ac_exeext conftest.$ac_ext
15034 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15035 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15036 if test $emacs_cv_netdb_declares_h_errno = yes; then
15038 cat >>confdefs.h <<\_ACEOF
15039 #define HAVE_H_ERRNO 1
15044 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15045 # for constant arguments. Useless!
15046 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15047 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15048 if test "${ac_cv_working_alloca_h+set}" = set; then
15049 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 #include <alloca.h>
15061 char *p = (char *) alloca (2 * sizeof (int));
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15071 *) ac_try_echo
=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1
>conftest.err
15078 cat conftest.err
>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest
$ac_exeext &&
15084 $as_test_x conftest
$ac_exeext; then
15085 ac_cv_working_alloca_h
=yes
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.
$ac_ext >&5
15090 ac_cv_working_alloca_h
=no
15093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15094 conftest
$ac_exeext conftest.
$ac_ext
15096 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15097 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15098 if test $ac_cv_working_alloca_h = yes; then
15100 cat >>confdefs.h
<<\_ACEOF
15101 #define HAVE_ALLOCA_H 1
15106 { echo "$as_me:$LINENO: checking for alloca" >&5
15107 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15108 if test "${ac_cv_func_alloca_works+set}" = set; then
15109 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 cat >conftest.
$ac_ext <<_ACEOF
15114 cat confdefs.h
>>conftest.
$ac_ext
15115 cat >>conftest.
$ac_ext <<_ACEOF
15116 /* end confdefs.h. */
15118 # define alloca __builtin_alloca
15121 # include <malloc.h>
15122 # define alloca _alloca
15124 # ifdef HAVE_ALLOCA_H
15125 # include <alloca.h>
15130 # ifndef alloca /* predefined by HP cc +Olibcalls */
15141 char *p = (char *) alloca (1);
15147 rm -f conftest.
$ac_objext conftest
$ac_exeext
15148 if { (ac_try
="$ac_link"
15149 case "(($ac_try" in
15150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
15165 ac_cv_func_alloca_works=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_cv_func_alloca_works=no
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15177 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15179 if test $ac_cv_func_alloca_works = yes; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_ALLOCA 1
15186 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15187 # that cause trouble. Some versions do not even contain alloca or
15188 # contain a buggy version. If you still want to use their alloca,
15189 # use ar to extract alloca.o from them instead of compiling alloca.c.
15191 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15193 cat >>confdefs.h <<\_ACEOF
15198 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15199 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15200 if test "${ac_cv_os_cray+set}" = set; then
15201 echo $ECHO_N "(cached
) $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #if defined CRAY && ! defined CRAY2
15216 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15217 $EGREP "webecray
" >/dev/null 2>&1; then
15225 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15226 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15227 if test $ac_cv_os_cray = yes; then
15228 for ac_func in _getb67 GETB67 getb67; do
15229 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15230 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15231 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15232 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15233 echo $ECHO_N "(cached
) $ECHO_C" >&6
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15243 #define $ac_func innocuous_$ac_func
15245 /* System header to define __stub macros and hopefully few prototypes,
15246 which can conflict with char $ac_func (); below.
15247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248 <limits.h> exists even on freestanding compilers. */
15251 # include <limits.h>
15253 # include <assert.h>
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15265 /* The GNU C library defines this for functions which it implements
15266 to always fail with ENOSYS. Some functions are actually named
15267 something starting with __ and the normal name is an alias. */
15268 #if defined __stub_$ac_func || defined __stub___$ac_func
15275 return $ac_func ();
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (ac_try="$ac_link"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_link") 2>conftest.er1
15289 grep -v '^ *+' conftest.er1 >conftest.err
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15293 (exit $ac_status); } && {
15294 test -z "$ac_c_werror_flag" ||
15295 test ! -s conftest.err
15296 } && test -s conftest$ac_exeext &&
15297 $as_test_x conftest$ac_exeext; then
15298 eval "$as_ac_var=yes"
15300 echo "$as_me: failed program was
:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15303 eval "$as_ac_var=no
"
15306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15307 conftest$ac_exeext conftest.$ac_ext
15309 ac_res=`eval echo '${'$as_ac_var'}'`
15310 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15311 echo "${ECHO_T}$ac_res" >&6; }
15312 if test `eval echo '${'$as_ac_var'}'` = yes; then
15314 cat >>confdefs.h <<_ACEOF
15315 #define CRAY_STACKSEG_END $ac_func
15324 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15325 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15326 if test "${ac_cv_c_stack_direction+set}" = set; then
15327 echo $ECHO_N "(cached
) $ECHO_C" >&6
15329 if test "$cross_compiling" = yes; then
15330 ac_cv_c_stack_direction=0
15332 cat >conftest.$ac_ext <<_ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 $ac_includes_default
15340 find_stack_direction ()
15342 static char *addr = 0;
15347 return find_stack_direction ();
15350 return (&dummy > addr) ? 1 : -1;
15356 return find_stack_direction () < 0;
15359 rm -f conftest$ac_exeext
15360 if { (ac_try="$ac_link"
15361 case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_link") 2>&5
15368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15370 { (case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_try") 2>&5
15377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_cv_c_stack_direction=1
15381 echo "$as_me: program exited with status
$ac_status" >&5
15382 echo "$as_me: failed program was
:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ( exit $ac_status )
15386 ac_cv_c_stack_direction=-1
15388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15394 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15396 cat >>confdefs.h <<_ACEOF
15397 #define STACK_DIRECTION $ac_cv_c_stack_direction
15404 # fmod, logb, and frexp are found in -lm on most systems.
15405 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15407 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15408 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15409 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15410 echo $ECHO_N "(cached
) $ECHO_C" >&6
15412 ac_check_lib_save_LIBS=$LIBS
15414 cat >conftest.$ac_ext <<_ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h. */
15421 /* Override any GCC internal prototype to avoid an error.
15422 Use char because int might match the return type of a GCC
15423 builtin and then its argument prototype would still apply. */
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_link") 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest$ac_exeext &&
15453 $as_test_x conftest$ac_exeext; then
15454 ac_cv_lib_m_sqrt=yes
15456 echo "$as_me: failed program was
:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_cv_lib_m_sqrt=no
15462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15463 conftest$ac_exeext conftest.$ac_ext
15464 LIBS=$ac_check_lib_save_LIBS
15466 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15467 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15468 if test $ac_cv_lib_m_sqrt = yes; then
15469 cat >>confdefs.h <<_ACEOF
15470 #define HAVE_LIBM 1
15478 # Check for mail-locking functions in a "mail" library. Probably this should
15479 # have the same check as for liblockfile below.
15481 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15482 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15483 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15484 echo $ECHO_N "(cached
) $ECHO_C" >&6
15486 ac_check_lib_save_LIBS=$LIBS
15487 LIBS="-lmail $LIBS"
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15495 /* Override any GCC internal prototype to avoid an error.
15496 Use char because int might match the return type of a GCC
15497 builtin and then its argument prototype would still apply. */
15505 return maillock ();
15510 rm -f conftest.$ac_objext conftest$ac_exeext
15511 if { (ac_try="$ac_link"
15512 case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_link") 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15523 (exit $ac_status); } && {
15524 test -z "$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15526 } && test -s conftest$ac_exeext &&
15527 $as_test_x conftest$ac_exeext; then
15528 ac_cv_lib_mail_maillock=yes
15530 echo "$as_me: failed program was
:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 ac_cv_lib_mail_maillock=no
15536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15537 conftest$ac_exeext conftest.$ac_ext
15538 LIBS=$ac_check_lib_save_LIBS
15540 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15541 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15542 if test $ac_cv_lib_mail_maillock = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_LIBMAIL 1
15547 LIBS="-lmail $LIBS"
15552 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15553 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15554 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15555 echo $ECHO_N "(cached
) $ECHO_C" >&6
15557 ac_check_lib_save_LIBS=$LIBS
15558 LIBS="-llockfile $LIBS"
15559 cat >conftest.$ac_ext <<_ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h. */
15566 /* Override any GCC internal prototype to avoid an error.
15567 Use char because int might match the return type of a GCC
15568 builtin and then its argument prototype would still apply. */
15576 return maillock ();
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (ac_try="$ac_link"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_link") 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest$ac_exeext &&
15598 $as_test_x conftest$ac_exeext; then
15599 ac_cv_lib_lockfile_maillock=yes
15601 echo "$as_me: failed program was
:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_cv_lib_lockfile_maillock=no
15607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15608 conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_check_lib_save_LIBS
15611 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15612 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15613 if test $ac_cv_lib_lockfile_maillock = yes; then
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_LIBLOCKFILE 1
15618 LIBS="-llockfile $LIBS"
15622 # If we have the shared liblockfile, assume we must use it for mail
15623 # locking (e.g. Debian). If we couldn't link against liblockfile
15624 # (no liblockfile.a installed), ensure that we don't need to.
15625 if test "$ac_cv_lib_lockfile_maillock" = no; then
15626 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15627 set dummy liblockfile.so; ac_word=$2
15628 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15629 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15630 if test "${ac_cv_prog_liblockfile+set}" = set; then
15631 echo $ECHO_N "(cached
) $ECHO_C" >&6
15633 if test -n "$liblockfile"; then
15634 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15638 for as_dir in $as_dummy
15641 test -z "$as_dir" && as_dir=.
15642 for ac_exec_ext in '' $ac_executable_extensions; do
15643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15644 ac_cv_prog_liblockfile="yes"
15645 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15652 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15655 liblockfile=$ac_cv_prog_liblockfile
15656 if test -n "$liblockfile"; then
15657 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15658 echo "${ECHO_T}$liblockfile" >&6; }
15660 { echo "$as_me:$LINENO: result
: no
" >&5
15661 echo "${ECHO_T}no
" >&6; }
15665 if test $ac_cv_prog_liblockfile = yes; then
15666 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15667 This probably means that movemail could lose mail.
15668 There may be a \`development' package to
install containing liblockfile.
" >&5
15669 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15670 This probably means that movemail could lose mail.
15671 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15672 { (exit 1); exit 1; }; }
15677 for ac_func in touchlock
15679 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15680 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15681 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15682 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15683 echo $ECHO_N "(cached
) $ECHO_C" >&6
15685 cat >conftest.$ac_ext <<_ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15693 #define $ac_func innocuous_$ac_func
15695 /* System header to define __stub macros and hopefully few prototypes,
15696 which can conflict with char $ac_func (); below.
15697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15698 <limits.h> exists even on freestanding compilers. */
15701 # include <limits.h>
15703 # include <assert.h>
15708 /* Override any GCC internal prototype to avoid an error.
15709 Use char because int might match the return type of a GCC
15710 builtin and then its argument prototype would still apply. */
15715 /* The GNU C library defines this for functions which it implements
15716 to always fail with ENOSYS. Some functions are actually named
15717 something starting with __ and the normal name is an alias. */
15718 #if defined __stub_$ac_func || defined __stub___$ac_func
15725 return $ac_func ();
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_link") 2>conftest.er1
15739 grep -v '^ *+' conftest.er1 >conftest.err
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext &&
15747 $as_test_x conftest$ac_exeext; then
15748 eval "$as_ac_var=yes"
15750 echo "$as_me: failed program was
:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 eval "$as_ac_var=no
"
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757 conftest$ac_exeext conftest.$ac_ext
15759 ac_res=`eval echo '${'$as_ac_var'}'`
15760 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15761 echo "${ECHO_T}$ac_res" >&6; }
15762 if test `eval echo '${'$as_ac_var'}'` = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15771 for ac_header in maillock.h
15773 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15775 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15776 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15777 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15778 echo $ECHO_N "(cached
) $ECHO_C" >&6
15780 ac_res=`eval echo '${'$as_ac_Header'}'`
15781 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15782 echo "${ECHO_T}$ac_res" >&6; }
15784 # Is the header compilable?
15785 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15786 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15787 cat >conftest.$ac_ext <<_ACEOF
15790 cat confdefs.h >>conftest.$ac_ext
15791 cat >>conftest.$ac_ext <<_ACEOF
15792 /* end confdefs.h. */
15793 $ac_includes_default
15794 #include <$ac_header>
15796 rm -f conftest.$ac_objext
15797 if { (ac_try="$ac_compile"
15798 case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_compile") 2>conftest.er1
15805 grep -v '^ *+' conftest.er1 >conftest.err
15807 cat conftest.err >&5
15808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15809 (exit $ac_status); } && {
15810 test -z "$ac_c_werror_flag" ||
15811 test ! -s conftest.err
15812 } && test -s conftest.$ac_objext; then
15813 ac_header_compiler=yes
15815 echo "$as_me: failed program was
:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 ac_header_compiler=no
15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15823 echo "${ECHO_T}$ac_header_compiler" >&6; }
15825 # Is the header present?
15826 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15827 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <$ac_header>
15836 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15844 grep -v '^ *+' conftest.er1 >conftest.err
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15848 (exit $ac_status); } >/dev/null && {
15849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15852 ac_header_preproc=yes
15854 echo "$as_me: failed program was
:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15857 ac_header_preproc=no
15860 rm -f conftest.err conftest.$ac_ext
15861 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15862 echo "${ECHO_T}$ac_header_preproc" >&6; }
15864 # So? What about this header?
15865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15867 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15868 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15869 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15871 ac_header_preproc=yes
15874 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15875 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15876 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15877 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15878 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15879 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15880 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15881 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15882 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15884 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15885 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15889 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15890 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15891 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15892 echo $ECHO_N "(cached
) $ECHO_C" >&6
15894 eval "$as_ac_Header=\
$ac_header_preproc"
15896 ac_res=`eval echo '${'$as_ac_Header'}'`
15897 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15898 echo "${ECHO_T}$ac_res" >&6; }
15901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15902 cat >>confdefs.h <<_ACEOF
15903 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15980 for ac_func in gethostname getdomainname dup2 \
15981 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15982 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15983 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15984 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15985 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15986 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15987 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15988 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15990 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15991 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15992 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15993 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15994 echo $ECHO_N "(cached
) $ECHO_C" >&6
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16004 #define $ac_func innocuous_$ac_func
16006 /* System header to define __stub macros and hopefully few prototypes,
16007 which can conflict with char $ac_func (); below.
16008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16009 <limits.h> exists even on freestanding compilers. */
16012 # include <limits.h>
16014 # include <assert.h>
16019 /* Override any GCC internal prototype to avoid an error.
16020 Use char because int might match the return type of a GCC
16021 builtin and then its argument prototype would still apply. */
16026 /* The GNU C library defines this for functions which it implements
16027 to always fail with ENOSYS. Some functions are actually named
16028 something starting with __ and the normal name is an alias. */
16029 #if defined __stub_$ac_func || defined __stub___$ac_func
16036 return $ac_func ();
16041 rm -f conftest.$ac_objext conftest$ac_exeext
16042 if { (ac_try="$ac_link"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_link") 2>conftest.er1
16050 grep -v '^ *+' conftest.er1 >conftest.err
16052 cat conftest.err >&5
16053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16054 (exit $ac_status); } && {
16055 test -z "$ac_c_werror_flag" ||
16056 test ! -s conftest.err
16057 } && test -s conftest$ac_exeext &&
16058 $as_test_x conftest$ac_exeext; then
16059 eval "$as_ac_var=yes"
16061 echo "$as_me: failed program was
:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16064 eval "$as_ac_var=no
"
16067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16068 conftest$ac_exeext conftest.$ac_ext
16070 ac_res=`eval echo '${'$as_ac_var'}'`
16071 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16072 echo "${ECHO_T}$ac_res" >&6; }
16073 if test `eval echo '${'$as_ac_var'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16083 for ac_header in sys/un.h
16085 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16086 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16087 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16088 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16089 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16090 echo $ECHO_N "(cached
) $ECHO_C" >&6
16092 ac_res=`eval echo '${'$as_ac_Header'}'`
16093 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16096 # Is the header compilable?
16097 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16098 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16099 cat >conftest.$ac_ext <<_ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 $ac_includes_default
16106 #include <$ac_header>
16108 rm -f conftest.$ac_objext
16109 if { (ac_try="$ac_compile"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_compile") 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest.$ac_objext; then
16125 ac_header_compiler=yes
16127 echo "$as_me: failed program was
:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16130 ac_header_compiler=no
16133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16134 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16135 echo "${ECHO_T}$ac_header_compiler" >&6; }
16137 # Is the header present?
16138 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16139 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16140 cat >conftest.$ac_ext <<_ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16146 #include <$ac_header>
16148 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16156 grep -v '^ *+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16160 (exit $ac_status); } >/dev/null && {
16161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16164 ac_header_preproc=yes
16166 echo "$as_me: failed program was
:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 ac_header_preproc=no
16172 rm -f conftest.err conftest.$ac_ext
16173 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16174 echo "${ECHO_T}$ac_header_preproc" >&6; }
16176 # So? What about this header?
16177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16179 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16180 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16181 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16183 ac_header_preproc=yes
16186 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16187 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16188 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16189 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16190 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16191 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16192 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16193 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16194 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16196 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16197 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16201 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16202 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16203 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16204 echo $ECHO_N "(cached
) $ECHO_C" >&6
16206 eval "$as_ac_Header=\
$ac_header_preproc"
16208 ac_res=`eval echo '${'$as_ac_Header'}'`
16209 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16210 echo "${ECHO_T}$ac_res" >&6; }
16213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16214 cat >>confdefs.h <<_ACEOF
16215 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16227 for ac_header in $ac_header_list
16229 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16230 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16231 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16232 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16234 echo $ECHO_N "(cached
) $ECHO_C" >&6
16236 ac_res=`eval echo '${'$as_ac_Header'}'`
16237 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16238 echo "${ECHO_T}$ac_res" >&6; }
16240 # Is the header compilable?
16241 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16242 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16243 cat >conftest.$ac_ext <<_ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16250 #include <$ac_header>
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_compile") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1 >conftest.err
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest.$ac_objext; then
16269 ac_header_compiler=yes
16271 echo "$as_me: failed program was
:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 ac_header_compiler=no
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16279 echo "${ECHO_T}$ac_header_compiler" >&6; }
16281 # Is the header present?
16282 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16283 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16284 cat >conftest.$ac_ext <<_ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290 #include <$ac_header>
16292 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16293 case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16300 grep -v '^ *+' conftest.er1 >conftest.err
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16304 (exit $ac_status); } >/dev/null && {
16305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16306 test ! -s conftest.err
16308 ac_header_preproc=yes
16310 echo "$as_me: failed program was
:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16313 ac_header_preproc=no
16316 rm -f conftest.err conftest.$ac_ext
16317 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16318 echo "${ECHO_T}$ac_header_preproc" >&6; }
16320 # So? What about this header?
16321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16323 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16324 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16325 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16327 ac_header_preproc=yes
16330 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16331 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16332 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16333 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16334 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16335 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16336 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16337 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16338 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16340 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16341 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16345 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16346 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16348 echo $ECHO_N "(cached
) $ECHO_C" >&6
16350 eval "$as_ac_Header=\
$ac_header_preproc"
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16358 cat >>confdefs.h <<_ACEOF
16359 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16374 for ac_func in $ac_func_list
16376 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16377 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16378 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16379 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16380 echo $ECHO_N "(cached
) $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16390 #define $ac_func innocuous_$ac_func
16392 /* System header to define __stub macros and hopefully few prototypes,
16393 which can conflict with char $ac_func (); below.
16394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16395 <limits.h> exists even on freestanding compilers. */
16398 # include <limits.h>
16400 # include <assert.h>
16405 /* Override any GCC internal prototype to avoid an error.
16406 Use char because int might match the return type of a GCC
16407 builtin and then its argument prototype would still apply. */
16412 /* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415 #if defined __stub_$ac_func || defined __stub___$ac_func
16422 return $ac_func ();
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>conftest.er1
16436 grep -v '^ *+' conftest.er1 >conftest.err
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest$ac_exeext &&
16444 $as_test_x conftest$ac_exeext; then
16445 eval "$as_ac_var=yes"
16447 echo "$as_me: failed program was
:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16450 eval "$as_ac_var=no
"
16453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16454 conftest$ac_exeext conftest.$ac_ext
16456 ac_res=`eval echo '${'$as_ac_var'}'`
16457 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16458 echo "${ECHO_T}$ac_res" >&6; }
16459 if test `eval echo '${'$as_ac_var'}'` = yes; then
16460 cat >>confdefs.h <<_ACEOF
16461 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16483 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16484 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16485 if test "${ac_cv_func_working_mktime+set}" = set; then
16486 echo $ECHO_N "(cached
) $ECHO_C" >&6
16488 if test "$cross_compiling" = yes; then
16489 ac_cv_func_working_mktime=no
16491 cat >conftest.$ac_ext <<_ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h. */
16497 /* Test program from Paul Eggert and Tony Leneis. */
16498 #ifdef TIME_WITH_SYS_TIME
16499 # include <sys/time.h>
16502 # ifdef HAVE_SYS_TIME_H
16503 # include <sys/time.h>
16509 #include <stdlib.h>
16511 #ifdef HAVE_UNISTD_H
16512 # include <unistd.h>
16516 # define alarm(X) /* empty */
16519 /* Work around redefinition to rpl_putenv by other config tests. */
16522 static time_t time_t_max;
16523 static time_t time_t_min;
16525 /* Values we'll use to set the TZ environment variable. */
16526 static char *tz_strings[] = {
16527 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16528 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16530 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16532 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16533 Based on a problem report from Andreas Jaeger. */
16535 spring_forward_gap ()
16537 /* glibc (up to about 1998-10-07) failed this test. */
16540 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16541 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16542 on systems that don't support the Olson extension, or don't have the
16543 full zoneinfo tables installed. */
16544 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16553 return mktime (&tm) != (time_t) -1;
16561 return ! (lt = localtime (&now)) || mktime (lt) == now;
16568 return (mktime_test1 (now)
16569 && mktime_test1 ((time_t) (time_t_max - now))
16570 && mktime_test1 ((time_t) (time_t_min + now)));
16576 /* Based on code from Ariel Faigon. */
16586 return tm.tm_mon == 2 && tm.tm_mday == 31;
16595 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16596 now = mktime (&tm);
16597 if (now != (time_t) -1)
16599 struct tm *lt = localtime (&now);
16601 && lt->tm_year == tm.tm_year
16602 && lt->tm_mon == tm.tm_mon
16603 && lt->tm_mday == tm.tm_mday
16604 && lt->tm_hour == tm.tm_hour
16605 && lt->tm_min == tm.tm_min
16606 && lt->tm_sec == tm.tm_sec
16607 && lt->tm_yday == tm.tm_yday
16608 && lt->tm_wday == tm.tm_wday
16609 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16610 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16619 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16620 ignoring leap seconds. */
16621 unsigned long int answer = 2527315200UL;
16625 tm.tm_year = 2050 - 1900;
16628 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16631 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16632 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16633 on systems that don't support the Olson extension, or don't have the
16634 full zoneinfo tables installed. */
16635 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16639 /* Check that the result is either a failure, or close enough
16640 to the correct answer that we can assume the discrepancy is
16641 due to leap seconds. */
16642 return (t == (time_t) -1
16643 || (0 < t && answer - 120 <= t && t <= answer + 120));
16652 /* This test makes some buggy mktime implementations loop.
16653 Give up after 60 seconds; a mktime slower than that
16654 isn't worth using anyway. */
16657 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16660 if ((time_t) -1 < 0)
16661 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16663 delta = time_t_max / 997; /* a suitable prime number */
16664 for (i = 0; i < N_STRINGS; i++)
16667 putenv (tz_strings[i]);
16669 for (t = 0; t <= time_t_max - delta; t += delta)
16670 if (! mktime_test (t))
16672 if (! (mktime_test ((time_t) 1)
16673 && mktime_test ((time_t) (60 * 60))
16674 && mktime_test ((time_t) (60 * 60 * 24))))
16677 for (j = 1; 0 < j; j *= 2)
16678 if (! bigtime_test (j))
16680 if (! bigtime_test (j - 1))
16683 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16686 rm -f conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_link") 2>&5
16695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16697 { (case "(($ac_try" in
16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_try") 2>&5
16704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16705 (exit $ac_status); }; }; then
16706 ac_cv_func_working_mktime=yes
16708 echo "$as_me: program exited with status
$ac_status" >&5
16709 echo "$as_me: failed program was
:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16712 ( exit $ac_status )
16713 ac_cv_func_working_mktime=no
16715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16720 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16721 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16722 if test $ac_cv_func_working_mktime = no; then
16723 case " $LIBOBJS " in
16724 *" mktime.
$ac_objext "* ) ;;
16725 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16731 if test "$ac_cv_func_working_mktime" = no; then
16733 cat >>confdefs.h <<\_ACEOF
16734 #define BROKEN_MKTIME 1
16739 ac_have_func=no # yes means we've found a way to get the load average.
16741 # Make sure getloadavg.c is where it belongs, at configure-time.
16742 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16743 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16744 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16745 { (exit 1); exit 1; }; }
16749 # Check for getloadavg, but be sure not to touch the cache variable.
16750 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16751 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16752 if test "${ac_cv_func_getloadavg+set}" = set; then
16753 echo $ECHO_N "(cached
) $ECHO_C" >&6
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16763 #define getloadavg innocuous_getloadavg
16765 /* System header to define __stub macros and hopefully few prototypes,
16766 which can conflict with char getloadavg (); below.
16767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768 <limits.h> exists even on freestanding compilers. */
16771 # include <limits.h>
16773 # include <assert.h>
16778 /* Override any GCC internal prototype to avoid an error.
16779 Use char because int might match the return type of a GCC
16780 builtin and then its argument prototype would still apply. */
16784 char getloadavg ();
16785 /* The GNU C library defines this for functions which it implements
16786 to always fail with ENOSYS. Some functions are actually named
16787 something starting with __ and the normal name is an alias. */
16788 #if defined __stub_getloadavg || defined __stub___getloadavg
16795 return getloadavg ();
16800 rm -f conftest.$ac_objext conftest$ac_exeext
16801 if { (ac_try="$ac_link"
16802 case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
16809 grep -v '^ *+' conftest.er1 >conftest.err
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16813 (exit $ac_status); } && {
16814 test -z "$ac_c_werror_flag" ||
16815 test ! -s conftest.err
16816 } && test -s conftest$ac_exeext &&
16817 $as_test_x conftest$ac_exeext; then
16818 ac_cv_func_getloadavg=yes
16820 echo "$as_me: failed program was
:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 ac_cv_func_getloadavg=no
16826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16827 conftest$ac_exeext conftest.$ac_ext
16829 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16830 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16831 if test $ac_cv_func_getloadavg = yes; then
16836 ) && ac_have_func=yes
16838 # On HPUX9, an unprivileged user can get load averages through this function.
16840 for ac_func in pstat_getdynamic
16842 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16843 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16844 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16845 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16846 echo $ECHO_N "(cached
) $ECHO_C" >&6
16848 cat >conftest.$ac_ext <<_ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16856 #define $ac_func innocuous_$ac_func
16858 /* System header to define __stub macros and hopefully few prototypes,
16859 which can conflict with char $ac_func (); below.
16860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16861 <limits.h> exists even on freestanding compilers. */
16864 # include <limits.h>
16866 # include <assert.h>
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined __stub_$ac_func || defined __stub___$ac_func
16888 return $ac_func ();
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 eval "$as_ac_var=yes"
16913 echo "$as_me: failed program was
:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 eval "$as_ac_var=no
"
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16922 ac_res=`eval echo '${'$as_ac_var'}'`
16923 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16924 echo "${ECHO_T}$ac_res" >&6; }
16925 if test `eval echo '${'$as_ac_var'}'` = yes; then
16926 cat >>confdefs.h <<_ACEOF
16927 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16934 # Solaris has libkstat which does not require root.
16936 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16937 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16938 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16939 echo $ECHO_N "(cached
) $ECHO_C" >&6
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-lkstat $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16956 char kstat_open ();
16960 return kstat_open ();
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16974 grep -v '^ *+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest$ac_exeext &&
16982 $as_test_x conftest$ac_exeext; then
16983 ac_cv_lib_kstat_kstat_open=yes
16985 echo "$as_me: failed program was
:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16988 ac_cv_lib_kstat_kstat_open=no
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992 conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16995 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16996 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16997 if test $ac_cv_lib_kstat_kstat_open = yes; then
16998 cat >>confdefs.h <<_ACEOF
16999 #define HAVE_LIBKSTAT 1
17002 LIBS="-lkstat $LIBS"
17006 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17008 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17009 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17010 # to get the right answer into the cache.
17011 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17012 if test $ac_have_func = no; then
17013 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17014 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17015 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17016 echo $ECHO_N "(cached
) $ECHO_C" >&6
17018 ac_check_lib_save_LIBS=$LIBS
17020 cat >conftest.$ac_ext <<_ACEOF
17023 cat confdefs.h >>conftest.$ac_ext
17024 cat >>conftest.$ac_ext <<_ACEOF
17025 /* end confdefs.h. */
17027 /* Override any GCC internal prototype to avoid an error.
17028 Use char because int might match the return type of a GCC
17029 builtin and then its argument prototype would still apply. */
17037 return elf_begin ();
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17051 grep -v '^ *+' conftest.er1 >conftest.err
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17055 (exit $ac_status); } && {
17056 test -z "$ac_c_werror_flag" ||
17057 test ! -s conftest.err
17058 } && test -s conftest$ac_exeext &&
17059 $as_test_x conftest$ac_exeext; then
17060 ac_cv_lib_elf_elf_begin=yes
17062 echo "$as_me: failed program was
:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 ac_cv_lib_elf_elf_begin=no
17068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17069 conftest$ac_exeext conftest.$ac_ext
17070 LIBS=$ac_check_lib_save_LIBS
17072 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17073 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17074 if test $ac_cv_lib_elf_elf_begin = yes; then
17079 if test $ac_have_func = no; then
17080 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17081 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17082 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17083 echo $ECHO_N "(cached
) $ECHO_C" >&6
17085 ac_check_lib_save_LIBS=$LIBS
17087 cat >conftest.$ac_ext <<_ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17094 /* Override any GCC internal prototype to avoid an error.
17095 Use char because int might match the return type of a GCC
17096 builtin and then its argument prototype would still apply. */
17104 return kvm_open ();
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (ac_try="$ac_link"
17111 case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_link") 2>conftest.er1
17118 grep -v '^ *+' conftest.er1 >conftest.err
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17122 (exit $ac_status); } && {
17123 test -z "$ac_c_werror_flag" ||
17124 test ! -s conftest.err
17125 } && test -s conftest$ac_exeext &&
17126 $as_test_x conftest$ac_exeext; then
17127 ac_cv_lib_kvm_kvm_open=yes
17129 echo "$as_me: failed program was
:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17132 ac_cv_lib_kvm_kvm_open=no
17135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17136 conftest$ac_exeext conftest.$ac_ext
17137 LIBS=$ac_check_lib_save_LIBS
17139 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17140 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17141 if test $ac_cv_lib_kvm_kvm_open = yes; then
17145 # Check for the 4.4BSD definition of getloadavg.
17146 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17147 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17148 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17149 echo $ECHO_N "(cached
) $ECHO_C" >&6
17151 ac_check_lib_save_LIBS=$LIBS
17152 LIBS="-lutil $LIBS"
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17160 /* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
17166 char getloadavg ();
17170 return getloadavg ();
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext &&
17192 $as_test_x conftest$ac_exeext; then
17193 ac_cv_lib_util_getloadavg=yes
17195 echo "$as_me: failed program was
:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_cv_lib_util_getloadavg=no
17201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17205 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17206 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17207 if test $ac_cv_lib_util_getloadavg = yes; then
17208 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17213 if test $ac_have_func = no; then
17214 # There is a commonly available library for RS/6000 AIX.
17215 # Since it is not a standard part of AIX, it might be installed locally.
17216 ac_getloadavg_LIBS=$LIBS
17217 LIBS="-L/usr
/local
/lib
$LIBS"
17218 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17219 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17220 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17221 echo $ECHO_N "(cached
) $ECHO_C" >&6
17223 ac_check_lib_save_LIBS=$LIBS
17224 LIBS="-lgetloadavg $LIBS"
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17232 /* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
17238 char getloadavg ();
17242 return getloadavg ();
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (ac_try="$ac_link"
17249 case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_link") 2>conftest.er1
17256 grep -v '^ *+' conftest.er1 >conftest.err
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17260 (exit $ac_status); } && {
17261 test -z "$ac_c_werror_flag" ||
17262 test ! -s conftest.err
17263 } && test -s conftest$ac_exeext &&
17264 $as_test_x conftest$ac_exeext; then
17265 ac_cv_lib_getloadavg_getloadavg=yes
17267 echo "$as_me: failed program was
:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17270 ac_cv_lib_getloadavg_getloadavg=no
17273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17274 conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17277 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17278 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17279 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17280 LIBS="-lgetloadavg $LIBS"
17282 LIBS=$ac_getloadavg_LIBS
17287 # Make sure it is really in the library, if we think we found it,
17288 # otherwise set up the replacement function.
17290 for ac_func in getloadavg
17292 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17293 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17294 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17295 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17296 echo $ECHO_N "(cached
) $ECHO_C" >&6
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17306 #define $ac_func innocuous_$ac_func
17308 /* System header to define __stub macros and hopefully few prototypes,
17309 which can conflict with char $ac_func (); below.
17310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17311 <limits.h> exists even on freestanding compilers. */
17314 # include <limits.h>
17316 # include <assert.h>
17321 /* Override any GCC internal prototype to avoid an error.
17322 Use char because int might match the return type of a GCC
17323 builtin and then its argument prototype would still apply. */
17328 /* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331 #if defined __stub_$ac_func || defined __stub___$ac_func
17338 return $ac_func ();
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 eval "$as_ac_var=yes"
17363 echo "$as_me: failed program was
:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 eval "$as_ac_var=no
"
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370 conftest$ac_exeext conftest.$ac_ext
17372 ac_res=`eval echo '${'$as_ac_var'}'`
17373 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17374 echo "${ECHO_T}$ac_res" >&6; }
17375 if test `eval echo '${'$as_ac_var'}'` = yes; then
17376 cat >>confdefs.h <<_ACEOF
17377 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17381 case " $LIBOBJS " in
17382 *" getloadavg.
$ac_objext "* ) ;;
17383 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17388 cat >>confdefs.h <<\_ACEOF
17389 #define C_GETLOADAVG 1
17392 # Figure out what our getloadavg.c needs.
17394 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17395 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17396 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17397 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17398 echo $ECHO_N "(cached
) $ECHO_C" >&6
17400 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17401 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17403 # Is the header compilable?
17404 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17405 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 $ac_includes_default
17413 #include <sys/dg_sys_info.h>
17415 rm -f conftest.$ac_objext
17416 if { (ac_try="$ac_compile"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_compile") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest.$ac_objext; then
17432 ac_header_compiler=yes
17434 echo "$as_me: failed program was
:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 ac_header_compiler=no
17440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17441 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17442 echo "${ECHO_T}$ac_header_compiler" >&6; }
17444 # Is the header present?
17445 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17446 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17447 cat >conftest.$ac_ext <<_ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453 #include <sys/dg_sys_info.h>
17455 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17456 case "(($ac_try" in
17457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17458 *) ac_try_echo=$ac_try;;
17460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17461 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17463 grep -v '^ *+' conftest.er1 >conftest.err
17465 cat conftest.err >&5
17466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17467 (exit $ac_status); } >/dev/null && {
17468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17469 test ! -s conftest.err
17471 ac_header_preproc=yes
17473 echo "$as_me: failed program was
:" >&5
17474 sed 's/^/| /' conftest.$ac_ext >&5
17476 ac_header_preproc=no
17479 rm -f conftest.err conftest.$ac_ext
17480 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17481 echo "${ECHO_T}$ac_header_preproc" >&6; }
17483 # So? What about this header?
17484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17486 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17487 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17488 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17489 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17490 ac_header_preproc=yes
17493 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17494 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17495 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17496 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17497 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17498 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17499 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17500 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17501 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17502 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17503 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17504 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17508 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17509 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17510 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17511 echo $ECHO_N "(cached
) $ECHO_C" >&6
17513 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17515 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17516 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17519 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17522 cat >>confdefs.h <<\_ACEOF
17527 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17528 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17529 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17530 echo $ECHO_N "(cached
) $ECHO_C" >&6
17532 ac_check_lib_save_LIBS=$LIBS
17534 cat >conftest.$ac_ext <<_ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17547 char dg_sys_info ();
17551 return dg_sys_info ();
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (ac_try="$ac_link"
17558 case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_link") 2>conftest.er1
17565 grep -v '^ *+' conftest.er1 >conftest.err
17567 cat conftest.err >&5
17568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17569 (exit $ac_status); } && {
17570 test -z "$ac_c_werror_flag" ||
17571 test ! -s conftest.err
17572 } && test -s conftest$ac_exeext &&
17573 $as_test_x conftest$ac_exeext; then
17574 ac_cv_lib_dgc_dg_sys_info=yes
17576 echo "$as_me: failed program was
:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 ac_cv_lib_dgc_dg_sys_info=no
17582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17583 conftest$ac_exeext conftest.$ac_ext
17584 LIBS=$ac_check_lib_save_LIBS
17586 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17587 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17588 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17589 cat >>confdefs.h <<_ACEOF
17590 #define HAVE_LIBDGC 1
17601 if test "${ac_cv_header_locale_h+set}" = set; then
17602 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17603 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17604 if test "${ac_cv_header_locale_h+set}" = set; then
17605 echo $ECHO_N "(cached
) $ECHO_C" >&6
17607 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17608 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17610 # Is the header compilable?
17611 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17612 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17620 #include <locale.h>
17622 rm -f conftest.$ac_objext
17623 if { (ac_try="$ac_compile"
17624 case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17629 (eval "$ac_compile") 2>conftest.er1
17631 grep -v '^ *+' conftest.er1 >conftest.err
17633 cat conftest.err >&5
17634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17635 (exit $ac_status); } && {
17636 test -z "$ac_c_werror_flag" ||
17637 test ! -s conftest.err
17638 } && test -s conftest.$ac_objext; then
17639 ac_header_compiler=yes
17641 echo "$as_me: failed program was
:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_header_compiler=no
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17649 echo "${ECHO_T}$ac_header_compiler" >&6; }
17651 # Is the header present?
17652 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17653 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 #include <locale.h>
17662 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17670 grep -v '^ *+' conftest.er1 >conftest.err
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17674 (exit $ac_status); } >/dev/null && {
17675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17676 test ! -s conftest.err
17678 ac_header_preproc=yes
17680 echo "$as_me: failed program was
:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_header_preproc=no
17686 rm -f conftest.err conftest.$ac_ext
17687 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17688 echo "${ECHO_T}$ac_header_preproc" >&6; }
17690 # So? What about this header?
17691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17693 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17694 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17695 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17696 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17697 ac_header_preproc=yes
17700 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17701 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17702 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17703 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17704 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17705 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17706 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17707 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17708 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17709 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17710 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17711 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17715 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17716 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17717 if test "${ac_cv_header_locale_h+set}" = set; then
17718 echo $ECHO_N "(cached
) $ECHO_C" >&6
17720 ac_cv_header_locale_h=$ac_header_preproc
17722 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17723 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17729 for ac_func in setlocale
17731 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17732 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17733 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17734 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17735 echo $ECHO_N "(cached
) $ECHO_C" >&6
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17745 #define $ac_func innocuous_$ac_func
17747 /* System header to define __stub macros and hopefully few prototypes,
17748 which can conflict with char $ac_func (); below.
17749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17750 <limits.h> exists even on freestanding compilers. */
17753 # include <limits.h>
17755 # include <assert.h>
17760 /* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17767 /* The GNU C library defines this for functions which it implements
17768 to always fail with ENOSYS. Some functions are actually named
17769 something starting with __ and the normal name is an alias. */
17770 #if defined __stub_$ac_func || defined __stub___$ac_func
17777 return $ac_func ();
17782 rm -f conftest.$ac_objext conftest$ac_exeext
17783 if { (ac_try="$ac_link"
17784 case "(($ac_try" in
17785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17786 *) ac_try_echo=$ac_try;;
17788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_link") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1 >conftest.err
17793 cat conftest.err >&5
17794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest$ac_exeext &&
17799 $as_test_x conftest$ac_exeext; then
17800 eval "$as_ac_var=yes"
17802 echo "$as_me: failed program was
:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 eval "$as_ac_var=no
"
17808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17809 conftest$ac_exeext conftest.$ac_ext
17811 ac_res=`eval echo '${'$as_ac_var'}'`
17812 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17813 echo "${ECHO_T}$ac_res" >&6; }
17814 if test `eval echo '${'$as_ac_var'}'` = yes; then
17815 cat >>confdefs.h <<_ACEOF
17816 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17823 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17824 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17825 # Irix 4.0.5F has the header but not the library.
17826 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17829 cat >>confdefs.h <<\_ACEOF
17835 if test $ac_have_func = no; then
17836 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17837 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17838 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17839 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17840 echo $ECHO_N "(cached
) $ECHO_C" >&6
17842 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17843 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17845 # Is the header compilable?
17846 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17847 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17855 #include <inq_stats/cpustats.h>
17857 rm -f conftest.$ac_objext
17858 if { (ac_try="$ac_compile"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_compile") 2>conftest.er1
17866 grep -v '^ *+' conftest.er1 >conftest.err
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17870 (exit $ac_status); } && {
17871 test -z "$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17873 } && test -s conftest.$ac_objext; then
17874 ac_header_compiler=yes
17876 echo "$as_me: failed program was
:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_header_compiler=no
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17884 echo "${ECHO_T}$ac_header_compiler" >&6; }
17886 # Is the header present?
17887 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17888 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 #include <inq_stats/cpustats.h>
17897 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17898 case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17905 grep -v '^ *+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17909 (exit $ac_status); } >/dev/null && {
17910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17913 ac_header_preproc=yes
17915 echo "$as_me: failed program was
:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_header_preproc=no
17921 rm -f conftest.err conftest.$ac_ext
17922 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17923 echo "${ECHO_T}$ac_header_preproc" >&6; }
17925 # So? What about this header?
17926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17928 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17929 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17930 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17931 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17932 ac_header_preproc=yes
17935 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17936 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17937 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17938 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17939 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17940 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17941 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17942 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17943 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17944 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17945 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17946 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17950 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17951 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17952 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17953 echo $ECHO_N "(cached
) $ECHO_C" >&6
17955 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17957 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17958 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17961 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17964 cat >>confdefs.h <<\_ACEOF
17969 cat >>confdefs.h <<\_ACEOF
17978 if test $ac_have_func = no; then
17979 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17980 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17981 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17982 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17983 echo $ECHO_N "(cached
) $ECHO_C" >&6
17985 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17988 # Is the header compilable?
17989 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17990 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17998 #include <sys/cpustats.h>
18000 rm -f conftest.$ac_objext
18001 if { (ac_try="$ac_compile"
18002 case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_compile") 2>conftest.er1
18009 grep -v '^ *+' conftest.er1 >conftest.err
18011 cat conftest.err >&5
18012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18013 (exit $ac_status); } && {
18014 test -z "$ac_c_werror_flag" ||
18015 test ! -s conftest.err
18016 } && test -s conftest.$ac_objext; then
18017 ac_header_compiler=yes
18019 echo "$as_me: failed program was
:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_header_compiler=no
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18027 echo "${ECHO_T}$ac_header_compiler" >&6; }
18029 # Is the header present?
18030 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18031 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 #include <sys/cpustats.h>
18040 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18052 (exit $ac_status); } >/dev/null && {
18053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18056 ac_header_preproc=yes
18058 echo "$as_me: failed program was
:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ac_header_preproc=no
18064 rm -f conftest.err conftest.$ac_ext
18065 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18066 echo "${ECHO_T}$ac_header_preproc" >&6; }
18068 # So? What about this header?
18069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18072 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18073 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18074 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18075 ac_header_preproc=yes
18078 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18079 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18080 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18081 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18082 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18083 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18084 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18085 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18086 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18087 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18088 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18089 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18093 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18094 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18095 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18096 echo $ECHO_N "(cached
) $ECHO_C" >&6
18098 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18100 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18101 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18104 if test $ac_cv_header_sys_cpustats_h = yes; then
18105 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18114 if test $ac_have_func = no; then
18116 for ac_header in mach/mach.h
18118 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18119 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18120 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18121 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18122 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached
) $ECHO_C" >&6
18125 ac_res=`eval echo '${'$as_ac_Header'}'`
18126 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18127 echo "${ECHO_T}$ac_res" >&6; }
18129 # Is the header compilable?
18130 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18131 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18132 cat >conftest.$ac_ext <<_ACEOF
18135 cat confdefs.h >>conftest.$ac_ext
18136 cat >>conftest.$ac_ext <<_ACEOF
18137 /* end confdefs.h. */
18138 $ac_includes_default
18139 #include <$ac_header>
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_compile") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest.$ac_objext; then
18158 ac_header_compiler=yes
18160 echo "$as_me: failed program was
:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18163 ac_header_compiler=no
18166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6; }
18170 # Is the header present?
18171 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18172 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18173 cat >conftest.$ac_ext <<_ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 #include <$ac_header>
18181 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18182 case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18193 (exit $ac_status); } >/dev/null && {
18194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18195 test ! -s conftest.err
18197 ac_header_preproc=yes
18199 echo "$as_me: failed program was
:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 ac_header_preproc=no
18205 rm -f conftest.err conftest.$ac_ext
18206 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18207 echo "${ECHO_T}$ac_header_preproc" >&6; }
18209 # So? What about this header?
18210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18212 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18213 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18214 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18216 ac_header_preproc=yes
18219 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18220 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18221 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18222 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18223 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18224 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18225 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18226 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18227 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18229 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18230 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18237 echo $ECHO_N "(cached
) $ECHO_C" >&6
18239 eval "$as_ac_Header=\
$ac_header_preproc"
18241 ac_res=`eval echo '${'$as_ac_Header'}'`
18242 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18243 echo "${ECHO_T}$ac_res" >&6; }
18246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18247 cat >>confdefs.h <<_ACEOF
18248 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18258 for ac_header in nlist.h
18260 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18262 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18263 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18265 echo $ECHO_N "(cached
) $ECHO_C" >&6
18267 ac_res=`eval echo '${'$as_ac_Header'}'`
18268 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18271 # Is the header compilable?
18272 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18273 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 $ac_includes_default
18281 #include <$ac_header>
18283 rm -f conftest.$ac_objext
18284 if { (ac_try="$ac_compile"
18285 case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_compile") 2>conftest.er1
18292 grep -v '^ *+' conftest.er1 >conftest.err
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18296 (exit $ac_status); } && {
18297 test -z "$ac_c_werror_flag" ||
18298 test ! -s conftest.err
18299 } && test -s conftest.$ac_objext; then
18300 ac_header_compiler=yes
18302 echo "$as_me: failed program was
:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18305 ac_header_compiler=no
18308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18309 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18310 echo "${ECHO_T}$ac_header_compiler" >&6; }
18312 # Is the header present?
18313 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18314 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18315 cat >conftest.$ac_ext <<_ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h. */
18321 #include <$ac_header>
18323 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18335 (exit $ac_status); } >/dev/null && {
18336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18339 ac_header_preproc=yes
18341 echo "$as_me: failed program was
:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_header_preproc=no
18347 rm -f conftest.err conftest.$ac_ext
18348 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18349 echo "${ECHO_T}$ac_header_preproc" >&6; }
18351 # So? What about this header?
18352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18354 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18355 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18356 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18358 ac_header_preproc=yes
18361 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18362 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18363 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18364 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18365 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18366 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18367 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18368 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18369 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18371 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18372 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18376 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18377 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18379 echo $ECHO_N "(cached
) $ECHO_C" >&6
18381 eval "$as_ac_Header=\
$ac_header_preproc"
18383 ac_res=`eval echo '${'$as_ac_Header'}'`
18384 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18385 echo "${ECHO_T}$ac_res" >&6; }
18388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18389 cat >>confdefs.h <<_ACEOF
18390 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18392 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18393 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18394 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18395 echo $ECHO_N "(cached
) $ECHO_C" >&6
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18408 static struct nlist ac_aggr;
18409 if (ac_aggr.n_un.n_name)
18415 rm -f conftest.$ac_objext
18416 if { (ac_try="$ac_compile"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_compile") 2>conftest.er1
18424 grep -v '^ *+' conftest.er1 >conftest.err
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18428 (exit $ac_status); } && {
18429 test -z "$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18431 } && test -s conftest.$ac_objext; then
18432 ac_cv_member_struct_nlist_n_un_n_name=yes
18434 echo "$as_me: failed program was
:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18448 static struct nlist ac_aggr;
18449 if (sizeof ac_aggr.n_un.n_name)
18455 rm -f conftest.$ac_objext
18456 if { (ac_try="$ac_compile"
18457 case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_compile") 2>conftest.er1
18464 grep -v '^ *+' conftest.er1 >conftest.err
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18468 (exit $ac_status); } && {
18469 test -z "$ac_c_werror_flag" ||
18470 test ! -s conftest.err
18471 } && test -s conftest.$ac_objext; then
18472 ac_cv_member_struct_nlist_n_un_n_name=yes
18474 echo "$as_me: failed program was
:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18477 ac_cv_member_struct_nlist_n_un_n_name=no
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18486 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18487 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18489 cat >>confdefs.h <<_ACEOF
18490 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18494 cat >>confdefs.h <<\_ACEOF
18495 #define NLIST_NAME_UNION 1
18509 # Some definitions of getloadavg require that the program be installed setgid.
18510 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18511 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18512 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18513 echo $ECHO_N "(cached
) $ECHO_C" >&6
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18521 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18522 #ifdef LDAV_PRIVILEGED
18523 Yowza Am I SETGID yet
18526 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18527 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18528 ac_cv_func_getloadavg_setgid=yes
18530 ac_cv_func_getloadavg_setgid=no
18535 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18536 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18537 if test $ac_cv_func_getloadavg_setgid = yes; then
18540 cat >>confdefs.h <<\_ACEOF
18541 #define GETLOADAVG_PRIVILEGED 1
18548 if test $ac_cv_func_getloadavg_setgid = yes; then
18549 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18550 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18551 if test "${ac_cv_group_kmem+set}" = set; then
18552 echo $ECHO_N "(cached
) $ECHO_C" >&6
18554 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18555 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18556 # If we got an error (system does not support symlinks), try without -L.
18557 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18558 ac_cv_group_kmem=`echo $ac_ls_output \
18559 | sed -ne 's/[ ][ ]*/ /g;
18560 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18564 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18565 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18566 KMEM_GROUP=$ac_cv_group_kmem
18568 if test "x
$ac_save_LIBS" = x; then
18569 GETLOADAVG_LIBS=$LIBS
18571 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18577 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18578 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18579 if test "${ac_cv_sys_largefile_source+set}" = set; then
18580 echo $ECHO_N "(cached
) $ECHO_C" >&6
18583 cat >conftest.$ac_ext <<_ACEOF
18586 cat confdefs.h >>conftest.$ac_ext
18587 cat >>conftest.$ac_ext <<_ACEOF
18588 /* end confdefs.h. */
18589 #include <sys/types.h> /* for off_t */
18594 int (*fp) (FILE *, off_t, int) = fseeko;
18595 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18609 grep -v '^ *+' conftest.er1 >conftest.err
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest$ac_exeext &&
18617 $as_test_x conftest$ac_exeext; then
18618 ac_cv_sys_largefile_source=no; break
18620 echo "$as_me: failed program was
:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18627 conftest$ac_exeext conftest.$ac_ext
18628 cat >conftest.$ac_ext <<_ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #define _LARGEFILE_SOURCE 1
18635 #include <sys/types.h> /* for off_t */
18640 int (*fp) (FILE *, off_t, int) = fseeko;
18641 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_link") 2>conftest.er1
18655 grep -v '^ *+' conftest.er1 >conftest.err
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest$ac_exeext &&
18663 $as_test_x conftest$ac_exeext; then
18664 ac_cv_sys_largefile_source=1; break
18666 echo "$as_me: failed program was
:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673 conftest$ac_exeext conftest.$ac_ext
18674 ac_cv_sys_largefile_source=unknown
18678 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18679 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18680 case $ac_cv_sys_largefile_source in #(
18683 cat >>confdefs.h <<_ACEOF
18684 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18690 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18691 # in glibc 2.1.3, but that breaks too many other things.
18692 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18693 if test $ac_cv_sys_largefile_source != unknown; then
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_FSEEKO 1
18702 # Configure getopt.
18703 # getopt.m4 serial 10
18705 # The getopt module assume you want GNU getopt, with getopt_long etc,
18706 # rather than vanilla POSIX getopt. This means your your code should
18707 # always include <getopt.h> for the getopt prototypes.
18719 # Prerequisites of lib/getopt*.
18726 for ac_header in getopt.h
18728 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18730 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18731 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18732 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18733 echo $ECHO_N "(cached
) $ECHO_C" >&6
18735 ac_res=`eval echo '${'$as_ac_Header'}'`
18736 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18737 echo "${ECHO_T}$ac_res" >&6; }
18739 # Is the header compilable?
18740 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18741 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 $ac_includes_default
18749 #include <$ac_header>
18751 rm -f conftest.$ac_objext
18752 if { (ac_try="$ac_compile"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_compile") 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest.$ac_objext; then
18768 ac_header_compiler=yes
18770 echo "$as_me: failed program was
:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 ac_header_compiler=no
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18778 echo "${ECHO_T}$ac_header_compiler" >&6; }
18780 # Is the header present?
18781 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18782 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18783 cat >conftest.$ac_ext <<_ACEOF
18786 cat confdefs.h >>conftest.$ac_ext
18787 cat >>conftest.$ac_ext <<_ACEOF
18788 /* end confdefs.h. */
18789 #include <$ac_header>
18791 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18792 case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18799 grep -v '^ *+' conftest.er1 >conftest.err
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18803 (exit $ac_status); } >/dev/null && {
18804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18805 test ! -s conftest.err
18807 ac_header_preproc=yes
18809 echo "$as_me: failed program was
:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 ac_header_preproc=no
18815 rm -f conftest.err conftest.$ac_ext
18816 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18817 echo "${ECHO_T}$ac_header_preproc" >&6; }
18819 # So? What about this header?
18820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18822 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18823 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18824 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18826 ac_header_preproc=yes
18829 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18830 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18831 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18832 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18833 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18834 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18835 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18836 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18837 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18839 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18840 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18844 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18845 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18846 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18847 echo $ECHO_N "(cached
) $ECHO_C" >&6
18849 eval "$as_ac_Header=\
$ac_header_preproc"
18851 ac_res=`eval echo '${'$as_ac_Header'}'`
18852 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18853 echo "${ECHO_T}$ac_res" >&6; }
18856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18857 cat >>confdefs.h <<_ACEOF
18858 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18867 if test -z "$GETOPT_H"; then
18869 for ac_func in getopt_long_only
18871 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18872 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18873 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18875 echo $ECHO_N "(cached
) $ECHO_C" >&6
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885 #define $ac_func innocuous_$ac_func
18887 /* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18893 # include <limits.h>
18895 # include <assert.h>
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18917 return $ac_func ();
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>conftest.er1
18931 grep -v '^ *+' conftest.er1 >conftest.err
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18935 (exit $ac_status); } && {
18936 test -z "$ac_c_werror_flag" ||
18937 test ! -s conftest.err
18938 } && test -s conftest$ac_exeext &&
18939 $as_test_x conftest$ac_exeext; then
18940 eval "$as_ac_var=yes"
18942 echo "$as_me: failed program was
:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18945 eval "$as_ac_var=no
"
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949 conftest$ac_exeext conftest.$ac_ext
18951 ac_res=`eval echo '${'$as_ac_var'}'`
18952 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18953 echo "${ECHO_T}$ac_res" >&6; }
18954 if test `eval echo '${'$as_ac_var'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18966 if test -z "$GETOPT_H"; then
18967 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18968 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18969 if test "${ac_cv_have_decl_optreset+set}" = set; then
18970 echo $ECHO_N "(cached
) $ECHO_C" >&6
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 #include <getopt.h>
18991 rm -f conftest.$ac_objext
18992 if { (ac_try="$ac_compile"
18993 case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_compile") 2>conftest.er1
19000 grep -v '^ *+' conftest.er1 >conftest.err
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19004 (exit $ac_status); } && {
19005 test -z "$ac_c_werror_flag" ||
19006 test ! -s conftest.err
19007 } && test -s conftest.$ac_objext; then
19008 ac_cv_have_decl_optreset=yes
19010 echo "$as_me: failed program was
:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 ac_cv_have_decl_optreset=no
19016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19018 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19019 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19020 if test $ac_cv_have_decl_optreset = yes; then
19026 if test -z "$GETOPT_H"; then
19027 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19028 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19029 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19030 echo $ECHO_N "(cached
) $ECHO_C" >&6
19032 if test "$cross_compiling" = yes; then
19033 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19034 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19035 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19036 echo $ECHO_N "(cached
) $ECHO_C" >&6
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <getopt.h>
19049 #ifndef getopt_clip
19050 (void) getopt_clip;
19057 rm -f conftest.$ac_objext
19058 if { (ac_try="$ac_compile"
19059 case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_compile") 2>conftest.er1
19066 grep -v '^ *+' conftest.er1 >conftest.err
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19070 (exit $ac_status); } && {
19071 test -z "$ac_c_werror_flag" ||
19072 test ! -s conftest.err
19073 } && test -s conftest.$ac_objext; then
19074 ac_cv_have_decl_getopt_clip=yes
19076 echo "$as_me: failed program was
:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_have_decl_getopt_clip=no
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19085 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19086 if test $ac_cv_have_decl_getopt_clip = yes; then
19087 gl_cv_func_gnu_getopt=no
19089 gl_cv_func_gnu_getopt=yes
19093 cat >conftest.$ac_ext <<_ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19099 #include <getopt.h>
19105 myargv[0] = "conftest
";
19108 return getopt (2, myargv, "+a
") != '?';
19114 rm -f conftest$ac_exeext
19115 if { (ac_try="$ac_link"
19116 case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_link") 2>&5
19123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19125 { (case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_try") 2>&5
19132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 gl_cv_func_gnu_getopt=yes
19136 echo "$as_me: program exited with status
$ac_status" >&5
19137 echo "$as_me: failed program was
:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ( exit $ac_status )
19141 gl_cv_func_gnu_getopt=no
19143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19148 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19149 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19150 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19157 if test -n "$GETOPT_H"; then
19162 cat >>confdefs.h <<\_ACEOF
19163 #define __GETOPT_PREFIX rpl_
19169 GETOPTOBJS='getopt.o getopt1.o'
19176 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19177 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19178 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19179 echo $ECHO_N "(cached
) $ECHO_C" >&6
19181 # Use it with a single arg.
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 $ac_includes_default
19197 rm -f conftest.$ac_objext
19198 if { (ac_try="$ac_compile"
19199 case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_compile") 2>conftest.er1
19206 grep -v '^ *+' conftest.er1 >conftest.err
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19210 (exit $ac_status); } && {
19211 test -z "$ac_c_werror_flag" ||
19212 test ! -s conftest.err
19213 } && test -s conftest.$ac_objext; then
19214 ac_cv_func_getpgrp_void=no
19216 echo "$as_me: failed program was
:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_cv_func_getpgrp_void=yes
19222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19226 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19227 if test $ac_cv_func_getpgrp_void = yes; then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define GETPGRP_VOID 1
19237 for ac_func in strftime
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
19328 # strftime is in -lintl on SCO UNIX.
19329 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19330 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19331 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19332 echo $ECHO_N "(cached
) $ECHO_C" >&6
19334 ac_check_lib_save_LIBS=$LIBS
19335 LIBS="-lintl $LIBS"
19336 cat >conftest.$ac_ext <<_ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h. */
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19353 return strftime ();
19358 rm -f conftest.$ac_objext conftest$ac_exeext
19359 if { (ac_try="$ac_link"
19360 case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_link") 2>conftest.er1
19367 grep -v '^ *+' conftest.er1 >conftest.err
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19371 (exit $ac_status); } && {
19372 test -z "$ac_c_werror_flag" ||
19373 test ! -s conftest.err
19374 } && test -s conftest$ac_exeext &&
19375 $as_test_x conftest$ac_exeext; then
19376 ac_cv_lib_intl_strftime=yes
19378 echo "$as_me: failed program was
:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_lib_intl_strftime=no
19384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19385 conftest$ac_exeext conftest.$ac_ext
19386 LIBS=$ac_check_lib_save_LIBS
19388 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19389 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19390 if test $ac_cv_lib_intl_strftime = yes; then
19391 cat >>confdefs.h <<\_ACEOF
19392 #define HAVE_STRFTIME 1
19395 LIBS="-lintl $LIBS"
19404 for ac_func in grantpt
19406 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19407 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19408 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19409 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19410 echo $ECHO_N "(cached
) $ECHO_C" >&6
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19420 #define $ac_func innocuous_$ac_func
19422 /* System header to define __stub macros and hopefully few prototypes,
19423 which can conflict with char $ac_func (); below.
19424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19425 <limits.h> exists even on freestanding compilers. */
19428 # include <limits.h>
19430 # include <assert.h>
19435 /* Override any GCC internal prototype to avoid an error.
19436 Use char because int might match the return type of a GCC
19437 builtin and then its argument prototype would still apply. */
19442 /* The GNU C library defines this for functions which it implements
19443 to always fail with ENOSYS. Some functions are actually named
19444 something starting with __ and the normal name is an alias. */
19445 #if defined __stub_$ac_func || defined __stub___$ac_func
19452 return $ac_func ();
19457 rm -f conftest.$ac_objext conftest$ac_exeext
19458 if { (ac_try="$ac_link"
19459 case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_link") 2>conftest.er1
19466 grep -v '^ *+' conftest.er1 >conftest.err
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19470 (exit $ac_status); } && {
19471 test -z "$ac_c_werror_flag" ||
19472 test ! -s conftest.err
19473 } && test -s conftest$ac_exeext &&
19474 $as_test_x conftest$ac_exeext; then
19475 eval "$as_ac_var=yes"
19477 echo "$as_me: failed program was
:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 eval "$as_ac_var=no
"
19483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19484 conftest$ac_exeext conftest.$ac_ext
19486 ac_res=`eval echo '${'$as_ac_var'}'`
19487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19488 echo "${ECHO_T}$ac_res" >&6; }
19489 if test `eval echo '${'$as_ac_var'}'` = yes; then
19490 cat >>confdefs.h <<_ACEOF
19491 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19498 # PTY-related GNU extensions.
19500 for ac_func in getpt
19502 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19503 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19504 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19505 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19506 echo $ECHO_N "(cached
) $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19516 #define $ac_func innocuous_$ac_func
19518 /* System header to define __stub macros and hopefully few prototypes,
19519 which can conflict with char $ac_func (); below.
19520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19521 <limits.h> exists even on freestanding compilers. */
19524 # include <limits.h>
19526 # include <assert.h>
19531 /* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19538 /* The GNU C library defines this for functions which it implements
19539 to always fail with ENOSYS. Some functions are actually named
19540 something starting with __ and the normal name is an alias. */
19541 #if defined __stub_$ac_func || defined __stub___$ac_func
19548 return $ac_func ();
19553 rm -f conftest.$ac_objext conftest$ac_exeext
19554 if { (ac_try="$ac_link"
19555 case "(($ac_try" in
19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557 *) ac_try_echo=$ac_try;;
19559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19560 (eval "$ac_link") 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext &&
19570 $as_test_x conftest$ac_exeext; then
19571 eval "$as_ac_var=yes"
19573 echo "$as_me: failed program was
:" >&5
19574 sed 's/^/| /' conftest.$ac_ext >&5
19576 eval "$as_ac_var=no
"
19579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19580 conftest$ac_exeext conftest.$ac_ext
19582 ac_res=`eval echo '${'$as_ac_var'}'`
19583 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19584 echo "${ECHO_T}$ac_res" >&6; }
19585 if test `eval echo '${'$as_ac_var'}'` = yes; then
19586 cat >>confdefs.h <<_ACEOF
19587 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19594 # Check this now, so that we will NOT find the above functions in ncurses.
19595 # That is because we have not set up to link ncurses in lib-src.
19596 # It's better to believe a function is not available
19597 # than to expect to find it in ncurses.
19599 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19600 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19601 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19602 echo $ECHO_N "(cached
) $ECHO_C" >&6
19604 ac_check_lib_save_LIBS=$LIBS
19605 LIBS="-lncurses $LIBS"
19606 cat >conftest.$ac_ext <<_ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19613 /* Override any GCC internal prototype to avoid an error.
19614 Use char because int might match the return type of a GCC
19615 builtin and then its argument prototype would still apply. */
19628 rm -f conftest.$ac_objext conftest$ac_exeext
19629 if { (ac_try="$ac_link"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_link") 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19641 (exit $ac_status); } && {
19642 test -z "$ac_c_werror_flag" ||
19643 test ! -s conftest.err
19644 } && test -s conftest$ac_exeext &&
19645 $as_test_x conftest$ac_exeext; then
19646 ac_cv_lib_ncurses_tparm=yes
19648 echo "$as_me: failed program was
:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 ac_cv_lib_ncurses_tparm=no
19654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19655 conftest$ac_exeext conftest.$ac_ext
19656 LIBS=$ac_check_lib_save_LIBS
19658 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19659 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19660 if test $ac_cv_lib_ncurses_tparm = yes; then
19661 cat >>confdefs.h <<_ACEOF
19662 #define HAVE_LIBNCURSES 1
19665 LIBS="-lncurses $LIBS"
19670 # Do we need the Hesiod library to provide the support routines?
19671 if test "$with_hesiod" = yes ; then
19672 # Don't set $LIBS here -- see comments above.
19674 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19675 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19676 if test "${ac_cv_func_res_send+set}" = set; then
19677 echo $ECHO_N "(cached
) $ECHO_C" >&6
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19687 #define res_send innocuous_res_send
19689 /* System header to define __stub macros and hopefully few prototypes,
19690 which can conflict with char res_send (); below.
19691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19692 <limits.h> exists even on freestanding compilers. */
19695 # include <limits.h>
19697 # include <assert.h>
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19709 /* The GNU C library defines this for functions which it implements
19710 to always fail with ENOSYS. Some functions are actually named
19711 something starting with __ and the normal name is an alias. */
19712 #if defined __stub_res_send || defined __stub___res_send
19719 return res_send ();
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_link") 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19737 (exit $ac_status); } && {
19738 test -z "$ac_c_werror_flag" ||
19739 test ! -s conftest.err
19740 } && test -s conftest$ac_exeext &&
19741 $as_test_x conftest$ac_exeext; then
19742 ac_cv_func_res_send=yes
19744 echo "$as_me: failed program was
:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_func_res_send=no
19750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19751 conftest$ac_exeext conftest.$ac_ext
19753 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19754 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19755 if test $ac_cv_func_res_send = yes; then
19758 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19759 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19760 if test "${ac_cv_func___res_send+set}" = set; then
19761 echo $ECHO_N "(cached
) $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771 #define __res_send innocuous___res_send
19773 /* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char __res_send (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19779 # include <limits.h>
19781 # include <assert.h>
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19792 char __res_send ();
19793 /* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796 #if defined __stub___res_send || defined __stub_____res_send
19803 return __res_send ();
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (ac_try="$ac_link"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19821 (exit $ac_status); } && {
19822 test -z "$ac_c_werror_flag" ||
19823 test ! -s conftest.err
19824 } && test -s conftest$ac_exeext &&
19825 $as_test_x conftest$ac_exeext; then
19826 ac_cv_func___res_send=yes
19828 echo "$as_me: failed program was
:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19831 ac_cv_func___res_send=no
19834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19835 conftest$ac_exeext conftest.$ac_ext
19837 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19838 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19839 if test $ac_cv_func___res_send = yes; then
19842 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19843 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19844 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19845 echo $ECHO_N "(cached
) $ECHO_C" >&6
19847 ac_check_lib_save_LIBS=$LIBS
19848 LIBS="-lresolv $LIBS"
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19866 return res_send ();
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_link") 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest$ac_exeext &&
19888 $as_test_x conftest$ac_exeext; then
19889 ac_cv_lib_resolv_res_send=yes
19891 echo "$as_me: failed program was
:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 ac_cv_lib_resolv_res_send=no
19897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19898 conftest$ac_exeext conftest.$ac_ext
19899 LIBS=$ac_check_lib_save_LIBS
19901 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19902 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19903 if test $ac_cv_lib_resolv_res_send = yes; then
19906 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19907 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19908 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19909 echo $ECHO_N "(cached
) $ECHO_C" >&6
19911 ac_check_lib_save_LIBS=$LIBS
19912 LIBS="-lresolv $LIBS"
19913 cat >conftest.$ac_ext <<_ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19920 /* Override any GCC internal prototype to avoid an error.
19921 Use char because int might match the return type of a GCC
19922 builtin and then its argument prototype would still apply. */
19926 char __res_send ();
19930 return __res_send ();
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (ac_try="$ac_link"
19937 case "(($ac_try" in
19938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939 *) ac_try_echo=$ac_try;;
19941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19942 (eval "$ac_link") 2>conftest.er1
19944 grep -v '^ *+' conftest.er1 >conftest.err
19946 cat conftest.err >&5
19947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19948 (exit $ac_status); } && {
19949 test -z "$ac_c_werror_flag" ||
19950 test ! -s conftest.err
19951 } && test -s conftest$ac_exeext &&
19952 $as_test_x conftest$ac_exeext; then
19953 ac_cv_lib_resolv___res_send=yes
19955 echo "$as_me: failed program was
:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19958 ac_cv_lib_resolv___res_send=no
19961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19962 conftest$ac_exeext conftest.$ac_ext
19963 LIBS=$ac_check_lib_save_LIBS
19965 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19966 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19967 if test $ac_cv_lib_resolv___res_send = yes; then
19977 if test "$resolv" = yes ; then
19980 cat >>confdefs.h <<\_ACEOF
19981 #define HAVE_LIBRESOLV 1
19987 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19988 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19989 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19990 echo $ECHO_N "(cached
) $ECHO_C" >&6
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20000 #define hes_getmailhost innocuous_hes_getmailhost
20002 /* System header to define __stub macros and hopefully few prototypes,
20003 which can conflict with char hes_getmailhost (); below.
20004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20005 <limits.h> exists even on freestanding compilers. */
20008 # include <limits.h>
20010 # include <assert.h>
20013 #undef hes_getmailhost
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20021 char hes_getmailhost ();
20022 /* The GNU C library defines this for functions which it implements
20023 to always fail with ENOSYS. Some functions are actually named
20024 something starting with __ and the normal name is an alias. */
20025 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20032 return hes_getmailhost ();
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (ac_try="$ac_link"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_link") 2>conftest.er1
20046 grep -v '^ *+' conftest.er1 >conftest.err
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest$ac_exeext &&
20054 $as_test_x conftest$ac_exeext; then
20055 ac_cv_func_hes_getmailhost=yes
20057 echo "$as_me: failed program was
:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 ac_cv_func_hes_getmailhost=no
20063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20064 conftest$ac_exeext conftest.$ac_ext
20066 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20067 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20068 if test $ac_cv_func_hes_getmailhost = yes; then
20071 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20072 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20073 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20074 echo $ECHO_N "(cached
) $ECHO_C" >&6
20076 ac_check_lib_save_LIBS=$LIBS
20077 LIBS="-lhesiod $RESOLVLIB $LIBS"
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20085 /* Override any GCC internal prototype to avoid an error.
20086 Use char because int might match the return type of a GCC
20087 builtin and then its argument prototype would still apply. */
20091 char hes_getmailhost ();
20095 return hes_getmailhost ();
20100 rm -f conftest.$ac_objext conftest$ac_exeext
20101 if { (ac_try="$ac_link"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_link") 2>conftest.er1
20109 grep -v '^ *+' conftest.er1 >conftest.err
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20113 (exit $ac_status); } && {
20114 test -z "$ac_c_werror_flag" ||
20115 test ! -s conftest.err
20116 } && test -s conftest$ac_exeext &&
20117 $as_test_x conftest$ac_exeext; then
20118 ac_cv_lib_hesiod_hes_getmailhost=yes
20120 echo "$as_me: failed program was
:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_lib_hesiod_hes_getmailhost=no
20126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20127 conftest$ac_exeext conftest.$ac_ext
20128 LIBS=$ac_check_lib_save_LIBS
20130 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20131 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20132 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_LIBHESIOD 1
20146 # These tell us which Kerberos-related libraries to use.
20147 if test "${with_kerberos+set}" = set; then
20149 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20150 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20151 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20152 echo $ECHO_N "(cached
) $ECHO_C" >&6
20154 ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-lcom_err $LIBS"
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_link") 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20191 (exit $ac_status); } && {
20192 test -z "$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 } && test -s conftest$ac_exeext &&
20195 $as_test_x conftest$ac_exeext; then
20196 ac_cv_lib_com_err_com_err=yes
20198 echo "$as_me: failed program was
:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_cv_lib_com_err_com_err=no
20204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20205 conftest$ac_exeext conftest.$ac_ext
20206 LIBS=$ac_check_lib_save_LIBS
20208 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20209 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20210 if test $ac_cv_lib_com_err_com_err = yes; then
20211 cat >>confdefs.h <<_ACEOF
20212 #define HAVE_LIBCOM_ERR 1
20215 LIBS="-lcom_err $LIBS"
20220 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20221 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20222 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20223 echo $ECHO_N "(cached
) $ECHO_C" >&6
20225 ac_check_lib_save_LIBS=$LIBS
20226 LIBS="-lk5crypto $LIBS"
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20234 /* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20240 char mit_des_cbc_encrypt ();
20244 return mit_des_cbc_encrypt ();
20249 rm -f conftest.$ac_objext conftest$ac_exeext
20250 if { (ac_try="$ac_link"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_link") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20262 (exit $ac_status); } && {
20263 test -z "$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20265 } && test -s conftest$ac_exeext &&
20266 $as_test_x conftest$ac_exeext; then
20267 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20269 echo "$as_me: failed program was
:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20276 conftest$ac_exeext conftest.$ac_ext
20277 LIBS=$ac_check_lib_save_LIBS
20279 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20280 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20281 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define HAVE_LIBK5CRYPTO 1
20286 LIBS="-lk5crypto $LIBS"
20291 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20292 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20293 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20294 echo $ECHO_N "(cached
) $ECHO_C" >&6
20296 ac_check_lib_save_LIBS=$LIBS
20297 LIBS="-lcrypto $LIBS"
20298 cat >conftest.$ac_ext <<_ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20305 /* Override any GCC internal prototype to avoid an error.
20306 Use char because int might match the return type of a GCC
20307 builtin and then its argument prototype would still apply. */
20311 char mit_des_cbc_encrypt ();
20315 return mit_des_cbc_encrypt ();
20320 rm -f conftest.$ac_objext conftest$ac_exeext
20321 if { (ac_try="$ac_link"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_link") 2>conftest.er1
20329 grep -v '^ *+' conftest.er1 >conftest.err
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest$ac_exeext &&
20337 $as_test_x conftest$ac_exeext; then
20338 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20340 echo "$as_me: failed program was
:" >&5
20341 sed 's/^/| /' conftest.$ac_ext >&5
20343 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20347 conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20350 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20351 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20352 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20353 cat >>confdefs.h <<_ACEOF
20354 #define HAVE_LIBCRYPTO 1
20357 LIBS="-lcrypto $LIBS"
20362 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20363 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20364 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20365 echo $ECHO_N "(cached
) $ECHO_C" >&6
20367 ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lkrb5 $LIBS"
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20376 /* Override any GCC internal prototype to avoid an error.
20377 Use char because int might match the return type of a GCC
20378 builtin and then its argument prototype would still apply. */
20382 char krb5_init_context ();
20386 return krb5_init_context ();
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (ac_try="$ac_link"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_link") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest$ac_exeext &&
20408 $as_test_x conftest$ac_exeext; then
20409 ac_cv_lib_krb5_krb5_init_context=yes
20411 echo "$as_me: failed program was
:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ac_cv_lib_krb5_krb5_init_context=no
20417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20418 conftest$ac_exeext conftest.$ac_ext
20419 LIBS=$ac_check_lib_save_LIBS
20421 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20422 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20423 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20424 cat >>confdefs.h <<_ACEOF
20425 #define HAVE_LIBKRB5 1
20428 LIBS="-lkrb5 $LIBS"
20432 if test "${with_kerberos5+set}" != set; then
20434 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20435 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20436 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20437 echo $ECHO_N "(cached
) $ECHO_C" >&6
20439 ac_check_lib_save_LIBS=$LIBS
20440 LIBS="-ldes425 $LIBS"
20441 cat >conftest.$ac_ext <<_ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20448 /* Override any GCC internal prototype to avoid an error.
20449 Use char because int might match the return type of a GCC
20450 builtin and then its argument prototype would still apply. */
20454 char des_cbc_encrypt ();
20458 return des_cbc_encrypt ();
20463 rm -f conftest.$ac_objext conftest$ac_exeext
20464 if { (ac_try="$ac_link"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_link") 2>conftest.er1
20472 grep -v '^ *+' conftest.er1 >conftest.err
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest$ac_exeext &&
20480 $as_test_x conftest$ac_exeext; then
20481 ac_cv_lib_des425_des_cbc_encrypt=yes
20483 echo "$as_me: failed program was
:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20486 ac_cv_lib_des425_des_cbc_encrypt=no
20489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20490 conftest$ac_exeext conftest.$ac_ext
20491 LIBS=$ac_check_lib_save_LIBS
20493 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20494 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20495 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20496 cat >>confdefs.h <<_ACEOF
20497 #define HAVE_LIBDES425 1
20500 LIBS="-ldes425 $LIBS"
20504 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20505 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20506 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20507 echo $ECHO_N "(cached
) $ECHO_C" >&6
20509 ac_check_lib_save_LIBS=$LIBS
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20524 char des_cbc_encrypt ();
20528 return des_cbc_encrypt ();
20533 rm -f conftest.$ac_objext conftest$ac_exeext
20534 if { (ac_try="$ac_link"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20540 (eval "$ac_link") 2>conftest.er1
20542 grep -v '^ *+' conftest.er1 >conftest.err
20544 cat conftest.err >&5
20545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20546 (exit $ac_status); } && {
20547 test -z "$ac_c_werror_flag" ||
20548 test ! -s conftest.err
20549 } && test -s conftest$ac_exeext &&
20550 $as_test_x conftest$ac_exeext; then
20551 ac_cv_lib_des_des_cbc_encrypt=yes
20553 echo "$as_me: failed program was
:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_cv_lib_des_des_cbc_encrypt=no
20559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20560 conftest$ac_exeext conftest.$ac_ext
20561 LIBS=$ac_check_lib_save_LIBS
20563 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20564 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20565 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20566 cat >>confdefs.h <<_ACEOF
20567 #define HAVE_LIBDES 1
20577 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20578 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20579 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20580 echo $ECHO_N "(cached
) $ECHO_C" >&6
20582 ac_check_lib_save_LIBS=$LIBS
20583 LIBS="-lkrb4 $LIBS"
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20591 /* Override any GCC internal prototype to avoid an error.
20592 Use char because int might match the return type of a GCC
20593 builtin and then its argument prototype would still apply. */
20597 char krb_get_cred ();
20601 return krb_get_cred ();
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20613 (eval "$ac_link") 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20619 (exit $ac_status); } && {
20620 test -z "$ac_c_werror_flag" ||
20621 test ! -s conftest.err
20622 } && test -s conftest$ac_exeext &&
20623 $as_test_x conftest$ac_exeext; then
20624 ac_cv_lib_krb4_krb_get_cred=yes
20626 echo "$as_me: failed program was
:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20629 ac_cv_lib_krb4_krb_get_cred=no
20632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20633 conftest$ac_exeext conftest.$ac_ext
20634 LIBS=$ac_check_lib_save_LIBS
20636 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20637 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20638 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20639 cat >>confdefs.h <<_ACEOF
20640 #define HAVE_LIBKRB4 1
20643 LIBS="-lkrb4 $LIBS"
20647 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20648 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20649 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20650 echo $ECHO_N "(cached
) $ECHO_C" >&6
20652 ac_check_lib_save_LIBS=$LIBS
20654 cat >conftest.$ac_ext <<_ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h. */
20661 /* Override any GCC internal prototype to avoid an error.
20662 Use char because int might match the return type of a GCC
20663 builtin and then its argument prototype would still apply. */
20667 char krb_get_cred ();
20671 return krb_get_cred ();
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (ac_try="$ac_link"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_link") 2>conftest.er1
20685 grep -v '^ *+' conftest.er1 >conftest.err
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest$ac_exeext &&
20693 $as_test_x conftest$ac_exeext; then
20694 ac_cv_lib_krb_krb_get_cred=yes
20696 echo "$as_me: failed program was
:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20699 ac_cv_lib_krb_krb_get_cred=no
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20703 conftest$ac_exeext conftest.$ac_ext
20704 LIBS=$ac_check_lib_save_LIBS
20706 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20707 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20708 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20709 cat >>confdefs.h <<_ACEOF
20710 #define HAVE_LIBKRB 1
20721 if test "${with_kerberos5+set}" = set; then
20723 for ac_header in krb5.h
20725 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20726 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20727 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20728 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20730 echo $ECHO_N "(cached
) $ECHO_C" >&6
20732 ac_res=`eval echo '${'$as_ac_Header'}'`
20733 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20734 echo "${ECHO_T}$ac_res" >&6; }
20736 # Is the header compilable?
20737 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20738 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 $ac_includes_default
20746 #include <$ac_header>
20748 rm -f conftest.$ac_objext
20749 if { (ac_try="$ac_compile"
20750 case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_compile") 2>conftest.er1
20757 grep -v '^ *+' conftest.er1 >conftest.err
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20761 (exit $ac_status); } && {
20762 test -z "$ac_c_werror_flag" ||
20763 test ! -s conftest.err
20764 } && test -s conftest.$ac_objext; then
20765 ac_header_compiler=yes
20767 echo "$as_me: failed program was
:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 ac_header_compiler=no
20773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20774 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20775 echo "${ECHO_T}$ac_header_compiler" >&6; }
20777 # Is the header present?
20778 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20779 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 #include <$ac_header>
20788 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20789 case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20796 grep -v '^ *+' conftest.er1 >conftest.err
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20800 (exit $ac_status); } >/dev/null && {
20801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20804 ac_header_preproc=yes
20806 echo "$as_me: failed program was
:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 ac_header_preproc=no
20812 rm -f conftest.err conftest.$ac_ext
20813 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20814 echo "${ECHO_T}$ac_header_preproc" >&6; }
20816 # So? What about this header?
20817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20819 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20820 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20821 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20823 ac_header_preproc=yes
20826 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20827 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20828 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20829 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20830 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20831 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20832 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20833 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20834 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20836 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20837 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20841 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20842 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20843 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20844 echo $ECHO_N "(cached
) $ECHO_C" >&6
20846 eval "$as_ac_Header=\
$ac_header_preproc"
20848 ac_res=`eval echo '${'$as_ac_Header'}'`
20849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20850 echo "${ECHO_T}$ac_res" >&6; }
20853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20854 cat >>confdefs.h <<_ACEOF
20855 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20864 for ac_header in des.h
20866 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20867 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20868 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20869 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20870 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20871 echo $ECHO_N "(cached
) $ECHO_C" >&6
20873 ac_res=`eval echo '${'$as_ac_Header'}'`
20874 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20875 echo "${ECHO_T}$ac_res" >&6; }
20877 # Is the header compilable?
20878 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20879 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20880 cat >conftest.$ac_ext <<_ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20886 $ac_includes_default
20887 #include <$ac_header>
20889 rm -f conftest.$ac_objext
20890 if { (ac_try="$ac_compile"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_compile") 2>conftest.er1
20898 grep -v '^ *+' conftest.er1 >conftest.err
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20902 (exit $ac_status); } && {
20903 test -z "$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20905 } && test -s conftest.$ac_objext; then
20906 ac_header_compiler=yes
20908 echo "$as_me: failed program was
:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_header_compiler=no
20914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20916 echo "${ECHO_T}$ac_header_compiler" >&6; }
20918 # Is the header present?
20919 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20920 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20921 cat >conftest.$ac_ext <<_ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 #include <$ac_header>
20929 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20930 case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20941 (exit $ac_status); } >/dev/null && {
20942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20943 test ! -s conftest.err
20945 ac_header_preproc=yes
20947 echo "$as_me: failed program was
:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 ac_header_preproc=no
20953 rm -f conftest.err conftest.$ac_ext
20954 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20955 echo "${ECHO_T}$ac_header_preproc" >&6; }
20957 # So? What about this header?
20958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20960 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20961 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20962 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20964 ac_header_preproc=yes
20967 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20968 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20969 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20970 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20971 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20972 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20973 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20974 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20975 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20977 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20978 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20982 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20983 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached
) $ECHO_C" >&6
20987 eval "$as_ac_Header=\
$ac_header_preproc"
20989 ac_res=`eval echo '${'$as_ac_Header'}'`
20990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20991 echo "${ECHO_T}$ac_res" >&6; }
20994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20995 cat >>confdefs.h <<_ACEOF
20996 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21001 for ac_header in kerberosIV/des.h
21003 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21004 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21005 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21006 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21007 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21008 echo $ECHO_N "(cached
) $ECHO_C" >&6
21010 ac_res=`eval echo '${'$as_ac_Header'}'`
21011 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21012 echo "${ECHO_T}$ac_res" >&6; }
21014 # Is the header compilable?
21015 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21016 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21017 cat >conftest.$ac_ext <<_ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21023 $ac_includes_default
21024 #include <$ac_header>
21026 rm -f conftest.$ac_objext
21027 if { (ac_try="$ac_compile"
21028 case "(($ac_try" in
21029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21030 *) ac_try_echo=$ac_try;;
21032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21033 (eval "$ac_compile") 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest.$ac_objext; then
21043 ac_header_compiler=yes
21045 echo "$as_me: failed program was
:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ac_header_compiler=no
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21053 echo "${ECHO_T}$ac_header_compiler" >&6; }
21055 # Is the header present?
21056 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21057 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21058 cat >conftest.$ac_ext <<_ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h. */
21064 #include <$ac_header>
21066 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21074 grep -v '^ *+' conftest.er1 >conftest.err
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21078 (exit $ac_status); } >/dev/null && {
21079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21082 ac_header_preproc=yes
21084 echo "$as_me: failed program was
:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_preproc=no
21090 rm -f conftest.err conftest.$ac_ext
21091 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21092 echo "${ECHO_T}$ac_header_preproc" >&6; }
21094 # So? What about this header?
21095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21097 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21098 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21099 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21101 ac_header_preproc=yes
21104 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21105 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21106 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21107 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21108 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21109 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21110 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21111 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21112 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21114 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21115 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21119 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21120 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21122 echo $ECHO_N "(cached
) $ECHO_C" >&6
21124 eval "$as_ac_Header=\
$ac_header_preproc"
21126 ac_res=`eval echo '${'$as_ac_Header'}'`
21127 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21128 echo "${ECHO_T}$ac_res" >&6; }
21131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21132 cat >>confdefs.h <<_ACEOF
21133 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21138 for ac_header in kerberos/des.h
21140 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21142 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21143 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21145 echo $ECHO_N "(cached
) $ECHO_C" >&6
21147 ac_res=`eval echo '${'$as_ac_Header'}'`
21148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21149 echo "${ECHO_T}$ac_res" >&6; }
21151 # Is the header compilable?
21152 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21153 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21154 cat >conftest.$ac_ext <<_ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 $ac_includes_default
21161 #include <$ac_header>
21163 rm -f conftest.$ac_objext
21164 if { (ac_try="$ac_compile"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_compile") 2>conftest.er1
21172 grep -v '^ *+' conftest.er1 >conftest.err
21174 cat conftest.err >&5
21175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21176 (exit $ac_status); } && {
21177 test -z "$ac_c_werror_flag" ||
21178 test ! -s conftest.err
21179 } && test -s conftest.$ac_objext; then
21180 ac_header_compiler=yes
21182 echo "$as_me: failed program was
:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 ac_header_compiler=no
21188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21190 echo "${ECHO_T}$ac_header_compiler" >&6; }
21192 # Is the header present?
21193 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21194 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <$ac_header>
21203 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21204 case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21209 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21211 grep -v '^ *+' conftest.er1 >conftest.err
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21215 (exit $ac_status); } >/dev/null && {
21216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21217 test ! -s conftest.err
21219 ac_header_preproc=yes
21221 echo "$as_me: failed program was
:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 ac_header_preproc=no
21227 rm -f conftest.err conftest.$ac_ext
21228 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21229 echo "${ECHO_T}$ac_header_preproc" >&6; }
21231 # So? What about this header?
21232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21234 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21235 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21236 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21238 ac_header_preproc=yes
21241 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21242 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21243 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21244 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21245 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21246 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21247 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21248 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21249 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21251 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21252 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21256 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21257 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21259 echo $ECHO_N "(cached
) $ECHO_C" >&6
21261 eval "$as_ac_Header=\
$ac_header_preproc"
21263 ac_res=`eval echo '${'$as_ac_Header'}'`
21264 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21265 echo "${ECHO_T}$ac_res" >&6; }
21268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21269 cat >>confdefs.h <<_ACEOF
21270 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21286 for ac_header in krb.h
21288 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21290 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21291 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21292 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21293 echo $ECHO_N "(cached
) $ECHO_C" >&6
21295 ac_res=`eval echo '${'$as_ac_Header'}'`
21296 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21297 echo "${ECHO_T}$ac_res" >&6; }
21299 # Is the header compilable?
21300 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21301 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21302 cat >conftest.$ac_ext <<_ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21308 $ac_includes_default
21309 #include <$ac_header>
21311 rm -f conftest.$ac_objext
21312 if { (ac_try="$ac_compile"
21313 case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_compile") 2>conftest.er1
21320 grep -v '^ *+' conftest.er1 >conftest.err
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest.$ac_objext; then
21328 ac_header_compiler=yes
21330 echo "$as_me: failed program was
:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_header_compiler=no
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21338 echo "${ECHO_T}$ac_header_compiler" >&6; }
21340 # Is the header present?
21341 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21342 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21343 cat >conftest.$ac_ext <<_ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h. */
21349 #include <$ac_header>
21351 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21352 case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21359 grep -v '^ *+' conftest.er1 >conftest.err
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21363 (exit $ac_status); } >/dev/null && {
21364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21367 ac_header_preproc=yes
21369 echo "$as_me: failed program was
:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21372 ac_header_preproc=no
21375 rm -f conftest.err conftest.$ac_ext
21376 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21377 echo "${ECHO_T}$ac_header_preproc" >&6; }
21379 # So? What about this header?
21380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21382 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21383 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21384 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21386 ac_header_preproc=yes
21389 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21390 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21391 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21392 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21393 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21394 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21395 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21396 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21397 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21399 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21400 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21404 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21405 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21406 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21407 echo $ECHO_N "(cached
) $ECHO_C" >&6
21409 eval "$as_ac_Header=\
$ac_header_preproc"
21411 ac_res=`eval echo '${'$as_ac_Header'}'`
21412 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21413 echo "${ECHO_T}$ac_res" >&6; }
21416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21417 cat >>confdefs.h <<_ACEOF
21418 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21423 for ac_header in kerberosIV/krb.h
21425 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21427 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21428 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21429 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21430 echo $ECHO_N "(cached
) $ECHO_C" >&6
21432 ac_res=`eval echo '${'$as_ac_Header'}'`
21433 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21434 echo "${ECHO_T}$ac_res" >&6; }
21436 # Is the header compilable?
21437 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21438 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 $ac_includes_default
21446 #include <$ac_header>
21448 rm -f conftest.$ac_objext
21449 if { (ac_try="$ac_compile"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_compile") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest.$ac_objext; then
21465 ac_header_compiler=yes
21467 echo "$as_me: failed program was
:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 ac_header_compiler=no
21473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21474 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21475 echo "${ECHO_T}$ac_header_compiler" >&6; }
21477 # Is the header present?
21478 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21479 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21480 cat >conftest.$ac_ext <<_ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 #include <$ac_header>
21488 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21489 case "(($ac_try" in
21490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491 *) ac_try_echo=$ac_try;;
21493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21494 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21496 grep -v '^ *+' conftest.er1 >conftest.err
21498 cat conftest.err >&5
21499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21500 (exit $ac_status); } >/dev/null && {
21501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21502 test ! -s conftest.err
21504 ac_header_preproc=yes
21506 echo "$as_me: failed program was
:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21509 ac_header_preproc=no
21512 rm -f conftest.err conftest.$ac_ext
21513 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21514 echo "${ECHO_T}$ac_header_preproc" >&6; }
21516 # So? What about this header?
21517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21519 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21520 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21521 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21523 ac_header_preproc=yes
21526 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21527 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21528 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21529 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21530 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21531 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21532 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21533 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21534 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21536 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21537 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21541 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21542 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21543 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21544 echo $ECHO_N "(cached
) $ECHO_C" >&6
21546 eval "$as_ac_Header=\
$ac_header_preproc"
21548 ac_res=`eval echo '${'$as_ac_Header'}'`
21549 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21550 echo "${ECHO_T}$ac_res" >&6; }
21553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21554 cat >>confdefs.h <<_ACEOF
21555 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21560 for ac_header in kerberos/krb.h
21562 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21563 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21564 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21565 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21567 echo $ECHO_N "(cached
) $ECHO_C" >&6
21569 ac_res=`eval echo '${'$as_ac_Header'}'`
21570 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21571 echo "${ECHO_T}$ac_res" >&6; }
21573 # Is the header compilable?
21574 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21575 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21576 cat >conftest.$ac_ext <<_ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21582 $ac_includes_default
21583 #include <$ac_header>
21585 rm -f conftest.$ac_objext
21586 if { (ac_try="$ac_compile"
21587 case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_compile") 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest.$ac_objext; then
21602 ac_header_compiler=yes
21604 echo "$as_me: failed program was
:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21607 ac_header_compiler=no
21610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21612 echo "${ECHO_T}$ac_header_compiler" >&6; }
21614 # Is the header present?
21615 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21616 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21617 cat >conftest.$ac_ext <<_ACEOF
21620 cat confdefs.h >>conftest.$ac_ext
21621 cat >>conftest.$ac_ext <<_ACEOF
21622 /* end confdefs.h. */
21623 #include <$ac_header>
21625 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21626 case "(($ac_try" in
21627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21637 (exit $ac_status); } >/dev/null && {
21638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21641 ac_header_preproc=yes
21643 echo "$as_me: failed program was
:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 ac_header_preproc=no
21649 rm -f conftest.err conftest.$ac_ext
21650 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21651 echo "${ECHO_T}$ac_header_preproc" >&6; }
21653 # So? What about this header?
21654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21656 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21657 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21658 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21660 ac_header_preproc=yes
21663 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21664 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21665 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21666 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21667 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21668 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21669 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21670 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21671 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21673 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21674 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21678 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21679 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21680 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21681 echo $ECHO_N "(cached
) $ECHO_C" >&6
21683 eval "$as_ac_Header=\
$ac_header_preproc"
21685 ac_res=`eval echo '${'$as_ac_Header'}'`
21686 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21687 echo "${ECHO_T}$ac_res" >&6; }
21690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21691 cat >>confdefs.h <<_ACEOF
21692 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21709 for ac_header in com_err.h
21711 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21712 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21713 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21714 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21715 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21716 echo $ECHO_N "(cached
) $ECHO_C" >&6
21718 ac_res=`eval echo '${'$as_ac_Header'}'`
21719 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21720 echo "${ECHO_T}$ac_res" >&6; }
21722 # Is the header compilable?
21723 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21724 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 $ac_includes_default
21732 #include <$ac_header>
21734 rm -f conftest.$ac_objext
21735 if { (ac_try="$ac_compile"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_compile") 2>conftest.er1
21743 grep -v '^ *+' conftest.er1 >conftest.err
21745 cat conftest.err >&5
21746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21747 (exit $ac_status); } && {
21748 test -z "$ac_c_werror_flag" ||
21749 test ! -s conftest.err
21750 } && test -s conftest.$ac_objext; then
21751 ac_header_compiler=yes
21753 echo "$as_me: failed program was
:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_header_compiler=no
21759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21761 echo "${ECHO_T}$ac_header_compiler" >&6; }
21763 # Is the header present?
21764 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21765 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 #include <$ac_header>
21774 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21775 case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21782 grep -v '^ *+' conftest.er1 >conftest.err
21784 cat conftest.err >&5
21785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21786 (exit $ac_status); } >/dev/null && {
21787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21788 test ! -s conftest.err
21790 ac_header_preproc=yes
21792 echo "$as_me: failed program was
:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21795 ac_header_preproc=no
21798 rm -f conftest.err conftest.$ac_ext
21799 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21800 echo "${ECHO_T}$ac_header_preproc" >&6; }
21802 # So? What about this header?
21803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21805 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21806 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21807 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21809 ac_header_preproc=yes
21812 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21813 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21814 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21815 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21816 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21817 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21818 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21819 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21820 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21822 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21823 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21827 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21828 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21829 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21830 echo $ECHO_N "(cached
) $ECHO_C" >&6
21832 eval "$as_ac_Header=\
$ac_header_preproc"
21834 ac_res=`eval echo '${'$as_ac_Header'}'`
21835 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21836 echo "${ECHO_T}$ac_res" >&6; }
21839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21840 cat >>confdefs.h <<_ACEOF
21841 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21850 # Solaris requires -lintl if you want strerror (which calls dgettext)
21851 # to return localized messages.
21853 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21854 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21855 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21856 echo $ECHO_N "(cached
) $ECHO_C" >&6
21858 ac_check_lib_save_LIBS=$LIBS
21859 LIBS="-lintl $LIBS"
21860 cat >conftest.$ac_ext <<_ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h. */
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21877 return dgettext ();
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_link") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1 >conftest.err
21893 cat conftest.err >&5
21894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest$ac_exeext &&
21899 $as_test_x conftest$ac_exeext; then
21900 ac_cv_lib_intl_dgettext=yes
21902 echo "$as_me: failed program was
:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_cv_lib_intl_dgettext=no
21908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909 conftest$ac_exeext conftest.$ac_ext
21910 LIBS=$ac_check_lib_save_LIBS
21912 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21913 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21914 if test $ac_cv_lib_intl_dgettext = yes; then
21915 cat >>confdefs.h <<_ACEOF
21916 #define HAVE_LIBINTL 1
21919 LIBS="-lintl $LIBS"
21924 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21925 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21926 if test "${emacs_cv_localtime_cache+set}" = set; then
21927 echo $ECHO_N "(cached
) $ECHO_C" >&6
21929 if test x$ac_cv_func_tzset = xyes; then
21930 if test "$cross_compiling" = yes; then
21931 # If we have tzset, assume the worst when cross-compiling.
21932 emacs_cv_localtime_cache=yes
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21941 extern char **environ;
21945 for (to = from = environ; (*to = *from); from++)
21946 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21949 char TZ_GMT0[] = "TZ
=GMT0
";
21950 char TZ_PST8[] = "TZ
=PST8
";
21953 time_t now = time ((time_t *) 0);
21954 int hour_GMT0, hour_unset;
21955 if (putenv (TZ_GMT0) != 0)
21957 hour_GMT0 = localtime (&now)->tm_hour;
21959 hour_unset = localtime (&now)->tm_hour;
21960 if (putenv (TZ_PST8) != 0)
21962 if (localtime (&now)->tm_hour == hour_GMT0)
21965 if (localtime (&now)->tm_hour != hour_unset)
21970 rm -f conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_link") 2>&5
21979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21981 { (case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_try") 2>&5
21988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21989 (exit $ac_status); }; }; then
21990 emacs_cv_localtime_cache=no
21992 echo "$as_me: program exited with status
$ac_status" >&5
21993 echo "$as_me: failed program was
:" >&5
21994 sed 's/^/| /' conftest.$ac_ext >&5
21996 ( exit $ac_status )
21997 emacs_cv_localtime_cache=yes
21999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22004 # If we lack tzset, report that localtime does not cache TZ,
22005 # since we can't invalidate the cache if we don't have tzset.
22006 emacs_cv_localtime_cache=no
22009 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22010 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22011 if test $emacs_cv_localtime_cache = yes; then
22013 cat >>confdefs.h <<\_ACEOF
22014 #define LOCALTIME_CACHE 1
22019 if test "x
$HAVE_TIMEVAL" = xyes; then
22021 for ac_func in gettimeofday
22023 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22024 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22025 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22026 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22027 echo $ECHO_N "(cached
) $ECHO_C" >&6
22029 cat >conftest.$ac_ext <<_ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22037 #define $ac_func innocuous_$ac_func
22039 /* System header to define __stub macros and hopefully few prototypes,
22040 which can conflict with char $ac_func (); below.
22041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22042 <limits.h> exists even on freestanding compilers. */
22045 # include <limits.h>
22047 # include <assert.h>
22052 /* Override any GCC internal prototype to avoid an error.
22053 Use char because int might match the return type of a GCC
22054 builtin and then its argument prototype would still apply. */
22059 /* The GNU C library defines this for functions which it implements
22060 to always fail with ENOSYS. Some functions are actually named
22061 something starting with __ and the normal name is an alias. */
22062 #if defined __stub_$ac_func || defined __stub___$ac_func
22069 return $ac_func ();
22074 rm -f conftest.$ac_objext conftest$ac_exeext
22075 if { (ac_try="$ac_link"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_link") 2>conftest.er1
22083 grep -v '^ *+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22087 (exit $ac_status); } && {
22088 test -z "$ac_c_werror_flag" ||
22089 test ! -s conftest.err
22090 } && test -s conftest$ac_exeext &&
22091 $as_test_x conftest$ac_exeext; then
22092 eval "$as_ac_var=yes"
22094 echo "$as_me: failed program was
:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 eval "$as_ac_var=no
"
22100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22101 conftest$ac_exeext conftest.$ac_ext
22103 ac_res=`eval echo '${'$as_ac_var'}'`
22104 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22105 echo "${ECHO_T}$ac_res" >&6; }
22106 if test `eval echo '${'$as_ac_var'}'` = yes; then
22107 cat >>confdefs.h <<_ACEOF
22108 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22114 if test $ac_cv_func_gettimeofday = yes; then
22115 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22116 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22117 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22118 echo $ECHO_N "(cached
) $ECHO_C" >&6
22120 cat >conftest.$ac_ext <<_ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h. */
22127 #ifdef TIME_WITH_SYS_TIME
22128 #include <sys/time.h>
22131 #ifdef HAVE_SYS_TIME_H
22132 #include <sys/time.h>
22140 struct timeval time;
22141 gettimeofday (&time, 0);
22146 rm -f conftest.$ac_objext
22147 if { (ac_try="$ac_compile"
22148 case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22153 (eval "$ac_compile") 2>conftest.er1
22155 grep -v '^ *+' conftest.er1 >conftest.err
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22159 (exit $ac_status); } && {
22160 test -z "$ac_c_werror_flag" ||
22161 test ! -s conftest.err
22162 } && test -s conftest.$ac_objext; then
22163 emacs_cv_gettimeofday_two_arguments=yes
22165 echo "$as_me: failed program was
:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22168 emacs_cv_gettimeofday_two_arguments=no
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22174 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22175 if test $emacs_cv_gettimeofday_two_arguments = no; then
22177 cat >>confdefs.h <<\_ACEOF
22178 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22186 { echo "$as_me:$LINENO: checking
for socket
" >&5
22187 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22188 if test "${ac_cv_func_socket+set}" = set; then
22189 echo $ECHO_N "(cached
) $ECHO_C" >&6
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22199 #define socket innocuous_socket
22201 /* System header to define __stub macros and hopefully few prototypes,
22202 which can conflict with char socket (); below.
22203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22204 <limits.h> exists even on freestanding compilers. */
22207 # include <limits.h>
22209 # include <assert.h>
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22221 /* The GNU C library defines this for functions which it implements
22222 to always fail with ENOSYS. Some functions are actually named
22223 something starting with __ and the normal name is an alias. */
22224 #if defined __stub_socket || defined __stub___socket
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_link") 2>conftest.er1
22245 grep -v '^ *+' conftest.er1 >conftest.err
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest$ac_exeext &&
22253 $as_test_x conftest$ac_exeext; then
22254 ac_cv_func_socket=yes
22256 echo "$as_me: failed program was
:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_func_socket=no
22262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263 conftest$ac_exeext conftest.$ac_ext
22265 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22266 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22267 if test $ac_cv_func_socket = yes; then
22273 if test $ok_so_far = yes; then
22274 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22275 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22276 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22277 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22278 echo $ECHO_N "(cached
) $ECHO_C" >&6
22280 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22281 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22283 # Is the header compilable?
22284 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22285 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22286 cat >conftest.$ac_ext <<_ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 $ac_includes_default
22293 #include <netinet/in.h>
22295 rm -f conftest.$ac_objext
22296 if { (ac_try="$ac_compile"
22297 case "(($ac_try" in
22298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299 *) ac_try_echo=$ac_try;;
22301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22302 (eval "$ac_compile") 2>conftest.er1
22304 grep -v '^ *+' conftest.er1 >conftest.err
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22308 (exit $ac_status); } && {
22309 test -z "$ac_c_werror_flag" ||
22310 test ! -s conftest.err
22311 } && test -s conftest.$ac_objext; then
22312 ac_header_compiler=yes
22314 echo "$as_me: failed program was
:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22317 ac_header_compiler=no
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22322 echo "${ECHO_T}$ac_header_compiler" >&6; }
22324 # Is the header present?
22325 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22326 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22327 cat >conftest.$ac_ext <<_ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22333 #include <netinet/in.h>
22335 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22347 (exit $ac_status); } >/dev/null && {
22348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22351 ac_header_preproc=yes
22353 echo "$as_me: failed program was
:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ac_header_preproc=no
22359 rm -f conftest.err conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22361 echo "${ECHO_T}$ac_header_preproc" >&6; }
22363 # So? What about this header?
22364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22366 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22367 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22368 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22369 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22370 ac_header_preproc=yes
22373 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22374 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22375 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22376 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22377 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22378 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22379 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22380 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22381 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22382 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22383 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22384 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22388 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22389 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22390 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22391 echo $ECHO_N "(cached
) $ECHO_C" >&6
22393 ac_cv_header_netinet_in_h=$ac_header_preproc
22395 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22396 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22399 if test $ac_cv_header_netinet_in_h = yes; then
22407 if test $ok_so_far = yes; then
22408 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22409 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22410 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22411 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22412 echo $ECHO_N "(cached
) $ECHO_C" >&6
22414 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22415 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22417 # Is the header compilable?
22418 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22419 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22420 cat >conftest.$ac_ext <<_ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 $ac_includes_default
22427 #include <arpa/inet.h>
22429 rm -f conftest.$ac_objext
22430 if { (ac_try="$ac_compile"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_compile") 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest.$ac_objext; then
22446 ac_header_compiler=yes
22448 echo "$as_me: failed program was
:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22451 ac_header_compiler=no
22454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22456 echo "${ECHO_T}$ac_header_compiler" >&6; }
22458 # Is the header present?
22459 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22460 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22461 cat >conftest.$ac_ext <<_ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <arpa/inet.h>
22469 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22477 grep -v '^ *+' conftest.er1 >conftest.err
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22481 (exit $ac_status); } >/dev/null && {
22482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22485 ac_header_preproc=yes
22487 echo "$as_me: failed program was
:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ac_header_preproc=no
22493 rm -f conftest.err conftest.$ac_ext
22494 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22495 echo "${ECHO_T}$ac_header_preproc" >&6; }
22497 # So? What about this header?
22498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22500 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22501 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22502 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22503 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22504 ac_header_preproc=yes
22507 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22508 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22509 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22510 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22511 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22512 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22513 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22514 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22515 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22516 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22517 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22518 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22522 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22523 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22525 echo $ECHO_N "(cached
) $ECHO_C" >&6
22527 ac_cv_header_arpa_inet_h=$ac_header_preproc
22529 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22530 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22533 if test $ac_cv_header_arpa_inet_h = yes; then
22541 if test $ok_so_far = yes; then
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_INET_SOCKETS 1
22550 for ac_header in sys/ioctl.h
22552 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22553 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22554 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22555 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22556 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22557 echo $ECHO_N "(cached
) $ECHO_C" >&6
22559 ac_res=`eval echo '${'$as_ac_Header'}'`
22560 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22561 echo "${ECHO_T}$ac_res" >&6; }
22563 # Is the header compilable?
22564 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22565 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22566 cat >conftest.$ac_ext <<_ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h. */
22572 $ac_includes_default
22573 #include <$ac_header>
22575 rm -f conftest.$ac_objext
22576 if { (ac_try="$ac_compile"
22577 case "(($ac_try" in
22578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22579 *) ac_try_echo=$ac_try;;
22581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22582 (eval "$ac_compile") 2>conftest.er1
22584 grep -v '^ *+' conftest.er1 >conftest.err
22586 cat conftest.err >&5
22587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22588 (exit $ac_status); } && {
22589 test -z "$ac_c_werror_flag" ||
22590 test ! -s conftest.err
22591 } && test -s conftest.$ac_objext; then
22592 ac_header_compiler=yes
22594 echo "$as_me: failed program was
:" >&5
22595 sed 's/^/| /' conftest.$ac_ext >&5
22597 ac_header_compiler=no
22600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22602 echo "${ECHO_T}$ac_header_compiler" >&6; }
22604 # Is the header present?
22605 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22606 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22607 cat >conftest.$ac_ext <<_ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 #include <$ac_header>
22615 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22627 (exit $ac_status); } >/dev/null && {
22628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22631 ac_header_preproc=yes
22633 echo "$as_me: failed program was
:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ac_header_preproc=no
22639 rm -f conftest.err conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22641 echo "${ECHO_T}$ac_header_preproc" >&6; }
22643 # So? What about this header?
22644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22646 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22647 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22648 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22650 ac_header_preproc=yes
22653 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22654 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22655 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22656 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22657 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22658 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22659 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22660 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22661 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22663 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22664 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22668 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22669 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22671 echo $ECHO_N "(cached
) $ECHO_C" >&6
22673 eval "$as_ac_Header=\
$ac_header_preproc"
22675 ac_res=`eval echo '${'$as_ac_Header'}'`
22676 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22677 echo "${ECHO_T}$ac_res" >&6; }
22680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22681 cat >>confdefs.h <<_ACEOF
22682 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22690 if test -f /usr/lpp/X11/bin/smt.exp; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_AIX_SMT_EXP 1
22698 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22699 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22700 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22701 { echo "$as_me:$LINENO: result
: yes" >&5
22702 echo "${ECHO_T}yes" >&6; }
22704 cat >>confdefs.h <<\_ACEOF
22705 #define HAVE_DEV_PTMX 1
22709 { echo "$as_me:$LINENO: result
: no
" >&5
22710 echo "${ECHO_T}no
" >&6; }
22713 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22714 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22715 if test "${ac_cv_type_pid_t+set}" = set; then
22716 echo $ECHO_N "(cached
) $ECHO_C" >&6
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22724 $ac_includes_default
22725 typedef pid_t ac__type_new_;
22729 if ((ac__type_new_ *) 0)
22731 if (sizeof (ac__type_new_))
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_cv_type_pid_t=yes
22756 echo "$as_me: failed program was
:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_cv_type_pid_t=no
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22765 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22766 if test $ac_cv_type_pid_t = yes; then
22770 cat >>confdefs.h <<_ACEOF
22777 for ac_header in vfork.h
22779 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22781 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22782 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached
) $ECHO_C" >&6
22786 ac_res=`eval echo '${'$as_ac_Header'}'`
22787 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22788 echo "${ECHO_T}$ac_res" >&6; }
22790 # Is the header compilable?
22791 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22792 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22799 $ac_includes_default
22800 #include <$ac_header>
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_compile") 2>conftest.er1
22811 grep -v '^ *+' conftest.er1 >conftest.err
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest.$ac_objext; then
22819 ac_header_compiler=yes
22821 echo "$as_me: failed program was
:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 ac_header_compiler=no
22827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22829 echo "${ECHO_T}$ac_header_compiler" >&6; }
22831 # Is the header present?
22832 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22833 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22834 cat >conftest.$ac_ext <<_ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h. */
22840 #include <$ac_header>
22842 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22854 (exit $ac_status); } >/dev/null && {
22855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22858 ac_header_preproc=yes
22860 echo "$as_me: failed program was
:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_header_preproc=no
22866 rm -f conftest.err conftest.$ac_ext
22867 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22868 echo "${ECHO_T}$ac_header_preproc" >&6; }
22870 # So? What about this header?
22871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22873 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22874 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22875 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22877 ac_header_preproc=yes
22880 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22881 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22882 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22883 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22884 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22885 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22886 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22887 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22888 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22890 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22891 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22895 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22896 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22898 echo $ECHO_N "(cached
) $ECHO_C" >&6
22900 eval "$as_ac_Header=\
$ac_header_preproc"
22902 ac_res=`eval echo '${'$as_ac_Header'}'`
22903 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22904 echo "${ECHO_T}$ac_res" >&6; }
22907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22908 cat >>confdefs.h <<_ACEOF
22909 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22918 for ac_func in fork vfork
22920 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22921 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22922 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22923 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22924 echo $ECHO_N "(cached
) $ECHO_C" >&6
22926 cat >conftest.$ac_ext <<_ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h. */
22932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22934 #define $ac_func innocuous_$ac_func
22936 /* System header to define __stub macros and hopefully few prototypes,
22937 which can conflict with char $ac_func (); below.
22938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22939 <limits.h> exists even on freestanding compilers. */
22942 # include <limits.h>
22944 # include <assert.h>
22949 /* Override any GCC internal prototype to avoid an error.
22950 Use char because int might match the return type of a GCC
22951 builtin and then its argument prototype would still apply. */
22956 /* The GNU C library defines this for functions which it implements
22957 to always fail with ENOSYS. Some functions are actually named
22958 something starting with __ and the normal name is an alias. */
22959 #if defined __stub_$ac_func || defined __stub___$ac_func
22966 return $ac_func ();
22971 rm -f conftest.$ac_objext conftest$ac_exeext
22972 if { (ac_try="$ac_link"
22973 case "(($ac_try" in
22974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975 *) ac_try_echo=$ac_try;;
22977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22978 (eval "$ac_link") 2>conftest.er1
22980 grep -v '^ *+' conftest.er1 >conftest.err
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22984 (exit $ac_status); } && {
22985 test -z "$ac_c_werror_flag" ||
22986 test ! -s conftest.err
22987 } && test -s conftest$ac_exeext &&
22988 $as_test_x conftest$ac_exeext; then
22989 eval "$as_ac_var=yes"
22991 echo "$as_me: failed program was
:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 eval "$as_ac_var=no
"
22997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22998 conftest$ac_exeext conftest.$ac_ext
23000 ac_res=`eval echo '${'$as_ac_var'}'`
23001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23002 echo "${ECHO_T}$ac_res" >&6; }
23003 if test `eval echo '${'$as_ac_var'}'` = yes; then
23004 cat >>confdefs.h <<_ACEOF
23005 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23011 if test "x
$ac_cv_func_fork" = xyes; then
23012 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23013 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23014 if test "${ac_cv_func_fork_works+set}" = set; then
23015 echo $ECHO_N "(cached
) $ECHO_C" >&6
23017 if test "$cross_compiling" = yes; then
23018 ac_cv_func_fork_works=cross
23020 cat >conftest.$ac_ext <<_ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 $ac_includes_default
23031 /* By Ruediger Kuhlmann. */
23032 return fork () < 0;
23038 rm -f conftest$ac_exeext
23039 if { (ac_try="$ac_link"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_link") 2>&5
23047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049 { (case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_try") 2>&5
23056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 ac_cv_func_fork_works=yes
23060 echo "$as_me: program exited with status
$ac_status" >&5
23061 echo "$as_me: failed program was
:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 ( exit $ac_status )
23065 ac_cv_func_fork_works=no
23067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23072 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23073 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23076 ac_cv_func_fork_works=$ac_cv_func_fork
23078 if test "x
$ac_cv_func_fork_works" = xcross; then
23080 *-*-amigaos* | *-*-msdosdjgpp*)
23081 # Override, as these systems have only a dummy fork() stub
23082 ac_cv_func_fork_works=no
23085 ac_cv_func_fork_works=yes
23088 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23089 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23091 ac_cv_func_vfork_works=$ac_cv_func_vfork
23092 if test "x
$ac_cv_func_vfork" = xyes; then
23093 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23094 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23095 if test "${ac_cv_func_vfork_works+set}" = set; then
23096 echo $ECHO_N "(cached
) $ECHO_C" >&6
23098 if test "$cross_compiling" = yes; then
23099 ac_cv_func_vfork_works=cross
23101 cat >conftest.$ac_ext <<_ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23107 /* Thanks to Paul Eggert for this test. */
23108 $ac_includes_default
23109 #include <sys/wait.h>
23110 #ifdef HAVE_VFORK_H
23111 # include <vfork.h>
23113 /* On some sparc systems, changes by the child to local and incoming
23114 argument registers are propagated back to the parent. The compiler
23115 is told about this with #include <vfork.h>, but some compilers
23116 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23117 static variable whose address is put into a register that is
23118 clobbered by the vfork. */
23121 sparc_address_test (int arg)
23123 sparc_address_test (arg) int arg;
23126 static pid_t child;
23144 pid_t parent = getpid ();
23147 sparc_address_test (0);
23152 /* Here is another test for sparc vfork register problems. This
23153 test uses lots of local variables, at least as many local
23154 variables as main has allocated so far including compiler
23155 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23156 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23157 reuse the register of parent for one of the local variables,
23158 since it will think that parent can't possibly be used any more
23159 in this routine. Assigning to the local variable will thus
23160 munge parent in the parent process. */
23162 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23163 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23164 /* Convince the compiler that p..p7 are live; otherwise, it might
23165 use the same hardware register for all 8 local variables. */
23166 if (p != p1 || p != p2 || p != p3 || p != p4
23167 || p != p5 || p != p6 || p != p7)
23170 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23171 from child file descriptors. If the child closes a descriptor
23172 before it execs or exits, this munges the parent's descriptor
23173 as well. Test for this by closing stdout in the child. */
23174 _exit(close(fileno(stdout)) != 0);
23179 while (wait(&status) != child)
23182 /* Was there some problem with vforking? */
23185 /* Did the child fail? (This shouldn't happen.) */
23188 /* Did the vfork/compiler bug occur? */
23189 || parent != getpid()
23191 /* Did the file descriptor bug occur? */
23192 || fstat(fileno(stdout), &st) != 0
23197 rm -f conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_link") 2>&5
23206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23208 { (case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_try") 2>&5
23215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23216 (exit $ac_status); }; }; then
23217 ac_cv_func_vfork_works=yes
23219 echo "$as_me: program exited with status
$ac_status" >&5
23220 echo "$as_me: failed program was
:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ( exit $ac_status )
23224 ac_cv_func_vfork_works=no
23226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23231 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23232 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23235 if test "x
$ac_cv_func_fork_works" = xcross; then
23236 ac_cv_func_vfork_works=$ac_cv_func_vfork
23237 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23238 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23241 if test "x
$ac_cv_func_vfork_works" = xyes; then
23243 cat >>confdefs.h <<\_ACEOF
23244 #define HAVE_WORKING_VFORK 1
23249 cat >>confdefs.h <<\_ACEOF
23254 if test "x
$ac_cv_func_fork_works" = xyes; then
23256 cat >>confdefs.h <<\_ACEOF
23257 #define HAVE_WORKING_FORK 1
23263 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23264 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23265 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23266 echo $ECHO_N "(cached
) $ECHO_C" >&6
23268 cat >conftest.$ac_ext <<_ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 #include <langinfo.h>
23278 char* cs = nl_langinfo(CODESET);
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_link") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest$ac_exeext &&
23300 $as_test_x conftest$ac_exeext; then
23301 emacs_cv_langinfo_codeset=yes
23303 echo "$as_me: failed program was
:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23306 emacs_cv_langinfo_codeset=no
23309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23310 conftest$ac_exeext conftest.$ac_ext
23313 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23314 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23315 if test $emacs_cv_langinfo_codeset = yes; then
23317 cat >>confdefs.h <<\_ACEOF
23318 #define HAVE_LANGINFO_CODESET 1
23323 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23324 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23325 if test "${ac_cv_type_size_t+set}" = set; then
23326 echo $ECHO_N "(cached
) $ECHO_C" >&6
23328 cat >conftest.$ac_ext <<_ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h. */
23334 $ac_includes_default
23335 typedef size_t ac__type_new_;
23339 if ((ac__type_new_ *) 0)
23341 if (sizeof (ac__type_new_))
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_compile") 2>conftest.er1
23356 grep -v '^ *+' conftest.er1 >conftest.err
23358 cat conftest.err >&5
23359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.$ac_objext; then
23364 ac_cv_type_size_t=yes
23366 echo "$as_me: failed program was
:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 ac_cv_type_size_t=no
23372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23375 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23376 if test $ac_cv_type_size_t = yes; then
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_SIZE_T 1
23386 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23387 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23388 if test "${ac_cv_type_mbstate_t+set}" = set; then
23389 echo $ECHO_N "(cached
) $ECHO_C" >&6
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 # include <wchar.h>
23402 mbstate_t x; return sizeof x;
23407 rm -f conftest.$ac_objext
23408 if { (ac_try="$ac_compile"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_compile") 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23420 (exit $ac_status); } && {
23421 test -z "$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 } && test -s conftest.$ac_objext; then
23424 ac_cv_type_mbstate_t=yes
23426 echo "$as_me: failed program was
:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ac_cv_type_mbstate_t=no
23432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23435 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23436 if test $ac_cv_type_mbstate_t = yes; then
23438 cat >>confdefs.h <<\_ACEOF
23439 #define HAVE_MBSTATE_T 1
23444 cat >>confdefs.h <<\_ACEOF
23445 #define mbstate_t int
23450 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23451 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23452 if test "${emacs_cv_c_restrict+set}" = set; then
23453 echo $ECHO_N "(cached
) $ECHO_C" >&6
23455 cat >conftest.$ac_ext <<_ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 void fred (int *restrict x);
23470 rm -f conftest.$ac_objext
23471 if { (ac_try="$ac_compile"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23477 (eval "$ac_compile") 2>conftest.er1
23479 grep -v '^ *+' conftest.er1 >conftest.err
23481 cat conftest.err >&5
23482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23483 (exit $ac_status); } && {
23484 test -z "$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 } && test -s conftest.$ac_objext; then
23487 emacs_cv_c_restrict=yes
23489 echo "$as_me: failed program was
:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 cat >conftest.$ac_ext <<_ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 void fred (int *__restrict x);
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511 *) ac_try_echo=$ac_try;;
23513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23514 (eval "$ac_compile") 2>conftest.er1
23516 grep -v '^ *+' conftest.er1 >conftest.err
23518 cat conftest.err >&5
23519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23520 (exit $ac_status); } && {
23521 test -z "$ac_c_werror_flag" ||
23522 test ! -s conftest.err
23523 } && test -s conftest.$ac_objext; then
23524 emacs_cv_c_restrict=__restrict
23526 echo "$as_me: failed program was
:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23529 emacs_cv_c_restrict=no
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23538 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23539 case "$emacs_cv_c_restrict" in
23540 yes) emacs_restrict=restrict;;
23541 no) emacs_restrict="";;
23542 *) emacs_restrict="$emacs_cv_c_restrict";;
23544 if test "$emacs_restrict" != __restrict; then
23546 cat >>confdefs.h <<_ACEOF
23547 #define __restrict $emacs_restrict
23552 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23553 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23554 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23555 echo $ECHO_N "(cached
) $ECHO_C" >&6
23557 cat >conftest.$ac_ext <<_ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 void fred (int x[__restrict]);
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576 *) ac_try_echo=$ac_try;;
23578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23581 grep -v '^ *+' conftest.er1 >conftest.err
23583 cat conftest.err >&5
23584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23589 emacs_cv_c_restrict_arr=yes
23591 echo "$as_me: failed program was
:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23594 emacs_cv_c_restrict_arr=no
23597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23600 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23601 if test "$emacs_cv_c_restrict_arr" = yes; then
23603 cat >>confdefs.h <<\_ACEOF
23604 #define __restrict_arr __restrict
23611 # Set up the CFLAGS for real compilation, so we can substitute it.
23612 CFLAGS="$REAL_CFLAGS"
23613 CPPFLAGS="$REAL_CPPFLAGS"
23615 #### Find out which version of Emacs this is.
23616 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23617 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23618 if test x"${version}" = x; then
23619 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23620 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23621 { (exit 1); exit 1; }; }
23624 ### Specify what sort of things we'll be editing into Makefile and config.h.
23625 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23661 cat >>confdefs.h <<_ACEOF
23662 #define EMACS_CONFIGURATION "${canonical}"
23666 cat >>confdefs.h <<_ACEOF
23667 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23671 cat >>confdefs.h <<_ACEOF
23672 #define config_machfile "${machfile}"
23676 cat >>confdefs.h <<_ACEOF
23677 #define config_opsysfile "${opsysfile}"
23681 cat >>confdefs.h <<_ACEOF
23682 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23686 cat >>confdefs.h <<_ACEOF
23687 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23691 cat >>confdefs.h <<_ACEOF
23692 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23696 cat >>confdefs.h <<_ACEOF
23697 #define UNEXEC_SRC ${UNEXEC_SRC}
23701 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_X_WINDOWS 1
23708 if test "${USE_X_TOOLKIT}" != "none
" ; then
23710 cat >>confdefs.h <<\_ACEOF
23711 #define USE_X_TOOLKIT 1
23715 if test "${HAVE_X11}" = "yes" ; then
23717 cat >>confdefs.h <<\_ACEOF
23722 if test "${HAVE_XFREE386}" = "yes" ; then
23724 cat >>confdefs.h <<\_ACEOF
23725 #define HAVE_XFREE386 1
23729 if test "${HAVE_MENUS}" = "yes" ; then
23731 cat >>confdefs.h <<\_ACEOF
23732 #define HAVE_MENUS 1
23736 if test "${GNU_MALLOC}" = "yes" ; then
23738 cat >>confdefs.h <<\_ACEOF
23739 #define GNU_MALLOC 1
23743 if test "${REL_ALLOC}" = "yes" ; then
23745 cat >>confdefs.h <<\_ACEOF
23746 #define REL_ALLOC 1
23755 #### Report on what we decided to do.
23756 #### Report GTK as a toolkit, even if it doesn't use Xt.
23757 #### It makes printing result more understandable as using GTK sets
23758 #### toolkit_scroll_bars to yes by default.
23759 if test "${HAVE_GTK}" = "yes"; then
23764 Configured
for \
`${canonical}'.
23766 Where should the build process find the source code? ${srcdir}
23767 What operating system and machine description files should Emacs use?
23768 \`${opsysfile}' and \`${machfile}'
23769 What compiler should emacs be built with?
${CC} ${CFLAGS}
23770 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23771 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23772 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23773 What window system should Emacs use?
${window_system}
23774 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23776 if test -n "${x_includes}"; then
23777 echo " Where
do we
find X Windows header files?
${x_includes}"
23779 echo " Where
do we
find X Windows header files? Standard
dirs"
23781 if test -n "${x_libraries}"; then
23782 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23784 echo " Where
do we
find X Windows libraries? Standard
dirs"
23787 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23788 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23789 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23790 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23791 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23792 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23793 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23794 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23797 if test $USE_XASSERTS = yes; then
23798 echo " Compiling with asserts turned on.
"
23799 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23803 if test "$USE_X_TOOLKIT" = GTK; then
23804 case "$canonical" in
23806 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23807 will probably get a crash on startup. If this happens
, please use another
23808 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23815 # Remove any trailing slashes in these variables.
23816 test "${prefix}" != NONE &&
23817 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23818 test "${exec_prefix}" != NONE &&
23819 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23821 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23822 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23823 ## from Makefile.c can correctly provide the arg `-traditional' to the
23826 cat >conftest.$ac_ext <<_ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h. */
23834 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23835 $EGREP "yes..
yes" >/dev/null 2>&1; then
23836 CPP_NEED_TRADITIONAL=no
23838 CPP_NEED_TRADITIONAL=yes
23843 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
23845 ac_config_commands="$ac_config_commands default
"
23847 cat >confcache <<\_ACEOF
23848 # This file is a shell script that caches the results of configure
23849 # tests run on this system so they can be shared between configure
23850 # scripts and configure runs, see configure's option --config-cache.
23851 # It is not useful on other systems. If it contains results you don't
23852 # want to keep, you may remove or edit it.
23854 # config.status only pays attention to the cache file if you give it
23855 # the --recheck option to rerun configure.
23857 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23858 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23859 # following values.
23863 # The following way of writing the cache mishandles newlines in values,
23864 # but we know of no workaround that is simple, portable, and efficient.
23865 # So, we kill variables containing newlines.
23866 # Ultrix sh set writes to stderr and can't be redirected directly,
23867 # and sets the high bit in the cache file unless we assign to the vars.
23869 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23870 eval ac_val=\$$ac_var
23874 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23875 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23878 _ | IFS | as_nl) ;; #(
23879 *) $as_unset $ac_var ;;
23885 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23886 *${as_nl}ac_space=\ *)
23887 # `set' does not quote correctly, so add quotes (double-quote
23888 # substitution turns \\\\ into \\, and sed turns \\ into \).
23891 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23894 # `set' quotes correctly as required by POSIX, so do not add quotes.
23895 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23906 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23908 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23909 if test -w "$cache_file"; then
23910 test "x
$cache_file" != "x
/dev
/null
" &&
23911 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23912 echo "$as_me: updating cache
$cache_file" >&6;}
23913 cat confcache >$cache_file
23915 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23916 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23921 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23922 # Let make expand exec_prefix.
23923 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23925 DEFS=-DHAVE_CONFIG_H
23929 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23930 # 1. Remove the extension, and $U if already installed.
23931 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23932 ac_i=`echo "$ac_i" | sed "$ac_script"`
23933 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23934 # will be set to the directory where LIBOBJS objects are built.
23935 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23936 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23938 LIBOBJS=$ac_libobjs
23940 LTLIBOBJS=$ac_ltlibobjs
23944 : ${CONFIG_STATUS=./config.status}
23945 ac_clean_files_save=$ac_clean_files
23946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23947 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23948 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23949 cat >$CONFIG_STATUS <<_ACEOF
23951 # Generated by $as_me.
23952 # Run this file to recreate the current configuration.
23953 # Compiler output produced by configure, useful for debugging
23954 # configure, is in config.log if it exists.
23957 ac_cs_recheck=false
23959 SHELL=\${CONFIG_SHELL-$SHELL}
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23963 ## --------------------- ##
23964 ## M4sh Initialization. ##
23965 ## --------------------- ##
23967 # Be more Bourne compatible
23968 DUALCASE=1; export DUALCASE # for MKS sh
23969 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23972 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23973 # is contrary to our usage. Disable this feature.
23974 alias -g '${1+"$@"}'='"$@
"'
23975 setopt NO_GLOB_SUBST
23977 case `(set -o) 2>/dev/null` in
23978 *posix*) set -o posix ;;
23987 # Avoid depending upon Character Ranges.
23988 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23989 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23990 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23991 as_cr_digits='0123456789'
23992 as_cr_alnum=$as_cr_Letters$as_cr_digits
23994 # The user is always right.
23995 if test "${PATH_SEPARATOR+set}" != set; then
23996 echo "#! /bin/sh" >conf$$.sh
23997 echo "exit 0" >>conf$$.sh
23999 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24007 # Support unset when possible.
24008 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24016 # We need space, tab and new line, in precisely that order. Quoting is
24017 # there to prevent editors from complaining about space-tab.
24018 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24019 # splitting by setting IFS to empty value.)
24024 # Find who we are. Look in the path if we contain no directory separator.
24026 *[\\/]* ) as_myself
=$0 ;;
24027 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24028 for as_dir
in $PATH
24031 test -z "$as_dir" && as_dir
=.
24032 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24038 # We did not find ourselves, most probably we were run as `sh COMMAND'
24039 # in which case we are not to be found in the path.
24040 if test "x$as_myself" = x
; then
24043 if test ! -f "$as_myself"; then
24044 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24045 { (exit 1); exit 1; }
24048 # Work around bugs in pre-3.0 UWIN ksh.
24049 for as_var
in ENV MAIL MAILPATH
24050 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24058 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24059 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24060 LC_TELEPHONE LC_TIME
24062 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24063 eval $as_var=C
; export $as_var
24065 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24069 # Required to use basename.
24070 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24071 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24077 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24078 as_basename
=basename
24084 # Name of the executable.
24085 as_me
=`$as_basename -- "$0" ||
24086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24087 X"$0" : 'X\(//\)$' \| \
24088 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24090 sed '/^.*\/\([^/][^/]*\)\/*$/{
24109 as_lineno_1
=$LINENO
24110 as_lineno_2
=$LINENO
24111 test "x$as_lineno_1" != "x$as_lineno_2" &&
24112 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24114 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24115 # uniformly replaced by the line number. The first 'sed' inserts a
24116 # line-number line after each line using $LINENO; the second 'sed'
24117 # does the real work. The second script uses 'N' to pair each
24118 # line-number line with the line containing $LINENO, and appends
24119 # trailing '-' during substitution so that $LINENO is not a special
24120 # case at line end.
24121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24122 # scripts with optimization help from Paolo Bonzini. Blame Lee
24123 # E. McMahon (1931-1989) for sed's syntax. :-)
24135 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24138 ' >$as_me.lineno
&&
24139 chmod +x
"$as_me.lineno" ||
24140 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24141 { (exit 1); exit 1; }; }
24143 # Don't try to exec as it changes $[0], causing all sort of problems
24144 # (the dirname of $[0] is not the place where we might find the
24145 # original and so on. Autoconf is especially sensitive to this).
24146 .
"./$as_me.lineno"
24147 # Exit status is that of the last command.
24152 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24158 ECHO_C
= ECHO_N
= ECHO_T
=
24159 case `echo -n x` in
24161 case `echo 'x\c'` in
24162 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24169 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24170 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24176 rm -f conf$$ conf$$.exe conf$$.
file
24177 if test -d conf$$.dir
; then
24178 rm -f conf$$.dir
/conf$$.
file
24184 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24186 # ... but there are two gotchas:
24187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24189 # In both cases, we have to default to `cp -p'.
24190 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24192 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24197 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24198 rmdir conf$$.dir
2>/dev
/null
24200 if mkdir
-p .
2>/dev
/null
; then
24203 test -d .
/-p && rmdir .
/-p
24207 if test -x / >/dev
/null
2>&1; then
24208 as_test_x
='test -x'
24210 if ls -dL / >/dev
/null
2>&1; then
24217 if test -d "$1"; then
24223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24224 ???[sx]*):;;*)false;;esac;fi
24228 as_executable_p
=$as_test_x
24230 # Sed expression to map a string onto a valid CPP name.
24231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24233 # Sed expression to map a string onto a valid variable name.
24234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24239 # Save the log message, to keep $[0] and so on meaningful, and to
24240 # report actual input values of CONFIG_FILES etc. instead of their
24241 # values after options handling.
24243 This file was extended by $as_me, which was
24244 generated by GNU Autoconf 2.61. Invocation command line was
24246 CONFIG_FILES = $CONFIG_FILES
24247 CONFIG_HEADERS = $CONFIG_HEADERS
24248 CONFIG_LINKS = $CONFIG_LINKS
24249 CONFIG_COMMANDS = $CONFIG_COMMANDS
24252 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24257 cat >>$CONFIG_STATUS <<_ACEOF
24258 # Files that config.status was made for.
24259 config_files="$ac_config_files"
24260 config_headers="$ac_config_headers"
24261 config_commands="$ac_config_commands"
24265 cat >>$CONFIG_STATUS <<\_ACEOF
24267 \`$as_me' instantiates files from templates according to the
24268 current configuration.
24270 Usage: $0 [OPTIONS] [FILE]...
24272 -h, --help print this help, then exit
24273 -V, --version print version number and configuration settings, then exit
24274 -q, --quiet do not print progress messages
24275 -d, --debug don't remove temporary files
24276 --recheck update $as_me by reconfiguring in the same conditions
24277 --file=FILE[:TEMPLATE]
24278 instantiate the configuration file FILE
24279 --header=FILE[:TEMPLATE]
24280 instantiate the configuration header FILE
24282 Configuration files:
24285 Configuration headers:
24288 Configuration commands:
24291 Report bugs to <bug-autoconf@gnu.org>."
24294 cat >>$CONFIG_STATUS <<_ACEOF
24297 configured by $0, generated by GNU Autoconf 2.61,
24298 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24300 Copyright (C) 2006 Free Software Foundation, Inc.
24301 This config.status script is free software; the Free Software Foundation
24302 gives unlimited permission to copy, distribute and modify it."
24309 cat >>$CONFIG_STATUS <<\_ACEOF
24310 # If no file are specified by the user, then we need to provide default
24311 # value. By we need to know if files were specified by the user.
24317 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24318 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24329 # Handling of the options.
24330 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24332 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24333 echo "$ac_cs_version"; exit ;;
24334 --debug |
--debu |
--deb |
--de |
--d |
-d )
24336 --file |
--fil |
--fi |
--f )
24338 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24339 ac_need_defaults
=false
;;
24340 --header |
--heade |
--head |
--hea )
24342 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24343 ac_need_defaults
=false
;;
24345 # Conflict between --help and --header
24346 { echo "$as_me: error: ambiguous option: $1
24347 Try \`$0 --help' for more information." >&2
24348 { (exit 1); exit 1; }; };;
24349 --help |
--hel |
-h )
24350 echo "$ac_cs_usage"; exit ;;
24351 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24352 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24355 # This is an error.
24356 -*) { echo "$as_me: error: unrecognized option: $1
24357 Try \`$0 --help' for more information." >&2
24358 { (exit 1); exit 1; }; } ;;
24360 *) ac_config_targets
="$ac_config_targets $1"
24361 ac_need_defaults
=false
;;
24367 ac_configure_extra_args
=
24369 if $ac_cs_silent; then
24371 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24375 cat >>$CONFIG_STATUS <<_ACEOF
24376 if \$ac_cs_recheck; then
24377 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24378 CONFIG_SHELL=$SHELL
24379 export CONFIG_SHELL
24380 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24384 cat >>$CONFIG_STATUS <<\_ACEOF
24388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24389 ## Running $as_me. ##
24395 cat >>$CONFIG_STATUS <<_ACEOF
24399 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24403 cat >>$CONFIG_STATUS <<\_ACEOF
24405 # Handling of arguments.
24406 for ac_config_target
in $ac_config_targets
24408 case $ac_config_target in
24409 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24410 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24411 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24412 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24413 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24414 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24415 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24416 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24417 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24418 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24419 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24420 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24424 { (exit 1); exit 1; }; };;
24429 # If the user did not use the arguments to specify the items to instantiate,
24430 # then the envvar interface is used. Set only those that are not.
24431 # We use the long form for the default assignment because of an extremely
24432 # bizarre bug on SunOS 4.1.3.
24433 if $ac_need_defaults; then
24434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24439 # Have a temporary directory for convenience. Make it in the build tree
24440 # simply because there is no reason against having it here, and in addition,
24441 # creating and moving files from /tmp can sometimes cause problems.
24442 # Hook for its removal unless debugging.
24443 # Note that there is a small window in which the directory will not be cleaned:
24444 # after its creation but before its name has been assigned to `$tmp'.
24448 trap 'exit_status=$?
24449 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24451 trap '{ (exit 1); exit 1; }' 1 2 13 15
24453 # Create a (secure) tmp directory for tmp files.
24456 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24457 test -n "$tmp" && test -d "$tmp"
24460 tmp
=.
/conf$$
-$RANDOM
24461 (umask 077 && mkdir
"$tmp")
24464 echo "$me: cannot create a temporary directory in ." >&2
24465 { (exit 1); exit 1; }
24469 # Set up the sed scripts for CONFIG_FILES section.
24472 # No need to generate the scripts if there are no CONFIG_FILES.
24473 # This happens for instance when ./config.status config.h
24474 if test -n "$CONFIG_FILES"; then
24481 for ac_last_try
in false false false false false
:; do
24482 cat >conf$
$subs.
sed <<_ACEOF
24483 SHELL!$SHELL$ac_delim
24484 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24485 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24486 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24487 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24488 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24489 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24490 exec_prefix!$exec_prefix$ac_delim
24491 prefix!$prefix$ac_delim
24492 program_transform_name!$program_transform_name$ac_delim
24493 bindir!$bindir$ac_delim
24494 sbindir!$sbindir$ac_delim
24495 libexecdir!$libexecdir$ac_delim
24496 datarootdir!$datarootdir$ac_delim
24497 datadir!$datadir$ac_delim
24498 sysconfdir!$sysconfdir$ac_delim
24499 sharedstatedir!$sharedstatedir$ac_delim
24500 localstatedir!$localstatedir$ac_delim
24501 includedir!$includedir$ac_delim
24502 oldincludedir!$oldincludedir$ac_delim
24503 docdir!$docdir$ac_delim
24504 infodir!$infodir$ac_delim
24505 htmldir!$htmldir$ac_delim
24506 dvidir!$dvidir$ac_delim
24507 pdfdir!$pdfdir$ac_delim
24508 psdir!$psdir$ac_delim
24509 libdir!$libdir$ac_delim
24510 localedir!$localedir$ac_delim
24511 mandir!$mandir$ac_delim
24512 DEFS!$DEFS$ac_delim
24513 ECHO_C!$ECHO_C$ac_delim
24514 ECHO_N!$ECHO_N$ac_delim
24515 ECHO_T!$ECHO_T$ac_delim
24516 LIBS!$LIBS$ac_delim
24517 build_alias!$build_alias$ac_delim
24518 host_alias!$host_alias$ac_delim
24519 target_alias!$target_alias$ac_delim
24520 MAINT!$MAINT$ac_delim
24521 build!$build$ac_delim
24522 build_cpu!$build_cpu$ac_delim
24523 build_vendor!$build_vendor$ac_delim
24524 build_os!$build_os$ac_delim
24525 host!$host$ac_delim
24526 host_cpu!$host_cpu$ac_delim
24527 host_vendor!$host_vendor$ac_delim
24528 host_os!$host_os$ac_delim
24530 CFLAGS!$CFLAGS$ac_delim
24531 LDFLAGS!$LDFLAGS$ac_delim
24532 CPPFLAGS!$CPPFLAGS$ac_delim
24533 ac_ct_CC!$ac_ct_CC$ac_delim
24534 EXEEXT!$EXEEXT$ac_delim
24535 OBJEXT!$OBJEXT$ac_delim
24537 GREP!$GREP$ac_delim
24538 EGREP!$EGREP$ac_delim
24539 LN_S!$LN_S$ac_delim
24540 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24541 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24542 INSTALL_DATA!$INSTALL_DATA$ac_delim
24543 RANLIB!$RANLIB$ac_delim
24544 INSTALL_INFO!$INSTALL_INFO$ac_delim
24545 GZIP_PROG!$GZIP_PROG$ac_delim
24546 LIBSOUND!$LIBSOUND$ac_delim
24547 PKG_CONFIG!$PKG_CONFIG$ac_delim
24548 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24549 ALSA_LIBS!$ALSA_LIBS$ac_delim
24550 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24551 SET_MAKE!$SET_MAKE$ac_delim
24552 XMKMF!$XMKMF$ac_delim
24553 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24554 GTK_LIBS!$GTK_LIBS$ac_delim
24555 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24556 XFT_LIBS!$XFT_LIBS$ac_delim
24557 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24558 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24559 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24560 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24561 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24562 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24563 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24564 ALLOCA!$ALLOCA$ac_delim
24565 liblockfile!$liblockfile$ac_delim
24566 LIBOBJS!$LIBOBJS$ac_delim
24567 NEED_SETGID!$NEED_SETGID$ac_delim
24568 KMEM_GROUP!$KMEM_GROUP$ac_delim
24569 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24570 GETOPT_H!$GETOPT_H$ac_delim
24571 GETOPTOBJS!$GETOPTOBJS$ac_delim
24572 version!$version$ac_delim
24573 configuration!$configuration$ac_delim
24574 canonical!$canonical$ac_delim
24575 srcdir!$srcdir$ac_delim
24576 lispdir!$lispdir$ac_delim
24577 locallisppath!$locallisppath$ac_delim
24578 lisppath!$lisppath$ac_delim
24579 x_default_search_path!$x_default_search_path$ac_delim
24582 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24584 elif $ac_last_try; then
24585 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24587 { (exit 1); exit 1; }; }
24589 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24593 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24594 if test -n "$ac_eof"; then
24595 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24596 ac_eof
=`expr $ac_eof + 1`
24599 cat >>$CONFIG_STATUS <<_ACEOF
24600 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24605 s/^/s,@/; s/!/@,|#_!!_#|/
24608 s/'"$ac_delim"'$/,g/; t
24610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24611 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24612 rm -f conf$
$subs.
sed
24613 cat >>$CONFIG_STATUS <<_ACEOF
24619 for ac_last_try
in false false false false false
:; do
24620 cat >conf$
$subs.
sed <<_ACEOF
24621 etcdir!$etcdir$ac_delim
24622 archlibdir!$archlibdir$ac_delim
24623 bitmapdir!$bitmapdir$ac_delim
24624 gamedir!$gamedir$ac_delim
24625 gameuser!$gameuser$ac_delim
24626 c_switch_system!$c_switch_system$ac_delim
24627 c_switch_machine!$c_switch_machine$ac_delim
24628 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24629 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24630 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24631 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24632 machfile!$machfile$ac_delim
24633 opsysfile!$opsysfile$ac_delim
24634 carbon_appdir!$carbon_appdir$ac_delim
24635 LTLIBOBJS!$LTLIBOBJS$ac_delim
24638 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24640 elif $ac_last_try; then
24641 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24642 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24643 { (exit 1); exit 1; }; }
24645 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24649 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24650 if test -n "$ac_eof"; then
24651 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24652 ac_eof
=`expr $ac_eof + 1`
24655 cat >>$CONFIG_STATUS <<_ACEOF
24656 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24660 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24661 s/^/s,@/; s/!/@,|#_!!_#|/
24664 s/'"$ac_delim"'$/,g/; t
24666 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24667 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24668 rm -f conf$
$subs.
sed
24669 cat >>$CONFIG_STATUS <<_ACEOF
24676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24678 # trailing colons and then remove the whole line if VPATH becomes empty
24679 # (actually we leave an empty line to preserve line numbers).
24680 if test "x$srcdir" = x.
; then
24681 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24682 s/:*\$(srcdir):*/:/
24683 s/:*\${srcdir}:*/:/
24685 s/^\([^=]*=[ ]*\):*/\1/
24691 cat >>$CONFIG_STATUS <<\_ACEOF
24692 fi # test -n "$CONFIG_FILES"
24695 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24698 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24700 case $ac_mode$ac_tag in
24702 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24703 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24704 { (exit 1); exit 1; }; };;
24705 :[FH
]-) ac_tag
=-:-;;
24706 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24723 -) ac_f
="$tmp/stdin";;
24724 *) # Look for the file first in the build tree, then in the source tree
24725 # (if the path is not absolute). The absolute path cannot be DOS-style,
24726 # because $ac_f cannot contain `:'.
24730 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24732 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24733 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24734 { (exit 1); exit 1; }; };;
24736 ac_file_inputs
="$ac_file_inputs $ac_f"
24739 # Let's still pretend it is `configure' which instantiates (i.e., don't
24740 # use $as_me), people would be surprised to read:
24741 # /* config.h. Generated by config.status. */
24742 configure_input
="Generated from "`IFS=:
24743 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24744 if test x
"$ac_file" != x-
; then
24745 configure_input
="$ac_file. $configure_input"
24746 { echo "$as_me:$LINENO: creating $ac_file" >&5
24747 echo "$as_me: creating $ac_file" >&6;}
24751 *:-:* |
*:-) cat >"$tmp/stdin";;
24756 ac_dir
=`$as_dirname -- "$ac_file" ||
24757 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24758 X"$ac_file" : 'X\(//\)[^/]' \| \
24759 X"$ac_file" : 'X\(//\)$' \| \
24760 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24766 /^X\(\/\/\)[^/].*/{
24781 -*) as_dir
=.
/$as_dir;;
24783 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24787 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24788 *) as_qdir
=$as_dir;;
24790 as_dirs
="'$as_qdir' $as_dirs"
24791 as_dir
=`$as_dirname -- "$as_dir" ||
24792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24793 X"$as_dir" : 'X\(//\)[^/]' \| \
24794 X"$as_dir" : 'X\(//\)$' \| \
24795 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24801 /^X\(\/\/\)[^/].*/{
24814 test -d "$as_dir" && break
24816 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24817 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24818 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24819 { (exit 1); exit 1; }; }; }
24823 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24825 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24826 # A ".." for each directory in $ac_dir_suffix.
24827 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24828 case $ac_top_builddir_sub in
24829 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24830 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24833 ac_abs_top_builddir
=$ac_pwd
24834 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24835 # for backward compatibility:
24836 ac_top_builddir
=$ac_top_build_prefix
24839 .
) # We are building in place.
24841 ac_top_srcdir
=$ac_top_builddir_sub
24842 ac_abs_top_srcdir
=$ac_pwd ;;
24843 [\\/]* | ?
:[\\/]* ) # Absolute name.
24844 ac_srcdir
=$srcdir$ac_dir_suffix;
24845 ac_top_srcdir
=$srcdir
24846 ac_abs_top_srcdir
=$srcdir ;;
24847 *) # Relative name.
24848 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24849 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24850 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24852 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24862 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24863 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24867 cat >>$CONFIG_STATUS <<\_ACEOF
24868 # If the template does not know about datarootdir, expand it.
24869 # FIXME: This hack should be removed a few years after 2.60.
24870 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24872 case `sed -n '/datarootdir/ {
24881 ' $ac_file_inputs` in
24882 *datarootdir
*) ac_datarootdir_seen
=yes;;
24883 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24884 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24885 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24887 cat >>$CONFIG_STATUS <<_ACEOF
24888 ac_datarootdir_hack='
24889 s&@datadir@&$datadir&g
24890 s&@docdir@&$docdir&g
24891 s&@infodir@&$infodir&g
24892 s&@localedir@&$localedir&g
24893 s&@mandir@&$mandir&g
24894 s&\\\${datarootdir}&$datarootdir&g' ;;
24898 # Neutralize VPATH when `$srcdir' = `.'.
24899 # Shell code in configure.ac might set extrasub.
24900 # FIXME: do we really want to maintain this feature?
24901 cat >>$CONFIG_STATUS <<_ACEOF
24905 cat >>$CONFIG_STATUS <<\_ACEOF
24907 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24908 s
&@configure_input@
&$configure_input&;t t
24909 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24910 s
&@srcdir@
&$ac_srcdir&;t t
24911 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24912 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24913 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24914 s
&@builddir@
&$ac_builddir&;t t
24915 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24916 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24917 s
&@INSTALL@
&$ac_INSTALL&;t t
24918 $ac_datarootdir_hack
24919 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24921 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24922 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24924 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24925 which seems to be undefined. Please make sure it is defined." >&5
24926 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24927 which seems to be undefined. Please make sure it is defined." >&2;}
24931 -) cat "$tmp/out"; rm -f "$tmp/out";;
24932 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24941 # Transform confdefs.h into a sed script `conftest.defines', that
24942 # substitutes the proper values into config.h.in to produce config.h.
24943 rm -f conftest.defines conftest.
tail
24944 # First, append a space to every undef/define line, to ease matching.
24945 echo 's/$/ /' >conftest.defines
24946 # Then, protect against being on the right side of a sed subst, or in
24947 # an unquoted here document, in config.status. If some macros were
24948 # called several times there might be several #defines for the same
24949 # symbol, which is useless. But do not sort them, since the last
24950 # AC_DEFINE must be honored.
24951 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24952 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24953 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24954 # PARAMS is the parameter list in the macro definition--in most cases, it's
24955 # just an empty string.
24956 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24957 ac_dB
='\\)[ (].*,\\1define\\2'
24965 s/^[ ]*#[ ]*define[ ][ ]*//
24970 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24971 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24972 ' >>conftest.defines
24974 # Remove the space that was appended to ease matching.
24975 # Then replace #undef with comments. This is necessary, for
24976 # example, in the case of _POSIX_SOURCE, which is predefined and required
24977 # on some systems where configure will not decide to define it.
24978 # (The regexp can be short, since the line contains either #define or #undef.)
24980 s,^[ #]*u.*,/* & */,' >>conftest.defines
24982 # Break up conftest.defines:
24983 ac_max_sed_lines
=50
24985 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24986 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24987 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24989 ac_in
='$ac_file_inputs'
24990 ac_out
='"$tmp/out1"'
24991 ac_nxt
='"$tmp/out2"'
24995 # Write a here document:
24996 cat >>$CONFIG_STATUS <<_ACEOF
24997 # First, check the format of the line:
24998 cat >"\$tmp/defines.sed" <<\\CEOF
24999 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25000 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25004 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25006 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25007 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25008 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25009 grep . conftest.
tail >/dev
/null ||
break
25010 rm -f conftest.defines
25011 mv conftest.
tail conftest.defines
25013 rm -f conftest.defines conftest.
tail
25015 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25016 cat >>$CONFIG_STATUS <<\_ACEOF
25017 if test x
"$ac_file" != x-
; then
25018 echo "/* $configure_input */" >"$tmp/config.h"
25019 cat "$ac_result" >>"$tmp/config.h"
25020 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25021 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25022 echo "$as_me: $ac_file is unchanged" >&6;}
25025 mv "$tmp/config.h" $ac_file
25028 echo "/* $configure_input */"
25034 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25035 echo "$as_me: executing $ac_file commands" >&6;}
25040 case $ac_file$ac_mode in
25043 ### Make the necessary directories, if they don't exist.
25044 for dir
in etc lisp
; do
25045 test -d ${dir} || mkdir
${dir}
25048 # Build src/Makefile from ${srcdir}/src/Makefile.c
25049 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25050 # This must be done after src/config.h is built, since we rely on that file.
25052 # Now get this: Some word that is part of the ${srcdir} directory name
25053 # or the ${configuration} value might, just might, happen to be an
25054 # identifier like `sun4' or `i386' or something, and be predefined by
25055 # the C preprocessor to some helpful value like 1, or maybe the empty
25056 # string. Needless to say consequent macro substitutions are less
25057 # than conducive to the makefile finding the correct directory.
25058 undefs
="`echo $top_srcdir $configuration $canonical |
25059 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25060 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25063 echo creating src
/epaths.h
25064 ${MAKE-make} epaths-force
25066 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25067 # `..' to `. .' unless invoked with -traditional
25069 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25070 CPPFLAGS
="$CPPFLAGS -traditional"
25073 echo creating lib-src
/Makefile
25075 rm -f junk.c junk1.c junk2.c
25076 sed -e '/start of cpp stuff/q' \
25077 < Makefile.c
> junk1.c
25078 sed -e '1,/start of cpp stuff/d'\
25079 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25080 < Makefile.c
> junk.c
25081 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25082 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25083 cat junk1.c junk2.c
> Makefile.new
25084 rm -f junk.c junk1.c junk2.c
25085 chmod 444 Makefile.new
25086 mv -f Makefile.new Makefile
25089 echo creating src
/Makefile
25091 rm -f junk.c junk1.c junk2.c
25092 sed -e '/start of cpp stuff/q' \
25093 < Makefile.c
> junk1.c
25094 sed -e '1,/start of cpp stuff/d'\
25095 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25096 < Makefile.c
> junk.c
25097 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25098 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25100 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25101 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25102 cat junk1.c junk2.c
> Makefile.new
25103 rm -f junk.c junk1.c junk2.c
25104 chmod 444 Makefile.new
25105 mv -f Makefile.new Makefile
25108 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25109 echo creating src
/.gdbinit
25110 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25113 # This is how we know whether to re-run configure in certain cases.
25114 touch src
/config.stamp
25122 { (exit 0); exit 0; }
25124 chmod +x
$CONFIG_STATUS
25125 ac_clean_files
=$ac_clean_files_save
25128 # configure is writing to config.log, and then calls config.status.
25129 # config.status does its own redirection, appending to config.log.
25130 # Unfortunately, on DOS this fails, as config.log is still kept open
25131 # by configure, so config.status won't be able to write to it; its
25132 # output is simply discarded. So we exec the FD to /dev/null,
25133 # effectively closing config.log, so it can be properly (re)opened and
25134 # appended to by config.status. When coming back to configure, we
25135 # need to make the FD available again.
25136 if test "$no_create" != yes; then
25138 ac_config_status_args
=
25139 test "$silent" = yes &&
25140 ac_config_status_args
="$ac_config_status_args --quiet"
25142 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25144 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25145 # would make configure fail if this is the last instruction.
25146 $ac_cs_success ||
{ (exit 1); exit 1; }