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
708 x_default_search_path
725 ac_precious_vars
='build_alias
737 # Initialize some variables set by options.
739 ac_init_version
=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
749 program_transform_name
=s
,x
,x
,
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir
='${exec_prefix}/bin'
764 sbindir
='${exec_prefix}/sbin'
765 libexecdir
='${exec_prefix}/libexec'
766 datarootdir
='${prefix}/share'
767 datadir
='${datarootdir}'
768 sysconfdir
='${prefix}/etc'
769 sharedstatedir
='${prefix}/com'
770 localstatedir
='${prefix}/var'
771 includedir
='${prefix}/include'
772 oldincludedir
='/usr/include'
773 docdir
='${datarootdir}/doc/${PACKAGE}'
774 infodir
='${datarootdir}/info'
779 libdir
='${exec_prefix}/lib'
780 localedir
='${datarootdir}/locale'
781 mandir
='${datarootdir}/man'
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\
$ac_option
795 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
805 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
807 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
810 -build |
--build |
--buil |
--bui |
--bu)
811 ac_prev
=build_alias
;;
812 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
813 build_alias
=$ac_optarg ;;
815 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
816 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
817 ac_prev
=cache_file
;;
818 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
819 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
820 cache_file
=$ac_optarg ;;
823 cache_file
=config.cache
;;
825 -datadir |
--datadir |
--datadi |
--datad)
827 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
828 datadir
=$ac_optarg ;;
830 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
831 |
--dataroo |
--dataro |
--datar)
832 ac_prev
=datarootdir
;;
833 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
834 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
835 datarootdir
=$ac_optarg ;;
837 -disable-* |
--disable-*)
838 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_
$ac_feature=no
;;
846 -docdir |
--docdir |
--docdi |
--doc |
--do)
848 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
851 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
853 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
856 -enable-* |
--enable-*)
857 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_
$ac_feature=\
$ac_optarg ;;
865 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
866 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
867 |
--exec |
--exe |
--ex)
868 ac_prev
=exec_prefix
;;
869 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
870 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
871 |
--exec=* |
--exe=* |
--ex=*)
872 exec_prefix
=$ac_optarg ;;
874 -gas |
--gas |
--ga |
--g)
875 # Obsolete; use --with-gas.
878 -help |
--help |
--hel |
--he |
-h)
880 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
881 ac_init_help
=recursive
;;
882 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
883 ac_init_help
=short
;;
885 -host |
--host |
--hos |
--ho)
886 ac_prev
=host_alias
;;
887 -host=* |
--host=* |
--hos=* |
--ho=*)
888 host_alias
=$ac_optarg ;;
890 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
892 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
894 htmldir
=$ac_optarg ;;
896 -includedir |
--includedir |
--includedi |
--included |
--include \
897 |
--includ |
--inclu |
--incl |
--inc)
898 ac_prev
=includedir
;;
899 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
900 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
901 includedir
=$ac_optarg ;;
903 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
905 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
906 infodir
=$ac_optarg ;;
908 -libdir |
--libdir |
--libdi |
--libd)
910 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
913 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
914 |
--libexe |
--libex |
--libe)
915 ac_prev
=libexecdir
;;
916 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
917 |
--libexe=* |
--libex=* |
--libe=*)
918 libexecdir
=$ac_optarg ;;
920 -localedir |
--localedir |
--localedi |
--localed |
--locale)
922 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
923 localedir
=$ac_optarg ;;
925 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
926 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
927 ac_prev
=localstatedir
;;
928 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
929 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
930 localstatedir
=$ac_optarg ;;
932 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
934 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
938 # Obsolete; use --without-fp.
941 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
942 |
--no-cr |
--no-c |
-n)
945 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
946 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
949 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
950 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
951 |
--oldin |
--oldi |
--old |
--ol |
--o)
952 ac_prev
=oldincludedir
;;
953 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
954 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
955 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
956 oldincludedir
=$ac_optarg ;;
958 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
960 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
963 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
964 |
--program-pre |
--program-pr |
--program-p)
965 ac_prev
=program_prefix
;;
966 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
967 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
968 program_prefix
=$ac_optarg ;;
970 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
971 |
--program-suf |
--program-su |
--program-s)
972 ac_prev
=program_suffix
;;
973 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
974 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
975 program_suffix
=$ac_optarg ;;
977 -program-transform-name |
--program-transform-name \
978 |
--program-transform-nam |
--program-transform-na \
979 |
--program-transform-n |
--program-transform- \
980 |
--program-transform |
--program-transfor \
981 |
--program-transfo |
--program-transf \
982 |
--program-trans |
--program-tran \
983 |
--progr-tra |
--program-tr |
--program-t)
984 ac_prev
=program_transform_name
;;
985 -program-transform-name=* |
--program-transform-name=* \
986 |
--program-transform-nam=* |
--program-transform-na=* \
987 |
--program-transform-n=* |
--program-transform-=* \
988 |
--program-transform=* |
--program-transfor=* \
989 |
--program-transfo=* |
--program-transf=* \
990 |
--program-trans=* |
--program-tran=* \
991 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
992 program_transform_name
=$ac_optarg ;;
994 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
996 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
999 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1001 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1004 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1005 |
-silent |
--silent |
--silen |
--sile |
--sil)
1008 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1010 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1012 sbindir
=$ac_optarg ;;
1014 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1015 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1016 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1018 ac_prev
=sharedstatedir
;;
1019 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1020 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1021 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1023 sharedstatedir
=$ac_optarg ;;
1025 -site |
--site |
--sit)
1027 -site=* |
--site=* |
--sit=*)
1030 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1032 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1033 srcdir
=$ac_optarg ;;
1035 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1036 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1037 ac_prev
=sysconfdir
;;
1038 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1039 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1040 sysconfdir
=$ac_optarg ;;
1042 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1043 ac_prev
=target_alias
;;
1044 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1045 target_alias
=$ac_optarg ;;
1047 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1050 -version |
--version |
--versio |
--versi |
--vers |
-V)
1051 ac_init_version
=: ;;
1054 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_
$ac_package=\
$ac_optarg ;;
1062 -without-* |
--without-*)
1063 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_
$ac_package=no
;;
1072 # Obsolete; use --with-x.
1075 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1076 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1077 ac_prev
=x_includes
;;
1078 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1079 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1080 x_includes
=$ac_optarg ;;
1082 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1083 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1084 ac_prev
=x_libraries
;;
1085 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1086 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1087 x_libraries
=$ac_optarg ;;
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1095 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\
$ac_optarg
1101 export $ac_envvar ;;
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1114 if test -n "$ac_prev"; then
1115 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1120 # Be sure to have absolute directory names.
1121 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1126 eval ac_val
=\$
$ac_var
1128 [\\/$
]* | ?
:[\\/]* ) continue;;
1129 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1140 target
=$target_alias
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x
; then
1144 if test "x$build_alias" = x
; then
1145 cross_compiling
=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1154 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1156 test "$silent" = yes && exec 6>/dev
/null
1159 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di
=`ls -di .` &&
1161 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted
=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir
=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1201 ac_srcdir_defaulted
=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1208 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1221 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 for ac_var
in $ac_precious_vars; do
1224 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1226 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1231 # Report the --help message.
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1237 \`configure' configures this package to adapt to many kinds of systems.
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1244 Defaults for the options are specified in brackets.
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1268 For better control, use the options below.
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1300 --x-includes=DIR X include files are
in DIR
1301 --x-libraries=DIR X library files are
in DIR
1304 --build=BUILD configure
for building on BUILD
[guessed
]
1305 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1309 if test -n "$ac_init_help"; then
1314 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1315 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1316 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1317 specify
install directory
for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing
) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search
for lisp files
1323 specific to this site
1324 --disable-largefile omit support
for large files
1327 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1328 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1329 --without-gcc don
't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP
mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version
5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server
host
1334 --without-sound don
't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif (or -lgif) for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don
't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables
:
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1355 nonstandard directory
<lib dir
>
1356 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1357 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1358 you have headers
in a nonstandard directory
<include dir
>
1360 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1362 Use these variables to override the choices made by
`configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1726 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1737 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1738 echo "$as_me: former value
: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1740 echo "$as_me: current value
: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1758 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1759 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s
,x
,x
', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1804 lispdir='${datadir}/emacs
/${version}/lisp
'
1805 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1806 '${datadir}/emacs
/site-lisp
'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1808 etcdir='${datadir}/emacs
/${version}/etc
'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs
/${version}/etc
'
1811 gamedir='${localstatedir}/games
/emacs
'
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1857 cat >>confdefs.h <<\_ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=gtk ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1902 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1903 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1904 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1905 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1906 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1945 # Check whether --with-gpm was given.
1946 if test "${with_gpm+set}" = set; then
1951 # Check whether --with-gtk was given.
1952 if test "${with_gtk+set}" = set; then
1957 # Check whether --with-pkg-config-prog was given.
1958 if test "${with_pkg_config_prog+set}" = set; then
1959 withval=$with_pkg_config_prog;
1963 # Check whether --with-toolkit-scroll-bars was given.
1964 if test "${with_toolkit_scroll_bars+set}" = set; then
1965 withval=$with_toolkit_scroll_bars;
1969 # Check whether --with-xim was given.
1970 if test "${with_xim+set}" = set; then
1975 # Check whether --with-carbon was given.
1976 if test "${with_carbon+set}" = set; then
1977 withval=$with_carbon;
1980 # Check whether --enable-carbon-app was given.
1981 if test "${enable_carbon_app+set}" = set; then
1982 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1986 # Check whether --enable-asserts was given.
1987 if test "${enable_asserts+set}" = set; then
1988 enableval=$enable_asserts; USE_XASSERTS=$enableval
1994 # Check whether --enable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1998 USE_MAINTAINER_MODE=no
2001 if test $USE_MAINTAINER_MODE = yes; then
2008 # Check whether --enable-locallisppath was given.
2009 if test "${enable_locallisppath+set}" = set; then
2010 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2012 elif test "${enableval}" != "yes"; then
2013 locallisppath=${enableval}
2018 #### Make srcdir absolute, if it isn't already. It
's important to
2019 #### avoid running the path through pwd unnecessarily, since pwd can
2020 #### give you automounter prefixes, which can go away. We do all this
2021 #### so Emacs can find its files when run uninstalled.
2022 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2027 ## We may be able to use the $PWD environment variable to make this
2028 ## absolute. But sometimes PWD is inaccurate.
2029 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2030 ## but that tested only for a well-formed and valid PWD,
2031 ## it did not object when PWD was well-formed and valid but just wrong.
2032 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2036 srcdir
="`(cd ${srcdir}; pwd)`"
2039 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2042 #### Check if the source directory already has a configured system in it.
2043 if test `pwd` != `(cd ${srcdir} && pwd)` \
2044 && test -f "${srcdir}/src/config.h" ; then
2045 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&5
2051 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2052 as a build directory right now; it has been configured in its own
2053 right. To configure in another directory as well, you MUST
2054 use GNU make. If you do not have GNU make, then you must
2055 now do \`make distclean' in ${srcdir},
2056 and then run $0 again." >&2;}
2059 #### Given the configuration name, set machfile and opsysfile to the
2060 #### names of the m/*.h and s/*.h files we should use.
2062 ### Canonicalize the configuration name.
2065 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2066 if test -f "$ac_dir/install-sh"; then
2068 ac_install_sh
="$ac_aux_dir/install-sh -c"
2070 elif test -f "$ac_dir/install.sh"; then
2072 ac_install_sh
="$ac_aux_dir/install.sh -c"
2074 elif test -f "$ac_dir/shtool"; then
2076 ac_install_sh
="$ac_aux_dir/shtool install -c"
2080 if test -z "$ac_aux_dir"; then
2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2082 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2083 { (exit 1); exit 1; }; }
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2091 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2092 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2095 # Make sure we can run config.sub.
2096 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2099 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: checking build system type" >&5
2102 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 ac_build_alias
=$build_alias
2107 test "x$ac_build_alias" = x
&&
2108 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2109 test "x$ac_build_alias" = x
&&
2110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
2113 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120 echo "${ECHO_T}$ac_cv_build" >&6; }
2121 case $ac_cv_build in
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124 echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2128 ac_save_IFS
=$IFS; IFS
='-'
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2138 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2141 { echo "$as_me:$LINENO: checking host system type" >&5
2142 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test "x$host_alias" = x
; then
2147 ac_cv_host
=$ac_cv_build
2149 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157 echo "${ECHO_T}$ac_cv_host" >&6; }
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161 echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2165 ac_save_IFS
=$IFS; IFS
='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 configuration
=${host_alias-${build_alias-$host}}
2183 ### If you add support for a new configuration, add code to this
2184 ### switch statement to recognize your configuration name and select
2185 ### the appropriate operating system and machine description files.
2187 ### You would hope that you could choose an m/*.h file pretty much
2188 ### based on the machine portion of the configuration name, and an s-
2189 ### file based on the operating system portion. However, it turns out
2190 ### that each m/*.h file is pretty manufacturer-specific - for
2191 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2192 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2193 ### machines. So we basically have to have a special case for each
2194 ### configuration name.
2196 ### As far as handling version numbers on operating systems is
2197 ### concerned, make sure things will fail in a fixable way. If
2198 ### /etc/MACHINES doesn't say anything about version numbers, be
2199 ### prepared to handle anything reasonably. If version numbers
2200 ### matter, be sure /etc/MACHINES says something about it.
2202 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2203 ### "System V Release 4"; he writes, "The old convention encouraged
2204 ### confusion between `system' and `release' levels'."
2206 machine
='' opsys
='' unported
=no
2207 case "${canonical}" in
2212 case "${canonical}" in
2213 alpha
*-*-freebsd*) machine
=alpha
;;
2214 ia64-
*-freebsd*) machine
=ia64
;;
2215 sparc64-
*-freebsd*) machine
=sparc
;;
2216 powerpc-
*-freebsd*) machine
=macppc
;;
2217 i
[3456]86-*-freebsd*) machine
=intel386
;;
2218 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2225 if test -f /usr
/lib
/crti.o
; then
2227 cat >>confdefs.h
<<\_ACEOF
2233 case "${canonical}" in
2234 alpha
*-*-netbsd*) machine
=alpha
;;
2235 i
[3456]86-*-netbsd*) machine
=intel386
;;
2237 # This is somewhat bogus.
2238 machine
=hp9000s300
;;
2239 mips-
*-netbsd*) machine
=pmax
;;
2240 mipsel-
*-netbsd*) machine
=pmax
;;
2241 mipseb-
*-netbsd*) machine
=pmax
;;
2242 ns32k-
*-netbsd*) machine
=ns32000
;;
2243 powerpc-
*-netbsd*) machine
=macppc
;;
2244 sparc
*-*-netbsd*) machine
=sparc
;;
2245 vax-
*-netbsd*) machine
=vax
;;
2246 arm-
*-netbsd*) machine
=arm
;;
2247 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2248 hppa-
*-netbsd*) machine
=hp800
;;
2249 shle-
*-netbsd*) machine
=sh3el
;;
2256 case "${canonical}" in
2257 alpha
*-*-openbsd*) machine
=alpha
;;
2258 arm-
*-openbsd*) machine
=arm
;;
2259 hppa-
*-openbsd*) machine
=hp9000s300
;;
2260 i386-
*-openbsd*) machine
=intel386
;;
2261 m68k-
*-openbsd*) machine
=hp9000s300
;;
2262 m88k-
*-openbsd*) machine
=aviion
;;
2263 mips64-
*-openbsd*) machine
=mips64
;;
2264 powerpc-
*-openbsd*) machine
=macppc
;;
2265 sh-
*-openbsd*) machine
=sh3el
;;
2266 sparc
*-*-openbsd*) machine
=sparc
;;
2267 vax-
*-openbsd*) machine
=vax
;;
2268 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2275 case "${canonical}" in
2276 i
[3456]86-*-lynxos*) machine
=intel386
;;
2277 powerpc-
*-lynxos*) machine
=powerpc
;;
2282 arm-acorn-riscix1.1
* )
2283 machine
=acorn opsys
=riscix1-1
2285 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2286 ## This name is riscix12 instead of riscix1.2
2287 ## to avoid a file name conflict on MSDOS.
2288 machine
=acorn opsys
=riscix12
2294 case "${canonical}" in
2295 i
[345]86-*-bsdi*) machine
=intel386
;;
2296 sparc-
*-bsdi*) machine
=sparc
;;
2297 powerpc-
*-bsdi*) machine
=macppc
;;
2299 case "${canonical}" in
2300 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2301 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2302 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2303 *-*-bsdi3* ) opsys
=bsdos3
;;
2304 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2309 ## Strictly speaking, we need the version of the alliant operating
2310 ## system to choose the right machine file, but currently the
2311 ## configuration name doesn't tell us enough to choose the right
2312 ## one; we need to give alliants their own operating system name to
2313 ## do this right. When someone cares, they can help us.
2315 machine
=alliant4 opsys
=bsd4-2
2318 machine
=alliant-2800 opsys
=bsd4-3
2321 ## Alpha (DEC) machines.
2323 machine
=alpha opsys
=osf1
2324 # This is needed to find X11R6.1 libraries for certain tests.
2325 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2326 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2327 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2328 # due to non-traditional preprocessing with the current compiler
2329 # defaults. OSF 4 can also have that compiler version, and there
2330 # seems always to have been a usable /usr/bin/cpp.
2331 NON_GNU_CPP
=/usr
/bin
/cpp
2332 case "${canonical}" in
2333 alpha
*-dec-osf[5-9]*)
2338 alpha
*-*-linux-gnu* )
2339 machine
=alpha opsys
=gnu-linux
2343 machine
=arm opsys
=gnu-linux
2348 machine
=altos opsys
=usg5-2
2353 machine
=amdahl opsys
=usg5-2-2
2356 ## Apollo, Domain/OS
2358 machine
=apollo opsys
=bsd4-3
2361 ## Apple Darwin / Mac OS X
2363 case "${canonical}" in
2364 i
[3456]86-* ) machine
=intel386
;;
2365 powerpc-
* ) machine
=powermac
;;
2369 # Define CPP as follows to make autoconf work correctly.
2370 CPP
="${CC-cc} -E -no-cpp-precomp"
2371 # Use fink packages if available.
2372 if test -d /sw
/include
&& test -d /sw
/lib
; then
2373 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2374 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2375 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2379 ## AT&T 3b2, 3b5, 3b15, 3b20
2381 machine
=att3b opsys
=usg5-2-2
2384 ## AT&T 3b1 - The Mighty Unix PC!
2386 machine
=7300 opsys
=usg5-2-2
2391 machine
=ibmrs6000 opsys
=aix3-2
2396 machine
=dpx2 opsys
=usg5-3
2401 machine
=sps7 opsys
=usg5-2
2404 ## CCI 5/32, 6/32 -- see "Tahoe".
2407 ## I don't know what configuration name to use for this; config.sub
2408 ## doesn't seem to know anything about it. Hey, Celerity users, get
2409 ## in touch with us!
2410 celerity-celerity-bsd
* )
2411 machine
=celerity opsys
=bsd4-2
2415 ## What operating systems does this chip run that Emacs has been
2419 ## We'll use the catch-all code at the bottom to guess the
2420 ## operating system.
2424 mips-compaq-nonstopux
* )
2425 machine
=nonstopux opsys
=nonstopux
2429 *-convex-bsd* |
*-convex-convexos* )
2430 machine
=convex opsys
=bsd4-3
2431 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2432 NON_GNU_CPP
="cc -E -P"
2436 i
[3456]86-cubix-sysv* )
2437 machine
=intel386 opsys
=usg5-3
2441 cydra
*-cydrome-sysv* )
2442 machine
=cydra5 opsys
=usg5-3
2445 ## Data General AViiON Machines
2446 ## DG changed naming conventions with the release of 5.4.4.10, they
2447 ## dropped the initial 5.4 but left the intervening R. Because of the
2448 ## R this shouldn't conflict with older versions of the OS (which I
2449 ## think were named like dgux4.*). In addition, DG new AViiONs series
2450 ## uses either Motorola M88k or Intel Pentium CPUs.
2451 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2452 machine
=aviion opsys
=dgux4
2454 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2455 ## This name is dgux5-4-3 instead of dgux5-4r3
2456 ## to avoid a file name conflict on MSDOS.
2457 machine
=aviion opsys
=dgux5-4-3
2459 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2460 machine
=aviion opsys
=dgux5-4r2
2463 machine
=aviion opsys
=dgux
2466 ## Data General AViiON Intel (x86) Machines
2467 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2468 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2469 i
[345]86-dg-dguxR4* )
2470 machine
=aviion-intel opsys
=dgux4
2474 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2475 machine
=pmax opsys
=bsd4-2
2477 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2478 machine
=pmax opsys
=bsd4-3
2481 machine
=pmax opsys
=ultrix4-3
2484 machine
=pmax opsys
=osf1
2486 mips-dec-mach_bsd4.3
* )
2487 machine
=pmax opsys
=mach-bsd4-3
2490 ## Motorola Delta machines
2491 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2492 machine
=delta opsys
=usg5-3
2493 if test -z "`type gnucc | grep 'not found'`"
2495 if test -s /etc
/167config
2496 then CC
="gnucc -m68040"
2497 else CC
="gnucc -m68881"
2500 if test -z "`type gcc | grep 'not found'`"
2506 m88k-motorola-sysv4
* )
2507 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2508 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2509 # I hope there are not other 4.0 versions for this machine
2510 # which really need usg5-4 instead.
2511 machine
=delta88k opsys
=usg5-4-2
2513 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2514 machine
=delta88k opsys
=usg5-3
2519 machine
=dual opsys
=usg5-2
2521 m68
*-dual-uniplus* )
2522 machine
=dual opsys
=unipl5-2
2527 machine
=elxsi opsys
=usg5-2
2532 machine
=ns16000 opsys
=umax
2535 ## The GEC 63 - apparently, this port isn't really finished yet.
2536 # I'm sure we finished off the last of the machines, though. -- fx
2538 ## Gould Power Node and NP1
2540 machine
=gould opsys
=bsd4-2
2543 machine
=gould opsys
=bsd4-3
2546 machine
=gould-np1 opsys
=bsd4-3
2549 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2550 ## as far as Emacs is concerned).
2552 # Build needs to be different on 7.0 and later releases
2553 case "`uname -r`" in
2554 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2555 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2557 NON_GNU_CPP
="/lib/cpp"
2559 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2561 machine
=nh3000 opsys
=cxux
2563 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2564 powerpc-harris-powerunix
)
2565 machine
=nh6000 opsys
=powerunix
2566 NON_GNU_CPP
="cc -Xo -E -P"
2568 ## SR2001/SR2201 running HI-UX/MPP
2569 hppa1.1
-hitachi-hiuxmpp* )
2570 machine
=sr2k opsys
=hiuxmpp
2572 hppa1.1
-hitachi-hiuxwe2* )
2573 machine
=sr2k opsys
=hiuxwe2
2576 xps
*-honeywell-sysv* )
2577 machine
=xps100 opsys
=usg5-2
2580 ## HP 9000 series 200 or 300
2582 machine
=hp9000s300 opsys
=bsd4-3
2584 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2586 case "`uname -r`" in
2587 ## Someone's system reports A.B8.05 for this.
2588 ## I wonder what other possibilities there are.
2589 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2590 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2591 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2592 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2593 *) machine
=hp9000s300 opsys
=hpux
;;
2597 ## HP 9000 series 700 and 800, running HP/UX
2599 machine
=hp800 opsys
=hpux
2602 machine
=hp800 opsys
=hpux8
2604 hppa
*-hp-hpux9shr* )
2605 machine
=hp800 opsys
=hpux9shr
2608 machine
=hp800 opsys
=hpux9
2610 hppa
*-hp-hpux10.2
* )
2611 machine
=hp800 opsys
=hpux10-20
2614 machine
=hp800 opsys
=hpux10
2616 hppa
*-hp-hpux1[1-9]* )
2617 machine
=hp800 opsys
=hpux11
2618 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2621 hppa
*-*-linux-gnu* )
2622 machine
=hp800 opsys
=gnu-linux
2625 ## HP 9000 series 700 and 800, running HP/UX
2627 ## Cross-compilation? Nah!
2628 case "`uname -r`" in
2629 ## Someone's system reports A.B8.05 for this.
2630 ## I wonder what other possibilities there are.
2631 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2632 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2633 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2634 *) machine
=hp800 opsys
=hpux10
;;
2638 machine
=hp800 opsys
=nextstep
2643 machine
=orion opsys
=bsd4-2
2645 clipper-orion-bsd
* )
2646 machine
=orion105 opsys
=bsd4-2
2650 i
[3456]86-ibm-aix1.1
* )
2651 machine
=ibmps2-aix opsys
=usg5-2-2
2653 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2654 machine
=ibmps2-aix opsys
=usg5-3
2657 machine
=ibm370aix opsys
=usg5-3
2660 machine
=ibms390 opsys
=gnu-linux
2662 s390x-
*-linux-gnu* )
2663 machine
=ibms390x opsys
=gnu-linux
2665 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2666 machine
=ibmrs6000 opsys
=aix3-1
2668 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2669 machine
=ibmrs6000 opsys
=aix3-2-5
2671 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2672 machine
=ibmrs6000 opsys
=aix4-1
2674 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2675 machine
=ibmrs6000 opsys
=aix4-2
2677 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2678 machine
=ibmrs6000 opsys
=aix4-2
2680 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2681 machine
=ibmrs6000 opsys
=aix4-2
2683 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2684 machine
=ibmrs6000 opsys
=aix4
2686 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2687 machine
=ibmrs6000 opsys
=aix4-1
2689 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2690 machine
=ibmrs6000 opsys
=aix3-2
2693 machine
=ibmrt opsys
=bsd4-3
2696 machine
=ibmrt opsys
=bsd4-2
2699 machine
=ibmrt opsys
=bsd4-3
2702 machine
=ibmrt opsys
=bsd4-2
2705 machine
=ibmrt opsys
=bsd4-3
2708 machine
=ibmrt opsys
=bsd4-3
2711 machine
=ibmrt-aix opsys
=usg5-2-2
2714 ## Integrated Solutions `Optimum V'
2716 machine
=isi-ov opsys
=bsd4-2
2719 machine
=isi-ov opsys
=bsd4-3
2722 ## Intel 386 machines where we do care about the manufacturer
2723 i
[3456]86-intsys-sysv* )
2724 machine
=is386 opsys
=usg5-2-2
2728 i
[3456]86-prime-sysv* )
2729 machine
=i386 opsys
=usg5-3
2732 ## Sequent Symmetry running Dynix
2733 i
[3456]86-sequent-bsd* )
2734 machine
=symmetry opsys
=bsd4-3
2737 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2738 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2739 machine
=sequent-ptx opsys
=ptx4
2740 NON_GNU_CPP
=/lib
/cpp
2743 ## Sequent Symmetry running DYNIX/ptx
2744 ## Use the old cpp rather than the newer ANSI one.
2745 i
[3456]86-sequent-ptx* )
2746 machine
=sequent-ptx opsys
=ptx
2747 NON_GNU_CPP
="/lib/cpp"
2750 ## ncr machine running svr4.3.
2751 i
[3456]86-ncr-sysv4.3
)
2752 machine
=ncr386 opsys
=usg5-4-3
2755 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2756 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2757 i
[3456]86-ncr-sysv* )
2758 machine
=ncr386 opsys
=usg5-4-2
2761 ## Intel Paragon OSF/1
2763 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2768 machine
=i860 opsys
=usg5-4
2769 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2770 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2773 ## Macintosh PowerPC
2774 powerpc
*-*-linux-gnu* )
2775 machine
=macppc opsys
=gnu-linux
2778 ## Masscomp machines
2779 m68
*-masscomp-rtu* )
2780 machine
=masscomp opsys
=rtu
2783 ## Megatest machines
2784 m68
*-megatest-bsd* )
2785 machine
=mega68 opsys
=bsd4-2
2788 ## Workstations sold by MIPS
2789 ## This is not necessarily all workstations using the MIPS processor -
2790 ## Irises are produced by SGI, and DECstations by DEC.
2792 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2793 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2794 ## it gives for choosing between the alternatives seems to be "Use
2795 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2796 ## the BSD world." I'll assume that these are instructions for
2797 ## handling two odd situations, and that every other situation
2798 ## should use mips.h and usg5-2-2, they being listed first.
2801 ## Fall through to the general code at the bottom to decide on the OS.
2803 mips-mips-riscos4
* )
2804 machine
=mips4 opsys
=bsd4-3
2805 NON_GNU_CC
="cc -systype bsd43"
2806 NON_GNU_CPP
="cc -systype bsd43 -E"
2808 mips-mips-riscos5
* )
2809 machine
=mips4 opsys
=riscos5
2810 NON_GNU_CC
="cc -systype bsd43"
2811 NON_GNU_CPP
="cc -systype bsd43 -E"
2814 machine
=mips opsys
=bsd4-3
2817 machine
=mips opsys
=usg5-2-2
2821 m68
*-next-* | m68k-
*-nextstep* )
2822 machine
=m68k opsys
=nextstep
2825 ## The complete machine from National Semiconductor
2827 machine
=ns32000 opsys
=usg5-2
2831 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2832 machine
=tower32 opsys
=usg5-2-2
2834 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2835 machine
=tower32v3 opsys
=usg5-3
2840 machine
=ews4800 opsys
=ux4800
2843 ## Nixdorf Targon 31
2844 m68
*-nixdorf-sysv* )
2845 machine
=targon31 opsys
=usg5-2-2
2850 machine
=nu opsys
=usg5-2
2855 machine
=plexus opsys
=usg5-2
2859 ## I don't really have any idea what sort of processor the Pyramid has,
2860 ## so I'm assuming it is its own architecture.
2861 pyramid-pyramid-bsd
* )
2862 machine
=pyramid opsys
=bsd4-2
2866 ns32k-sequent-bsd4.2
* )
2867 machine
=sequent opsys
=bsd4-2
2869 ns32k-sequent-bsd4.3
* )
2870 machine
=sequent opsys
=bsd4-3
2874 mips-siemens-sysv
* | mips-sni-sysv
*)
2875 machine
=mips-siemens opsys
=usg5-4
2876 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2877 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2880 ## Silicon Graphics machines
2881 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2883 machine
=irist opsys
=iris3-5
2885 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2886 machine
=irist opsys
=iris3-6
2890 machine
=iris4d opsys
=irix3-3
2893 machine
=iris4d opsys
=irix4-0
2896 machine
=iris4d opsys
=irix6-5
2897 # Without defining _LANGUAGE_C, things get masked out in the headers
2898 # so that, for instance, grepping for `free' in stdlib.h fails and
2899 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2900 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2901 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2904 machine
=iris4d opsys
=irix6-0
2905 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2906 # but presumably it does no harm.
2907 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2908 # -32 probably isn't necessary in later v.6s -- anyone know which?
2909 NON_GCC_TEST_OPTIONS
=-32
2911 mips-sgi-irix5.
[01]* )
2912 machine
=iris4d opsys
=irix5-0
2914 mips-sgi-irix5
* | mips-sgi-irix
* )
2915 machine
=iris4d opsys
=irix5-2
2920 machine
=news opsys
=bsd4-2
2923 machine
=news opsys
=bsd4-3
2925 m68
*-sony-newsos3* | m68
*-sony-news3*)
2926 machine
=news opsys
=bsd4-3
2928 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2929 machine
=news-risc opsys
=bsd4-3
2931 mips-sony-newsos6
* )
2932 machine
=news-r6 opsys
=newsos6
2935 machine
=news-risc opsys
=newsos5
2940 machine
=stride opsys
=usg5-2
2944 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2945 machine
=sparc opsys
=gnu-linux
2948 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2949 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2950 | rs6000-
*-solaris2*)
2951 case "${canonical}" in
2952 m68
*-sunos1* ) machine
=sun1
;;
2953 m68
*-sunos2* ) machine
=sun2
;;
2954 m68
* ) machine
=sun3
;;
2955 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2956 i
[3456]86-*-* ) machine
=intel386
;;
2957 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2958 powerpcle
* ) machine
=powerpcle
;;
2959 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2960 sparc
* ) machine
=sparc
;;
2963 case "${canonical}" in
2964 ## The Sun386 didn't get past 4.0.
2965 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2966 *-sunos4.0
* ) opsys
=sunos4-0
;;
2967 *-sunos4.1.
[3-9]*noshare
)
2968 ## This name is sunos413 instead of sunos4-1-3
2969 ## to avoid a file name conflict on MSDOS.
2971 NON_GNU_CPP
=/usr
/lib
/cpp
2972 NON_GCC_TEST_OPTIONS
=-Bstatic
2973 GCC_TEST_OPTIONS
=-static
2975 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2977 NON_GNU_CPP
=/usr
/lib
/cpp
2979 *-sunos4* |
*-sunos )
2981 NON_GCC_TEST_OPTIONS
=-Bstatic
2982 GCC_TEST_OPTIONS
=-static
2984 *-sunos5.3
* |
*-solaris2.3
* )
2986 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2988 *-sunos5.4
* |
*-solaris2.4
* )
2990 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2993 *-sunos5.5
* |
*-solaris2.5
* )
2995 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2998 *-sunos5.6
* |
*-solaris2.6
* )
3000 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3003 *-sunos5* |
*-solaris* )
3005 emacs_check_sunpro_c
=yes
3006 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3010 ## Watch out for a compiler that we know will not work.
3011 case "${canonical}" in
3012 *-solaris* |
*-sunos5* )
3013 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3014 ## /usr/ucb/cc doesn't work;
3015 ## we should find some other compiler that does work.
3023 machine
=sparc opsys
=nextstep
3027 m68
*-tadpole-sysv* )
3028 machine
=tad68k opsys
=usg5-3
3032 tahoe-tahoe-bsd4.2
* )
3033 machine
=tahoe opsys
=bsd4-2
3035 tahoe-tahoe-bsd4.3
* )
3036 machine
=tahoe opsys
=bsd4-3
3039 ## Tandem Integrity S2
3041 machine
=tandem-s2 opsys
=usg5-3
3045 m88k-tektronix-sysv3
* )
3046 machine
=tekxd88 opsys
=usg5-3
3049 ## Tektronix 16000 box (6130?)
3050 ns16k-tektronix-bsd
* )
3051 machine
=ns16000 opsys
=bsd4-2
3054 ## src/m/tek4300.h hints that this is a m68k machine.
3055 m68
*-tektronix-bsd* )
3056 machine
=tek4300 opsys
=bsd4-3
3060 ## We seem to have lost the machine-description file titan.h!
3062 machine
=titan opsys
=usg5-3
3065 ## Ustation E30 (SS5E)
3066 m68
*-unisys-uniplus* )
3067 machine
=ustation opsystem
=unipl5-2
3073 case "${canonical}" in
3074 *-bsd4.1
* ) opsys
=bsd4-1
;;
3075 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3076 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3077 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3078 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3079 *-vms* ) opsys
=vms
;;
3085 ns16k-whitechapel-
* )
3087 ## We don't know what sort of OS runs on these; we'll let the
3088 ## operating system guessing code below try.
3093 machine
=wicat opsys
=usg5-2
3098 machine
=ia64 opsys
=gnu-linux
3101 ## Intel 386 machines where we don't care about the manufacturer
3104 case "${canonical}" in
3105 *-cygwin ) opsys
=cygwin
;;
3106 *-darwin* ) opsys
=darwin
3107 CPP
="${CC-cc} -E -no-cpp-precomp"
3109 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3110 *-isc2.2
* ) opsys
=isc2-2
;;
3111 *-isc4.0
* ) opsys
=isc4-0
;;
3112 *-isc4.
* ) opsys
=isc4-1
3113 GCC_TEST_OPTIONS
=-posix
3114 NON_GCC_TEST_OPTIONS
=-Xp
3116 *-isc* ) opsys
=isc3-0
;;
3117 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3118 *-esix* ) opsys
=esix
;;
3119 *-xenix* ) opsys
=xenix
;;
3120 *-linux-gnu* ) opsys
=gnu-linux
;;
3121 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3122 *-sco3.2v5
* ) opsys
=sco5
3123 NON_GNU_CPP
=/lib
/cpp
3124 # Prevent -belf from being passed to $CPP.
3125 # /lib/cpp does not accept it.
3126 OVERRIDE_CPPFLAGS
=" "
3128 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3129 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3130 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3131 *-386bsd* ) opsys
=386bsd
;;
3132 *-nextstep* ) opsys
=nextstep
;;
3133 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3137 ## m68k Linux-based GNU system
3139 machine
=m68k opsys
=gnu-linux
3142 ## Mips Linux-based GNU system
3143 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3144 machine
=mips opsys
=gnu-linux
3148 sparc-fujitsu-sysv4
* )
3149 machine
=sparc opsys
=uxpds
3150 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3155 f301-fujitsu-uxpv4.1
)
3156 machine
=f301 opsys
=uxpv
3159 ## AMD x86-64 Linux-based GNU system
3160 x86_64-
*-linux-gnu* )
3161 machine
=amdx86-64 opsys
=gnu-linux
3164 ## Tensilica Xtensa Linux-based GNU system
3165 xtensa-
*-linux-gnu* )
3166 machine
=xtensa opsys
=gnu-linux
3174 ### If the code above didn't choose an operating system, just choose
3175 ### an operating system based on the configuration name. You really
3176 ### only want to use this when you have no idea what the right
3177 ### operating system is; if you know what operating systems a machine
3178 ### runs, it's cleaner to make it explicit in the case statement
3180 if test x
"${opsys}" = x
; then
3181 case "${canonical}" in
3182 *-gnu* ) opsys
=gnu
;;
3183 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3184 *-bsd4.2
) opsys
=bsd4-2
;;
3185 *-bsd4.3
) opsys
=bsd4-3
;;
3186 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3187 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3188 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3189 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3190 *-sysv4.2uw
* ) opsys
=unixware
;;
3191 *-sysv5uw* ) opsys
=unixware
;;
3192 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3193 *-sysv4.1
* |
*-sysvr4.1
* )
3194 NON_GNU_CPP
=/usr
/lib
/cpp
3196 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3197 if [ x
$NON_GNU_CPP = x
]; then
3198 if [ -f /usr
/ccs
/lib
/cpp
]; then
3199 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3201 NON_GNU_CPP
=/lib
/cpp
3205 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3214 if test $unported = yes; then
3215 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3216 Check \`etc/MACHINES' for recognized configuration names." >&5
3217 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3218 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3219 { (exit 1); exit 1; }; }
3222 machfile
="m/${machine}.h"
3223 opsysfile
="s/${opsys}.h"
3226 #### Choose a compiler.
3227 test -n "$CC" && cc_specified
=yes
3229 # Save the value of CFLAGS that the user specified.
3230 SPECIFIED_CFLAGS
="$CFLAGS"
3233 "yes" ) CC
="gcc" GCC
=yes ;;
3234 "no" ) : ${CC=cc} ;;
3238 ac_cpp
='$CPP $CPPFLAGS'
3239 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC
="$CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { echo "$as_me:$LINENO: result: $CC" >&5
3273 echo "${ECHO_T}$CC" >&6; }
3275 { echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6; }
3281 if test -z "$ac_cv_prog_CC"; then
3283 # Extract the first word of "gcc", so it can be a program name with args.
3284 set dummy gcc
; ac_word
=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 if test -n "$ac_ct_CC"; then
3291 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_ac_ct_CC
="gcc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3311 if test -n "$ac_ct_CC"; then
3312 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3313 echo "${ECHO_T}$ac_ct_CC" >&6; }
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3319 if test "x$ac_ct_CC" = x
; then
3322 case $cross_compiling:$ac_tool_warned in
3324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&5
3327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet. If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3330 ac_tool_warned
=yes ;;
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3341 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC
="$CC" # Let the user override the test.
3350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir
=.
3355 for ac_exec_ext
in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 if test -n "$CC"; then
3369 { echo "$as_me:$LINENO: result: $CC" >&5
3370 echo "${ECHO_T}$CC" >&6; }
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3379 if test -z "$CC"; then
3380 # Extract the first word of "cc", so it can be a program name with args.
3381 set dummy cc
; ac_word
=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC
="$CC" # Let the user override the test.
3391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3395 test -z "$as_dir" && as_dir
=.
3396 for ac_exec_ext
in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3399 ac_prog_rejected
=yes
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test $ac_prog_rejected = yes; then
3411 # We found a bogon in the path, so make sure we never use it.
3412 set dummy
$ac_cv_prog_CC
3414 if test $# != 0; then
3415 # We chose a different compiler from the bogus one.
3416 # However, it has the same basename, so the bogon will be chosen
3417 # first if we set CC to just the basename; use the full file name.
3419 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3425 if test -n "$CC"; then
3426 { echo "$as_me:$LINENO: result: $CC" >&5
3427 echo "${ECHO_T}$CC" >&6; }
3429 { echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6; }
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 for ac_prog
in cl.exe
3439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3440 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_CC+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC
="$CC" # Let the user override the test.
3449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir
=.
3454 for ac_exec_ext
in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test -n "$CC"; then
3468 { echo "$as_me:$LINENO: result: $CC" >&5
3469 echo "${ECHO_T}$CC" >&6; }
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3476 test -n "$CC" && break
3479 if test -z "$CC"; then
3481 for ac_prog
in cl.exe
3483 # Extract the first word of "$ac_prog", so it can be a program name with args.
3484 set dummy
$ac_prog; ac_word
=$2
3485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -n "$ac_ct_CC"; then
3491 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir
=.
3498 for ac_exec_ext
in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_ac_ct_CC
="$ac_prog"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3513 echo "${ECHO_T}$ac_ct_CC" >&6; }
3515 { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3520 test -n "$ac_ct_CC" && break
3523 if test "x$ac_ct_CC" = x
; then
3526 case $cross_compiling:$ac_tool_warned in
3528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3529 whose name does not start with the host triplet. If you think this
3530 configuration is useful to you, please write to autoconf@gnu.org." >&5
3531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3532 whose name does not start with the host triplet. If you think this
3533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3534 ac_tool_warned
=yes ;;
3543 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3544 See \`config.log' for more details." >&5
3545 echo "$as_me: error: no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }
3549 # Provide some information about the compiler.
3550 echo "$as_me:$LINENO: checking for C compiler version" >&5
3551 ac_compiler
=`set X $ac_compile; echo $2`
3552 { (ac_try
="$ac_compiler --version >&5"
3554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compiler --version >&5") 2>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }
3562 { (ac_try="$ac_compiler -v >&5"
3564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3565 *) ac_try_echo
=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compiler -v >&5") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 { (ac_try
="$ac_compiler -V >&5"
3574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compiler -V >&5") 2>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3598 ac_clean_files_save=$ac_clean_files
3599 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3600 # Try to create an executable without -o first, disregard a.out.
3601 # It will help us diagnose broken compilers, and finding out an intuition
3603 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3604 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3605 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3607 # List of possible output files, starting from the most likely.
3608 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3609 # only as a last resort. b.out is created by i960 compilers.
3610 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3612 # The IRIX 6 linker writes into existing files which may not be
3613 # executable, retaining their permissions. Remove them first so a
3614 # subsequent execution test works.
3616 for ac_file in $ac_files
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3620 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3625 if { (ac_try="$ac_link_default"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_link_default") 2>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; then
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3640 for ac_file
in $ac_files ''
3642 test -f "$ac_file" ||
continue
3644 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3647 # We found the default executable, but exeext='' is most
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3653 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3665 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3671 { echo "$as_me:$LINENO: result: $ac_file" >&5
3672 echo "${ECHO_T}$ac_file" >&6; }
3673 if test -z "$ac_file"; then
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.
$ac_ext >&5
3677 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3678 See \`config.log' for more details." >&5
3679 echo "$as_me: error: C compiler cannot create executables
3680 See \`config.log' for more details." >&2;}
3681 { (exit 77); exit 77; }; }
3684 ac_exeext
=$ac_cv_exeext
3686 # Check that the compiler produces executables we can run. If not, either
3687 # the compiler is broken, or we cross compile.
3688 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3689 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3690 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3691 # If not cross compiling, check that we can run a simple program.
3692 if test "$cross_compiling" != yes; then
3693 if { ac_try
='./$ac_file'
3694 { (case "(($ac_try" in
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_try") 2>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3705 if test "$cross_compiling" = maybe; then
3708 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3709 If you meant to cross compile, use \`--host'.
3710 See \`config.log' for more details.
" >&5
3711 echo "$as_me: error
: cannot run C compiled programs.
3712 If you meant to cross compile
, use \
`--host'.
3713 See \`config.log
' for more details." >&2;}
3714 { (exit 1); exit 1; }; }
3718 { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3721 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3722 ac_clean_files=$ac_clean_files_save
3723 # Check that the compiler produces executables we can run. If not, either
3724 # the compiler is broken, or we cross compile.
3725 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3726 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3727 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3728 echo "${ECHO_T}$cross_compiling" >&6; }
3730 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3731 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3732 if { (ac_try="$ac_link"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_link") 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3743 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3744 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3746 for ac_file
in conftest.exe conftest conftest.
*; do
3747 test -f "$ac_file" ||
continue
3749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3750 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3763 rm -f conftest
$ac_cv_exeext
3764 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3765 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3767 rm -f conftest.
$ac_ext
3768 EXEEXT
=$ac_cv_exeext
3770 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3771 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3772 if test "${ac_cv_objext+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3790 rm -f conftest.o conftest.obj
3791 if { (ac_try
="$ac_compile"
3793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; then
3801 for ac_file in conftest.o conftest.obj conftest.*; do
3802 test -f "$ac_file" || continue;
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3805 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3814 See \`config.log
' for more details." >&5
3815 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3816 See \`config.log' for more details.
" >&2;}
3817 { (exit 1); exit 1; }; }
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3823 echo "${ECHO_T}$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3826 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3827 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3828 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3829 echo $ECHO_N "(cached
) $ECHO_C" >&6
3831 cat >conftest.$ac_ext <<_ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3858 grep -v '^ *+' conftest.er1 >conftest.err
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest.$ac_objext; then
3868 echo "$as_me: failed program was
:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3879 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3880 GCC=`test $ac_compiler_gnu = yes && echo yes`
3881 ac_test_CFLAGS=${CFLAGS+set}
3882 ac_save_CFLAGS=$CFLAGS
3883 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3884 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3885 if test "${ac_cv_prog_cc_g+set}" = set; then
3886 echo $ECHO_N "(cached
) $ECHO_C" >&6
3888 ac_save_c_werror_flag=$ac_c_werror_flag
3889 ac_c_werror_flag=yes
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3926 echo "$as_me: failed program was
:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3945 rm -f conftest.$ac_objext
3946 if { (ac_try="$ac_compile"
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_compile") 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3958 (exit $ac_status); } && {
3959 test -z "$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 } && test -s conftest.$ac_objext; then
3964 echo "$as_me: failed program was
:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest.$ac_objext; then
4003 echo "$as_me: failed program was
:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4018 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4020 if test "$ac_test_CFLAGS" = set; then
4021 CFLAGS=$ac_save_CFLAGS
4022 elif test $ac_cv_prog_cc_g = yes; then
4023 if test "$GCC" = yes; then
4029 if test "$GCC" = yes; then
4035 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4036 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4037 if test "${ac_cv_prog_cc_c89+set}" = set; then
4038 echo $ECHO_N "(cached
) $ECHO_C" >&6
4040 ac_cv_prog_cc_c89=no
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4050 #include <sys/types.h>
4051 #include <sys/stat.h>
4052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4053 struct buf { int x; };
4054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055 static char *e (p, i)
4061 static char *f (char * (*g) (char **, int), char **p, ...)
4066 s = g (p, va_arg (v,int));
4071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4072 function prototypes and stuff, but not '\xHH' hex character constants.
4073 These don't provoke an error unfortunately, instead are silently treated
4074 as 'x'. The following induces an error, until -std is added to get
4075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4076 array size at least. It's necessary to write '\x00'==0 to get something
4077 that's true only with -std. */
4078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081 inside strings and character constants. */
4083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085 int test (int i, double x);
4086 struct s1 {int (*f) (int a);};
4087 struct s2 {int (*f) (double a);};
4088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 CC="$ac_save_CC $ac_arg"
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4120 ac_cv_prog_cc_c89=$ac_arg
4122 echo "$as_me: failed program was
:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4131 rm -f conftest.$ac_ext
4136 case "x
$ac_cv_prog_cc_c89" in
4138 { echo "$as_me:$LINENO: result
: none needed
" >&5
4139 echo "${ECHO_T}none needed
" >&6; } ;;
4141 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4142 echo "${ECHO_T}unsupported
" >&6; } ;;
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4146 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4162 ## If not using gcc, and on Solaris, and no CPP specified, see if
4163 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4164 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4165 test x"$CPP" = x; then
4166 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4167 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4169 if test "${emacs_cv_sunpro_c+set}" = set; then
4170 echo $ECHO_N "(cached
) $ECHO_C" >&6
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (ac_try="$ac_link"
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_link") 2>conftest.er1
4199 grep -v '^ *+' conftest.er1 >conftest.err
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4203 (exit $ac_status); } && {
4204 test -z "$ac_c_werror_flag" ||
4205 test ! -s conftest.err
4206 } && test -s conftest$ac_exeext &&
4207 $as_test_x conftest$ac_exeext; then
4208 emacs_cv_sunpro_c=yes
4210 echo "$as_me: failed program was
:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 emacs_cv_sunpro_c=no
4216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4217 conftest$ac_exeext conftest.$ac_ext
4220 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4221 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4223 if test x"$emacs_cv_sunpro_c" = xyes; then
4224 NON_GNU_CPP="$CC -E -Xs"
4228 #### Some systems specify a CPP to use unless we are using GCC.
4229 #### Now that we know whether we are using GCC, we can decide whether
4230 #### to use that one.
4231 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4236 #### Some systems specify a CC to use unless we are using GCC.
4237 #### Now that we know whether we are using GCC, we can decide whether
4238 #### to use that one.
4239 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4240 test x$cc_specified != xyes
4245 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4247 CC="$CC $GCC_TEST_OPTIONS"
4250 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4252 CC="$CC $NON_GCC_TEST_OPTIONS"
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4261 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4262 # On Suns, sometimes $CPP names a directory.
4263 if test -n "$CPP" && test -d "$CPP"; then
4266 if test -z "$CPP"; then
4267 if test "${ac_cv_prog_CPP+set}" = set; then
4268 echo $ECHO_N "(cached
) $ECHO_C" >&6
4270 # Double quotes because CPP needs to be expanded
4271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4274 for ac_c_preproc_warn_flag in '' yes
4276 # Use a header file that comes with gcc, so configuring glibc
4277 # with a fresh cross-compiler works.
4278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279 # <limits.h> exists even on freestanding compilers.
4280 # On the NeXT, cc -E runs the code through the compiler's parser,
4281 # not just through cpp. "Syntax error
" is here to catch this case.
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4289 # include <limits.h>
4291 # include <assert.h>
4295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4307 (exit $ac_status); } >/dev/null && {
4308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4313 echo "$as_me: failed program was
:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4316 # Broken: fails on valid input.
4320 rm -f conftest.err conftest.$ac_ext
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 #include <ac_nonexistent.h>
4332 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4344 (exit $ac_status); } >/dev/null && {
4345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4348 # Broken: success on invalid input.
4351 echo "$as_me: failed program was
:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4354 # Passes both tests.
4359 rm -f conftest.err conftest.$ac_ext
4362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363 rm -f conftest.err conftest.$ac_ext
4364 if $ac_preproc_ok; then
4376 { echo "$as_me:$LINENO: result
: $CPP" >&5
4377 echo "${ECHO_T}$CPP" >&6; }
4379 for ac_c_preproc_warn_flag in '' yes
4381 # Use a header file that comes with gcc, so configuring glibc
4382 # with a fresh cross-compiler works.
4383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384 # <limits.h> exists even on freestanding compilers.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error
" is here to catch this case.
4387 cat >conftest.$ac_ext <<_ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4394 # include <limits.h>
4396 # include <assert.h>
4400 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4412 (exit $ac_status); } >/dev/null && {
4413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4418 echo "$as_me: failed program was
:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 # Broken: fails on valid input.
4425 rm -f conftest.err conftest.$ac_ext
4427 # OK, works on sane cases. Now check whether nonexistent headers
4428 # can be detected and how.
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #include <ac_nonexistent.h>
4437 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4449 (exit $ac_status); } >/dev/null && {
4450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4451 test ! -s conftest.err
4453 # Broken: success on invalid input.
4456 echo "$as_me: failed program was
:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 # Passes both tests.
4464 rm -f conftest.err conftest.$ac_ext
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then
4472 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4473 See \
`config.log' for more details." >&5
4474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4475 See \`config.log
' for more details." >&2;}
4476 { (exit 1); exit 1; }; }
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4482 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4487 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4488 if test "${ac_cv_path_GREP+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 # Extract the first word of "grep ggrep" to use in msg output
4492 if test -z "$GREP"; then
4493 set dummy grep ggrep; ac_prog_name=$2
4494 if test "${ac_cv_path_GREP+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 ac_path_GREP_found=false
4498 # Loop through the user's path and
test for each of PROGNAME-LIST
4499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4500 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4503 test -z "$as_dir" && as_dir
=.
4504 for ac_prog
in grep ggrep
; do
4505 for ac_exec_ext
in '' $ac_executable_extensions; do
4506 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4507 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4508 # Check for GNU ac_path_GREP and select it if it is found.
4509 # Check for GNU $ac_path_GREP
4510 case `"$ac_path_GREP" --version 2>&1` in
4512 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4515 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4518 cat "conftest.in" "conftest.in" >"conftest.tmp"
4519 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl"
4521 echo 'GREP' >> "conftest.nl"
4522 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4523 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4524 ac_count
=`expr $ac_count + 1`
4525 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_GREP
="$ac_path_GREP"
4528 ac_path_GREP_max
=$ac_count
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4533 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4537 $ac_path_GREP_found && break 3
4547 GREP
="$ac_cv_path_GREP"
4548 if test -z "$GREP"; then
4549 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4550 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4551 { (exit 1); exit 1; }; }
4555 ac_cv_path_GREP
=$GREP
4560 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4561 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4562 GREP
="$ac_cv_path_GREP"
4565 { echo "$as_me:$LINENO: checking for egrep" >&5
4566 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4567 if test "${ac_cv_path_EGREP+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4571 then ac_cv_path_EGREP
="$GREP -E"
4573 # Extract the first word of "egrep" to use in msg output
4574 if test -z "$EGREP"; then
4575 set dummy
egrep; ac_prog_name
=$2
4576 if test "${ac_cv_path_EGREP+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_path_EGREP_found
=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4582 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4585 test -z "$as_dir" && as_dir
=.
4586 for ac_prog
in egrep; do
4587 for ac_exec_ext
in '' $ac_executable_extensions; do
4588 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4589 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4590 # Check for GNU ac_path_EGREP and select it if it is found.
4591 # Check for GNU $ac_path_EGREP
4592 case `"$ac_path_EGREP" --version 2>&1` in
4594 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4597 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 echo 'EGREP' >> "conftest.nl"
4604 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4605 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4606 ac_count
=`expr $ac_count + 1`
4607 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_EGREP
="$ac_path_EGREP"
4610 ac_path_EGREP_max
=$ac_count
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4615 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4619 $ac_path_EGREP_found && break 3
4629 EGREP
="$ac_cv_path_EGREP"
4630 if test -z "$EGREP"; then
4631 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4632 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4633 { (exit 1); exit 1; }; }
4637 ac_cv_path_EGREP
=$EGREP
4643 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4644 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4645 EGREP
="$ac_cv_path_EGREP"
4649 { echo "$as_me:$LINENO: checking for AIX" >&5
4650 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4651 cat >conftest.
$ac_ext <<_ACEOF
4654 cat confdefs.h
>>conftest.
$ac_ext
4655 cat >>conftest.
$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4663 $EGREP "yes" >/dev
/null
2>&1; then
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4666 cat >>confdefs.h
<<\_ACEOF
4667 #define _ALL_SOURCE 1
4671 { echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6; }
4678 cat >>confdefs.h
<<\_ACEOF
4679 #define _GNU_SOURCE 1
4684 ### Use -Wno-pointer-sign if the compiler supports it
4685 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4686 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4687 SAVE_CFLAGS
="$CFLAGS"
4688 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4689 cat >conftest.
$ac_ext <<_ACEOF
4692 cat confdefs.h
>>conftest.
$ac_ext
4693 cat >>conftest.
$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4704 rm -f conftest.
$ac_objext
4705 if { (ac_try
="$ac_compile"
4707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4711 (eval "$ac_compile") 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest.$ac_objext; then
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 if test $has_option = yes; then
4731 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4733 { echo "$as_me:$LINENO: result: $has_option" >&5
4734 echo "${ECHO_T}$has_option" >&6; }
4735 CFLAGS="$SAVE_CFLAGS"
4739 #### Some other nice autoconf tests.
4741 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4744 if test "$LN_S" = "ln -s"; then
4745 { echo "$as_me:$LINENO: result: yes" >&5
4746 echo "${ECHO_T}yes" >&6; }
4748 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4749 echo "${ECHO_T}no, using $LN_S" >&6; }
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4758 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4759 # On Suns, sometimes $CPP names a directory.
4760 if test -n "$CPP" && test -d "$CPP"; then
4763 if test -z "$CPP"; then
4764 if test "${ac_cv_prog_CPP+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 # Double quotes because CPP needs to be expanded
4768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4771 for ac_c_preproc_warn_flag in '' yes
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4786 # include <limits.h>
4788 # include <assert.h>
4792 if { (ac_try="$ac_cpp conftest.$ac_ext"
4794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4795 *) ac_try_echo
=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1
>conftest.err
4802 cat conftest.err
>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev
/null
&& {
4805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.
$ac_ext >&5
4813 # Broken: fails on valid input.
4817 rm -f conftest.err conftest.
$ac_ext
4819 # OK, works on sane cases. Now check whether nonexistent headers
4820 # can be detected and how.
4821 cat >conftest.
$ac_ext <<_ACEOF
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #include <ac_nonexistent.h>
4829 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4837 grep -v '^ *+' conftest.er1 >conftest.err
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } >/dev/null && {
4842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4845 # Broken: success on invalid input.
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4851 # Passes both tests.
4856 rm -f conftest.err conftest.$ac_ext
4859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860 rm -f conftest.err conftest.
$ac_ext
4861 if $ac_preproc_ok; then
4873 { echo "$as_me:$LINENO: result: $CPP" >&5
4874 echo "${ECHO_T}$CPP" >&6; }
4876 for ac_c_preproc_warn_flag
in '' yes
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat >conftest.
$ac_ext <<_ACEOF
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4891 # include <limits.h>
4893 # include <assert.h>
4897 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null && {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 # Broken: fails on valid input.
4922 rm -f conftest.err conftest.$ac_ext
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 #include <ac_nonexistent.h>
4934 if { (ac_try="$ac_cpp conftest.$ac_ext"
4936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4937 *) ac_try_echo
=$ac_try;;
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4942 grep -v '^ *+' conftest.er1
>conftest.err
4944 cat conftest.err
>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev
/null
&& {
4947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4950 # Broken: success on invalid input.
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.
$ac_ext >&5
4956 # Passes both tests.
4961 rm -f conftest.err conftest.
$ac_ext
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.err conftest.
$ac_ext
4966 if $ac_preproc_ok; then
4969 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4970 See \`config.log' for more details." >&5
4971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4972 See \`config.log' for more details." >&2;}
4973 { (exit 1); exit 1; }; }
4977 ac_cpp
='$CPP $CPPFLAGS'
4978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4982 # Find a good install program. We prefer a C program (faster),
4983 # so one script is as good as another. But avoid the broken or
4984 # incompatible versions:
4985 # SysV /etc/install, /usr/sbin/install
4986 # SunOS /usr/etc/install
4987 # IRIX /sbin/install
4989 # AmigaOS /C/install, which installs bootblocks on floppy discs
4990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4993 # OS/2's system install, which has a completely different semantic
4994 # ./install, which can be erroneously created by make from ./install.sh.
4995 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4997 if test -z "$INSTALL"; then
4998 if test "${ac_cv_path_install+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir
=.
5006 # Account for people who put trailing slashes in PATH elements.
5008 .
/ | .
// |
/cC
/* | \
5009 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5010 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5013 # OSF1 and SCO ODT 3.0 have their own names for install.
5014 # Don't use installbsd from OSF since it installs stuff as root
5016 for ac_prog
in ginstall scoinst
install; do
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5019 if test $ac_prog = install &&
5020 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5021 # AIX install. It has an incompatible calling convention.
5023 elif test $ac_prog = install &&
5024 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5025 # program-specific install script used by HP pwplus--don't use.
5028 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5041 if test "${ac_cv_path_install+set}" = set; then
5042 INSTALL
=$ac_cv_path_install
5044 # As a last resort, use the slow shell script. Don't cache a
5045 # value for INSTALL within a source directory, because that will
5046 # break other packages using the cache if that directory is
5047 # removed, or if the value is a relative name.
5048 INSTALL
=$ac_install_sh
5051 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5052 echo "${ECHO_T}$INSTALL" >&6; }
5054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5055 # It thinks the first close brace ends the variable substitution.
5056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5060 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5062 if test "x$RANLIB" = x
; then
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_prog_RANLIB+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir
=.
5079 for ac_exec_ext
in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 RANLIB
=$ac_cv_prog_RANLIB
5092 if test -n "$RANLIB"; then
5093 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5094 echo "${ECHO_T}$RANLIB" >&6; }
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5102 if test -z "$ac_cv_prog_RANLIB"; then
5103 ac_ct_RANLIB
=$RANLIB
5104 # Extract the first word of "ranlib", so it can be a program name with args.
5105 set dummy ranlib
; ac_word
=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 if test -n "$ac_ct_RANLIB"; then
5112 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_exec_ext
in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5132 if test -n "$ac_ct_RANLIB"; then
5133 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5134 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5140 if test "x$ac_ct_RANLIB" = x
; then
5143 case $cross_compiling:$ac_tool_warned in
5145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5146 whose name does not start with the host triplet. If you think this
5147 configuration is useful to you, please write to autoconf@gnu.org." >&5
5148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5149 whose name does not start with the host triplet. If you think this
5150 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5151 ac_tool_warned
=yes ;;
5153 RANLIB
=$ac_ct_RANLIB
5156 RANLIB
="$ac_cv_prog_RANLIB"
5160 # Extract the first word of "install-info", so it can be a program name with args.
5161 set dummy install-info
; ac_word
=$2
5162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 case $INSTALL_INFO in
5169 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 test -z "$as_dir" && as_dir
=.
5177 for ac_exec_ext
in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5191 if test -n "$INSTALL_INFO"; then
5192 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5193 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5195 { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5200 # Extract the first word of "install-info", so it can be a program name with args.
5201 set dummy install-info
; ac_word
=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 case $INSTALL_INFO in
5209 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5213 for as_dir
in /usr
/sbin
5216 test -z "$as_dir" && as_dir
=.
5217 for ac_exec_ext
in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5231 if test -n "$INSTALL_INFO"; then
5232 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5233 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5240 # Extract the first word of "install-info", so it can be a program name with args.
5241 set dummy install-info
; ac_word
=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 case $INSTALL_INFO in
5249 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5271 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5272 if test -n "$INSTALL_INFO"; then
5273 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5274 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5276 { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5281 # Extract the first word of "gzip", so it can be a program name with args.
5282 set dummy
gzip; ac_word
=$2
5283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5285 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5297 test -z "$as_dir" && as_dir
=.
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5312 if test -n "$GZIP_PROG"; then
5313 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5314 echo "${ECHO_T}$GZIP_PROG" >&6; }
5316 { echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6; }
5323 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5325 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5328 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5330 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5334 late_LDFLAGS
=$LDFLAGS
5335 if test "$GCC" = yes; then
5336 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5338 LDFLAGS
="$LDFLAGS -znocombreloc"
5341 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5342 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5343 cat >conftest.
$ac_ext <<_ACEOF
5346 rm -f conftest.
$ac_objext conftest
$ac_exeext
5347 if { (ac_try
="$ac_link"
5349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_link") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest$ac_exeext &&
5363 $as_test_x conftest$ac_exeext; then
5364 { echo "$as_me:$LINENO: result: yes" >&5
5365 echo "${ECHO_T}yes" >&6; }
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 LDFLAGS=$late_LDFLAGS
5371 { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5376 conftest$ac_exeext conftest.$ac_ext
5378 #### Extract some information from the operating system and machine files.
5380 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5381 - which libraries the lib-src programs will want, and
5382 - whether the GNU malloc routines are usable..." >&5
5383 echo "$as_me: checking the machine- and system-dependent files to find out
5384 - which libraries the lib-src programs will want, and
5385 - whether the GNU malloc routines are usable..." >&6;}
5387 ### First figure out CFLAGS (which we use for running the compiler here)
5388 ### and REAL_CFLAGS (which we use for real compilation).
5389 ### The two are the same except on a few systems, where they are made
5390 ### different to work around various lossages. For example,
5391 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5392 ### as implying static linking.
5394 ### If the CFLAGS env var is specified, we use that value
5395 ### instead of the default.
5397 ### It's not important that this name contain the PID; you can't run
5398 ### two configures in the same directory and have anything work
5400 tempcname="conftest.c"
5403 #include "'${srcdir}'/src/'${opsysfile}'"
5404 #include "'${srcdir}'/src/'${machfile}'"
5405 #ifndef LIBS_MACHINE
5406 #define LIBS_MACHINE
5411 #ifndef C_SWITCH_SYSTEM
5412 #define C_SWITCH_SYSTEM
5414 #ifndef C_SWITCH_MACHINE
5415 #define C_SWITCH_MACHINE
5417 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5418 configure___ c_switch_system=C_SWITCH_SYSTEM
5419 configure___ c_switch_machine=C_SWITCH_MACHINE
5422 #define LIB_X11_LIB -lX11
5425 #ifndef LIBX11_MACHINE
5426 #define LIBX11_MACHINE
5429 #ifndef LIBX11_SYSTEM
5430 #define LIBX11_SYSTEM
5432 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5435 configure___ unexec=UNEXEC
5437 configure___ unexec=unexec.o
5440 #ifdef SYSTEM_MALLOC
5441 configure___ system_malloc=yes
5443 configure___ system_malloc=no
5446 #ifdef USE_MMAP_FOR_BUFFERS
5447 configure___ use_mmap_for_buffers=yes
5449 configure___ use_mmap_for_buffers=no
5452 #ifndef C_DEBUG_SWITCH
5453 #define C_DEBUG_SWITCH -g
5456 #ifndef C_OPTIMIZE_SWITCH
5458 #define C_OPTIMIZE_SWITCH -O2
5460 #define C_OPTIMIZE_SWITCH -O
5464 #ifndef C_WARNINGS_SWITCH
5465 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5468 #ifndef LD_SWITCH_MACHINE
5469 #define LD_SWITCH_MACHINE
5472 #ifndef LD_SWITCH_SYSTEM
5473 #define LD_SWITCH_SYSTEM
5476 #ifndef LD_SWITCH_X_SITE_AUX
5477 #define LD_SWITCH_X_SITE_AUX
5480 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5481 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5483 #ifdef THIS_IS_CONFIGURE
5485 /* Get the CFLAGS for tests in configure. */
5487 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5489 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5492 #else /* not THIS_IS_CONFIGURE */
5494 /* Get the CFLAGS for real compilation. */
5496 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5498 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5501 #endif /* not THIS_IS_CONFIGURE */
5504 # The value of CPP is a quoted variable reference, so we need to do this
5505 # to get its actual value...
5506 CPP=`eval "echo $CPP"`
5507 eval `${CPP} -Isrc ${tempcname} \
5508 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5509 if test "x$SPECIFIED_CFLAGS" = x; then
5510 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5511 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5513 REAL_CFLAGS="$CFLAGS"
5517 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5519 ### Make sure subsequent tests use flags consistent with the build flags.
5521 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5522 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5524 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5529 # Check whether --enable-largefile was given.
5530 if test "${enable_largefile+set}" = set; then
5531 enableval=$enable_largefile;
5534 if test "$enable_largefile" != no; then
5536 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5537 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5538 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 ac_cv_sys_largefile_CC=no
5542 if test "$GCC" != yes; then
5545 # IRIX 6.2 and later do not support large files by default,
5546 # so use the C compiler's -n32 option if that helps.
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5553 #include <sys/types.h>
5554 /* Check that off_t can represent 2**63 - 1 correctly.
5555 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5556 since some C++ compilers masquerading as C compilers
5557 incorrectly reject 9223372036854775807. */
5558 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5560 && LARGE_OFF_T % 2147483647 == 1)
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5574 *) ac_try_echo
=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1
>conftest.err
5581 cat conftest.err
>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_c_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.
$ac_objext; then
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.
$ac_ext >&5
5595 rm -f core conftest.err conftest.
$ac_objext
5597 rm -f conftest.
$ac_objext
5598 if { (ac_try
="$ac_compile"
5600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 ac_cv_sys_largefile_CC=' -n32'; break
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext
5626 rm -f conftest.$ac_ext
5629 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5630 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5631 if test "$ac_cv_sys_largefile_CC" != no; then
5632 CC=$CC$ac_cv_sys_largefile_CC
5635 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5636 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5637 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 /* Check that off_t can represent 2**63 - 1 correctly.
5649 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5650 since some C++ compilers masquerading as C compilers
5651 incorrectly reject 9223372036854775807. */
5652 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5653 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5654 && LARGE_OFF_T % 2147483647 == 1)
5664 rm -f conftest.$ac_objext
5665 if { (ac_try="$ac_compile"
5667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5668 *) ac_try_echo
=$ac_try;;
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compile") 2>conftest.er1
5673 grep -v '^ *+' conftest.er1
>conftest.err
5675 cat conftest.err
>&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } && {
5678 test -z "$ac_c_werror_flag" ||
5679 test ! -s conftest.err
5680 } && test -s conftest.
$ac_objext; then
5681 ac_cv_sys_file_offset_bits
=no
; break
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.
$ac_ext >&5
5689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5690 cat >conftest.
$ac_ext <<_ACEOF
5693 cat confdefs.h
>>conftest.
$ac_ext
5694 cat >>conftest.
$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #define _FILE_OFFSET_BITS 64
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5714 rm -f conftest.
$ac_objext
5715 if { (ac_try
="$ac_compile"
5717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
5731 ac_cv_sys_file_offset_bits=64; break
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 ac_cv_sys_file_offset_bits=unknown
5744 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5745 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5746 case $ac_cv_sys_file_offset_bits in #(
5749 cat >>confdefs.h <<_ACEOF
5750 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5755 if test $ac_cv_sys_file_offset_bits = unknown; then
5756 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5757 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5758 if test "${ac_cv_sys_large_files+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h. */
5768 #include <sys/types.h>
5769 /* Check that off_t can represent 2**63 - 1 correctly.
5770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771 since some C++ compilers masquerading as C compilers
5772 incorrectly reject 9223372036854775807. */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775 && LARGE_OFF_T % 2147483647 == 1)
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5789 *) ac_try_echo
=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5794 grep -v '^ *+' conftest.er1
>conftest.err
5796 cat conftest.err
>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } && {
5799 test -z "$ac_c_werror_flag" ||
5800 test ! -s conftest.err
5801 } && test -s conftest.
$ac_objext; then
5802 ac_cv_sys_large_files
=no
; break
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.
$ac_ext >&5
5810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5811 cat >conftest.
$ac_ext <<_ACEOF
5814 cat confdefs.h
>>conftest.
$ac_ext
5815 cat >>conftest.
$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #define _LARGE_FILES 1
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5835 rm -f conftest.
$ac_objext
5836 if { (ac_try
="$ac_compile"
5838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 ac_cv_sys_large_files=1; break
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_sys_large_files=unknown
5865 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5866 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5867 case $ac_cv_sys_large_files in #(
5870 cat >>confdefs.h <<_ACEOF
5871 #define _LARGE_FILES $ac_cv_sys_large_files
5881 ### The standard library on x86-64 GNU/Linux distributions can
5882 ### be located in either /usr/lib64 or /usr/lib.
5883 case "${canonical}" in
5884 x86_64-*-linux-gnu* )
5885 if test -d /usr/lib64; then
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_X86_64_LIB64_DIR 1
5897 if test "${with_sound}" != "no"; then
5898 # Sound support for GNU/Linux and the free BSDs.
5899 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5900 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5901 if test "${ac_cv_header_stdc+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5923 rm -f conftest.$ac_objext
5924 if { (ac_try="$ac_compile"
5926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5927 *) ac_try_echo
=$ac_try;;
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_compile") 2>conftest.er1
5932 grep -v '^ *+' conftest.er1
>conftest.err
5934 cat conftest.err
>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest.
$ac_objext; then
5940 ac_cv_header_stdc
=yes
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.
$ac_ext >&5
5945 ac_cv_header_stdc
=no
5948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5950 if test $ac_cv_header_stdc = yes; then
5951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5952 cat >conftest.
$ac_ext <<_ACEOF
5955 cat confdefs.h
>>conftest.
$ac_ext
5956 cat >>conftest.
$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5962 $EGREP "memchr" >/dev
/null
2>&1; then
5965 ac_cv_header_stdc
=no
5971 if test $ac_cv_header_stdc = yes; then
5972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5973 cat >conftest.
$ac_ext <<_ACEOF
5976 cat confdefs.h
>>conftest.
$ac_ext
5977 cat >>conftest.
$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5983 $EGREP "free" >/dev
/null
2>&1; then
5986 ac_cv_header_stdc
=no
5992 if test $ac_cv_header_stdc = yes; then
5993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5994 if test "$cross_compiling" = yes; then
5997 cat >conftest.
$ac_ext <<_ACEOF
6000 cat confdefs.h
>>conftest.
$ac_ext
6001 cat >>conftest.
$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6005 #if ((' ' & 0x0FF) == 0x020)
6006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6009 # define ISLOWER(c) \
6010 (('a' <= (c) && (c) <= 'i') \
6011 || ('j' <= (c) && (c) <= 'r') \
6012 || ('s' <= (c) && (c) <= 'z'))
6013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6021 for (i = 0; i < 256; i++)
6022 if (XOR (islower (i), ISLOWER (i))
6023 || toupper (i) != TOUPPER (i))
6028 rm -f conftest
$ac_exeext
6029 if { (ac_try
="$ac_link"
6031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_link") 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6039 { (case "(($ac_try" in
6040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6041 *) ac_try_echo
=$ac_try;;
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_try") 2>&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6050 echo "$as_me: program exited with status $ac_status" >&5
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.
$ac_ext >&5
6055 ac_cv_header_stdc
=no
6057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6063 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6064 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6065 if test $ac_cv_header_stdc = yes; then
6067 cat >>confdefs.h
<<\_ACEOF
6068 #define STDC_HEADERS 1
6073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6083 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6084 inttypes.h stdint.h unistd.h
6086 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6089 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 cat >conftest.
$ac_ext <<_ACEOF
6095 cat confdefs.h
>>conftest.
$ac_ext
6096 cat >>conftest.
$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 $ac_includes_default
6100 #include <$ac_header>
6102 rm -f conftest.
$ac_objext
6103 if { (ac_try
="$ac_compile"
6105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compile") 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.$ac_objext; then
6119 eval "$as_ac_Header=yes"
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 eval "$as_ac_Header=no"
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 ac_res=`eval echo '${'$as_ac_Header'}'`
6130 { echo "$as_me:$LINENO: result: $ac_res" >&5
6131 echo "${ECHO_T}$ac_res" >&6; }
6132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6133 cat >>confdefs.h <<_ACEOF
6134 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6145 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6147 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 ac_res=`eval echo '${'$as_ac_Header'}'`
6155 { echo "$as_me:$LINENO: result: $ac_res" >&5
6156 echo "${ECHO_T}$ac_res" >&6; }
6158 # Is the header compilable?
6159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6161 cat >conftest.$ac_ext <<_ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167 $ac_includes_default
6168 #include <$ac_header>
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6174 *) ac_try_echo
=$ac_try;;
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6179 grep -v '^ *+' conftest.er1
>conftest.err
6181 cat conftest.err
>&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.
$ac_objext; then
6187 ac_header_compiler
=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.
$ac_ext >&5
6192 ac_header_compiler
=no
6195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6197 echo "${ECHO_T}$ac_header_compiler" >&6; }
6199 # Is the header present?
6200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6202 cat >conftest.
$ac_ext <<_ACEOF
6205 cat confdefs.h
>>conftest.
$ac_ext
6206 cat >>conftest.
$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <$ac_header>
6210 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6218 grep -v '^ *+' conftest.er1 >conftest.err
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } >/dev/null && {
6223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6226 ac_header_preproc=yes
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_header_preproc=no
6234 rm -f conftest.err conftest.$ac_ext
6235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6236 echo "${ECHO_T}$ac_header_preproc" >&6; }
6238 # So? What about this header?
6239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6245 ac_header_preproc=yes
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 eval "$as_ac_Header=\$ac_header_preproc"
6270 ac_res=`eval echo '${'$as_ac_Header'}'`
6271 { echo "$as_me:$LINENO: result: $ac_res" >&5
6272 echo "${ECHO_T}$ac_res" >&6; }
6275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6276 cat >>confdefs.h <<_ACEOF
6277 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6284 # Emulation library used on NetBSD.
6285 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6286 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6287 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 ac_check_lib_save_LIBS=$LIBS
6291 LIBS="-lossaudio $LIBS"
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6299 /* Override any GCC internal prototype to avoid an error.
6300 Use char because int might match the return type of a GCC
6301 builtin and then its argument prototype would still apply. */
6309 return _oss_ioctl ();
6314 rm -f conftest.$ac_objext conftest$ac_exeext
6315 if { (ac_try="$ac_link"
6317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6318 *) ac_try_echo
=$ac_try;;
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_link") 2>conftest.er1
6323 grep -v '^ *+' conftest.er1
>conftest.err
6325 cat conftest.err
>&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest
$ac_exeext &&
6331 $as_test_x conftest
$ac_exeext; then
6332 ac_cv_lib_ossaudio__oss_ioctl
=yes
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6337 ac_cv_lib_ossaudio__oss_ioctl
=no
6340 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6341 conftest
$ac_exeext conftest.
$ac_ext
6342 LIBS
=$ac_check_lib_save_LIBS
6344 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6345 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6346 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6355 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6356 if test "X${with_pkg_config_prog}" != X
; then
6357 PKG_CONFIG
="${with_pkg_config_prog}"
6362 if test -z "$PKG_CONFIG"; then
6363 # Extract the first word of "pkg-config", so it can be a program name with args.
6364 set dummy pkg-config
; ac_word
=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir
=.
6380 for ac_exec_ext
in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6394 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6395 if test -n "$PKG_CONFIG"; then
6396 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6397 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6406 if test "$PKG_CONFIG" = "no" ; then
6409 PKG_CONFIG_MIN_VERSION
=0.9.0
6410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6411 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6412 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6414 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6415 { echo "$as_me:$LINENO: result: yes" >&5
6416 echo "${ECHO_T}yes" >&6; }
6419 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6420 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6421 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6422 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6423 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6425 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6426 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6427 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6428 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6429 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6431 { echo "$as_me:$LINENO: result: no" >&5
6432 echo "${ECHO_T}no" >&6; }
6435 ## If we have a custom action on failure, don't print errors, but
6436 ## do set a variable so people can do so.
6437 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6444 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6445 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6449 if test $succeeded = yes; then
6455 if test $HAVE_ALSA = yes; then
6456 SAVE_CFLAGS
="$CFLAGS"
6457 SAVE_LDFLAGS
="$LDFLAGS"
6458 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6459 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6460 cat >conftest.
$ac_ext <<_ACEOF
6463 cat confdefs.h
>>conftest.
$ac_ext
6464 cat >>conftest.
$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 #include <asoundlib.h>
6470 snd_lib_error_set_handler (0);
6475 rm -f conftest.
$ac_objext
6476 if { (ac_try
="$ac_compile"
6478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_compile") 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } && {
6489 test -z "$ac_c_werror_flag" ||
6490 test ! -s conftest.err
6491 } && test -s conftest.$ac_objext; then
6492 emacs_alsa_normal=yes
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6497 emacs_alsa_normal=no
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 if test "$emacs_alsa_normal" != yes; then
6502 cat >conftest.$ac_ext <<_ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 #include <alsa/asoundlib.h>
6512 snd_lib_error_set_handler (0);
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6521 *) ac_try_echo
=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1
>conftest.err
6528 cat conftest.err
>&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest.
$ac_objext; then
6534 emacs_alsa_subdir
=yes
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.
$ac_ext >&5
6539 emacs_alsa_subdir
=no
6542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6543 if test "$emacs_alsa_subdir" != yes; then
6544 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6545 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6546 { (exit 1); exit 1; }; }
6548 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6551 CFLAGS
="$SAVE_CFLAGS"
6552 LDFLAGS
="$SAVE_LDFLAGS"
6553 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6554 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6556 cat >>confdefs.h
<<\_ACEOF
6589 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6590 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6591 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6592 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 ac_res
=`eval echo '${'$as_ac_Header'}'`
6603 { echo "$as_me:$LINENO: result: $ac_res" >&5
6604 echo "${ECHO_T}$ac_res" >&6; }
6606 # Is the header compilable?
6607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6609 cat >conftest.
$ac_ext <<_ACEOF
6612 cat confdefs.h
>>conftest.
$ac_ext
6613 cat >>conftest.
$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 $ac_includes_default
6616 #include <$ac_header>
6618 rm -f conftest.
$ac_objext
6619 if { (ac_try
="$ac_compile"
6621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_compile") 2>conftest.er1
6627 grep -v '^ *+' conftest.er1 >conftest.err
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest.$ac_objext; then
6635 ac_header_compiler=yes
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6640 ac_header_compiler=no
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6645 echo "${ECHO_T}$ac_header_compiler" >&6; }
6647 # Is the header present?
6648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <$ac_header>
6658 if { (ac_try="$ac_cpp conftest.$ac_ext"
6660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6661 *) ac_try_echo
=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6666 grep -v '^ *+' conftest.er1
>conftest.err
6668 cat conftest.err
>&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } >/dev
/null
&& {
6671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6674 ac_header_preproc
=yes
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.
$ac_ext >&5
6679 ac_header_preproc
=no
6682 rm -f conftest.err conftest.
$ac_ext
6683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684 echo "${ECHO_T}$ac_header_preproc" >&6; }
6686 # So? What about this header?
6687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6693 ac_header_preproc
=yes
6696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 eval "$as_ac_Header=\$ac_header_preproc"
6718 ac_res
=`eval echo '${'$as_ac_Header'}'`
6719 { echo "$as_me:$LINENO: result: $ac_res" >&5
6720 echo "${ECHO_T}$ac_res" >&6; }
6723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6724 cat >>confdefs.h
<<_ACEOF
6725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6733 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6734 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6735 cat >conftest.
$ac_ext <<_ACEOF
6738 cat confdefs.h
>>conftest.
$ac_ext
6739 cat >>conftest.
$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <sys/personality.h>
6745 personality (PER_LINUX32)
6750 rm -f conftest.
$ac_objext
6751 if { (ac_try
="$ac_compile"
6753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_compile") 2>conftest.er1
6759 grep -v '^ *+' conftest.er1 >conftest.err
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest.$ac_objext; then
6767 emacs_cv_personality_linux32=yes
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 emacs_cv_personality_linux32=no
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6777 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6779 if test $emacs_cv_personality_linux32 = yes; then
6781 cat >>confdefs.h <<\_ACEOF
6782 #define HAVE_PERSONALITY_LINUX32 1
6788 for ac_header in term.h
6790 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <$ac_header>
6804 if { (ac_try="$ac_cpp conftest.$ac_ext"
6806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6807 *) ac_try_echo
=$ac_try;;
6809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6812 grep -v '^ *+' conftest.er1
>conftest.err
6814 cat conftest.err
>&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev
/null
&& {
6817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6820 eval "$as_ac_Header=yes"
6822 echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.
$ac_ext >&5
6825 eval "$as_ac_Header=no"
6828 rm -f conftest.err conftest.
$ac_ext
6830 ac_res
=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6834 cat >>confdefs.h
<<_ACEOF
6835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6842 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6843 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6844 if test "${ac_cv_header_stdc+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 cat >conftest.
$ac_ext <<_ACEOF
6850 cat confdefs.h
>>conftest.
$ac_ext
6851 cat >>conftest.
$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6866 rm -f conftest.
$ac_objext
6867 if { (ac_try
="$ac_compile"
6869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_compile") 2>conftest.er1
6875 grep -v '^ *+' conftest.er1 >conftest.err
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && {
6880 test -z "$ac_c_werror_flag" ||
6881 test ! -s conftest.err
6882 } && test -s conftest.$ac_objext; then
6883 ac_cv_header_stdc=yes
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_cv_header_stdc=no
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 if test $ac_cv_header_stdc = yes; then
6894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6895 cat >conftest.$ac_ext <<_ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 $EGREP "memchr" >/dev/null 2>&1; then
6908 ac_cv_header_stdc=no
6914 if test $ac_cv_header_stdc = yes; then
6915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6926 $EGREP "free" >/dev/null 2>&1; then
6929 ac_cv_header_stdc=no
6935 if test $ac_cv_header_stdc = yes; then
6936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6937 if test "$cross_compiling" = yes; then
6940 cat >conftest.$ac_ext <<_ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6948 #if ((' ' & 0x0FF) == 0x020)
6949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6952 # define ISLOWER(c) \
6953 (('a' <= (c) && (c) <= 'i') \
6954 || ('j' <= (c) && (c) <= 'r') \
6955 || ('s' <= (c) && (c) <= 'z'))
6956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6964 for (i = 0; i < 256; i++)
6965 if (XOR (islower (i), ISLOWER (i))
6966 || toupper (i) != TOUPPER (i))
6971 rm -f conftest$ac_exeext
6972 if { (ac_try="$ac_link"
6974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6975 *) ac_try_echo
=$ac_try;;
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_link") 2>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6982 { (case "(($ac_try" in
6983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_try") 2>&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6993 echo "$as_me: program exited with status $ac_status" >&5
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_header_stdc=no
7000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7008 if test $ac_cv_header_stdc = yes; then
7010 cat >>confdefs.h <<\_ACEOF
7011 #define STDC_HEADERS 1
7016 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7017 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7018 if test "${ac_cv_header_time+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <sys/types.h>
7028 #include <sys/time.h>
7034 if ((struct tm *) 0)
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7044 *) ac_try_echo
=$ac_try;;
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7049 grep -v '^ *+' conftest.er1
>conftest.err
7051 cat conftest.err
>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.
$ac_objext; then
7057 ac_cv_header_time
=yes
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.
$ac_ext >&5
7062 ac_cv_header_time
=no
7065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7068 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7069 if test $ac_cv_header_time = yes; then
7071 cat >>confdefs.h
<<\_ACEOF
7072 #define TIME_WITH_SYS_TIME 1
7077 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7078 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7079 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 cat >conftest.
$ac_ext <<_ACEOF
7085 cat confdefs.h
>>conftest.
$ac_ext
7086 cat >>conftest.
$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 $ac_includes_default
7100 rm -f conftest.
$ac_objext
7101 if { (ac_try
="$ac_compile"
7103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7104 *) ac_try_echo=$ac_try;;
7106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7107 (eval "$ac_compile") 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest.$ac_objext; then
7117 ac_cv_have_decl_sys_siglist=yes
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 ac_cv_have_decl_sys_siglist=no
7125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7128 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7129 if test $ac_cv_have_decl_sys_siglist = yes; then
7131 cat >>confdefs.h <<_ACEOF
7132 #define HAVE_DECL_SYS_SIGLIST 1
7137 cat >>confdefs.h <<_ACEOF
7138 #define HAVE_DECL_SYS_SIGLIST 0
7145 if test $ac_cv_have_decl_sys_siglist != yes; then
7146 # For Tru64, at least:
7147 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7148 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7149 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158 $ac_includes_default
7162 #ifndef __sys_siglist
7163 (void) __sys_siglist;
7170 rm -f conftest.$ac_objext
7171 if { (ac_try="$ac_compile"
7173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7174 *) ac_try_echo
=$ac_try;;
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_compile") 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest.
$ac_objext; then
7187 ac_cv_have_decl___sys_siglist
=yes
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.
$ac_ext >&5
7192 ac_cv_have_decl___sys_siglist
=no
7195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7197 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7198 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7199 if test $ac_cv_have_decl___sys_siglist = yes; then
7201 cat >>confdefs.h
<<_ACEOF
7202 #define HAVE_DECL___SYS_SIGLIST 1
7207 cat >>confdefs.h
<<_ACEOF
7208 #define HAVE_DECL___SYS_SIGLIST 0
7215 if test $ac_cv_have_decl___sys_siglist = yes; then
7217 cat >>confdefs.h
<<\_ACEOF
7218 #define sys_siglist __sys_siglist
7223 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7224 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7225 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <sys/types.h>
7235 #include <sys/wait.h>
7237 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7240 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7248 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7253 rm -f conftest.
$ac_objext
7254 if { (ac_try
="$ac_compile"
7256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_c_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest.$ac_objext; then
7270 ac_cv_header_sys_wait_h=yes
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_cv_header_sys_wait_h=no
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7282 if test $ac_cv_header_sys_wait_h = yes; then
7284 cat >>confdefs.h <<\_ACEOF
7285 #define HAVE_SYS_WAIT_H 1
7291 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7292 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7293 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 #ifdef TIME_WITH_SYS_TIME
7303 #include <sys/time.h>
7306 #ifdef HAVE_SYS_TIME_H
7307 #include <sys/time.h>
7318 static struct utimbuf x; x.actime = x.modtime;
7323 rm -f conftest.$ac_objext
7324 if { (ac_try="$ac_compile"
7326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7327 *) ac_try_echo
=$ac_try;;
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7332 grep -v '^ *+' conftest.er1
>conftest.err
7334 cat conftest.err
>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.
$ac_objext; then
7340 emacs_cv_struct_utimbuf
=yes
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.
$ac_ext >&5
7345 emacs_cv_struct_utimbuf
=no
7348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7350 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7351 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7352 if test $emacs_cv_struct_utimbuf = yes; then
7354 cat >>confdefs.h
<<\_ACEOF
7355 #define HAVE_STRUCT_UTIMBUF 1
7360 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7361 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7362 if test "${ac_cv_type_signal+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cat >conftest.
$ac_ext <<_ACEOF
7368 cat confdefs.h
>>conftest.
$ac_ext
7369 cat >>conftest.
$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 #include <sys/types.h>
7377 return *(signal (0, 0)) (0) == 1;
7382 rm -f conftest.
$ac_objext
7383 if { (ac_try
="$ac_compile"
7385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7399 ac_cv_type_signal=int
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 ac_cv_type_signal=void
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7410 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7412 cat >>confdefs.h <<_ACEOF
7413 #define RETSIGTYPE $ac_cv_type_signal
7418 { echo "$as_me:$LINENO: checking for speed_t" >&5
7419 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7420 if test "${emacs_cv_speed_t+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #include <termios.h>
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7442 *) ac_try_echo
=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.
$ac_objext; then
7455 emacs_cv_speed_t
=yes
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.
$ac_ext >&5
7463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7465 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7466 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7467 if test $emacs_cv_speed_t = yes; then
7469 cat >>confdefs.h
<<\_ACEOF
7470 #define HAVE_SPEED_T 1
7475 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7476 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7477 if test "${emacs_cv_struct_timeval+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 cat >conftest.
$ac_ext <<_ACEOF
7483 cat confdefs.h
>>conftest.
$ac_ext
7484 cat >>conftest.
$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #ifdef TIME_WITH_SYS_TIME
7487 #include <sys/time.h>
7490 #ifdef HAVE_SYS_TIME_H
7491 #include <sys/time.h>
7499 static struct timeval x; x.tv_sec = x.tv_usec;
7504 rm -f conftest.
$ac_objext
7505 if { (ac_try
="$ac_compile"
7507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7513 grep -v '^ *+' conftest.er1 >conftest.err
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 emacs_cv_struct_timeval=yes
7523 echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 emacs_cv_struct_timeval=no
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7532 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7533 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7534 if test $emacs_cv_struct_timeval = yes; then
7536 cat >>confdefs.h <<\_ACEOF
7537 #define HAVE_TIMEVAL 1
7542 { echo "$as_me:$LINENO: checking for struct exception" >&5
7543 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7544 if test "${emacs_cv_struct_exception+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7557 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7566 *) ac_try_echo
=$ac_try;;
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7571 grep -v '^ *+' conftest.er1
>conftest.err
7573 cat conftest.err
>&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.
$ac_objext; then
7579 emacs_cv_struct_exception
=yes
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.
$ac_ext >&5
7584 emacs_cv_struct_exception
=no
7587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7589 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7590 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7591 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7592 if test $emacs_cv_struct_exception != yes; then
7594 cat >>confdefs.h
<<\_ACEOF
7595 #define NO_MATHERR 1
7601 for ac_header
in sys
/socket.h
7603 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 ac_res
=`eval echo '${'$as_ac_Header'}'`
7611 { echo "$as_me:$LINENO: result: $ac_res" >&5
7612 echo "${ECHO_T}$ac_res" >&6; }
7614 # Is the header compilable?
7615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7617 cat >conftest.
$ac_ext <<_ACEOF
7620 cat confdefs.h
>>conftest.
$ac_ext
7621 cat >>conftest.
$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 $ac_includes_default
7624 #include <$ac_header>
7626 rm -f conftest.
$ac_objext
7627 if { (ac_try
="$ac_compile"
7629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_compile") 2>conftest.er1
7635 grep -v '^ *+' conftest.er1 >conftest.err
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && {
7640 test -z "$ac_c_werror_flag" ||
7641 test ! -s conftest.err
7642 } && test -s conftest.$ac_objext; then
7643 ac_header_compiler=yes
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_header_compiler=no
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7653 echo "${ECHO_T}$ac_header_compiler" >&6; }
7655 # Is the header present?
7656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7664 #include <$ac_header>
7666 if { (ac_try="$ac_cpp conftest.$ac_ext"
7668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7669 *) ac_try_echo
=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7674 grep -v '^ *+' conftest.er1
>conftest.err
7676 cat conftest.err
>&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } >/dev
/null
&& {
7679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7682 ac_header_preproc
=yes
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.
$ac_ext >&5
7687 ac_header_preproc
=no
7690 rm -f conftest.err conftest.
$ac_ext
7691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7692 echo "${ECHO_T}$ac_header_preproc" >&6; }
7694 # So? What about this header?
7695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7701 ac_header_preproc
=yes
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7721 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 eval "$as_ac_Header=\$ac_header_preproc"
7726 ac_res
=`eval echo '${'$as_ac_Header'}'`
7727 { echo "$as_me:$LINENO: result: $ac_res" >&5
7728 echo "${ECHO_T}$ac_res" >&6; }
7731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7732 cat >>confdefs.h
<<_ACEOF
7733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7741 for ac_header
in net
/if.h
7743 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7746 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 #if HAVE_SYS_SOCKET_H
7757 #include <sys/socket.h>
7760 #include <$ac_header>
7762 rm -f conftest.
$ac_objext
7763 if { (ac_try
="$ac_compile"
7765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_compile") 2>conftest.er1
7771 grep -v '^ *+' conftest.er1 >conftest.err
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } && {
7776 test -z "$ac_c_werror_flag" ||
7777 test ! -s conftest.err
7778 } && test -s conftest.$ac_objext; then
7779 eval "$as_ac_Header=yes"
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 eval "$as_ac_Header=no"
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 ac_res=`eval echo '${'$as_ac_Header'}'`
7790 { echo "$as_me:$LINENO: result: $ac_res" >&5
7791 echo "${ECHO_T}$ac_res" >&6; }
7792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7793 cat >>confdefs.h <<_ACEOF
7794 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7802 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7803 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7804 if test "${ac_cv_struct_tm+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 #include <sys/types.h>
7820 int *p = &tm.tm_sec;
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7830 *) ac_try_echo
=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_compile") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1
>conftest.err
7837 cat conftest.err
>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest.
$ac_objext; then
7843 ac_cv_struct_tm
=time.h
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.
$ac_ext >&5
7848 ac_cv_struct_tm
=sys
/time.h
7851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7853 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7854 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7855 if test $ac_cv_struct_tm = sys
/time.h
; then
7857 cat >>confdefs.h
<<\_ACEOF
7858 #define TM_IN_SYS_TIME 1
7863 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7864 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7865 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 cat >conftest.
$ac_ext <<_ACEOF
7871 cat confdefs.h
>>conftest.
$ac_ext
7872 cat >>conftest.
$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <sys/types.h>
7875 #include <$ac_cv_struct_tm>
7881 static struct tm ac_aggr;
7882 if (ac_aggr.tm_zone)
7888 rm -f conftest.
$ac_objext
7889 if { (ac_try
="$ac_compile"
7891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.$ac_objext; then
7905 ac_cv_member_struct_tm_tm_zone=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7916 #include <sys/types.h>
7917 #include <$ac_cv_struct_tm>
7923 static struct tm ac_aggr;
7924 if (sizeof ac_aggr.tm_zone)
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7934 *) ac_try_echo
=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1
>conftest.err
7941 cat conftest.err
>&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.
$ac_objext; then
7947 ac_cv_member_struct_tm_tm_zone
=yes
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.
$ac_ext >&5
7952 ac_cv_member_struct_tm_tm_zone
=no
7955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7960 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7961 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7962 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7964 cat >>confdefs.h
<<_ACEOF
7965 #define HAVE_STRUCT_TM_TM_ZONE 1
7971 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7973 cat >>confdefs.h
<<\_ACEOF
7974 #define HAVE_TM_ZONE 1
7978 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7979 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7980 if test "${ac_cv_have_decl_tzname+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 cat >conftest.
$ac_ext <<_ACEOF
7986 cat confdefs.h
>>conftest.
$ac_ext
7987 cat >>conftest.
$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
8002 rm -f conftest.
$ac_objext
8003 if { (ac_try
="$ac_compile"
8005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_cv_have_decl_tzname=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 ac_cv_have_decl_tzname=no
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8030 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8031 if test $ac_cv_have_decl_tzname = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034 #define HAVE_DECL_TZNAME 1
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_DECL_TZNAME 0
8047 { echo "$as_me:$LINENO: checking for tzname" >&5
8048 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8049 if test "${ac_cv_var_tzname+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8059 #if !HAVE_DECL_TZNAME
8060 extern char *tzname[];
8066 return tzname[0][0];
8071 rm -f conftest.$ac_objext conftest$ac_exeext
8072 if { (ac_try="$ac_link"
8074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8075 *) ac_try_echo
=$ac_try;;
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_link") 2>conftest.er1
8080 grep -v '^ *+' conftest.er1
>conftest.err
8082 cat conftest.err
>&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } && {
8085 test -z "$ac_c_werror_flag" ||
8086 test ! -s conftest.err
8087 } && test -s conftest
$ac_exeext &&
8088 $as_test_x conftest
$ac_exeext; then
8089 ac_cv_var_tzname
=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.
$ac_ext >&5
8097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8098 conftest
$ac_exeext conftest.
$ac_ext
8100 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8101 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8102 if test $ac_cv_var_tzname = yes; then
8104 cat >>confdefs.h
<<\_ACEOF
8105 #define HAVE_TZNAME 1
8111 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8112 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8113 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.
$ac_ext <<_ACEOF
8119 cat confdefs.h
>>conftest.
$ac_ext
8120 cat >>conftest.
$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8127 static struct tm ac_aggr;
8128 if (ac_aggr.tm_gmtoff)
8134 rm -f conftest.
$ac_objext
8135 if { (ac_try
="$ac_compile"
8137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8143 grep -v '^ *+' conftest.er1 >conftest.err
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.$ac_objext; then
8151 ac_cv_member_struct_tm_tm_gmtoff=yes
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 cat >conftest.$ac_ext <<_ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8167 static struct tm ac_aggr;
8168 if (sizeof ac_aggr.tm_gmtoff)
8174 rm -f conftest.$ac_objext
8175 if { (ac_try="$ac_compile"
8177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8178 *) ac_try_echo
=$ac_try;;
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181 (eval "$ac_compile") 2>conftest.er1
8183 grep -v '^ *+' conftest.er1
>conftest.err
8185 cat conftest.err
>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } && {
8188 test -z "$ac_c_werror_flag" ||
8189 test ! -s conftest.err
8190 } && test -s conftest.
$ac_objext; then
8191 ac_cv_member_struct_tm_tm_gmtoff
=yes
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.
$ac_ext >&5
8196 ac_cv_member_struct_tm_tm_gmtoff
=no
8199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8205 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8206 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8208 cat >>confdefs.h
<<\_ACEOF
8209 #define HAVE_TM_GMTOFF 1
8214 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8215 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8216 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 cat >conftest.
$ac_ext <<_ACEOF
8222 cat confdefs.h
>>conftest.
$ac_ext
8223 cat >>conftest.
$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 #if HAVE_SYS_SOCKET_H
8227 #include <sys/socket.h>
8236 static struct ifreq ac_aggr;
8237 if (ac_aggr.ifr_flags)
8243 rm -f conftest.
$ac_objext
8244 if { (ac_try
="$ac_compile"
8246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_compile") 2>conftest.er1
8252 grep -v '^ *+' conftest.er1 >conftest.err
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && {
8257 test -z "$ac_c_werror_flag" ||
8258 test ! -s conftest.err
8259 } && test -s conftest.$ac_objext; then
8260 ac_cv_member_struct_ifreq_ifr_flags=yes
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 $ac_includes_default
8272 #if HAVE_SYS_SOCKET_H
8273 #include <sys/socket.h>
8282 static struct ifreq ac_aggr;
8283 if (sizeof ac_aggr.ifr_flags)
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8293 *) ac_try_echo
=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1
>conftest.err
8300 cat conftest.err
>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.
$ac_objext; then
8306 ac_cv_member_struct_ifreq_ifr_flags
=yes
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8311 ac_cv_member_struct_ifreq_ifr_flags
=no
8314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8319 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8320 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8321 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8323 cat >>confdefs.h
<<_ACEOF
8324 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8329 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8330 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8331 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 cat >conftest.
$ac_ext <<_ACEOF
8337 cat confdefs.h
>>conftest.
$ac_ext
8338 cat >>conftest.
$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8340 $ac_includes_default
8341 #if HAVE_SYS_SOCKET_H
8342 #include <sys/socket.h>
8351 static struct ifreq ac_aggr;
8352 if (ac_aggr.ifr_hwaddr)
8358 rm -f conftest.
$ac_objext
8359 if { (ac_try
="$ac_compile"
8361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8367 grep -v '^ *+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 #if HAVE_SYS_SOCKET_H
8388 #include <sys/socket.h>
8397 static struct ifreq ac_aggr;
8398 if (sizeof ac_aggr.ifr_hwaddr)
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8408 *) ac_try_echo
=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1
>conftest.err
8415 cat conftest.err
>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.
$ac_objext; then
8421 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.
$ac_ext >&5
8426 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8434 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8435 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8436 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8438 cat >>confdefs.h
<<_ACEOF
8439 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8444 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8445 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8446 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 cat >conftest.
$ac_ext <<_ACEOF
8452 cat confdefs.h
>>conftest.
$ac_ext
8453 cat >>conftest.
$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 #if HAVE_SYS_SOCKET_H
8457 #include <sys/socket.h>
8466 static struct ifreq ac_aggr;
8467 if (ac_aggr.ifr_netmask)
8473 rm -f conftest.
$ac_objext
8474 if { (ac_try
="$ac_compile"
8476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_compile") 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && {
8487 test -z "$ac_c_werror_flag" ||
8488 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then
8490 ac_cv_member_struct_ifreq_ifr_netmask=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8502 #if HAVE_SYS_SOCKET_H
8503 #include <sys/socket.h>
8512 static struct ifreq ac_aggr;
8513 if (sizeof ac_aggr.ifr_netmask)
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8523 *) ac_try_echo
=$ac_try;;
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8528 grep -v '^ *+' conftest.er1
>conftest.err
8530 cat conftest.err
>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_c_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest.
$ac_objext; then
8536 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8541 ac_cv_member_struct_ifreq_ifr_netmask
=no
8544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8550 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8551 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8553 cat >>confdefs.h
<<_ACEOF
8554 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8559 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8560 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8561 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 cat >conftest.
$ac_ext <<_ACEOF
8567 cat confdefs.h
>>conftest.
$ac_ext
8568 cat >>conftest.
$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 #if HAVE_SYS_SOCKET_H
8572 #include <sys/socket.h>
8581 static struct ifreq ac_aggr;
8582 if (ac_aggr.ifr_broadaddr)
8588 rm -f conftest.
$ac_objext
8589 if { (ac_try
="$ac_compile"
8591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8605 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8627 static struct ifreq ac_aggr;
8628 if (sizeof ac_aggr.ifr_broadaddr)
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8638 *) ac_try_echo
=$ac_try;;
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_compile") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1
>conftest.err
8645 cat conftest.err
>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest.
$ac_objext; then
8651 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.
$ac_ext >&5
8656 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8665 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8666 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8668 cat >>confdefs.h
<<_ACEOF
8669 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8674 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8675 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8676 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 cat >conftest.
$ac_ext <<_ACEOF
8682 cat confdefs.h
>>conftest.
$ac_ext
8683 cat >>conftest.
$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8685 $ac_includes_default
8686 #if HAVE_SYS_SOCKET_H
8687 #include <sys/socket.h>
8696 static struct ifreq ac_aggr;
8697 if (ac_aggr.ifr_addr)
8703 rm -f conftest.
$ac_objext
8704 if { (ac_try
="$ac_compile"
8706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1 >conftest.err
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_addr=yes
8722 echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8725 cat >conftest.$ac_ext <<_ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h. */
8731 $ac_includes_default
8732 #if HAVE_SYS_SOCKET_H
8733 #include <sys/socket.h>
8742 static struct ifreq ac_aggr;
8743 if (sizeof ac_aggr.ifr_addr)
8749 rm -f conftest.$ac_objext
8750 if { (ac_try="$ac_compile"
8752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8753 *) ac_try_echo
=$ac_try;;
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8758 grep -v '^ *+' conftest.er1
>conftest.err
8760 cat conftest.err
>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.
$ac_objext; then
8766 ac_cv_member_struct_ifreq_ifr_addr
=yes
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.
$ac_ext >&5
8771 ac_cv_member_struct_ifreq_ifr_addr
=no
8774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8780 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8781 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8783 cat >>confdefs.h
<<_ACEOF
8784 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8792 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8793 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8794 if test "$ac_cv_prog_cc_c89" != no
; then
8795 { echo "$as_me:$LINENO: result: yes" >&5
8796 echo "${ECHO_T}yes" >&6; }
8798 cat >>confdefs.h
<<\_ACEOF
8799 #define PROTOTYPES 1
8803 cat >>confdefs.h
<<\_ACEOF
8804 #define __PROTOTYPES 1
8808 { echo "$as_me:$LINENO: result: no" >&5
8809 echo "${ECHO_T}no" >&6; }
8812 { echo "$as_me:$LINENO: checking for working volatile" >&5
8813 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8814 if test "${ac_cv_c_volatile+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 cat >conftest.
$ac_ext <<_ACEOF
8820 cat confdefs.h
>>conftest.
$ac_ext
8821 cat >>conftest.
$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8829 int * volatile y = (int *) 0;
8835 rm -f conftest.
$ac_objext
8836 if { (ac_try
="$ac_compile"
8838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_compile") 2>conftest.er1
8844 grep -v '^ *+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } && {
8849 test -z "$ac_c_werror_flag" ||
8850 test ! -s conftest.err
8851 } && test -s conftest.$ac_objext; then
8852 ac_cv_c_volatile=yes
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8863 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8864 if test $ac_cv_c_volatile = no; then
8866 cat >>confdefs.h <<\_ACEOF
8872 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8873 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8874 if test "${ac_cv_c_const+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8887 /* FIXME: Include the comments suggested by Paul. */
8889 /* Ultrix mips cc rejects this. */
8890 typedef int charset[2];
8892 /* SunOS 4.1.1 cc rejects this. */
8893 char const *const *pcpcc;
8895 /* NEC SVR4.0.2 mips cc rejects this. */
8896 struct point {int x, y;};
8897 static struct point const zero = {0,0};
8898 /* AIX XL C 1.02.0.0 rejects this.
8899 It does not let you subtract one const X* pointer from another in
8900 an arm of an if-expression whose if-part is not a constant
8902 const char *g = "string";
8903 pcpcc = &g + (g ? g-g : 0);
8904 /* HPUX 7.0 cc rejects these. */
8906 ppc = (char**) pcpcc;
8907 pcpcc = (char const *const *) ppc;
8908 { /* SCO 3.2v4 cc rejects this. */
8910 char const *s = 0 ? (char *) 0 : (char const *) 0;
8915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8917 const int *foo = &x[0];
8920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8921 typedef const int *iptr;
8925 { /* AIX XL C 1.02.0.0 rejects this saying
8926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8927 struct s { int j; const int *ap[3]; };
8928 struct s *b; b->j = 5;
8930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8934 return !cs[0] && !zero.x;
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8945 *) ac_try_echo
=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1
>conftest.err
8952 cat conftest.err
>&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.
$ac_objext; then
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8968 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8969 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8970 if test $ac_cv_c_const = no
; then
8972 cat >>confdefs.h
<<\_ACEOF
8978 { echo "$as_me:$LINENO: checking for void * support" >&5
8979 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8980 if test "${emacs_cv_void_star+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.
$ac_ext <<_ACEOF
8986 cat confdefs.h
>>conftest.
$ac_ext
8987 cat >>conftest.
$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8998 rm -f conftest.
$ac_objext
8999 if { (ac_try
="$ac_compile"
9001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
9015 emacs_cv_void_star=yes
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 emacs_cv_void_star=no
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9025 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9026 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9027 if test $emacs_cv_void_star = yes; then
9028 cat >>confdefs.h <<\_ACEOF
9029 #define POINTER_TYPE void
9033 cat >>confdefs.h <<\_ACEOF
9034 #define POINTER_TYPE char
9043 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9044 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9045 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9046 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 cat >conftest.make <<\_ACEOF
9052 @echo '@@@%%%=$(MAKE)=@@@%%%'
9054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9055 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9057 eval ac_cv_prog_make_${ac_make}_set=yes;;
9059 eval ac_cv_prog_make_${ac_make}_set=no;;
9063 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9064 { echo "$as_me:$LINENO: result: yes" >&5
9065 echo "${ECHO_T}yes" >&6; }
9068 { echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6; }
9070 SET_MAKE="MAKE=${MAKE-make}"
9074 { echo "$as_me:$LINENO: checking for long file names" >&5
9075 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9076 if test "${ac_cv_sys_long_file_names+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 ac_cv_sys_long_file_names=yes
9080 # Test for long file names in all the places we know might matter:
9081 # . the current directory, where building will happen
9082 # $prefix/lib where we will be installing things
9083 # $exec_prefix/lib likewise
9084 # $TMPDIR if set, where it might want to write temporary files
9085 # /tmp where it might want to write temporary files
9088 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9089 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9090 # in the usual case where exec_prefix is '${prefix}'.
9092 . | /* | ?:[\\/]*) ;; #(
9095 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9096 ac_xdir=$ac_dir/cf$$
9097 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9098 ac_tf1=$ac_xdir/conftest9012345
9099 ac_tf2=$ac_xdir/conftest9012346
9100 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9101 ac_cv_sys_long_file_names=no
9102 rm -f -r "$ac_xdir" 2>/dev/null
9103 test $ac_cv_sys_long_file_names = no && break
9106 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9107 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9108 if test $ac_cv_sys_long_file_names = yes; then
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_LONG_FILE_NAMES 1
9117 #### Choose a window system.
9119 { echo "$as_me:$LINENO: checking for X" >&5
9120 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9123 # Check whether --with-x was given.
9124 if test "${with_x+set}" = set; then
9128 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9129 if test "x$with_x" = xno; then
9130 # The user explicitly disabled X.
9133 case $x_includes,$x_libraries in #(
9134 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9135 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9136 { (exit 1); exit 1; }; };; #(
9137 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 # One or both of the vars are not set, and there is no cached value.
9141 ac_x_includes=no ac_x_libraries=no
9142 rm -f -r conftest.dir
9143 if mkdir conftest.dir; then
9145 cat >Imakefile <<'_ACEOF'
9147 @echo incroot='${INCROOT}'
9149 @echo usrlibdir='${USRLIBDIR}'
9151 @echo libdir='${LIBDIR}'
9153 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9155 for ac_var in incroot usrlibdir libdir; do
9156 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9159 for ac_extension in a so sl; do
9160 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9161 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9162 ac_im_usrlibdir=$ac_im_libdir; break
9165 # Screen out bogus values from the imake configuration. They are
9166 # bogus both because they are the default anyway, and because
9167 # using them would break gcc on systems where it needs fixed includes.
9168 case $ac_im_incroot in
9169 /usr/include) ac_x_includes= ;;
9170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9172 case $ac_im_usrlibdir in
9174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9178 rm -f -r conftest.dir
9181 # Standard set of common directories for X headers.
9182 # Check X11 before X11Rn because it is often a symlink to the current release.
9194 /usr/local/X11/include
9195 /usr/local/X11R6/include
9196 /usr/local/X11R5/include
9197 /usr/local/X11R4/include
9199 /usr/local/include/X11
9200 /usr/local/include/X11R6
9201 /usr/local/include/X11R5
9202 /usr/local/include/X11R4
9206 /usr/XFree86/include/X11
9210 /usr/unsupported/include
9212 /usr/local/x11r5/include
9213 /usr/lpp/Xamples/include
9215 /usr/openwin/include
9216 /usr/openwin/share/include'
9218 if test "$ac_x_includes" = no; then
9219 # Guess where to find include files, by looking for Xlib.h.
9220 # First, try using that file with no special directory specified.
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 #include <X11/Xlib.h>
9229 if { (ac_try="$ac_cpp conftest.$ac_ext"
9231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9232 *) ac_try_echo
=$ac_try;;
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9237 grep -v '^ *+' conftest.er1
>conftest.err
9239 cat conftest.err
>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } >/dev
/null
&& {
9242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9243 test ! -s conftest.err
9245 # We can compile using X headers with no special include directory.
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.
$ac_ext >&5
9251 for ac_dir
in $ac_x_header_dirs; do
9252 if test -r "$ac_dir/X11/Xlib.h"; then
9253 ac_x_includes
=$ac_dir
9259 rm -f conftest.err conftest.
$ac_ext
9260 fi # $ac_x_includes = no
9262 if test "$ac_x_libraries" = no
; then
9263 # Check for the libraries.
9264 # See if we find them without any special options.
9265 # Don't add to $LIBS permanently.
9268 cat >conftest.
$ac_ext <<_ACEOF
9271 cat confdefs.h
>>conftest.
$ac_ext
9272 cat >>conftest.
$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 #include <X11/Xlib.h>
9283 rm -f conftest.
$ac_objext conftest
$ac_exeext
9284 if { (ac_try
="$ac_link"
9286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_link") 2>conftest.er1
9292 grep -v '^ *+' conftest.er1 >conftest.err
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && {
9297 test -z "$ac_c_werror_flag" ||
9298 test ! -s conftest.err
9299 } && test -s conftest$ac_exeext &&
9300 $as_test_x conftest$ac_exeext; then
9302 # We can link X programs with no special library path.
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9309 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9311 # Don't even attempt the hair of trying to link an X program!
9312 for ac_extension in a so sl; do
9313 if test -r "$ac_dir/libX11.$ac_extension"; then
9314 ac_x_libraries=$ac_dir
9321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9322 conftest$ac_exeext conftest.$ac_ext
9323 fi # $ac_x_libraries = no
9325 case $ac_x_includes,$ac_x_libraries in #(
9327 # Didn't find X, or a directory has "'" in its name.
9328 ac_cv_have_x="have_x=no";; #(
9330 # Record where we found X for the cache.
9331 ac_cv_have_x="have_x=yes\
9332 ac_x_includes='$ac_x_includes'\
9333 ac_x_libraries='$ac_x_libraries'"
9339 eval "$ac_cv_have_x"
9342 if test "$have_x" != yes; then
9343 { echo "$as_me:$LINENO: result: $have_x" >&5
9344 echo "${ECHO_T}$have_x" >&6; }
9347 # If each of the values was on the command line, it overrides each guess.
9348 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9349 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9350 # Update the cache value to reflect the command line values.
9351 ac_cv_have_x="have_x=yes\
9352 ac_x_includes='$x_includes'\
9353 ac_x_libraries='$x_libraries'"
9354 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9355 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9358 if test "$no_x" = yes; then
9364 if test "${x_libraries}" != NONE; then
9365 if test -n "${x_libraries}"; then
9366 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9367 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9369 x_default_search_path=""
9370 x_search_path=${x_libraries}
9371 if test -z "${x_search_path}"; then
9372 x_search_path=/usr/lib
9374 for x_library in `echo ${x_search_path}: | \
9375 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9377 ${x_library}/X11/%L/%T/%N%C%S:\
9378 ${x_library}/X11/%l/%T/%N%C%S:\
9379 ${x_library}/X11/%T/%N%C%S:\
9380 ${x_library}/X11/%L/%T/%N%S:\
9381 ${x_library}/X11/%l/%T/%N%S:\
9382 ${x_library}/X11/%T/%N%S"
9383 if test x"${x_default_search_path}" = x; then
9384 x_default_search_path=${x_search_path}
9386 x_default_search_path="${x_search_path}:${x_default_search_path}"
9390 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9391 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9394 if test x"${x_includes}" = x; then
9395 bitmapdir=/usr/include/X11/bitmaps
9397 # accumulate include directories that have X11 bitmap subdirectories
9399 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9400 if test -d "${bmd}/X11/bitmaps"; then
9401 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9403 if test -d "${bmd}/bitmaps"; then
9404 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9407 if test ${bmd_acc} != "dummyval"; then
9408 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9413 if test "${with_carbon}" != no; then
9414 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9415 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9416 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9417 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9421 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9423 # Is the header compilable?
9424 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9425 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9433 #include <Carbon/Carbon.h>
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9439 *) ac_try_echo
=$ac_try;;
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_compile") 2>conftest.er1
9444 grep -v '^ *+' conftest.er1
>conftest.err
9446 cat conftest.err
>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && {
9449 test -z "$ac_c_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest.
$ac_objext; then
9452 ac_header_compiler
=yes
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.
$ac_ext >&5
9457 ac_header_compiler
=no
9460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9462 echo "${ECHO_T}$ac_header_compiler" >&6; }
9464 # Is the header present?
9465 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9466 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9467 cat >conftest.
$ac_ext <<_ACEOF
9470 cat confdefs.h
>>conftest.
$ac_ext
9471 cat >>conftest.
$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 #include <Carbon/Carbon.h>
9475 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9478 *) ac_try_echo=$ac_try;;
9480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null && {
9488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9491 ac_header_preproc=yes
9493 echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9496 ac_header_preproc=no
9499 rm -f conftest.err conftest.$ac_ext
9500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9501 echo "${ECHO_T}$ac_header_preproc" >&6; }
9503 # So? What about this header?
9504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9506 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9507 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9509 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9510 ac_header_preproc=yes
9513 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9514 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9516 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9518 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9520 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9522 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9524 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9528 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9529 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9530 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9535 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9536 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9539 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9545 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9546 if test "${with_carbon+set}" != set \
9547 && test "${carbon_appdir_x+set}" != set; then
9548 for var in with_x with_x_toolkit with_gtk with_xim \
9549 with_xpm with_jpeg with_tiff with_gif with_png; do
9550 if eval test \"\${$var+set}\" = set; then
9557 if test "${HAVE_CARBON}" = yes; then
9561 case "${window_system}" in
9565 case "${with_x_toolkit}" in
9566 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9567 motif ) USE_X_TOOLKIT=MOTIF ;;
9569 USE_X_TOOLKIT=none ;;
9570 no ) USE_X_TOOLKIT=none ;;
9572 if test x"$with_gtk" = xyes; then
9587 ### If we're using X11, we should use the X menu package.
9590 yes ) HAVE_MENUS=yes ;;
9593 if test "${opsys}" = "hpux9"; then
9594 case "${x_libraries}" in
9596 opsysfile="s/hpux9-x11r4.h"
9601 if test "${opsys}" = "hpux9shr"; then
9602 case "${x_libraries}" in
9604 opsysfile="s/hpux9shxr4.h"
9609 ### Compute the unexec source name from the object name.
9610 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9612 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9613 # Assume not, until told otherwise.
9616 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9617 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9618 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9629 #define malloc_get_state innocuous_malloc_get_state
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char malloc_get_state (); below.
9633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 <limits.h> exists even on freestanding compilers. */
9637 # include <limits.h>
9639 # include <assert.h>
9642 #undef malloc_get_state
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9650 char malloc_get_state ();
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9661 return malloc_get_state ();
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9670 *) ac_try_echo
=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1
>conftest.err
9677 cat conftest.err
>&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest
$ac_exeext &&
9683 $as_test_x conftest
$ac_exeext; then
9684 ac_cv_func_malloc_get_state
=yes
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.
$ac_ext >&5
9689 ac_cv_func_malloc_get_state
=no
9692 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9693 conftest
$ac_exeext conftest.
$ac_ext
9695 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9696 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9697 if test $ac_cv_func_malloc_get_state = yes; then
9703 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9704 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9705 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.
$ac_ext <<_ACEOF
9711 cat confdefs.h
>>conftest.
$ac_ext
9712 cat >>conftest.
$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9716 #define malloc_set_state innocuous_malloc_set_state
9718 /* System header to define __stub macros and hopefully few prototypes,
9719 which can conflict with char malloc_set_state (); below.
9720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9721 <limits.h> exists even on freestanding compilers. */
9724 # include <limits.h>
9726 # include <assert.h>
9729 #undef malloc_set_state
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9737 char malloc_set_state ();
9738 /* The GNU C library defines this for functions which it implements
9739 to always fail with ENOSYS. Some functions are actually named
9740 something starting with __ and the normal name is an alias. */
9741 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9748 return malloc_set_state ();
9753 rm -f conftest.
$ac_objext conftest
$ac_exeext
9754 if { (ac_try
="$ac_link"
9756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_link") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext &&
9770 $as_test_x conftest$ac_exeext; then
9771 ac_cv_func_malloc_set_state=yes
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_cv_func_malloc_set_state=no
9779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9780 conftest$ac_exeext conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9783 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9784 if test $ac_cv_func_malloc_set_state = yes; then
9790 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9791 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9792 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 extern void (* __after_morecore_hook)();
9805 __after_morecore_hook = 0
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9814 *) ac_try_echo
=$ac_try;;
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
9819 grep -v '^ *+' conftest.er1
>conftest.err
9821 cat conftest.err
>&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } && {
9824 test -z "$ac_c_werror_flag" ||
9825 test ! -s conftest.err
9826 } && test -s conftest
$ac_exeext &&
9827 $as_test_x conftest
$ac_exeext; then
9828 emacs_cv_var___after_morecore_hook
=yes
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.
$ac_ext >&5
9833 emacs_cv_var___after_morecore_hook
=no
9836 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9837 conftest
$ac_exeext conftest.
$ac_ext
9839 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9840 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9841 if test $emacs_cv_var___after_morecore_hook = no
; then
9844 if test "${system_malloc}" = "yes"; then
9847 (The GNU allocators don't work with this system configuration.)"
9849 if test "$doug_lea_malloc" = "yes" ; then
9850 if test "$GNU_MALLOC" = yes ; then
9852 (Using Doug Lea's new malloc from the GNU C Library.)"
9855 cat >>confdefs.h
<<\_ACEOF
9856 #define DOUG_LEA_MALLOC 1
9861 if test x
"${REL_ALLOC}" = x
; then
9862 REL_ALLOC
=${GNU_MALLOC}
9868 for ac_header
in stdlib.h unistd.h
9870 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9871 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9874 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 ac_res
=`eval echo '${'$as_ac_Header'}'`
9878 { echo "$as_me:$LINENO: result: $ac_res" >&5
9879 echo "${ECHO_T}$ac_res" >&6; }
9881 # Is the header compilable?
9882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9884 cat >conftest.
$ac_ext <<_ACEOF
9887 cat confdefs.h
>>conftest.
$ac_ext
9888 cat >>conftest.
$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 $ac_includes_default
9891 #include <$ac_header>
9893 rm -f conftest.
$ac_objext
9894 if { (ac_try
="$ac_compile"
9896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_compile") 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest.$ac_objext; then
9910 ac_header_compiler=yes
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 ac_header_compiler=no
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9920 echo "${ECHO_T}$ac_header_compiler" >&6; }
9922 # Is the header present?
9923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 #include <$ac_header>
9933 if { (ac_try="$ac_cpp conftest.$ac_ext"
9935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9936 *) ac_try_echo
=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1
>conftest.err
9943 cat conftest.err
>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } >/dev
/null
&& {
9946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9949 ac_header_preproc
=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.
$ac_ext >&5
9954 ac_header_preproc
=no
9957 rm -f conftest.err conftest.
$ac_ext
9958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9959 echo "${ECHO_T}$ac_header_preproc" >&6; }
9961 # So? What about this header?
9962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9968 ac_header_preproc
=yes
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9988 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 eval "$as_ac_Header=\$ac_header_preproc"
9993 ac_res
=`eval echo '${'$as_ac_Header'}'`
9994 { echo "$as_me:$LINENO: result: $ac_res" >&5
9995 echo "${ECHO_T}$ac_res" >&6; }
9998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9999 cat >>confdefs.h
<<_ACEOF
10000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10008 for ac_func
in getpagesize
10010 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10013 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 cat >conftest.
$ac_ext <<_ACEOF
10019 cat confdefs.h
>>conftest.
$ac_ext
10020 cat >>conftest.
$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10024 #define $ac_func innocuous_$ac_func
10026 /* System header to define __stub macros and hopefully few prototypes,
10027 which can conflict with char $ac_func (); below.
10028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10029 <limits.h> exists even on freestanding compilers. */
10032 # include <limits.h>
10034 # include <assert.h>
10039 /* Override any GCC internal prototype to avoid an error.
10040 Use char because int might match the return type of a GCC
10041 builtin and then its argument prototype would still apply. */
10046 /* The GNU C library defines this for functions which it implements
10047 to always fail with ENOSYS. Some functions are actually named
10048 something starting with __ and the normal name is an alias. */
10049 #if defined __stub_$ac_func || defined __stub___$ac_func
10056 return $ac_func ();
10061 rm -f conftest.
$ac_objext conftest
$ac_exeext
10062 if { (ac_try
="$ac_link"
10063 case "(($ac_try" in
10064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_link") 2>conftest.er1
10070 grep -v '^ *+' conftest.er1 >conftest.err
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest$ac_exeext &&
10078 $as_test_x conftest$ac_exeext; then
10079 eval "$as_ac_var=yes"
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 eval "$as_ac_var=no"
10087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10088 conftest$ac_exeext conftest.$ac_ext
10090 ac_res=`eval echo '${'$as_ac_var'}'`
10091 { echo "$as_me:$LINENO: result: $ac_res" >&5
10092 echo "${ECHO_T}$ac_res" >&6; }
10093 if test `eval echo '${'$as_ac_var'}'` = yes; then
10094 cat >>confdefs.h <<_ACEOF
10095 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10101 { echo "$as_me:$LINENO: checking for working mmap" >&5
10102 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10103 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 if test "$cross_compiling" = yes; then
10107 ac_cv_func_mmap_fixed_mapped=no
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 $ac_includes_default
10116 /* malloc might have been renamed as rpl_malloc. */
10119 /* Thanks to Mike Haertel and Jim Avera for this test.
10120 Here is a matrix of mmap possibilities:
10121 mmap private not fixed
10122 mmap private fixed at somewhere currently unmapped
10123 mmap private fixed at somewhere already mapped
10124 mmap shared not fixed
10125 mmap shared fixed at somewhere currently unmapped
10126 mmap shared fixed at somewhere already mapped
10127 For private mappings, we should verify that changes cannot be read()
10128 back from the file, nor mmap's back from the file at a different
10129 address. (There have been systems where private was not correctly
10130 implemented like the infamous i386 svr4.0, and systems where the
10131 VM page cache was not coherent with the file system buffer cache
10132 like early versions of FreeBSD and possibly contemporary NetBSD.)
10133 For shared mappings, we should conversely verify that changes get
10134 propagated back to all the places they're supposed to be.
10136 Grep wants private fixed already mapped.
10137 The main things grep needs to know about mmap are:
10138 * does it exist and is it safe to write into the mmap'd area
10139 * how to use it (BSD variants) */
10142 #include <sys/mman.h>
10144 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10148 /* This mess was copied from the GNU getpagesize.h. */
10149 #ifndef HAVE_GETPAGESIZE
10150 /* Assume that all systems that can run configure have sys/param.h. */
10151 # ifndef HAVE_SYS_PARAM_H
10152 # define HAVE_SYS_PARAM_H 1
10155 # ifdef _SC_PAGESIZE
10156 # define getpagesize() sysconf(_SC_PAGESIZE)
10157 # else /* no _SC_PAGESIZE */
10158 # ifdef HAVE_SYS_PARAM_H
10159 # include <sys/param.h>
10160 # ifdef EXEC_PAGESIZE
10161 # define getpagesize() EXEC_PAGESIZE
10162 # else /* no EXEC_PAGESIZE */
10164 # define getpagesize() NBPG * CLSIZE
10167 # endif /* no CLSIZE */
10168 # else /* no NBPG */
10170 # define getpagesize() NBPC
10171 # else /* no NBPC */
10173 # define getpagesize() PAGESIZE
10174 # endif /* PAGESIZE */
10175 # endif /* no NBPC */
10176 # endif /* no NBPG */
10177 # endif /* no EXEC_PAGESIZE */
10178 # else /* no HAVE_SYS_PARAM_H */
10179 # define getpagesize() 8192 /* punt totally */
10180 # endif /* no HAVE_SYS_PARAM_H */
10181 # endif /* no _SC_PAGESIZE */
10183 #endif /* no HAVE_GETPAGESIZE */
10188 char *data, *data2, *data3;
10192 pagesize = getpagesize ();
10194 /* First, make a file with some known garbage in it. */
10195 data = (char *) malloc (pagesize);
10198 for (i = 0; i < pagesize; ++i)
10199 *(data + i) = rand ();
10201 fd = creat ("conftest.mmap", 0600);
10204 if (write (fd, data, pagesize) != pagesize)
10208 /* Next, try to mmap the file at a fixed address which already has
10209 something else allocated at it. If we can, also make sure that
10210 we see the same garbage. */
10211 fd = open ("conftest.mmap", O_RDWR);
10214 data2 = (char *) malloc (2 * pagesize);
10217 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10218 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10219 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10221 for (i = 0; i < pagesize; ++i)
10222 if (*(data + i) != *(data2 + i))
10225 /* Finally, make sure that changes to the mapped area do not
10226 percolate back to the file as seen by read(). (This is a bug on
10227 some variants of i386 svr4.0.) */
10228 for (i = 0; i < pagesize; ++i)
10229 *(data2 + i) = *(data2 + i) + 1;
10230 data3 = (char *) malloc (pagesize);
10233 if (read (fd, data3, pagesize) != pagesize)
10235 for (i = 0; i < pagesize; ++i)
10236 if (*(data + i) != *(data3 + i))
10242 rm -f conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10246 *) ac_try_echo
=$ac_try;;
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_link") 2>&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10253 { (case "(($ac_try" in
10254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_try") 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_func_mmap_fixed_mapped=yes
10264 echo "$as_me: program exited with status $ac_status" >&5
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10268 ( exit $ac_status )
10269 ac_cv_func_mmap_fixed_mapped=no
10271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10276 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10277 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10278 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_MMAP 1
10285 rm -f conftest.mmap
10287 if test $use_mmap_for_buffers = yes; then
10291 LIBS="$libsrc_libs $LIBS"
10294 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10295 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10296 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 ac_check_lib_save_LIBS=$LIBS
10300 LIBS="-ldnet $LIBS"
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10308 /* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10318 return dnet_ntoa ();
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (ac_try="$ac_link"
10325 case "(($ac_try" in
10326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10327 *) ac_try_echo
=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_link") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1
>conftest.err
10334 cat conftest.err
>&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest
$ac_exeext &&
10340 $as_test_x conftest
$ac_exeext; then
10341 ac_cv_lib_dnet_dnet_ntoa
=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.
$ac_ext >&5
10346 ac_cv_lib_dnet_dnet_ntoa
=no
10349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10350 conftest
$ac_exeext conftest.
$ac_ext
10351 LIBS
=$ac_check_lib_save_LIBS
10353 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10354 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10355 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10356 cat >>confdefs.h
<<_ACEOF
10357 #define HAVE_LIBDNET 1
10360 LIBS
="-ldnet $LIBS"
10365 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10366 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10367 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 ac_check_lib_save_LIBS
=$LIBS
10371 LIBS
="-lXbsd $LIBS"
10372 cat >conftest.
$ac_ext <<_ACEOF
10375 cat confdefs.h
>>conftest.
$ac_ext
10376 cat >>conftest.
$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10388 rm -f conftest.
$ac_objext conftest
$ac_exeext
10389 if { (ac_try
="$ac_link"
10390 case "(($ac_try" in
10391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_link") 2>conftest.er1
10397 grep -v '^ *+' conftest.er1 >conftest.err
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest$ac_exeext &&
10405 $as_test_x conftest$ac_exeext; then
10406 ac_cv_lib_Xbsd_main=yes
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_cv_lib_Xbsd_main=no
10414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10415 conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_lib_save_LIBS
10418 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10419 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10420 if test $ac_cv_lib_Xbsd_main = yes; then
10421 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10426 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10427 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10428 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-lpthreads $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10450 return cma_open ();
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10459 *) ac_try_echo
=$ac_try;;
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_link") 2>conftest.er1
10464 grep -v '^ *+' conftest.er1
>conftest.err
10466 cat conftest.err
>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } && {
10469 test -z "$ac_c_werror_flag" ||
10470 test ! -s conftest.err
10471 } && test -s conftest
$ac_exeext &&
10472 $as_test_x conftest
$ac_exeext; then
10473 ac_cv_lib_pthreads_cma_open
=yes
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.
$ac_ext >&5
10478 ac_cv_lib_pthreads_cma_open
=no
10481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10482 conftest
$ac_exeext conftest.
$ac_ext
10483 LIBS
=$ac_check_lib_save_LIBS
10485 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10486 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10487 if test $ac_cv_lib_pthreads_cma_open = yes; then
10488 cat >>confdefs.h
<<_ACEOF
10489 #define HAVE_LIBPTHREADS 1
10492 LIBS
="-lpthreads $LIBS"
10497 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10498 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10499 if test -d /usr
/X386
/include
; then
10501 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10505 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10506 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10511 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10512 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10513 if test "${gdb_cv_bigtoc+set}" = set; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10519 *) gdb_cv_bigtoc
=-bbigtoc ;;
10522 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10523 cat >conftest.
$ac_ext <<_ACEOF
10526 cat confdefs.h
>>conftest.
$ac_ext
10527 cat >>conftest.
$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10538 rm -f conftest.
$ac_objext conftest
$ac_exeext
10539 if { (ac_try
="$ac_link"
10540 case "(($ac_try" in
10541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_link") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest$ac_exeext &&
10555 $as_test_x conftest$ac_exeext; then
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10565 conftest$ac_exeext conftest.$ac_ext
10568 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10569 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10573 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10574 # used for the tests that follow. We set them back to REAL_CFLAGS and
10575 # REAL_CPPFLAGS later on.
10577 REAL_CPPFLAGS="$CPPFLAGS"
10579 if test "${HAVE_X11}" = "yes"; then
10580 DEFS="$C_SWITCH_X_SITE $DEFS"
10581 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10583 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10584 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10586 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10587 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10588 # but it's more convenient here to set LD_RUN_PATH
10589 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10590 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10591 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10595 if test "${opsys}" = "gnu-linux"; then
10596 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10597 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10608 XOpenDisplay ("foo");
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10617 *) ac_try_echo
=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10622 grep -v '^ *+' conftest.er1
>conftest.err
10624 cat conftest.err
>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest
$ac_exeext &&
10630 $as_test_x conftest
$ac_exeext; then
10631 xlinux_first_failure
=no
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.
$ac_ext >&5
10636 xlinux_first_failure
=yes
10639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10640 conftest
$ac_exeext conftest.
$ac_ext
10641 if test "${xlinux_first_failure}" = "yes"; then
10642 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10643 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10644 OLD_CPPFLAGS
="$CPPFLAGS"
10646 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10647 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10648 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10649 LIBS
="$LIBS -b i486-linuxaout"
10650 cat >conftest.
$ac_ext <<_ACEOF
10653 cat confdefs.h
>>conftest.
$ac_ext
10654 cat >>conftest.
$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10660 XOpenDisplay ("foo");
10665 rm -f conftest.
$ac_objext conftest
$ac_exeext
10666 if { (ac_try
="$ac_link"
10667 case "(($ac_try" in
10668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_link") 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && {
10679 test -z "$ac_c_werror_flag" ||
10680 test ! -s conftest.err
10681 } && test -s conftest$ac_exeext &&
10682 $as_test_x conftest$ac_exeext; then
10683 xlinux_second_failure=no
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 xlinux_second_failure=yes
10691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10692 conftest$ac_exeext conftest.$ac_ext
10693 if test "${xlinux_second_failure}" = "yes"; then
10694 # If we get the same failure with -b, there is no use adding -b.
10695 # So take it out. This plays safe.
10696 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10697 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10698 CPPFLAGS="$OLD_CPPFLAGS"
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10703 { echo "$as_me:$LINENO: result: yes" >&5
10704 echo "${ECHO_T}yes" >&6; }
10707 { echo "$as_me:$LINENO: result: no" >&5
10708 echo "${ECHO_T}no" >&6; }
10712 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10713 # header files included from there.
10714 { echo "$as_me:$LINENO: checking for Xkb" >&5
10715 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10716 cat >conftest.$ac_ext <<_ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 #include <X11/Xlib.h>
10723 #include <X11/XKBlib.h>
10727 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (ac_try="$ac_link"
10734 case "(($ac_try" in
10735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10736 *) ac_try_echo
=$ac_try;;
10738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_link") 2>conftest.er1
10741 grep -v '^ *+' conftest.er1
>conftest.err
10743 cat conftest.err
>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } && {
10746 test -z "$ac_c_werror_flag" ||
10747 test ! -s conftest.err
10748 } && test -s conftest
$ac_exeext &&
10749 $as_test_x conftest
$ac_exeext; then
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.
$ac_ext >&5
10758 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10759 conftest
$ac_exeext conftest.
$ac_ext
10760 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10761 echo "${ECHO_T}$emacs_xkb" >&6; }
10762 if test $emacs_xkb = yes; then
10764 cat >>confdefs.h
<<\_ACEOF
10765 #define HAVE_XKBGETKEYBOARD 1
10774 for ac_func
in XrmSetDatabase XScreenResourceString \
10775 XScreenNumberOfScreen XSetWMProtocols
10777 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10780 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 cat >conftest.
$ac_ext <<_ACEOF
10786 cat confdefs.h
>>conftest.
$ac_ext
10787 cat >>conftest.
$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10791 #define $ac_func innocuous_$ac_func
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char $ac_func (); below.
10795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10796 <limits.h> exists even on freestanding compilers. */
10799 # include <limits.h>
10801 # include <assert.h>
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10813 /* The GNU C library defines this for functions which it implements
10814 to always fail with ENOSYS. Some functions are actually named
10815 something starting with __ and the normal name is an alias. */
10816 #if defined __stub_$ac_func || defined __stub___$ac_func
10823 return $ac_func ();
10828 rm -f conftest.
$ac_objext conftest
$ac_exeext
10829 if { (ac_try
="$ac_link"
10830 case "(($ac_try" in
10831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_link") 2>conftest.er1
10837 grep -v '^ *+' conftest.er1 >conftest.err
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && {
10842 test -z "$ac_c_werror_flag" ||
10843 test ! -s conftest.err
10844 } && test -s conftest$ac_exeext &&
10845 $as_test_x conftest$ac_exeext; then
10846 eval "$as_ac_var=yes"
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 eval "$as_ac_var=no"
10854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10855 conftest$ac_exeext conftest.$ac_ext
10857 ac_res=`eval echo '${'$as_ac_var'}'`
10858 { echo "$as_me:$LINENO: result: $ac_res" >&5
10859 echo "${ECHO_T}$ac_res" >&6; }
10860 if test `eval echo '${'$as_ac_var'}'` = yes; then
10861 cat >>confdefs.h <<_ACEOF
10862 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10870 if test "${window_system}" = "x11"; then
10871 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10872 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10873 if test "${emacs_cv_x11_version_6+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 cat >conftest.$ac_ext <<_ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <X11/Xlib.h>
10886 #if XlibSpecificationRelease < 6
10894 rm -f conftest.$ac_objext conftest$ac_exeext
10895 if { (ac_try="$ac_link"
10896 case "(($ac_try" in
10897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10898 *) ac_try_echo
=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_link") 2>conftest.er1
10903 grep -v '^ *+' conftest.er1
>conftest.err
10905 cat conftest.err
>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest
$ac_exeext &&
10911 $as_test_x conftest
$ac_exeext; then
10912 emacs_cv_x11_version_6
=yes
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.
$ac_ext >&5
10917 emacs_cv_x11_version_6
=no
10920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10921 conftest
$ac_exeext conftest.
$ac_ext
10924 if test $emacs_cv_x11_version_6 = yes; then
10925 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10926 echo "${ECHO_T}6 or newer" >&6; }
10928 cat >>confdefs.h
<<\_ACEOF
10929 #define HAVE_X11R6 1
10933 { echo "$as_me:$LINENO: result: before 6" >&5
10934 echo "${ECHO_T}before 6" >&6; }
10938 if test "${window_system}" = "x11"; then
10939 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10940 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10941 if test "${emacs_cv_x11_version_5+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 cat >conftest.
$ac_ext <<_ACEOF
10947 cat confdefs.h
>>conftest.
$ac_ext
10948 cat >>conftest.
$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <X11/Xlib.h>
10954 #if XlibSpecificationRelease < 5
10962 rm -f conftest.
$ac_objext conftest
$ac_exeext
10963 if { (ac_try
="$ac_link"
10964 case "(($ac_try" in
10965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_link") 2>conftest.er1
10971 grep -v '^ *+' conftest.er1 >conftest.err
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest$ac_exeext &&
10979 $as_test_x conftest$ac_exeext; then
10980 emacs_cv_x11_version_5=yes
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 emacs_cv_x11_version_5=no
10988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10989 conftest$ac_exeext conftest.$ac_ext
10992 if test $emacs_cv_x11_version_5 = yes; then
10993 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10994 echo "${ECHO_T}5 or newer" >&6; }
10997 cat >>confdefs.h <<\_ACEOF
10998 #define HAVE_X11R5 1
11003 { echo "$as_me:$LINENO: result: before 5" >&5
11004 echo "${ECHO_T}before 5" >&6; }
11009 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11012 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11013 test "$USE_X_TOOLKIT" = "maybe"; then
11014 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11015 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11016 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11017 { (exit 1); exit 1; }; };
11021 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11023 if test "X${with_pkg_config_prog}" != X; then
11024 PKG_CONFIG="${with_pkg_config_prog}"
11029 if test -z "$PKG_CONFIG"; then
11030 # Extract the first word of "pkg-config", so it can be a program name with args.
11031 set dummy pkg-config; ac_word=$2
11032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 case $PKG_CONFIG in
11039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11061 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11062 if test -n "$PKG_CONFIG"; then
11063 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11064 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11066 { echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6; }
11073 if test "$PKG_CONFIG" = "no" ; then
11076 PKG_CONFIG_MIN_VERSION=0.9.0
11077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11078 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11079 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11081 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11082 { echo "$as_me:$LINENO: result: yes" >&5
11083 echo "${ECHO_T}yes" >&6; }
11086 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11087 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11088 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11089 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11090 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11092 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11093 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11094 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11095 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11096 echo "${ECHO_T}$GTK_LIBS" >&6; }
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11102 ## If we have a custom action on failure, don't print errors, but
11103 ## do set a variable so people can do so.
11104 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11116 if test $succeeded = yes; then
11122 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11123 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11124 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11125 { (exit 1); exit 1; }; }
11130 if test x"$pkg_check_gtk" = xyes; then
11134 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11135 CFLAGS="$CFLAGS $GTK_CFLAGS"
11136 LIBS="$GTK_LIBS $LIBS"
11139 for ac_func in gtk_main
11141 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 cat >conftest.$ac_ext <<_ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h. */
11153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11155 #define $ac_func innocuous_$ac_func
11157 /* System header to define __stub macros and hopefully few prototypes,
11158 which can conflict with char $ac_func (); below.
11159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11160 <limits.h> exists even on freestanding compilers. */
11163 # include <limits.h>
11165 # include <assert.h>
11170 /* Override any GCC internal prototype to avoid an error.
11171 Use char because int might match the return type of a GCC
11172 builtin and then its argument prototype would still apply. */
11177 /* The GNU C library defines this for functions which it implements
11178 to always fail with ENOSYS. Some functions are actually named
11179 something starting with __ and the normal name is an alias. */
11180 #if defined __stub_$ac_func || defined __stub___$ac_func
11187 return $ac_func ();
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (ac_try="$ac_link"
11194 case "(($ac_try" in
11195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11196 *) ac_try_echo
=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_link") 2>conftest.er1
11201 grep -v '^ *+' conftest.er1
>conftest.err
11203 cat conftest.err
>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest
$ac_exeext &&
11209 $as_test_x conftest
$ac_exeext; then
11210 eval "$as_ac_var=yes"
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.
$ac_ext >&5
11215 eval "$as_ac_var=no"
11218 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11219 conftest
$ac_exeext conftest.
$ac_ext
11221 ac_res
=`eval echo '${'$as_ac_var'}'`
11222 { echo "$as_me:$LINENO: result: $ac_res" >&5
11223 echo "${ECHO_T}$ac_res" >&6; }
11224 if test `eval echo '${'$as_ac_var'}'` = yes; then
11225 cat >>confdefs.h
<<_ACEOF
11226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 if test "${GTK_COMPILES}" != "yes"; then
11233 if test "$USE_X_TOOLKIT" != "maybe"; then
11234 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11235 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11236 { (exit 1); exit 1; }; };
11241 cat >>confdefs.h
<<\_ACEOF
11251 if test "${HAVE_GTK}" = "yes"; then
11253 if test "$with_toolkit_scroll_bars" != no
; then
11254 with_toolkit_scroll_bars
=yes
11257 HAVE_GTK_MULTIDISPLAY
=no
11259 for ac_func
in gdk_display_open
11261 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11264 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 cat >conftest.
$ac_ext <<_ACEOF
11270 cat confdefs.h
>>conftest.
$ac_ext
11271 cat >>conftest.
$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11275 #define $ac_func innocuous_$ac_func
11277 /* System header to define __stub macros and hopefully few prototypes,
11278 which can conflict with char $ac_func (); below.
11279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11280 <limits.h> exists even on freestanding compilers. */
11283 # include <limits.h>
11285 # include <assert.h>
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11297 /* The GNU C library defines this for functions which it implements
11298 to always fail with ENOSYS. Some functions are actually named
11299 something starting with __ and the normal name is an alias. */
11300 #if defined __stub_$ac_func || defined __stub___$ac_func
11307 return $ac_func ();
11312 rm -f conftest.
$ac_objext conftest
$ac_exeext
11313 if { (ac_try
="$ac_link"
11314 case "(($ac_try" in
11315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_link") 2>conftest.er1
11321 grep -v '^ *+' conftest.er1 >conftest.err
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest$ac_exeext &&
11329 $as_test_x conftest$ac_exeext; then
11330 eval "$as_ac_var=yes"
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 eval "$as_ac_var=no"
11338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11339 conftest$ac_exeext conftest.$ac_ext
11341 ac_res=`eval echo '${'$as_ac_var'}'`
11342 { echo "$as_me:$LINENO: result: $ac_res" >&5
11343 echo "${ECHO_T}$ac_res" >&6; }
11344 if test `eval echo '${'$as_ac_var'}'` = yes; then
11345 cat >>confdefs.h <<_ACEOF
11346 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11348 HAVE_GTK_MULTIDISPLAY=yes
11352 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_GTK_MULTIDISPLAY 1
11359 HAVE_GTK_FILE_SELECTION=no
11361 for ac_func in gtk_file_selection_new
11363 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11364 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11377 #define $ac_func innocuous_$ac_func
11379 /* System header to define __stub macros and hopefully few prototypes,
11380 which can conflict with char $ac_func (); below.
11381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11382 <limits.h> exists even on freestanding compilers. */
11385 # include <limits.h>
11387 # include <assert.h>
11392 /* Override any GCC internal prototype to avoid an error.
11393 Use char because int might match the return type of a GCC
11394 builtin and then its argument prototype would still apply. */
11399 /* The GNU C library defines this for functions which it implements
11400 to always fail with ENOSYS. Some functions are actually named
11401 something starting with __ and the normal name is an alias. */
11402 #if defined __stub_$ac_func || defined __stub___$ac_func
11409 return $ac_func ();
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (ac_try="$ac_link"
11416 case "(($ac_try" in
11417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11418 *) ac_try_echo
=$ac_try;;
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_link") 2>conftest.er1
11423 grep -v '^ *+' conftest.er1
>conftest.err
11425 cat conftest.err
>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest
$ac_exeext &&
11431 $as_test_x conftest
$ac_exeext; then
11432 eval "$as_ac_var=yes"
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.
$ac_ext >&5
11437 eval "$as_ac_var=no"
11440 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11441 conftest
$ac_exeext conftest.
$ac_ext
11443 ac_res
=`eval echo '${'$as_ac_var'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11446 if test `eval echo '${'$as_ac_var'}'` = yes; then
11447 cat >>confdefs.h
<<_ACEOF
11448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11450 HAVE_GTK_FILE_SELECTION
=yes
11455 HAVE_GTK_FILE_CHOOSER
=no
11457 for ac_func
in gtk_file_chooser_dialog_new
11459 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11462 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 cat >conftest.
$ac_ext <<_ACEOF
11468 cat confdefs.h
>>conftest.
$ac_ext
11469 cat >>conftest.
$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11473 #define $ac_func innocuous_$ac_func
11475 /* System header to define __stub macros and hopefully few prototypes,
11476 which can conflict with char $ac_func (); below.
11477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478 <limits.h> exists even on freestanding compilers. */
11481 # include <limits.h>
11483 # include <assert.h>
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11495 /* The GNU C library defines this for functions which it implements
11496 to always fail with ENOSYS. Some functions are actually named
11497 something starting with __ and the normal name is an alias. */
11498 #if defined __stub_$ac_func || defined __stub___$ac_func
11505 return $ac_func ();
11510 rm -f conftest.
$ac_objext conftest
$ac_exeext
11511 if { (ac_try
="$ac_link"
11512 case "(($ac_try" in
11513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_link") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest$ac_exeext &&
11527 $as_test_x conftest$ac_exeext; then
11528 eval "$as_ac_var=yes"
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 eval "$as_ac_var=no"
11536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11537 conftest$ac_exeext conftest.$ac_ext
11539 ac_res=`eval echo '${'$as_ac_var'}'`
11540 { echo "$as_me:$LINENO: result: $ac_res" >&5
11541 echo "${ECHO_T}$ac_res" >&6; }
11542 if test `eval echo '${'$as_ac_var'}'` = yes; then
11543 cat >>confdefs.h <<_ACEOF
11544 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11546 HAVE_GTK_FILE_CHOOSER=yes
11551 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11552 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11554 cat >>confdefs.h <<\_ACEOF
11555 #define HAVE_GTK_FILE_BOTH 1
11560 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11561 HAVE_GTK_AND_PTHREAD=no
11563 for ac_header in pthread.h
11565 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 ac_res=`eval echo '${'$as_ac_Header'}'`
11573 { echo "$as_me:$LINENO: result: $ac_res" >&5
11574 echo "${ECHO_T}$ac_res" >&6; }
11576 # Is the header compilable?
11577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 $ac_includes_default
11586 #include <$ac_header>
11588 rm -f conftest.$ac_objext
11589 if { (ac_try="$ac_compile"
11590 case "(($ac_try" in
11591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11592 *) ac_try_echo
=$ac_try;;
11594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_compile") 2>conftest.er1
11597 grep -v '^ *+' conftest.er1
>conftest.err
11599 cat conftest.err
>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } && {
11602 test -z "$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11604 } && test -s conftest.
$ac_objext; then
11605 ac_header_compiler
=yes
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.
$ac_ext >&5
11610 ac_header_compiler
=no
11613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11615 echo "${ECHO_T}$ac_header_compiler" >&6; }
11617 # Is the header present?
11618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11620 cat >conftest.
$ac_ext <<_ACEOF
11623 cat confdefs.h
>>conftest.
$ac_ext
11624 cat >>conftest.
$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include <$ac_header>
11628 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11629 case "(($ac_try" in
11630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11636 grep -v '^ *+' conftest.er1 >conftest.err
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } >/dev/null && {
11641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11644 ac_header_preproc=yes
11646 echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11649 ac_header_preproc=no
11652 rm -f conftest.err conftest.$ac_ext
11653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11654 echo "${ECHO_T}$ac_header_preproc" >&6; }
11656 # So? What about this header?
11657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11663 ac_header_preproc=yes
11666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 eval "$as_ac_Header=\$ac_header_preproc"
11688 ac_res=`eval echo '${'$as_ac_Header'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690 echo "${ECHO_T}$ac_res" >&6; }
11693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11702 if test "$ac_cv_header_pthread_h"; then
11703 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11704 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11705 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-lpthread $LIBS"
11710 cat >conftest.$ac_ext <<_ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11717 /* Override any GCC internal prototype to avoid an error.
11718 Use char because int might match the return type of a GCC
11719 builtin and then its argument prototype would still apply. */
11723 char pthread_self ();
11727 return pthread_self ();
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11736 *) ac_try_echo
=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1
>conftest.err
11743 cat conftest.err
>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest
$ac_exeext &&
11749 $as_test_x conftest
$ac_exeext; then
11750 ac_cv_lib_pthread_pthread_self
=yes
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.
$ac_ext >&5
11755 ac_cv_lib_pthread_pthread_self
=no
11758 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11759 conftest
$ac_exeext conftest.
$ac_ext
11760 LIBS
=$ac_check_lib_save_LIBS
11762 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11763 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11764 if test $ac_cv_lib_pthread_pthread_self = yes; then
11765 HAVE_GTK_AND_PTHREAD
=yes
11769 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11770 GTK_LIBS
="$GTK_LIBS -lpthread"
11772 cat >>confdefs.h
<<\_ACEOF
11773 #define HAVE_GTK_AND_PTHREAD 1
11780 ### Link with -lXft if available to work around a bug.
11782 if test "${HAVE_GTK}" = "yes"; then
11783 if test "X${with_pkg_config_prog}" != X
; then
11784 PKG_CONFIG
="${with_pkg_config_prog}"
11790 if test -z "$PKG_CONFIG"; then
11791 # Extract the first word of "pkg-config", so it can be a program name with args.
11792 set dummy pkg-config
; ac_word
=$2
11793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11795 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 case $PKG_CONFIG in
11800 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11804 for as_dir
in $PATH
11807 test -z "$as_dir" && as_dir
=.
11808 for ac_exec_ext
in '' $ac_executable_extensions; do
11809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11810 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11822 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11823 if test -n "$PKG_CONFIG"; then
11824 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11825 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11827 { echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6; }
11834 if test "$PKG_CONFIG" = "no" ; then
11837 PKG_CONFIG_MIN_VERSION
=0.9.0
11838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11839 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11840 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11842 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11843 { echo "$as_me:$LINENO: result: yes" >&5
11844 echo "${ECHO_T}yes" >&6; }
11847 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11848 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11849 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11850 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11851 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11853 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11854 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11855 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11856 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11857 echo "${ECHO_T}$XFT_LIBS" >&6; }
11859 { echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6; }
11863 ## If we have a custom action on failure, don't print errors, but
11864 ## do set a variable so people can do so.
11865 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11877 if test $succeeded = yes; then
11883 if test "$HAVE_XFT" != no
; then
11884 OLD_CFLAGS
="$CPPFLAGS"
11885 OLD_CPPFLAGS
="$CFLAGS"
11887 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11888 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11889 LIBS
="$XFT_LIBS $LIBS"
11890 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11891 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11892 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11893 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11897 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11899 # Is the header compilable?
11900 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11901 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11902 cat >conftest.
$ac_ext <<_ACEOF
11905 cat confdefs.h
>>conftest.
$ac_ext
11906 cat >>conftest.
$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 #include <X11/Xft/Xft.h>
11911 rm -f conftest.
$ac_objext
11912 if { (ac_try
="$ac_compile"
11913 case "(($ac_try" in
11914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
11920 grep -v '^ *+' conftest.er1 >conftest.err
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest.$ac_objext; then
11928 ac_header_compiler=yes
11930 echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ac_header_compiler=no
11936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11938 echo "${ECHO_T}$ac_header_compiler" >&6; }
11940 # Is the header present?
11941 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11942 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 #include <X11/Xft/Xft.h>
11951 if { (ac_try="$ac_cpp conftest.$ac_ext"
11952 case "(($ac_try" in
11953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11954 *) ac_try_echo
=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11959 grep -v '^ *+' conftest.er1
>conftest.err
11961 cat conftest.err
>&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } >/dev
/null
&& {
11964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11967 ac_header_preproc
=yes
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.
$ac_ext >&5
11972 ac_header_preproc
=no
11975 rm -f conftest.err conftest.
$ac_ext
11976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11977 echo "${ECHO_T}$ac_header_preproc" >&6; }
11979 # So? What about this header?
11980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11982 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11983 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11985 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11986 ac_header_preproc
=yes
11989 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11990 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11992 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11994 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11996 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11998 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12000 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12004 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12005 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12006 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12011 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12012 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12015 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12016 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12017 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12018 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 ac_check_lib_save_LIBS
=$LIBS
12022 LIBS
="-lXft $XFT_LIBS $LIBS"
12023 cat >conftest.
$ac_ext <<_ACEOF
12026 cat confdefs.h
>>conftest.
$ac_ext
12027 cat >>conftest.
$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12036 char XftFontOpen ();
12040 return XftFontOpen ();
12045 rm -f conftest.
$ac_objext conftest
$ac_exeext
12046 if { (ac_try
="$ac_link"
12047 case "(($ac_try" in
12048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_link") 2>conftest.er1
12054 grep -v '^ *+' conftest.er1 >conftest.err
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest$ac_exeext &&
12062 $as_test_x conftest$ac_exeext; then
12063 ac_cv_lib_Xft_XftFontOpen=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_lib_Xft_XftFontOpen=no
12071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12072 conftest$ac_exeext conftest.$ac_ext
12073 LIBS=$ac_check_lib_save_LIBS
12075 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12076 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12077 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12085 if test "${HAVE_XFT}" = "yes"; then
12087 cat >>confdefs.h <<\_ACEOF
12092 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12094 CFLAGS="$OLD_CPPFLAGS"
12095 CFLAGS="$OLD_CFLAGS"
12102 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12103 if test x"${HAVE_X11R5}" != xyes; then
12106 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12107 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12108 if test "${emacs_cv_xaw3d+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12118 #include <X11/Intrinsic.h>
12119 #include <X11/Xaw3d/Simple.h>
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12132 *) ac_try_echo
=$ac_try;;
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12137 grep -v '^ *+' conftest.er1
>conftest.err
12139 cat conftest.err
>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_c_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest
$ac_exeext &&
12145 $as_test_x conftest
$ac_exeext; then
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.
$ac_ext >&5
12154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12155 conftest
$ac_exeext conftest.
$ac_ext
12158 if test $emacs_cv_xaw3d = yes; then
12159 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12160 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12161 USE_X_TOOLKIT
=LUCID
12164 cat >>confdefs.h
<<\_ACEOF
12165 #define HAVE_XAW3D 1
12169 { echo "$as_me:$LINENO: result: no" >&5
12170 echo "${ECHO_T}no" >&6; }
12171 { echo "$as_me:$LINENO: checking for libXaw" >&5
12172 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12173 if test "${emacs_cv_xaw+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 cat >conftest.
$ac_ext <<_ACEOF
12179 cat confdefs.h
>>conftest.
$ac_ext
12180 cat >>conftest.
$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12183 #include <X11/Intrinsic.h>
12184 #include <X11/Xaw/Simple.h>
12193 rm -f conftest.
$ac_objext conftest
$ac_exeext
12194 if { (ac_try
="$ac_link"
12195 case "(($ac_try" in
12196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_link") 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && {
12207 test -z "$ac_c_werror_flag" ||
12208 test ! -s conftest.err
12209 } && test -s conftest$ac_exeext &&
12210 $as_test_x conftest$ac_exeext; then
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12220 conftest$ac_exeext conftest.$ac_ext
12223 if test $emacs_cv_xaw = yes; then
12224 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12225 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12226 USE_X_TOOLKIT=LUCID
12227 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12228 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12229 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12230 { (exit 1); exit 1; }; }
12232 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12233 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12240 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12242 if test "${USE_X_TOOLKIT}" != "none"; then
12243 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12244 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12245 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <X11/Intrinsic.h>
12258 #if XtSpecificationRelease < 6
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12270 *) ac_try_echo
=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1
>conftest.err
12277 cat conftest.err
>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest
$ac_exeext &&
12283 $as_test_x conftest
$ac_exeext; then
12284 emacs_cv_x11_toolkit_version_6
=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.
$ac_ext >&5
12289 emacs_cv_x11_toolkit_version_6
=no
12292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12293 conftest
$ac_exeext conftest.
$ac_ext
12296 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12297 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12298 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12299 echo "${ECHO_T}6 or newer" >&6; }
12301 cat >>confdefs.h
<<\_ACEOF
12302 #define HAVE_X11XTR6 1
12306 { echo "$as_me:$LINENO: result: before 6" >&5
12307 echo "${ECHO_T}before 6" >&6; }
12311 if test x
$HAVE_X11XTR6 = xyes
; then
12312 LIBS
="-lXt -lSM -lICE $LIBS"
12317 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12318 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12319 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 ac_check_lib_save_LIBS
=$LIBS
12324 cat >conftest.
$ac_ext <<_ACEOF
12327 cat confdefs.h
>>conftest.
$ac_ext
12328 cat >>conftest.
$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12331 /* Override any GCC internal prototype to avoid an error.
12332 Use char because int might match the return type of a GCC
12333 builtin and then its argument prototype would still apply. */
12337 char XmuConvertStandardSelection ();
12341 return XmuConvertStandardSelection ();
12346 rm -f conftest.
$ac_objext conftest
$ac_exeext
12347 if { (ac_try
="$ac_link"
12348 case "(($ac_try" in
12349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_link") 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest$ac_exeext &&
12363 $as_test_x conftest$ac_exeext; then
12364 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12373 conftest$ac_exeext conftest.$ac_ext
12374 LIBS=$ac_check_lib_save_LIBS
12376 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12377 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12378 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12379 cat >>confdefs.h <<_ACEOF
12380 #define HAVE_LIBXMU 1
12387 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12390 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12391 if test "${HAVE_X11}" = "yes"; then
12392 if test "${USE_X_TOOLKIT}" != "none"; then
12394 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12395 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12396 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12397 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 ac_check_lib_save_LIBS=$LIBS
12400 LIBS="-lXext $LIBS"
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12414 char XShapeQueryExtension ();
12418 return XShapeQueryExtension ();
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12427 *) ac_try_echo
=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_link") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1
>conftest.err
12434 cat conftest.err
>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest
$ac_exeext &&
12440 $as_test_x conftest
$ac_exeext; then
12441 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.
$ac_ext >&5
12446 ac_cv_lib_Xext_XShapeQueryExtension
=no
12449 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12450 conftest
$ac_exeext conftest.
$ac_ext
12451 LIBS
=$ac_check_lib_save_LIBS
12453 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12454 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12455 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12456 cat >>confdefs.h
<<_ACEOF
12457 #define HAVE_LIBXEXT 1
12460 LIBS
="-lXext $LIBS"
12467 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12468 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12469 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12470 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 cat >conftest.
$ac_ext <<_ACEOF
12476 cat confdefs.h
>>conftest.
$ac_ext
12477 cat >>conftest.
$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12483 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12486 Motif version prior to 2.1.
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
12509 emacs_cv_motif_version_2_1=yes
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 emacs_cv_motif_version_2_1=no
12517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12520 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12521 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12522 if test $emacs_cv_motif_version_2_1 = yes; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_MOTIF_2_1 1
12529 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12530 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12531 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 ac_check_lib_save_LIBS=$LIBS
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12549 char XpCreateContext ();
12553 return XpCreateContext ();
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (ac_try="$ac_link"
12560 case "(($ac_try" in
12561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12562 *) ac_try_echo
=$ac_try;;
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_link") 2>conftest.er1
12567 grep -v '^ *+' conftest.er1
>conftest.err
12569 cat conftest.err
>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && {
12572 test -z "$ac_c_werror_flag" ||
12573 test ! -s conftest.err
12574 } && test -s conftest
$ac_exeext &&
12575 $as_test_x conftest
$ac_exeext; then
12576 ac_cv_lib_Xp_XpCreateContext
=yes
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.
$ac_ext >&5
12581 ac_cv_lib_Xp_XpCreateContext
=no
12584 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12585 conftest
$ac_exeext conftest.
$ac_ext
12586 LIBS
=$ac_check_lib_save_LIBS
12588 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12589 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12590 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12594 if test ${HAVE_LIBXP} = yes; then
12596 cat >>confdefs.h
<<\_ACEOF
12597 #define HAVE_LIBXP 1
12602 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12603 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12604 if test "${emacs_cv_lesstif+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 # We put this in CFLAGS temporarily to precede other -I options
12608 # that might be in CFLAGS temporarily.
12609 # We put this in CPPFLAGS where it precedes the other -I options.
12610 OLD_CPPFLAGS
=$CPPFLAGS
12612 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12613 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12614 cat >conftest.
$ac_ext <<_ACEOF
12617 cat confdefs.h
>>conftest.
$ac_ext
12618 cat >>conftest.
$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12629 rm -f conftest.
$ac_objext
12630 if { (ac_try
="$ac_compile"
12631 case "(($ac_try" in
12632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_compile") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1 >conftest.err
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest.$ac_objext; then
12646 emacs_cv_lesstif=yes
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 emacs_cv_lesstif=no
12654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12657 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12658 if test $emacs_cv_lesstif = yes; then
12659 # Make sure this -I option remains in CPPFLAGS after it is set
12660 # back to REAL_CPPFLAGS.
12661 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12662 # have those other -I options anyway. Ultimately, having this
12663 # directory ultimately in CPPFLAGS will be enough.
12664 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12665 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12668 CPPFLAGS=$OLD_CPPFLAGS
12675 USE_TOOLKIT_SCROLL_BARS=no
12676 if test "${with_toolkit_scroll_bars}" != "no"; then
12677 if test "${USE_X_TOOLKIT}" != "none"; then
12678 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12679 cat >>confdefs.h <<\_ACEOF
12680 #define USE_TOOLKIT_SCROLL_BARS 1
12684 USE_TOOLKIT_SCROLL_BARS=yes
12685 elif test "${HAVE_XAW3D}" = "yes"; then
12686 cat >>confdefs.h <<\_ACEOF
12687 #define USE_TOOLKIT_SCROLL_BARS 1
12690 USE_TOOLKIT_SCROLL_BARS=yes
12692 elif test "${HAVE_GTK}" = "yes"; then
12693 cat >>confdefs.h <<\_ACEOF
12694 #define USE_TOOLKIT_SCROLL_BARS 1
12697 USE_TOOLKIT_SCROLL_BARS=yes
12698 elif test "${HAVE_CARBON}" = "yes"; then
12699 cat >>confdefs.h <<\_ACEOF
12700 #define USE_TOOLKIT_SCROLL_BARS 1
12703 USE_TOOLKIT_SCROLL_BARS=yes
12707 cat >conftest.$ac_ext <<_ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12714 #include <X11/Xlib.h>
12715 #include <X11/Xresource.h>
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12728 *) ac_try_echo
=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_compile") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1
>conftest.err
12735 cat conftest.err
>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest.
$ac_objext; then
12743 cat >>confdefs.h
<<\_ACEOF
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.
$ac_ext >&5
12754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12757 if test "${with_xim}" != "no"; then
12759 cat >>confdefs.h
<<\_ACEOF
12766 if test "${HAVE_XIM}" != "no"; then
12767 late_CFLAGS
=$CFLAGS
12768 if test "$GCC" = yes; then
12769 CFLAGS
="$CFLAGS --pedantic-errors"
12771 cat >conftest.
$ac_ext <<_ACEOF
12774 cat confdefs.h
>>conftest.
$ac_ext
12775 cat >>conftest.
$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12778 #include <X11/Xlib.h>
12779 #include <X11/Xresource.h>
12788 XPointer *client_data;
12790 /* If we're not using GCC, it's probably not XFree86, and this is
12791 probably right, but we can't use something like --pedantic-errors. */
12792 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12793 char*, XIMProc, XPointer*);
12795 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12801 rm -f conftest.
$ac_objext
12802 if { (ac_try
="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 emacs_cv_arg6_star=yes
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 if test "$emacs_cv_arg6_star" = yes; then
12829 cat >>confdefs.h <<\_ACEOF
12830 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12834 cat >>confdefs.h <<\_ACEOF
12835 #define XRegisterIMInstantiateCallback_arg6 XPointer
12839 CFLAGS=$late_CFLAGS
12842 ### Use -lXpm if available, unless `--with-xpm=no
'.
12844 if test "${HAVE_X11}" = "yes"; then
12845 if test "${with_xpm}" != "no"; then
12846 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12847 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12848 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12849 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12853 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12855 # Is the header compilable?
12856 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12857 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12858 cat >conftest.$ac_ext <<_ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 $ac_includes_default
12865 #include <X11/xpm.h>
12867 rm -f conftest.$ac_objext
12868 if { (ac_try="$ac_compile"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_compile") 2>conftest.er1
12876 grep -v '^
*+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } && {
12881 test -z "$ac_c_werror_flag" ||
12882 test ! -s conftest.err
12883 } && test -s conftest.$ac_objext; then
12884 ac_header_compiler=yes
12886 echo "$as_me: failed program was:" >&5
12887 sed 's
/^
/|
/' conftest.$ac_ext >&5
12889 ac_header_compiler=no
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12894 echo "${ECHO_T}$ac_header_compiler" >&6; }
12896 # Is the header present?
12897 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12898 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12899 cat >conftest.$ac_ext <<_ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 #include <X11/xpm.h>
12907 if { (ac_try="$ac_cpp conftest.$ac_ext"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12915 grep -v '^
*+' conftest.er1 >conftest.err
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } >/dev/null && {
12920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12921 test ! -s conftest.err
12923 ac_header_preproc=yes
12925 echo "$as_me: failed program was:" >&5
12926 sed 's
/^
/|
/' conftest.$ac_ext >&5
12928 ac_header_preproc=no
12931 rm -f conftest.err conftest.$ac_ext
12932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12933 echo "${ECHO_T}$ac_header_preproc" >&6; }
12935 # So? What about this header?
12936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12938 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12939 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
12941 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
12942 ac_header_preproc=yes
12945 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12946 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12948 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12949 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12950 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12951 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12952 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12953 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
12954 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12956 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12960 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12961 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12962 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 ac_cv_header_X11_xpm_h=$ac_header_preproc
12967 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12968 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12971 if test $ac_cv_header_X11_xpm_h = yes; then
12972 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12973 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12974 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 ac_check_lib_save_LIBS=$LIBS
12978 LIBS="-lXpm -lX11 $LIBS"
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12986 /* Override any GCC internal prototype to avoid an error.
12987 Use char because int might match the return type of a GCC
12988 builtin and then its argument prototype would still apply. */
12992 char XpmReadFileToPixmap ();
12996 return XpmReadFileToPixmap ();
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (ac_try="$ac_link"
13003 case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_link") 2>conftest.er1
13010 grep -v '^
*+' conftest.er1 >conftest.err
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && {
13015 test -z "$ac_c_werror_flag" ||
13016 test ! -s conftest.err
13017 } && test -s conftest$ac_exeext &&
13018 $as_test_x conftest$ac_exeext; then
13019 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13021 echo "$as_me: failed program was:" >&5
13022 sed 's
/^
/|
/' conftest.$ac_ext >&5
13024 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13028 conftest$ac_exeext conftest.$ac_ext
13029 LIBS=$ac_check_lib_save_LIBS
13031 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13032 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13033 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13040 if test "${HAVE_XPM}" = "yes"; then
13041 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13042 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13043 cat >conftest.$ac_ext <<_ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 #include "X11/xpm.h"
13050 #ifndef XpmReturnAllocPixels
13051 no_return_alloc_pixels
13055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13056 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13064 if test "${HAVE_XPM}" = "yes"; then
13065 { echo "$as_me:$LINENO: result: yes" >&5
13066 echo "${ECHO_T}yes" >&6; }
13068 { echo "$as_me:$LINENO: result: no" >&5
13069 echo "${ECHO_T}no" >&6; }
13070 { { echo "$as_me:$LINENO: error: libXpm is required, but I didn't
find it.
13071 Maybe some development libraries
/packages are missing?
13072 Use
--with-xpm=no
if you don
't wan't to link with libXpm
" >&5
13073 echo "$as_me: error
: libXpm is required
, but I didn
't find it.
13074 Maybe some development libraries/packages are missing?
13075 Use --with-xpm=no if you don't wan
't to link with libXpm" >&2;}
13076 { (exit 1); exit 1; }; }
13081 if test "${HAVE_XPM}" = "yes"; then
13083 cat >>confdefs.h <<\_ACEOF
13090 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13092 if test "${HAVE_X11}" = "yes"; then
13093 if test "${with_jpeg}" != "no"; then
13094 if test "${ac_cv_header_jerror_h+set}" = set; then
13095 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13096 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13097 if test "${ac_cv_header_jerror_h+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13101 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13103 # Is the header compilable?
13104 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13105 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13106 cat >conftest.
$ac_ext <<_ACEOF
13109 cat confdefs.h
>>conftest.
$ac_ext
13110 cat >>conftest.
$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 $ac_includes_default
13113 #include <jerror.h>
13115 rm -f conftest.
$ac_objext
13116 if { (ac_try
="$ac_compile"
13117 case "(($ac_try" in
13118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_compile") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } && {
13129 test -z "$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13131 } && test -s conftest.$ac_objext; then
13132 ac_header_compiler=yes
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13137 ac_header_compiler=no
13140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13142 echo "${ECHO_T}$ac_header_compiler" >&6; }
13144 # Is the header present?
13145 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13146 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13147 cat >conftest.$ac_ext <<_ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 #include <jerror.h>
13155 if { (ac_try="$ac_cpp conftest.$ac_ext"
13156 case "(($ac_try" in
13157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13158 *) ac_try_echo
=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1
>conftest.err
13165 cat conftest.err
>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } >/dev
/null
&& {
13168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13169 test ! -s conftest.err
13171 ac_header_preproc
=yes
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.
$ac_ext >&5
13176 ac_header_preproc
=no
13179 rm -f conftest.err conftest.
$ac_ext
13180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13181 echo "${ECHO_T}$ac_header_preproc" >&6; }
13183 # So? What about this header?
13184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13186 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13187 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13189 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13190 ac_header_preproc
=yes
13193 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13194 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13196 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13198 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13199 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13200 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13201 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13202 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13204 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13208 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13209 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13210 if test "${ac_cv_header_jerror_h+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 ac_cv_header_jerror_h
=$ac_header_preproc
13215 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13216 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13219 if test $ac_cv_header_jerror_h = yes; then
13220 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13221 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13222 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 ac_check_lib_save_LIBS
=$LIBS
13226 LIBS
="-ljpeg $LIBS"
13227 cat >conftest.
$ac_ext <<_ACEOF
13230 cat confdefs.h
>>conftest.
$ac_ext
13231 cat >>conftest.
$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13240 char jpeg_destroy_compress ();
13244 return jpeg_destroy_compress ();
13249 rm -f conftest.
$ac_objext conftest
$ac_exeext
13250 if { (ac_try
="$ac_link"
13251 case "(($ac_try" in
13252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13253 *) ac_try_echo=$ac_try;;
13255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13256 (eval "$ac_link") 2>conftest.er1
13258 grep -v '^ *+' conftest.er1 >conftest.err
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest$ac_exeext &&
13266 $as_test_x conftest$ac_exeext; then
13267 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LIBS=$ac_check_lib_save_LIBS
13279 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13280 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13281 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13288 if test "${HAVE_JPEG}" != "yes"; then
13289 { { echo "$as_me:$LINENO: error: libjpeg is required, but I didn't find it.
13290 Maybe some development libraries/packages are missing?
13291 Use --with-jpeg=no if you don't wan't to link with libjpeg" >&5
13292 echo "$as_me: error: libjpeg is required, but I didn't find it.
13293 Maybe some development libraries/packages are missing?
13294 Use --with-jpeg=no if you don't wan't to link with libjpeg" >&2;}
13295 { (exit 1); exit 1; }; }
13300 if test "${HAVE_JPEG}" = "yes"; then
13301 cat >>confdefs.h <<\_ACEOF
13302 #define HAVE_JPEG 1
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <jpeglib.h>
13312 version=JPEG_LIB_VERSION
13315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13316 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_JPEG 1
13322 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13323 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13331 ### Use -lpng if available, unless `--with-png=no
'.
13333 if test "${HAVE_X11}" = "yes"; then
13334 if test "${with_png}" != "no"; then
13335 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13336 # in /usr/include/libpng.
13339 for ac_header in png.h libpng/png.h
13341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 ac_res=`eval echo '${'$as_ac_Header'}'`
13349 { echo "$as_me:$LINENO: result: $ac_res" >&5
13350 echo "${ECHO_T}$ac_res" >&6; }
13352 # Is the header compilable?
13353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13355 cat >conftest.$ac_ext <<_ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 $ac_includes_default
13362 #include <$ac_header>
13364 rm -f conftest.$ac_objext
13365 if { (ac_try="$ac_compile"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_compile") 2>conftest.er1
13373 grep -v '^
*+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } && {
13378 test -z "$ac_c_werror_flag" ||
13379 test ! -s conftest.err
13380 } && test -s conftest.$ac_objext; then
13381 ac_header_compiler=yes
13383 echo "$as_me: failed program was:" >&5
13384 sed 's
/^
/|
/' conftest.$ac_ext >&5
13386 ac_header_compiler=no
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13391 echo "${ECHO_T}$ac_header_compiler" >&6; }
13393 # Is the header present?
13394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13396 cat >conftest.$ac_ext <<_ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h. */
13402 #include <$ac_header>
13404 if { (ac_try="$ac_cpp conftest.$ac_ext"
13405 case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13412 grep -v '^
*+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } >/dev/null && {
13417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13418 test ! -s conftest.err
13420 ac_header_preproc=yes
13422 echo "$as_me: failed program was:" >&5
13423 sed 's
/^
/|
/' conftest.$ac_ext >&5
13425 ac_header_preproc=no
13428 rm -f conftest.err conftest.$ac_ext
13429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 echo "${ECHO_T}$ac_header_preproc" >&6; }
13432 # So? What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13438 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13439 ac_header_preproc=yes
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13451 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 eval "$as_ac_Header=\$ac_header_preproc"
13464 ac_res=`eval echo '${'$as_ac_Header'}'`
13465 { echo "$as_me:$LINENO: result: $ac_res" >&5
13466 echo "${ECHO_T}$ac_res" >&6; }
13469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13470 cat >>confdefs.h <<_ACEOF
13471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13478 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13479 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13480 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13481 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-lpng -lz -lm $LIBS"
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13493 /* Override any GCC internal prototype to avoid an error.
13494 Use char because int might match the return type of a GCC
13495 builtin and then its argument prototype would still apply. */
13499 char png_get_channels ();
13503 return png_get_channels ();
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (ac_try="$ac_link"
13510 case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_link") 2>conftest.er1
13517 grep -v '^
*+' conftest.er1 >conftest.err
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && {
13522 test -z "$ac_c_werror_flag" ||
13523 test ! -s conftest.err
13524 } && test -s conftest$ac_exeext &&
13525 $as_test_x conftest$ac_exeext; then
13526 ac_cv_lib_png_png_get_channels=yes
13528 echo "$as_me: failed program was:" >&5
13529 sed 's
/^
/|
/' conftest.$ac_ext >&5
13531 ac_cv_lib_png_png_get_channels=no
13534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13535 conftest$ac_exeext conftest.$ac_ext
13536 LIBS=$ac_check_lib_save_LIBS
13538 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13539 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13540 if test $ac_cv_lib_png_png_get_channels = yes; then
13545 if test "${HAVE_PNG}" != "yes"; then
13546 { { echo "$as_me:$LINENO: error: libpng is required, but I didn't
find it.
13547 Maybe some development libraries
/packages are missing?
13548 Use
--with-png=no
if you don
't wan't to link with libpng
" >&5
13549 echo "$as_me: error
: libpng is required
, but I didn
't find it.
13550 Maybe some development libraries/packages are missing?
13551 Use --with-png=no if you don't wan
't to link with libpng" >&2;}
13552 { (exit 1); exit 1; }; }
13556 if test "${HAVE_PNG}" = "yes"; then
13558 cat >>confdefs.h <<\_ACEOF
13565 ### Use -ltiff if available, unless `--with-tiff=no'.
13567 if test "${HAVE_X11}" = "yes"; then
13568 if test "${with_tiff}" != "no"; then
13569 if test "${ac_cv_header_tiffio_h+set}" = set; then
13570 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13571 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13572 if test "${ac_cv_header_tiffio_h+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13576 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13578 # Is the header compilable?
13579 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13580 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13581 cat >conftest.
$ac_ext <<_ACEOF
13584 cat confdefs.h
>>conftest.
$ac_ext
13585 cat >>conftest.
$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 $ac_includes_default
13588 #include <tiffio.h>
13590 rm -f conftest.
$ac_objext
13591 if { (ac_try
="$ac_compile"
13592 case "(($ac_try" in
13593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13597 (eval "$ac_compile") 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && {
13604 test -z "$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 } && test -s conftest.$ac_objext; then
13607 ac_header_compiler=yes
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13612 ac_header_compiler=no
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13617 echo "${ECHO_T}$ac_header_compiler" >&6; }
13619 # Is the header present?
13620 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13621 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13622 cat >conftest.$ac_ext <<_ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h. */
13628 #include <tiffio.h>
13630 if { (ac_try="$ac_cpp conftest.$ac_ext"
13631 case "(($ac_try" in
13632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13633 *) ac_try_echo
=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13638 grep -v '^ *+' conftest.er1
>conftest.err
13640 cat conftest.err
>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } >/dev
/null
&& {
13643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13644 test ! -s conftest.err
13646 ac_header_preproc
=yes
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.
$ac_ext >&5
13651 ac_header_preproc
=no
13654 rm -f conftest.err conftest.
$ac_ext
13655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13656 echo "${ECHO_T}$ac_header_preproc" >&6; }
13658 # So? What about this header?
13659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13661 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13662 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13664 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13665 ac_header_preproc
=yes
13668 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13669 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13671 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13673 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13675 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13677 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13679 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13683 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13684 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13685 if test "${ac_cv_header_tiffio_h+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 ac_cv_header_tiffio_h
=$ac_header_preproc
13690 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13691 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13694 if test $ac_cv_header_tiffio_h = yes; then
13696 # At least one tiff package requires the jpeg library.
13697 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13698 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13699 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13700 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 ac_check_lib_save_LIBS
=$LIBS
13704 LIBS
="-ltiff $tifflibs $LIBS"
13705 cat >conftest.
$ac_ext <<_ACEOF
13708 cat confdefs.h
>>conftest.
$ac_ext
13709 cat >>conftest.
$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13712 /* Override any GCC internal prototype to avoid an error.
13713 Use char because int might match the return type of a GCC
13714 builtin and then its argument prototype would still apply. */
13718 char TIFFGetVersion ();
13722 return TIFFGetVersion ();
13727 rm -f conftest.
$ac_objext conftest
$ac_exeext
13728 if { (ac_try
="$ac_link"
13729 case "(($ac_try" in
13730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13731 *) ac_try_echo=$ac_try;;
13733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13734 (eval "$ac_link") 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } && {
13741 test -z "$ac_c_werror_flag" ||
13742 test ! -s conftest.err
13743 } && test -s conftest$ac_exeext &&
13744 $as_test_x conftest$ac_exeext; then
13745 ac_cv_lib_tiff_TIFFGetVersion=yes
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ac_cv_lib_tiff_TIFFGetVersion=no
13753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13754 conftest$ac_exeext conftest.$ac_ext
13755 LIBS=$ac_check_lib_save_LIBS
13757 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13758 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13759 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13766 if test "${HAVE_TIFF}" != "yes"; then
13767 { { echo "$as_me:$LINENO: error: libtiff is required, but I didn't find it.
13768 Maybe some development libraries/packages are missing?
13769 Use --with-tiff=no if you don't wan't to link with libtiff" >&5
13770 echo "$as_me: error: libtiff is required, but I didn't find it.
13771 Maybe some development libraries/packages are missing?
13772 Use --with-tiff=no if you don't wan't to link with libtiff" >&2;}
13773 { (exit 1); exit 1; }; }
13777 if test "${HAVE_TIFF}" = "yes"; then
13779 cat >>confdefs.h <<\_ACEOF
13780 #define HAVE_TIFF 1
13786 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
13788 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13789 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13790 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13791 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13792 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13795 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13796 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13798 # Is the header compilable?
13799 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13800 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 $ac_includes_default
13808 #include <gif_lib.h>
13810 rm -f conftest.$ac_objext
13811 if { (ac_try="$ac_compile"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_compile") 2>conftest.er1
13819 grep -v '^
*+' conftest.er1 >conftest.err
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } && {
13824 test -z "$ac_c_werror_flag" ||
13825 test ! -s conftest.err
13826 } && test -s conftest.$ac_objext; then
13827 ac_header_compiler=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's
/^
/|
/' conftest.$ac_ext >&5
13832 ac_header_compiler=no
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13837 echo "${ECHO_T}$ac_header_compiler" >&6; }
13839 # Is the header present?
13840 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13841 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13842 cat >conftest.$ac_ext <<_ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 #include <gif_lib.h>
13850 if { (ac_try="$ac_cpp conftest.$ac_ext"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13858 grep -v '^
*+' conftest.er1 >conftest.err
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } >/dev/null && {
13863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13866 ac_header_preproc=yes
13868 echo "$as_me: failed program was:" >&5
13869 sed 's
/^
/|
/' conftest.$ac_ext >&5
13871 ac_header_preproc=no
13874 rm -f conftest.err conftest.$ac_ext
13875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13876 echo "${ECHO_T}$ac_header_preproc" >&6; }
13878 # So? What about this header?
13879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13881 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13882 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
13884 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
13885 ac_header_preproc=yes
13888 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13889 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13890 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13891 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13893 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13895 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
13897 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13899 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13903 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13904 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13905 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 ac_cv_header_gif_lib_h=$ac_header_preproc
13910 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13911 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13914 if test $ac_cv_header_gif_lib_h = yes; then
13915 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13916 # Earlier versions can crash Emacs.
13917 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13918 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13919 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 ac_check_lib_save_LIBS=$LIBS
13923 LIBS="-lungif $LIBS"
13924 cat >conftest.$ac_ext <<_ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13931 /* Override any GCC internal prototype to avoid an error.
13932 Use char because int might match the return type of a GCC
13933 builtin and then its argument prototype would still apply. */
13937 char EGifPutExtensionLast ();
13941 return EGifPutExtensionLast ();
13946 rm -f conftest.$ac_objext conftest$ac_exeext
13947 if { (ac_try="$ac_link"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_link") 2>conftest.er1
13955 grep -v '^
*+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest$ac_exeext &&
13963 $as_test_x conftest$ac_exeext; then
13964 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13966 echo "$as_me: failed program was:" >&5
13967 sed 's
/^
/|
/' conftest.$ac_ext >&5
13969 ac_cv_lib_ungif_EGifPutExtensionLast=no
13972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13973 conftest$ac_exeext conftest.$ac_ext
13974 LIBS=$ac_check_lib_save_LIBS
13976 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13977 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13978 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13988 if test "$HAVE_GIF" = yes; then
13989 ac_gif_lib_name="-lungif"
13992 # If gif_lib.h but no libungif, try libgif.
13993 if test x"$try_libgif" = xyes; then
13994 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13995 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13996 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 ac_check_lib_save_LIBS=$LIBS
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14008 /* Override any GCC internal prototype to avoid an error.
14009 Use char because int might match the return type of a GCC
14010 builtin and then its argument prototype would still apply. */
14014 char EGifPutExtensionLast ();
14018 return EGifPutExtensionLast ();
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (ac_try="$ac_link"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_link") 2>conftest.er1
14032 grep -v '^
*+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest$ac_exeext &&
14040 $as_test_x conftest$ac_exeext; then
14041 ac_cv_lib_gif_EGifPutExtensionLast=yes
14043 echo "$as_me: failed program was:" >&5
14044 sed 's
/^
/|
/' conftest.$ac_ext >&5
14046 ac_cv_lib_gif_EGifPutExtensionLast=no
14049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14050 conftest$ac_exeext conftest.$ac_ext
14051 LIBS=$ac_check_lib_save_LIBS
14053 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14054 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14055 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14060 if test "$HAVE_GIF" = yes; then
14062 cat >>confdefs.h <<\_ACEOF
14063 #define LIBGIF -lgif
14066 ac_gif_lib_name="-lgif"
14070 if test "${HAVE_GIF}" = "yes"; then
14072 cat >>confdefs.h <<\_ACEOF
14077 { { echo "$as_me:$LINENO: error: libgif or libungif is required, but I didn't
find it.
14078 Maybe some development libraries
/packages are missing?
14079 Use
--with-gif=no
if you don
't wan't to link with libgif
/ungif
" >&5
14080 echo "$as_me: error
: libgif or libungif is required
, but I didn
't find it.
14081 Maybe some development libraries/packages are missing?
14082 Use --with-gif=no if you don't wan
't to link with libgif/ungif" >&2;}
14083 { (exit 1); exit 1; }; }
14087 ### Use -lgpm if available, unless `--with-gpm=no'.
14089 if test "${with_gpm}" != "no"; then
14090 if test "${ac_cv_header_gpm_h+set}" = set; then
14091 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14092 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14093 if test "${ac_cv_header_gpm_h+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14097 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14099 # Is the header compilable?
14100 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14101 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14102 cat >conftest.
$ac_ext <<_ACEOF
14105 cat confdefs.h
>>conftest.
$ac_ext
14106 cat >>conftest.
$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 $ac_includes_default
14111 rm -f conftest.
$ac_objext
14112 if { (ac_try
="$ac_compile"
14113 case "(($ac_try" in
14114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_compile") 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && {
14125 test -z "$ac_c_werror_flag" ||
14126 test ! -s conftest.err
14127 } && test -s conftest.$ac_objext; then
14128 ac_header_compiler=yes
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_header_compiler=no
14136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14138 echo "${ECHO_T}$ac_header_compiler" >&6; }
14140 # Is the header present?
14141 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14142 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14143 cat >conftest.$ac_ext <<_ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14151 if { (ac_try="$ac_cpp conftest.$ac_ext"
14152 case "(($ac_try" in
14153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14154 *) ac_try_echo
=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14159 grep -v '^ *+' conftest.er1
>conftest.err
14161 cat conftest.err
>&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } >/dev
/null
&& {
14164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14167 ac_header_preproc
=yes
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.
$ac_ext >&5
14172 ac_header_preproc
=no
14175 rm -f conftest.err conftest.
$ac_ext
14176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14177 echo "${ECHO_T}$ac_header_preproc" >&6; }
14179 # So? What about this header?
14180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14182 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14183 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14185 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14186 ac_header_preproc
=yes
14189 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14190 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14192 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14194 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14195 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14196 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14198 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14200 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14204 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14205 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14206 if test "${ac_cv_header_gpm_h+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 ac_cv_header_gpm_h
=$ac_header_preproc
14211 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14212 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14215 if test $ac_cv_header_gpm_h = yes; then
14216 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14217 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14218 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 ac_check_lib_save_LIBS
=$LIBS
14223 cat >conftest.
$ac_ext <<_ACEOF
14226 cat confdefs.h
>>conftest.
$ac_ext
14227 cat >>conftest.
$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14240 return Gpm_Open ();
14245 rm -f conftest.
$ac_objext conftest
$ac_exeext
14246 if { (ac_try
="$ac_link"
14247 case "(($ac_try" in
14248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_link") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest$ac_exeext &&
14262 $as_test_x conftest$ac_exeext; then
14263 ac_cv_lib_gpm_Gpm_Open=yes
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14268 ac_cv_lib_gpm_Gpm_Open=no
14271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14272 conftest$ac_exeext conftest.$ac_ext
14273 LIBS=$ac_check_lib_save_LIBS
14275 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14276 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14277 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14286 if test "${HAVE_GPM}" = "yes"; then
14288 cat >>confdefs.h <<\_ACEOF
14294 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14295 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14296 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14297 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14301 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14303 # Is the header compilable?
14304 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14305 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14313 #include <malloc/malloc.h>
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14319 *) ac_try_echo
=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1
>conftest.err
14326 cat conftest.err
>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest.
$ac_objext; then
14332 ac_header_compiler
=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.
$ac_ext >&5
14337 ac_header_compiler
=no
14340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14342 echo "${ECHO_T}$ac_header_compiler" >&6; }
14344 # Is the header present?
14345 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14346 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14347 cat >conftest.
$ac_ext <<_ACEOF
14350 cat confdefs.h
>>conftest.
$ac_ext
14351 cat >>conftest.
$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 #include <malloc/malloc.h>
14355 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14356 case "(($ac_try" in
14357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14363 grep -v '^ *+' conftest.er1 >conftest.err
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } >/dev/null && {
14368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14371 ac_header_preproc=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_preproc=no
14379 rm -f conftest.err conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14381 echo "${ECHO_T}$ac_header_preproc" >&6; }
14383 # So? What about this header?
14384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14386 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14387 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14388 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14389 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14390 ac_header_preproc=yes
14393 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14394 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14395 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14396 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14397 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14398 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14400 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14402 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14404 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14408 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14409 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14410 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14415 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14416 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14419 if test $ac_cv_header_malloc_malloc_h = yes; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_MALLOC_MALLOC_H 1
14429 ### Use Mac OS X Carbon API to implement GUI.
14430 if test "${HAVE_CARBON}" = "yes"; then
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_CARBON 1
14436 ## Specify the install directory
14438 if test "${carbon_appdir_x}" != ""; then
14439 case ${carbon_appdir_x} in
14440 y | ye | yes) carbon_appdir=/Applications ;;
14441 * ) carbon_appdir=${carbon_appdir_x} ;;
14444 # We also have mouse menus.
14448 ### Use session management (-lSM -lICE) if available
14450 if test "${HAVE_X11}" = "yes"; then
14451 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14452 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14453 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14454 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14458 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14460 # Is the header compilable?
14461 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14462 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14463 cat >conftest.$ac_ext <<_ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14469 $ac_includes_default
14470 #include <X11/SM/SMlib.h>
14472 rm -f conftest.$ac_objext
14473 if { (ac_try="$ac_compile"
14474 case "(($ac_try" in
14475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14476 *) ac_try_echo
=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_compile") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1
>conftest.err
14483 cat conftest.err
>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest.
$ac_objext; then
14489 ac_header_compiler
=yes
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.
$ac_ext >&5
14494 ac_header_compiler
=no
14497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14499 echo "${ECHO_T}$ac_header_compiler" >&6; }
14501 # Is the header present?
14502 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14503 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14504 cat >conftest.
$ac_ext <<_ACEOF
14507 cat confdefs.h
>>conftest.
$ac_ext
14508 cat >>conftest.
$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <X11/SM/SMlib.h>
14512 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14513 case "(($ac_try" in
14514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14520 grep -v '^ *+' conftest.er1 >conftest.err
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } >/dev/null && {
14525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14526 test ! -s conftest.err
14528 ac_header_preproc=yes
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_header_preproc=no
14536 rm -f conftest.err conftest.$ac_ext
14537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14538 echo "${ECHO_T}$ac_header_preproc" >&6; }
14540 # So? What about this header?
14541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14543 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14544 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14546 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14547 ac_header_preproc=yes
14550 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14551 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14553 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14555 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14557 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14559 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14561 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14565 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14566 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14567 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14572 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14573 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14576 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14577 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14578 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14579 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lSM -lICE $LIBS"
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14591 /* Override any GCC internal prototype to avoid an error.
14592 Use char because int might match the return type of a GCC
14593 builtin and then its argument prototype would still apply. */
14597 char SmcOpenConnection ();
14601 return SmcOpenConnection ();
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (ac_try="$ac_link"
14608 case "(($ac_try" in
14609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14610 *) ac_try_echo
=$ac_try;;
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613 (eval "$ac_link") 2>conftest.er1
14615 grep -v '^ *+' conftest.er1
>conftest.err
14617 cat conftest.err
>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); } && {
14620 test -z "$ac_c_werror_flag" ||
14621 test ! -s conftest.err
14622 } && test -s conftest
$ac_exeext &&
14623 $as_test_x conftest
$ac_exeext; then
14624 ac_cv_lib_SM_SmcOpenConnection
=yes
14626 echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.
$ac_ext >&5
14629 ac_cv_lib_SM_SmcOpenConnection
=no
14632 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14633 conftest
$ac_exeext conftest.
$ac_ext
14634 LIBS
=$ac_check_lib_save_LIBS
14636 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14637 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14638 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14646 if test "${HAVE_X_SM}" = "yes"; then
14648 cat >>confdefs.h
<<\_ACEOF
14649 #define HAVE_X_SM 1
14654 *) LIBS
="-lSM -lICE $LIBS" ;;
14659 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14660 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14661 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14662 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 cat >conftest.
$ac_ext <<_ACEOF
14668 cat confdefs.h
>>conftest.
$ac_ext
14669 cat >>conftest.
$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14680 rm -f conftest.
$ac_objext conftest
$ac_exeext
14681 if { (ac_try
="$ac_link"
14682 case "(($ac_try" in
14683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_link") 2>conftest.er1
14689 grep -v '^ *+' conftest.er1 >conftest.err
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && {
14694 test -z "$ac_c_werror_flag" ||
14695 test ! -s conftest.err
14696 } && test -s conftest$ac_exeext &&
14697 $as_test_x conftest$ac_exeext; then
14698 emacs_cv_netdb_declares_h_errno=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 emacs_cv_netdb_declares_h_errno=no
14706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14707 conftest$ac_exeext conftest.$ac_ext
14709 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14710 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14711 if test $emacs_cv_netdb_declares_h_errno = yes; then
14713 cat >>confdefs.h <<\_ACEOF
14714 #define HAVE_H_ERRNO 1
14719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14720 # for constant arguments. Useless!
14721 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14722 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14723 if test "${ac_cv_working_alloca_h+set}" = set; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 #include <alloca.h>
14736 char *p = (char *) alloca (2 * sizeof (int));
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14746 *) ac_try_echo
=$ac_try;;
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749 (eval "$ac_link") 2>conftest.er1
14751 grep -v '^ *+' conftest.er1
>conftest.err
14753 cat conftest.err
>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } && {
14756 test -z "$ac_c_werror_flag" ||
14757 test ! -s conftest.err
14758 } && test -s conftest
$ac_exeext &&
14759 $as_test_x conftest
$ac_exeext; then
14760 ac_cv_working_alloca_h
=yes
14762 echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.
$ac_ext >&5
14765 ac_cv_working_alloca_h
=no
14768 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14769 conftest
$ac_exeext conftest.
$ac_ext
14771 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14772 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14773 if test $ac_cv_working_alloca_h = yes; then
14775 cat >>confdefs.h
<<\_ACEOF
14776 #define HAVE_ALLOCA_H 1
14781 { echo "$as_me:$LINENO: checking for alloca" >&5
14782 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14783 if test "${ac_cv_func_alloca_works+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 cat >conftest.
$ac_ext <<_ACEOF
14789 cat confdefs.h
>>conftest.
$ac_ext
14790 cat >>conftest.
$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14793 # define alloca __builtin_alloca
14796 # include <malloc.h>
14797 # define alloca _alloca
14799 # ifdef HAVE_ALLOCA_H
14800 # include <alloca.h>
14805 # ifndef alloca /* predefined by HP cc +Olibcalls */
14816 char *p = (char *) alloca (1);
14822 rm -f conftest.
$ac_objext conftest
$ac_exeext
14823 if { (ac_try
="$ac_link"
14824 case "(($ac_try" in
14825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_link") 2>conftest.er1
14831 grep -v '^ *+' conftest.er1 >conftest.err
14833 cat conftest.err >&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } && {
14836 test -z "$ac_c_werror_flag" ||
14837 test ! -s conftest.err
14838 } && test -s conftest$ac_exeext &&
14839 $as_test_x conftest$ac_exeext; then
14840 ac_cv_func_alloca_works=yes
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14845 ac_cv_func_alloca_works=no
14848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14849 conftest$ac_exeext conftest.$ac_ext
14851 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14852 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14854 if test $ac_cv_func_alloca_works = yes; then
14856 cat >>confdefs.h <<\_ACEOF
14857 #define HAVE_ALLOCA 1
14861 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14862 # that cause trouble. Some versions do not even contain alloca or
14863 # contain a buggy version. If you still want to use their alloca,
14864 # use ar to extract alloca.o from them instead of compiling alloca.c.
14866 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14868 cat >>confdefs.h <<\_ACEOF
14873 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14874 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14875 if test "${ac_cv_os_cray+set}" = set; then
14876 echo $ECHO_N "(cached
) $ECHO_C" >&6
14878 cat >conftest.$ac_ext <<_ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14884 #if defined CRAY && ! defined CRAY2
14891 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14892 $EGREP "webecray
" >/dev/null 2>&1; then
14900 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14901 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14902 if test $ac_cv_os_cray = yes; then
14903 for ac_func in _getb67 GETB67 getb67; do
14904 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14905 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14906 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14907 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14908 echo $ECHO_N "(cached
) $ECHO_C" >&6
14910 cat >conftest.$ac_ext <<_ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14918 #define $ac_func innocuous_$ac_func
14920 /* System header to define __stub macros and hopefully few prototypes,
14921 which can conflict with char $ac_func (); below.
14922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14923 <limits.h> exists even on freestanding compilers. */
14926 # include <limits.h>
14928 # include <assert.h>
14933 /* Override any GCC internal prototype to avoid an error.
14934 Use char because int might match the return type of a GCC
14935 builtin and then its argument prototype would still apply. */
14940 /* The GNU C library defines this for functions which it implements
14941 to always fail with ENOSYS. Some functions are actually named
14942 something starting with __ and the normal name is an alias. */
14943 #if defined __stub_$ac_func || defined __stub___$ac_func
14950 return $ac_func ();
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14962 (eval "$ac_link") 2>conftest.er1
14964 grep -v '^ *+' conftest.er1 >conftest.err
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14968 (exit $ac_status); } && {
14969 test -z "$ac_c_werror_flag" ||
14970 test ! -s conftest.err
14971 } && test -s conftest$ac_exeext &&
14972 $as_test_x conftest$ac_exeext; then
14973 eval "$as_ac_var=yes"
14975 echo "$as_me: failed program was
:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 eval "$as_ac_var=no
"
14981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14982 conftest$ac_exeext conftest.$ac_ext
14984 ac_res=`eval echo '${'$as_ac_var'}'`
14985 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14986 echo "${ECHO_T}$ac_res" >&6; }
14987 if test `eval echo '${'$as_ac_var'}'` = yes; then
14989 cat >>confdefs.h <<_ACEOF
14990 #define CRAY_STACKSEG_END $ac_func
14999 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15000 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15001 if test "${ac_cv_c_stack_direction+set}" = set; then
15002 echo $ECHO_N "(cached
) $ECHO_C" >&6
15004 if test "$cross_compiling" = yes; then
15005 ac_cv_c_stack_direction=0
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 $ac_includes_default
15015 find_stack_direction ()
15017 static char *addr = 0;
15022 return find_stack_direction ();
15025 return (&dummy > addr) ? 1 : -1;
15031 return find_stack_direction () < 0;
15034 rm -f conftest$ac_exeext
15035 if { (ac_try="$ac_link"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_link") 2>&5
15043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15045 { (case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_try") 2>&5
15052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_cv_c_stack_direction=1
15056 echo "$as_me: program exited with status
$ac_status" >&5
15057 echo "$as_me: failed program was
:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 ( exit $ac_status )
15061 ac_cv_c_stack_direction=-1
15063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15068 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15069 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15071 cat >>confdefs.h <<_ACEOF
15072 #define STACK_DIRECTION $ac_cv_c_stack_direction
15079 # fmod, logb, and frexp are found in -lm on most systems.
15080 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15082 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15083 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15084 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15085 echo $ECHO_N "(cached
) $ECHO_C" >&6
15087 ac_check_lib_save_LIBS=$LIBS
15089 cat >conftest.$ac_ext <<_ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15096 /* Override any GCC internal prototype to avoid an error.
15097 Use char because int might match the return type of a GCC
15098 builtin and then its argument prototype would still apply. */
15111 rm -f conftest.$ac_objext conftest$ac_exeext
15112 if { (ac_try="$ac_link"
15113 case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_link") 2>conftest.er1
15120 grep -v '^ *+' conftest.er1 >conftest.err
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15124 (exit $ac_status); } && {
15125 test -z "$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15127 } && test -s conftest$ac_exeext &&
15128 $as_test_x conftest$ac_exeext; then
15129 ac_cv_lib_m_sqrt=yes
15131 echo "$as_me: failed program was
:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15134 ac_cv_lib_m_sqrt=no
15137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15138 conftest$ac_exeext conftest.$ac_ext
15139 LIBS=$ac_check_lib_save_LIBS
15141 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15142 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15143 if test $ac_cv_lib_m_sqrt = yes; then
15144 cat >>confdefs.h <<_ACEOF
15145 #define HAVE_LIBM 1
15153 # Check for mail-locking functions in a "mail" library. Probably this should
15154 # have the same check as for liblockfile below.
15156 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15157 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15158 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15159 echo $ECHO_N "(cached
) $ECHO_C" >&6
15161 ac_check_lib_save_LIBS=$LIBS
15162 LIBS="-lmail $LIBS"
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15180 return maillock ();
15185 rm -f conftest.$ac_objext conftest$ac_exeext
15186 if { (ac_try="$ac_link"
15187 case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_link") 2>conftest.er1
15194 grep -v '^ *+' conftest.er1 >conftest.err
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15198 (exit $ac_status); } && {
15199 test -z "$ac_c_werror_flag" ||
15200 test ! -s conftest.err
15201 } && test -s conftest$ac_exeext &&
15202 $as_test_x conftest$ac_exeext; then
15203 ac_cv_lib_mail_maillock=yes
15205 echo "$as_me: failed program was
:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15208 ac_cv_lib_mail_maillock=no
15211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15212 conftest$ac_exeext conftest.$ac_ext
15213 LIBS=$ac_check_lib_save_LIBS
15215 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15216 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15217 if test $ac_cv_lib_mail_maillock = yes; then
15218 cat >>confdefs.h <<_ACEOF
15219 #define HAVE_LIBMAIL 1
15222 LIBS="-lmail $LIBS"
15227 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15228 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15229 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15230 echo $ECHO_N "(cached
) $ECHO_C" >&6
15232 ac_check_lib_save_LIBS=$LIBS
15233 LIBS="-llockfile $LIBS"
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15241 /* Override any GCC internal prototype to avoid an error.
15242 Use char because int might match the return type of a GCC
15243 builtin and then its argument prototype would still apply. */
15251 return maillock ();
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (ac_try="$ac_link"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15263 (eval "$ac_link") 2>conftest.er1
15265 grep -v '^ *+' conftest.er1 >conftest.err
15267 cat conftest.err >&5
15268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15269 (exit $ac_status); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
15272 } && test -s conftest$ac_exeext &&
15273 $as_test_x conftest$ac_exeext; then
15274 ac_cv_lib_lockfile_maillock=yes
15276 echo "$as_me: failed program was
:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_cv_lib_lockfile_maillock=no
15282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15283 conftest$ac_exeext conftest.$ac_ext
15284 LIBS=$ac_check_lib_save_LIBS
15286 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15287 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15288 if test $ac_cv_lib_lockfile_maillock = yes; then
15289 cat >>confdefs.h <<_ACEOF
15290 #define HAVE_LIBLOCKFILE 1
15293 LIBS="-llockfile $LIBS"
15297 # If we have the shared liblockfile, assume we must use it for mail
15298 # locking (e.g. Debian). If we couldn't link against liblockfile
15299 # (no liblockfile.a installed), ensure that we don't need to.
15300 if test "$ac_cv_lib_lockfile_maillock" = no; then
15301 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15302 set dummy liblockfile.so; ac_word=$2
15303 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15304 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15305 if test "${ac_cv_prog_liblockfile+set}" = set; then
15306 echo $ECHO_N "(cached
) $ECHO_C" >&6
15308 if test -n "$liblockfile"; then
15309 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15313 for as_dir in $as_dummy
15316 test -z "$as_dir" && as_dir=.
15317 for ac_exec_ext in '' $ac_executable_extensions; do
15318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15319 ac_cv_prog_liblockfile="yes"
15320 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15327 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15330 liblockfile=$ac_cv_prog_liblockfile
15331 if test -n "$liblockfile"; then
15332 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15333 echo "${ECHO_T}$liblockfile" >&6; }
15335 { echo "$as_me:$LINENO: result
: no
" >&5
15336 echo "${ECHO_T}no
" >&6; }
15340 if test $ac_cv_prog_liblockfile = yes; then
15341 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15342 This probably means that movemail could lose mail.
15343 There may be a \`development' package to
install containing liblockfile.
" >&5
15344 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15345 This probably means that movemail could lose mail.
15346 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15347 { (exit 1); exit 1; }; }
15352 for ac_func in touchlock
15354 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15355 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15356 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15357 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15358 echo $ECHO_N "(cached
) $ECHO_C" >&6
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15368 #define $ac_func innocuous_$ac_func
15370 /* System header to define __stub macros and hopefully few prototypes,
15371 which can conflict with char $ac_func (); below.
15372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15373 <limits.h> exists even on freestanding compilers. */
15376 # include <limits.h>
15378 # include <assert.h>
15383 /* Override any GCC internal prototype to avoid an error.
15384 Use char because int might match the return type of a GCC
15385 builtin and then its argument prototype would still apply. */
15390 /* The GNU C library defines this for functions which it implements
15391 to always fail with ENOSYS. Some functions are actually named
15392 something starting with __ and the normal name is an alias. */
15393 #if defined __stub_$ac_func || defined __stub___$ac_func
15400 return $ac_func ();
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15418 (exit $ac_status); } && {
15419 test -z "$ac_c_werror_flag" ||
15420 test ! -s conftest.err
15421 } && test -s conftest$ac_exeext &&
15422 $as_test_x conftest$ac_exeext; then
15423 eval "$as_ac_var=yes"
15425 echo "$as_me: failed program was
:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 eval "$as_ac_var=no
"
15431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15432 conftest$ac_exeext conftest.$ac_ext
15434 ac_res=`eval echo '${'$as_ac_var'}'`
15435 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15436 echo "${ECHO_T}$ac_res" >&6; }
15437 if test `eval echo '${'$as_ac_var'}'` = yes; then
15438 cat >>confdefs.h <<_ACEOF
15439 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15446 for ac_header in maillock.h
15448 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15449 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15450 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15451 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached
) $ECHO_C" >&6
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15459 # Is the header compilable?
15460 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15461 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15469 #include <$ac_header>
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_compile") 2>conftest.er1
15480 grep -v '^ *+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15484 (exit $ac_status); } && {
15485 test -z "$ac_c_werror_flag" ||
15486 test ! -s conftest.err
15487 } && test -s conftest.$ac_objext; then
15488 ac_header_compiler=yes
15490 echo "$as_me: failed program was
:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_header_compiler=no
15496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15498 echo "${ECHO_T}$ac_header_compiler" >&6; }
15500 # Is the header present?
15501 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15502 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 #include <$ac_header>
15511 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
15524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15525 test ! -s conftest.err
15527 ac_header_preproc=yes
15529 echo "$as_me: failed program was
:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15532 ac_header_preproc=no
15535 rm -f conftest.err conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15537 echo "${ECHO_T}$ac_header_preproc" >&6; }
15539 # So? What about this header?
15540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15542 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15543 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15544 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15546 ac_header_preproc=yes
15549 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15550 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15551 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15552 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15553 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15554 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15555 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15556 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15557 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15559 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15560 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15564 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15565 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15567 echo $ECHO_N "(cached
) $ECHO_C" >&6
15569 eval "$as_ac_Header=\
$ac_header_preproc"
15571 ac_res=`eval echo '${'$as_ac_Header'}'`
15572 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15573 echo "${ECHO_T}$ac_res" >&6; }
15576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15577 cat >>confdefs.h <<_ACEOF
15578 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15655 for ac_func in gethostname getdomainname dup2 \
15656 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15657 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15658 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15659 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15660 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15661 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15662 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15663 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15665 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15666 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15667 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15668 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15669 echo $ECHO_N "(cached
) $ECHO_C" >&6
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15679 #define $ac_func innocuous_$ac_func
15681 /* System header to define __stub macros and hopefully few prototypes,
15682 which can conflict with char $ac_func (); below.
15683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15684 <limits.h> exists even on freestanding compilers. */
15687 # include <limits.h>
15689 # include <assert.h>
15694 /* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15701 /* The GNU C library defines this for functions which it implements
15702 to always fail with ENOSYS. Some functions are actually named
15703 something starting with __ and the normal name is an alias. */
15704 #if defined __stub_$ac_func || defined __stub___$ac_func
15711 return $ac_func ();
15716 rm -f conftest.$ac_objext conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_link") 2>conftest.er1
15725 grep -v '^ *+' conftest.er1 >conftest.err
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15729 (exit $ac_status); } && {
15730 test -z "$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15732 } && test -s conftest$ac_exeext &&
15733 $as_test_x conftest$ac_exeext; then
15734 eval "$as_ac_var=yes"
15736 echo "$as_me: failed program was
:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 eval "$as_ac_var=no
"
15742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15743 conftest$ac_exeext conftest.$ac_ext
15745 ac_res=`eval echo '${'$as_ac_var'}'`
15746 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15747 echo "${ECHO_T}$ac_res" >&6; }
15748 if test `eval echo '${'$as_ac_var'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15758 for ac_header in sys/un.h
15760 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15761 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15762 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15763 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached
) $ECHO_C" >&6
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15771 # Is the header compilable?
15772 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15773 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <$ac_header>
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_compile") 2>conftest.er1
15792 grep -v '^ *+' conftest.er1 >conftest.err
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15796 (exit $ac_status); } && {
15797 test -z "$ac_c_werror_flag" ||
15798 test ! -s conftest.err
15799 } && test -s conftest.$ac_objext; then
15800 ac_header_compiler=yes
15802 echo "$as_me: failed program was
:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_compiler=no
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15814 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15821 #include <$ac_header>
15823 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15835 (exit $ac_status); } >/dev/null && {
15836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15839 ac_header_preproc=yes
15841 echo "$as_me: failed program was
:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 ac_header_preproc=no
15847 rm -f conftest.err conftest.$ac_ext
15848 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15849 echo "${ECHO_T}$ac_header_preproc" >&6; }
15851 # So? What about this header?
15852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15854 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15855 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15856 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15858 ac_header_preproc=yes
15861 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15862 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15863 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15864 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15866 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15867 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15868 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15869 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15871 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15872 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15876 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15877 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached
) $ECHO_C" >&6
15881 eval "$as_ac_Header=\
$ac_header_preproc"
15883 ac_res=`eval echo '${'$as_ac_Header'}'`
15884 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15885 echo "${ECHO_T}$ac_res" >&6; }
15888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15889 cat >>confdefs.h <<_ACEOF
15890 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15902 for ac_header in $ac_header_list
15904 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15905 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15906 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15907 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15908 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15909 echo $ECHO_N "(cached
) $ECHO_C" >&6
15911 ac_res=`eval echo '${'$as_ac_Header'}'`
15912 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15913 echo "${ECHO_T}$ac_res" >&6; }
15915 # Is the header compilable?
15916 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15917 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 $ac_includes_default
15925 #include <$ac_header>
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15944 ac_header_compiler=yes
15946 echo "$as_me: failed program was
:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_header_compiler=no
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15954 echo "${ECHO_T}$ac_header_compiler" >&6; }
15956 # Is the header present?
15957 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15958 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15959 cat >conftest.$ac_ext <<_ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 #include <$ac_header>
15967 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15968 case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15975 grep -v '^ *+' conftest.er1 >conftest.err
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15979 (exit $ac_status); } >/dev/null && {
15980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15983 ac_header_preproc=yes
15985 echo "$as_me: failed program was
:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_header_preproc=no
15991 rm -f conftest.err conftest.$ac_ext
15992 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15993 echo "${ECHO_T}$ac_header_preproc" >&6; }
15995 # So? What about this header?
15996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15998 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15999 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16000 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16002 ac_header_preproc=yes
16005 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16006 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16007 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16008 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16009 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16010 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16011 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16012 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16013 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16015 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16016 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16020 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16021 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16022 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16023 echo $ECHO_N "(cached
) $ECHO_C" >&6
16025 eval "$as_ac_Header=\
$ac_header_preproc"
16027 ac_res=`eval echo '${'$as_ac_Header'}'`
16028 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16029 echo "${ECHO_T}$ac_res" >&6; }
16032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16033 cat >>confdefs.h <<_ACEOF
16034 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16049 for ac_func in $ac_func_list
16051 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16052 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16053 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16054 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached
) $ECHO_C" >&6
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16065 #define $ac_func innocuous_$ac_func
16067 /* System header to define __stub macros and hopefully few prototypes,
16068 which can conflict with char $ac_func (); below.
16069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16070 <limits.h> exists even on freestanding compilers. */
16073 # include <limits.h>
16075 # include <assert.h>
16080 /* Override any GCC internal prototype to avoid an error.
16081 Use char because int might match the return type of a GCC
16082 builtin and then its argument prototype would still apply. */
16087 /* The GNU C library defines this for functions which it implements
16088 to always fail with ENOSYS. Some functions are actually named
16089 something starting with __ and the normal name is an alias. */
16090 #if defined __stub_$ac_func || defined __stub___$ac_func
16097 return $ac_func ();
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (ac_try="$ac_link"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_link") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest$ac_exeext &&
16119 $as_test_x conftest$ac_exeext; then
16120 eval "$as_ac_var=yes"
16122 echo "$as_me: failed program was
:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 eval "$as_ac_var=no
"
16128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16129 conftest$ac_exeext conftest.$ac_ext
16131 ac_res=`eval echo '${'$as_ac_var'}'`
16132 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16134 if test `eval echo '${'$as_ac_var'}'` = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16158 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16159 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16160 if test "${ac_cv_func_working_mktime+set}" = set; then
16161 echo $ECHO_N "(cached
) $ECHO_C" >&6
16163 if test "$cross_compiling" = yes; then
16164 ac_cv_func_working_mktime=no
16166 cat >conftest.$ac_ext <<_ACEOF
16169 cat confdefs.h >>conftest.$ac_ext
16170 cat >>conftest.$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16172 /* Test program from Paul Eggert and Tony Leneis. */
16173 #ifdef TIME_WITH_SYS_TIME
16174 # include <sys/time.h>
16177 # ifdef HAVE_SYS_TIME_H
16178 # include <sys/time.h>
16184 #include <stdlib.h>
16186 #ifdef HAVE_UNISTD_H
16187 # include <unistd.h>
16191 # define alarm(X) /* empty */
16194 /* Work around redefinition to rpl_putenv by other config tests. */
16197 static time_t time_t_max;
16198 static time_t time_t_min;
16200 /* Values we'll use to set the TZ environment variable. */
16201 static char *tz_strings[] = {
16202 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16203 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16205 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16207 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16208 Based on a problem report from Andreas Jaeger. */
16210 spring_forward_gap ()
16212 /* glibc (up to about 1998-10-07) failed this test. */
16215 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16216 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16217 on systems that don't support the Olson extension, or don't have the
16218 full zoneinfo tables installed. */
16219 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16228 return mktime (&tm) != (time_t) -1;
16236 return ! (lt = localtime (&now)) || mktime (lt) == now;
16243 return (mktime_test1 (now)
16244 && mktime_test1 ((time_t) (time_t_max - now))
16245 && mktime_test1 ((time_t) (time_t_min + now)));
16251 /* Based on code from Ariel Faigon. */
16261 return tm.tm_mon == 2 && tm.tm_mday == 31;
16270 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16271 now = mktime (&tm);
16272 if (now != (time_t) -1)
16274 struct tm *lt = localtime (&now);
16276 && lt->tm_year == tm.tm_year
16277 && lt->tm_mon == tm.tm_mon
16278 && lt->tm_mday == tm.tm_mday
16279 && lt->tm_hour == tm.tm_hour
16280 && lt->tm_min == tm.tm_min
16281 && lt->tm_sec == tm.tm_sec
16282 && lt->tm_yday == tm.tm_yday
16283 && lt->tm_wday == tm.tm_wday
16284 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16285 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16294 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16295 ignoring leap seconds. */
16296 unsigned long int answer = 2527315200UL;
16300 tm.tm_year = 2050 - 1900;
16303 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16306 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16307 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16308 on systems that don't support the Olson extension, or don't have the
16309 full zoneinfo tables installed. */
16310 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16314 /* Check that the result is either a failure, or close enough
16315 to the correct answer that we can assume the discrepancy is
16316 due to leap seconds. */
16317 return (t == (time_t) -1
16318 || (0 < t && answer - 120 <= t && t <= answer + 120));
16327 /* This test makes some buggy mktime implementations loop.
16328 Give up after 60 seconds; a mktime slower than that
16329 isn't worth using anyway. */
16332 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16335 if ((time_t) -1 < 0)
16336 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16338 delta = time_t_max / 997; /* a suitable prime number */
16339 for (i = 0; i < N_STRINGS; i++)
16342 putenv (tz_strings[i]);
16344 for (t = 0; t <= time_t_max - delta; t += delta)
16345 if (! mktime_test (t))
16347 if (! (mktime_test ((time_t) 1)
16348 && mktime_test ((time_t) (60 * 60))
16349 && mktime_test ((time_t) (60 * 60 * 24))))
16352 for (j = 1; 0 < j; j *= 2)
16353 if (! bigtime_test (j))
16355 if (! bigtime_test (j - 1))
16358 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16361 rm -f conftest$ac_exeext
16362 if { (ac_try="$ac_link"
16363 case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_link") 2>&5
16370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16380 (exit $ac_status); }; }; then
16381 ac_cv_func_working_mktime=yes
16383 echo "$as_me: program exited with status
$ac_status" >&5
16384 echo "$as_me: failed program was
:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ( exit $ac_status )
16388 ac_cv_func_working_mktime=no
16390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16396 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16397 if test $ac_cv_func_working_mktime = no; then
16398 case " $LIBOBJS " in
16399 *" mktime.
$ac_objext "* ) ;;
16400 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16406 if test "$ac_cv_func_working_mktime" = no; then
16408 cat >>confdefs.h <<\_ACEOF
16409 #define BROKEN_MKTIME 1
16414 ac_have_func=no # yes means we've found a way to get the load average.
16416 # Make sure getloadavg.c is where it belongs, at configure-time.
16417 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16418 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16419 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16420 { (exit 1); exit 1; }; }
16424 # Check for getloadavg, but be sure not to touch the cache variable.
16425 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16426 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16427 if test "${ac_cv_func_getloadavg+set}" = set; then
16428 echo $ECHO_N "(cached
) $ECHO_C" >&6
16430 cat >conftest.$ac_ext <<_ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16438 #define getloadavg innocuous_getloadavg
16440 /* System header to define __stub macros and hopefully few prototypes,
16441 which can conflict with char getloadavg (); below.
16442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16443 <limits.h> exists even on freestanding compilers. */
16446 # include <limits.h>
16448 # include <assert.h>
16453 /* Override any GCC internal prototype to avoid an error.
16454 Use char because int might match the return type of a GCC
16455 builtin and then its argument prototype would still apply. */
16459 char getloadavg ();
16460 /* The GNU C library defines this for functions which it implements
16461 to always fail with ENOSYS. Some functions are actually named
16462 something starting with __ and the normal name is an alias. */
16463 #if defined __stub_getloadavg || defined __stub___getloadavg
16470 return getloadavg ();
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (ac_try="$ac_link"
16477 case "(($ac_try" in
16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479 *) ac_try_echo=$ac_try;;
16481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_link") 2>conftest.er1
16484 grep -v '^ *+' conftest.er1 >conftest.err
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16488 (exit $ac_status); } && {
16489 test -z "$ac_c_werror_flag" ||
16490 test ! -s conftest.err
16491 } && test -s conftest$ac_exeext &&
16492 $as_test_x conftest$ac_exeext; then
16493 ac_cv_func_getloadavg=yes
16495 echo "$as_me: failed program was
:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_func_getloadavg=no
16501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16502 conftest$ac_exeext conftest.$ac_ext
16504 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16505 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16506 if test $ac_cv_func_getloadavg = yes; then
16511 ) && ac_have_func=yes
16513 # On HPUX9, an unprivileged user can get load averages through this function.
16515 for ac_func in pstat_getdynamic
16517 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16518 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16519 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16520 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16521 echo $ECHO_N "(cached
) $ECHO_C" >&6
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16531 #define $ac_func innocuous_$ac_func
16533 /* System header to define __stub macros and hopefully few prototypes,
16534 which can conflict with char $ac_func (); below.
16535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16536 <limits.h> exists even on freestanding compilers. */
16539 # include <limits.h>
16541 # include <assert.h>
16546 /* Override any GCC internal prototype to avoid an error.
16547 Use char because int might match the return type of a GCC
16548 builtin and then its argument prototype would still apply. */
16553 /* The GNU C library defines this for functions which it implements
16554 to always fail with ENOSYS. Some functions are actually named
16555 something starting with __ and the normal name is an alias. */
16556 #if defined __stub_$ac_func || defined __stub___$ac_func
16563 return $ac_func ();
16568 rm -f conftest.$ac_objext conftest$ac_exeext
16569 if { (ac_try="$ac_link"
16570 case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_link") 2>conftest.er1
16577 grep -v '^ *+' conftest.er1 >conftest.err
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16581 (exit $ac_status); } && {
16582 test -z "$ac_c_werror_flag" ||
16583 test ! -s conftest.err
16584 } && test -s conftest$ac_exeext &&
16585 $as_test_x conftest$ac_exeext; then
16586 eval "$as_ac_var=yes"
16588 echo "$as_me: failed program was
:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 eval "$as_ac_var=no
"
16594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16595 conftest$ac_exeext conftest.$ac_ext
16597 ac_res=`eval echo '${'$as_ac_var'}'`
16598 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16599 echo "${ECHO_T}$ac_res" >&6; }
16600 if test `eval echo '${'$as_ac_var'}'` = yes; then
16601 cat >>confdefs.h <<_ACEOF
16602 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16609 # Solaris has libkstat which does not require root.
16611 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16612 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16613 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16614 echo $ECHO_N "(cached
) $ECHO_C" >&6
16616 ac_check_lib_save_LIBS=$LIBS
16617 LIBS="-lkstat $LIBS"
16618 cat >conftest.$ac_ext <<_ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16625 /* Override any GCC internal prototype to avoid an error.
16626 Use char because int might match the return type of a GCC
16627 builtin and then its argument prototype would still apply. */
16631 char kstat_open ();
16635 return kstat_open ();
16640 rm -f conftest.$ac_objext conftest$ac_exeext
16641 if { (ac_try="$ac_link"
16642 case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_link") 2>conftest.er1
16649 grep -v '^ *+' conftest.er1 >conftest.err
16651 cat conftest.err >&5
16652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16653 (exit $ac_status); } && {
16654 test -z "$ac_c_werror_flag" ||
16655 test ! -s conftest.err
16656 } && test -s conftest$ac_exeext &&
16657 $as_test_x conftest$ac_exeext; then
16658 ac_cv_lib_kstat_kstat_open=yes
16660 echo "$as_me: failed program was
:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 ac_cv_lib_kstat_kstat_open=no
16666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16667 conftest$ac_exeext conftest.$ac_ext
16668 LIBS=$ac_check_lib_save_LIBS
16670 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16671 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16672 if test $ac_cv_lib_kstat_kstat_open = yes; then
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_LIBKSTAT 1
16677 LIBS="-lkstat $LIBS"
16681 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16683 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16684 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16685 # to get the right answer into the cache.
16686 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16687 if test $ac_have_func = no; then
16688 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16689 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16690 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16691 echo $ECHO_N "(cached
) $ECHO_C" >&6
16693 ac_check_lib_save_LIBS=$LIBS
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16702 /* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
16712 return elf_begin ();
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (ac_try="$ac_link"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_link") 2>conftest.er1
16726 grep -v '^ *+' conftest.er1 >conftest.err
16728 cat conftest.err >&5
16729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16730 (exit $ac_status); } && {
16731 test -z "$ac_c_werror_flag" ||
16732 test ! -s conftest.err
16733 } && test -s conftest$ac_exeext &&
16734 $as_test_x conftest$ac_exeext; then
16735 ac_cv_lib_elf_elf_begin=yes
16737 echo "$as_me: failed program was
:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_lib_elf_elf_begin=no
16743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16744 conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_check_lib_save_LIBS
16747 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16748 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16749 if test $ac_cv_lib_elf_elf_begin = yes; then
16754 if test $ac_have_func = no; then
16755 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16756 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16757 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16758 echo $ECHO_N "(cached
) $ECHO_C" >&6
16760 ac_check_lib_save_LIBS=$LIBS
16762 cat >conftest.$ac_ext <<_ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16769 /* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16779 return kvm_open ();
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (ac_try="$ac_link"
16786 case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_link") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest$ac_exeext &&
16801 $as_test_x conftest$ac_exeext; then
16802 ac_cv_lib_kvm_kvm_open=yes
16804 echo "$as_me: failed program was
:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_cv_lib_kvm_kvm_open=no
16810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16815 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16816 if test $ac_cv_lib_kvm_kvm_open = yes; then
16820 # Check for the 4.4BSD definition of getloadavg.
16821 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16822 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16823 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16824 echo $ECHO_N "(cached
) $ECHO_C" >&6
16826 ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lutil $LIBS"
16828 cat >conftest.$ac_ext <<_ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16835 /* Override any GCC internal prototype to avoid an error.
16836 Use char because int might match the return type of a GCC
16837 builtin and then its argument prototype would still apply. */
16841 char getloadavg ();
16845 return getloadavg ();
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest$ac_exeext &&
16867 $as_test_x conftest$ac_exeext; then
16868 ac_cv_lib_util_getloadavg=yes
16870 echo "$as_me: failed program was
:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_lib_util_getloadavg=no
16876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16877 conftest$ac_exeext conftest.$ac_ext
16878 LIBS=$ac_check_lib_save_LIBS
16880 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16881 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16882 if test $ac_cv_lib_util_getloadavg = yes; then
16883 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16888 if test $ac_have_func = no; then
16889 # There is a commonly available library for RS/6000 AIX.
16890 # Since it is not a standard part of AIX, it might be installed locally.
16891 ac_getloadavg_LIBS=$LIBS
16892 LIBS="-L/usr
/local
/lib
$LIBS"
16893 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16894 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16895 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16896 echo $ECHO_N "(cached
) $ECHO_C" >&6
16898 ac_check_lib_save_LIBS=$LIBS
16899 LIBS="-lgetloadavg $LIBS"
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16913 char getloadavg ();
16917 return getloadavg ();
16922 rm -f conftest.$ac_objext conftest$ac_exeext
16923 if { (ac_try="$ac_link"
16924 case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest$ac_exeext &&
16939 $as_test_x conftest$ac_exeext; then
16940 ac_cv_lib_getloadavg_getloadavg=yes
16942 echo "$as_me: failed program was
:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 ac_cv_lib_getloadavg_getloadavg=no
16948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16949 conftest$ac_exeext conftest.$ac_ext
16950 LIBS=$ac_check_lib_save_LIBS
16952 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16953 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16954 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16955 LIBS="-lgetloadavg $LIBS"
16957 LIBS=$ac_getloadavg_LIBS
16962 # Make sure it is really in the library, if we think we found it,
16963 # otherwise set up the replacement function.
16965 for ac_func in getloadavg
16967 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16968 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16969 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16970 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16971 echo $ECHO_N "(cached
) $ECHO_C" >&6
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16981 #define $ac_func innocuous_$ac_func
16983 /* System header to define __stub macros and hopefully few prototypes,
16984 which can conflict with char $ac_func (); below.
16985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16986 <limits.h> exists even on freestanding compilers. */
16989 # include <limits.h>
16991 # include <assert.h>
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
17003 /* The GNU C library defines this for functions which it implements
17004 to always fail with ENOSYS. Some functions are actually named
17005 something starting with __ and the normal name is an alias. */
17006 #if defined __stub_$ac_func || defined __stub___$ac_func
17013 return $ac_func ();
17018 rm -f conftest.$ac_objext conftest$ac_exeext
17019 if { (ac_try="$ac_link"
17020 case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_link") 2>conftest.er1
17027 grep -v '^ *+' conftest.er1 >conftest.err
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17031 (exit $ac_status); } && {
17032 test -z "$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17034 } && test -s conftest$ac_exeext &&
17035 $as_test_x conftest$ac_exeext; then
17036 eval "$as_ac_var=yes"
17038 echo "$as_me: failed program was
:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 eval "$as_ac_var=no
"
17044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17045 conftest$ac_exeext conftest.$ac_ext
17047 ac_res=`eval echo '${'$as_ac_var'}'`
17048 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17049 echo "${ECHO_T}$ac_res" >&6; }
17050 if test `eval echo '${'$as_ac_var'}'` = yes; then
17051 cat >>confdefs.h <<_ACEOF
17052 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17056 case " $LIBOBJS " in
17057 *" getloadavg.
$ac_objext "* ) ;;
17058 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17063 cat >>confdefs.h <<\_ACEOF
17064 #define C_GETLOADAVG 1
17067 # Figure out what our getloadavg.c needs.
17069 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17070 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17071 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17072 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17073 echo $ECHO_N "(cached
) $ECHO_C" >&6
17075 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17076 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17078 # Is the header compilable?
17079 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17080 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17088 #include <sys/dg_sys_info.h>
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17103 (exit $ac_status); } && {
17104 test -z "$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17106 } && test -s conftest.$ac_objext; then
17107 ac_header_compiler=yes
17109 echo "$as_me: failed program was
:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_header_compiler=no
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17117 echo "${ECHO_T}$ac_header_compiler" >&6; }
17119 # Is the header present?
17120 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17121 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17122 cat >conftest.$ac_ext <<_ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128 #include <sys/dg_sys_info.h>
17130 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17131 case "(($ac_try" in
17132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133 *) ac_try_echo=$ac_try;;
17135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17136 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17142 (exit $ac_status); } >/dev/null && {
17143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17144 test ! -s conftest.err
17146 ac_header_preproc=yes
17148 echo "$as_me: failed program was
:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 ac_header_preproc=no
17154 rm -f conftest.err conftest.$ac_ext
17155 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17156 echo "${ECHO_T}$ac_header_preproc" >&6; }
17158 # So? What about this header?
17159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17161 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17162 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17163 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17164 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17165 ac_header_preproc=yes
17168 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17169 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17170 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17171 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17172 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17173 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17174 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17175 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17176 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17177 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17178 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17179 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17183 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17184 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17185 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17186 echo $ECHO_N "(cached
) $ECHO_C" >&6
17188 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17190 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17191 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17194 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17197 cat >>confdefs.h <<\_ACEOF
17202 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17203 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17204 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17205 echo $ECHO_N "(cached
) $ECHO_C" >&6
17207 ac_check_lib_save_LIBS=$LIBS
17209 cat >conftest.$ac_ext <<_ACEOF
17212 cat confdefs.h >>conftest.$ac_ext
17213 cat >>conftest.$ac_ext <<_ACEOF
17214 /* end confdefs.h. */
17216 /* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17222 char dg_sys_info ();
17226 return dg_sys_info ();
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (ac_try="$ac_link"
17233 case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_link") 2>conftest.er1
17240 grep -v '^ *+' conftest.er1 >conftest.err
17242 cat conftest.err >&5
17243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17244 (exit $ac_status); } && {
17245 test -z "$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17247 } && test -s conftest$ac_exeext &&
17248 $as_test_x conftest$ac_exeext; then
17249 ac_cv_lib_dgc_dg_sys_info=yes
17251 echo "$as_me: failed program was
:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17254 ac_cv_lib_dgc_dg_sys_info=no
17257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17258 conftest$ac_exeext conftest.$ac_ext
17259 LIBS=$ac_check_lib_save_LIBS
17261 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17262 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17263 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_LIBDGC 1
17276 if test "${ac_cv_header_locale_h+set}" = set; then
17277 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17278 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17279 if test "${ac_cv_header_locale_h+set}" = set; then
17280 echo $ECHO_N "(cached
) $ECHO_C" >&6
17282 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17283 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17285 # Is the header compilable?
17286 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17287 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17294 $ac_includes_default
17295 #include <locale.h>
17297 rm -f conftest.$ac_objext
17298 if { (ac_try="$ac_compile"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_compile") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest.$ac_objext; then
17314 ac_header_compiler=yes
17316 echo "$as_me: failed program was
:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_header_compiler=no
17322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17323 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17324 echo "${ECHO_T}$ac_header_compiler" >&6; }
17326 # Is the header present?
17327 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17328 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17329 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 #include <locale.h>
17337 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17338 case "(($ac_try" in
17339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17343 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17345 grep -v '^ *+' conftest.er1 >conftest.err
17347 cat conftest.err >&5
17348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17349 (exit $ac_status); } >/dev/null && {
17350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17353 ac_header_preproc=yes
17355 echo "$as_me: failed program was
:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 ac_header_preproc=no
17361 rm -f conftest.err conftest.$ac_ext
17362 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17363 echo "${ECHO_T}$ac_header_preproc" >&6; }
17365 # So? What about this header?
17366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17368 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17369 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17370 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17371 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17372 ac_header_preproc=yes
17375 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17376 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17377 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17378 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17379 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17380 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17381 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17382 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17383 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17384 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17385 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17386 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17390 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17391 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17392 if test "${ac_cv_header_locale_h+set}" = set; then
17393 echo $ECHO_N "(cached
) $ECHO_C" >&6
17395 ac_cv_header_locale_h=$ac_header_preproc
17397 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17398 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17404 for ac_func in setlocale
17406 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17407 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17408 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17409 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17410 echo $ECHO_N "(cached
) $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17420 #define $ac_func innocuous_$ac_func
17422 /* System header to define __stub macros and hopefully few prototypes,
17423 which can conflict with char $ac_func (); below.
17424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17425 <limits.h> exists even on freestanding compilers. */
17428 # include <limits.h>
17430 # include <assert.h>
17435 /* Override any GCC internal prototype to avoid an error.
17436 Use char because int might match the return type of a GCC
17437 builtin and then its argument prototype would still apply. */
17442 /* The GNU C library defines this for functions which it implements
17443 to always fail with ENOSYS. Some functions are actually named
17444 something starting with __ and the normal name is an alias. */
17445 #if defined __stub_$ac_func || defined __stub___$ac_func
17452 return $ac_func ();
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17470 (exit $ac_status); } && {
17471 test -z "$ac_c_werror_flag" ||
17472 test ! -s conftest.err
17473 } && test -s conftest$ac_exeext &&
17474 $as_test_x conftest$ac_exeext; then
17475 eval "$as_ac_var=yes"
17477 echo "$as_me: failed program was
:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 eval "$as_ac_var=no
"
17483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17484 conftest$ac_exeext conftest.$ac_ext
17486 ac_res=`eval echo '${'$as_ac_var'}'`
17487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17488 echo "${ECHO_T}$ac_res" >&6; }
17489 if test `eval echo '${'$as_ac_var'}'` = yes; then
17490 cat >>confdefs.h <<_ACEOF
17491 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17498 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17499 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17500 # Irix 4.0.5F has the header but not the library.
17501 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17504 cat >>confdefs.h <<\_ACEOF
17510 if test $ac_have_func = no; then
17511 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17512 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17513 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17514 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17515 echo $ECHO_N "(cached
) $ECHO_C" >&6
17517 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17518 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17520 # Is the header compilable?
17521 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17522 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 $ac_includes_default
17530 #include <inq_stats/cpustats.h>
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest.$ac_objext; then
17549 ac_header_compiler=yes
17551 echo "$as_me: failed program was
:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_header_compiler=no
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17559 echo "${ECHO_T}$ac_header_compiler" >&6; }
17561 # Is the header present?
17562 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17563 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <inq_stats/cpustats.h>
17572 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17580 grep -v '^ *+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17584 (exit $ac_status); } >/dev/null && {
17585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17588 ac_header_preproc=yes
17590 echo "$as_me: failed program was
:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_header_preproc=no
17596 rm -f conftest.err conftest.$ac_ext
17597 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17598 echo "${ECHO_T}$ac_header_preproc" >&6; }
17600 # So? What about this header?
17601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17603 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17604 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17605 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17606 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17607 ac_header_preproc=yes
17610 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17611 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17612 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17613 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17614 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17615 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17616 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17617 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17618 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17619 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17620 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17621 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17625 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17626 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17627 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17628 echo $ECHO_N "(cached
) $ECHO_C" >&6
17630 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17632 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17633 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17636 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17639 cat >>confdefs.h <<\_ACEOF
17644 cat >>confdefs.h <<\_ACEOF
17653 if test $ac_have_func = no; then
17654 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17655 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17656 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17657 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17658 echo $ECHO_N "(cached
) $ECHO_C" >&6
17660 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17661 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17663 # Is the header compilable?
17664 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17665 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17672 $ac_includes_default
17673 #include <sys/cpustats.h>
17675 rm -f conftest.$ac_objext
17676 if { (ac_try="$ac_compile"
17677 case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_compile") 2>conftest.er1
17684 grep -v '^ *+' conftest.er1 >conftest.err
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17688 (exit $ac_status); } && {
17689 test -z "$ac_c_werror_flag" ||
17690 test ! -s conftest.err
17691 } && test -s conftest.$ac_objext; then
17692 ac_header_compiler=yes
17694 echo "$as_me: failed program was
:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_header_compiler=no
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17702 echo "${ECHO_T}$ac_header_compiler" >&6; }
17704 # Is the header present?
17705 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17706 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17713 #include <sys/cpustats.h>
17715 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17727 (exit $ac_status); } >/dev/null && {
17728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17729 test ! -s conftest.err
17731 ac_header_preproc=yes
17733 echo "$as_me: failed program was
:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_header_preproc=no
17739 rm -f conftest.err conftest.$ac_ext
17740 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17741 echo "${ECHO_T}$ac_header_preproc" >&6; }
17743 # So? What about this header?
17744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17746 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17747 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17748 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17749 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17750 ac_header_preproc=yes
17753 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17754 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17755 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17756 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17757 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17758 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17759 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17760 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17761 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17762 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17763 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17764 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17768 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17769 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17770 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17771 echo $ECHO_N "(cached
) $ECHO_C" >&6
17773 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17775 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17776 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17779 if test $ac_cv_header_sys_cpustats_h = yes; then
17780 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17789 if test $ac_have_func = no; then
17791 for ac_header in mach/mach.h
17793 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17794 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17795 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17796 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17797 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17798 echo $ECHO_N "(cached
) $ECHO_C" >&6
17800 ac_res=`eval echo '${'$as_ac_Header'}'`
17801 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17804 # Is the header compilable?
17805 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17806 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17807 cat >conftest.$ac_ext <<_ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 $ac_includes_default
17814 #include <$ac_header>
17816 rm -f conftest.$ac_objext
17817 if { (ac_try="$ac_compile"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_compile") 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest.$ac_objext; then
17833 ac_header_compiler=yes
17835 echo "$as_me: failed program was
:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_header_compiler=no
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17843 echo "${ECHO_T}$ac_header_compiler" >&6; }
17845 # Is the header present?
17846 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17847 echo $ECHO_N "checking
$ac_header presence...
$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 #include <$ac_header>
17856 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17868 (exit $ac_status); } >/dev/null && {
17869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17872 ac_header_preproc=yes
17874 echo "$as_me: failed program was
:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_header_preproc=no
17880 rm -f conftest.err conftest.$ac_ext
17881 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17882 echo "${ECHO_T}$ac_header_preproc" >&6; }
17884 # So? What about this header?
17885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17887 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17888 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17889 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17891 ac_header_preproc=yes
17894 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17895 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17896 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17897 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17898 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17899 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17900 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17901 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17902 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17904 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17905 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17909 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17910 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17911 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17912 echo $ECHO_N "(cached
) $ECHO_C" >&6
17914 eval "$as_ac_Header=\
$ac_header_preproc"
17916 ac_res=`eval echo '${'$as_ac_Header'}'`
17917 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17918 echo "${ECHO_T}$ac_res" >&6; }
17921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17933 for ac_header in nlist.h
17935 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17936 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17937 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17938 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17939 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17940 echo $ECHO_N "(cached
) $ECHO_C" >&6
17942 ac_res=`eval echo '${'$as_ac_Header'}'`
17943 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17944 echo "${ECHO_T}$ac_res" >&6; }
17946 # Is the header compilable?
17947 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17948 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 $ac_includes_default
17956 #include <$ac_header>
17958 rm -f conftest.$ac_objext
17959 if { (ac_try="$ac_compile"
17960 case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_compile") 2>conftest.er1
17967 grep -v '^ *+' conftest.er1 >conftest.err
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17971 (exit $ac_status); } && {
17972 test -z "$ac_c_werror_flag" ||
17973 test ! -s conftest.err
17974 } && test -s conftest.$ac_objext; then
17975 ac_header_compiler=yes
17977 echo "$as_me: failed program was
:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_header_compiler=no
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17984 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17985 echo "${ECHO_T}$ac_header_compiler" >&6; }
17987 # Is the header present?
17988 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17989 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 #include <$ac_header>
17998 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18010 (exit $ac_status); } >/dev/null && {
18011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18014 ac_header_preproc=yes
18016 echo "$as_me: failed program was
:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_header_preproc=no
18022 rm -f conftest.err conftest.$ac_ext
18023 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18024 echo "${ECHO_T}$ac_header_preproc" >&6; }
18026 # So? What about this header?
18027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18029 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18030 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18031 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18033 ac_header_preproc=yes
18036 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18037 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18038 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18039 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18040 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18041 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18042 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18043 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18044 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18046 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18047 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18051 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18052 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18053 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18054 echo $ECHO_N "(cached
) $ECHO_C" >&6
18056 eval "$as_ac_Header=\
$ac_header_preproc"
18058 ac_res=`eval echo '${'$as_ac_Header'}'`
18059 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18060 echo "${ECHO_T}$ac_res" >&6; }
18063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18064 cat >>confdefs.h <<_ACEOF
18065 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18067 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18068 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18069 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18070 echo $ECHO_N "(cached
) $ECHO_C" >&6
18072 cat >conftest.$ac_ext <<_ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18083 static struct nlist ac_aggr;
18084 if (ac_aggr.n_un.n_name)
18090 rm -f conftest.$ac_objext
18091 if { (ac_try="$ac_compile"
18092 case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_compile") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18103 (exit $ac_status); } && {
18104 test -z "$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 } && test -s conftest.$ac_objext; then
18107 ac_cv_member_struct_nlist_n_un_n_name=yes
18109 echo "$as_me: failed program was
:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 cat >conftest.$ac_ext <<_ACEOF
18115 cat confdefs.h >>conftest.$ac_ext
18116 cat >>conftest.$ac_ext <<_ACEOF
18117 /* end confdefs.h. */
18123 static struct nlist ac_aggr;
18124 if (sizeof ac_aggr.n_un.n_name)
18130 rm -f conftest.$ac_objext
18131 if { (ac_try="$ac_compile"
18132 case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_compile") 2>conftest.er1
18139 grep -v '^ *+' conftest.er1 >conftest.err
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18143 (exit $ac_status); } && {
18144 test -z "$ac_c_werror_flag" ||
18145 test ! -s conftest.err
18146 } && test -s conftest.$ac_objext; then
18147 ac_cv_member_struct_nlist_n_un_n_name=yes
18149 echo "$as_me: failed program was
:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 ac_cv_member_struct_nlist_n_un_n_name=no
18155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18160 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18161 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18162 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18164 cat >>confdefs.h <<_ACEOF
18165 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18169 cat >>confdefs.h <<\_ACEOF
18170 #define NLIST_NAME_UNION 1
18184 # Some definitions of getloadavg require that the program be installed setgid.
18185 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18186 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18187 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18188 echo $ECHO_N "(cached
) $ECHO_C" >&6
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18197 #ifdef LDAV_PRIVILEGED
18198 Yowza Am I SETGID yet
18201 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18202 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18203 ac_cv_func_getloadavg_setgid=yes
18205 ac_cv_func_getloadavg_setgid=no
18210 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18211 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18212 if test $ac_cv_func_getloadavg_setgid = yes; then
18215 cat >>confdefs.h <<\_ACEOF
18216 #define GETLOADAVG_PRIVILEGED 1
18223 if test $ac_cv_func_getloadavg_setgid = yes; then
18224 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18225 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18226 if test "${ac_cv_group_kmem+set}" = set; then
18227 echo $ECHO_N "(cached
) $ECHO_C" >&6
18229 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18230 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18231 # If we got an error (system does not support symlinks), try without -L.
18232 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18233 ac_cv_group_kmem=`echo $ac_ls_output \
18234 | sed -ne 's/[ ][ ]*/ /g;
18235 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18239 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18240 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18241 KMEM_GROUP=$ac_cv_group_kmem
18243 if test "x
$ac_save_LIBS" = x; then
18244 GETLOADAVG_LIBS=$LIBS
18246 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18252 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18253 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18254 if test "${ac_cv_sys_largefile_source+set}" = set; then
18255 echo $ECHO_N "(cached
) $ECHO_C" >&6
18258 cat >conftest.$ac_ext <<_ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18268 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (ac_try="$ac_link"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_link") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18286 (exit $ac_status); } && {
18287 test -z "$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 } && test -s conftest$ac_exeext &&
18290 $as_test_x conftest$ac_exeext; then
18291 ac_cv_sys_largefile_source=no; break
18293 echo "$as_me: failed program was
:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18300 conftest$ac_exeext conftest.$ac_ext
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #define _LARGEFILE_SOURCE 1
18312 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (ac_try="$ac_link"
18319 case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_link") 2>conftest.er1
18326 grep -v '^ *+' conftest.er1 >conftest.err
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18330 (exit $ac_status); } && {
18331 test -z "$ac_c_werror_flag" ||
18332 test ! -s conftest.err
18333 } && test -s conftest$ac_exeext &&
18334 $as_test_x conftest$ac_exeext; then
18335 ac_cv_sys_largefile_source=1; break
18337 echo "$as_me: failed program was
:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18344 conftest$ac_exeext conftest.$ac_ext
18345 ac_cv_sys_largefile_source=unknown
18349 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18350 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18351 case $ac_cv_sys_largefile_source in #(
18354 cat >>confdefs.h <<_ACEOF
18355 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18361 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18362 # in glibc 2.1.3, but that breaks too many other things.
18363 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18364 if test $ac_cv_sys_largefile_source != unknown; then
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE_FSEEKO 1
18373 # Configure getopt.
18374 # getopt.m4 serial 10
18376 # The getopt module assume you want GNU getopt, with getopt_long etc,
18377 # rather than vanilla POSIX getopt. This means your your code should
18378 # always include <getopt.h> for the getopt prototypes.
18390 # Prerequisites of lib/getopt*.
18397 for ac_header in getopt.h
18399 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18400 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18401 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18402 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18403 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18404 echo $ECHO_N "(cached
) $ECHO_C" >&6
18406 ac_res=`eval echo '${'$as_ac_Header'}'`
18407 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18408 echo "${ECHO_T}$ac_res" >&6; }
18410 # Is the header compilable?
18411 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18412 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 $ac_includes_default
18420 #include <$ac_header>
18422 rm -f conftest.$ac_objext
18423 if { (ac_try="$ac_compile"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_compile") 2>conftest.er1
18431 grep -v '^ *+' conftest.er1 >conftest.err
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18435 (exit $ac_status); } && {
18436 test -z "$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 } && test -s conftest.$ac_objext; then
18439 ac_header_compiler=yes
18441 echo "$as_me: failed program was
:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_header_compiler=no
18447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18448 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18449 echo "${ECHO_T}$ac_header_compiler" >&6; }
18451 # Is the header present?
18452 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18453 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18454 cat >conftest.$ac_ext <<_ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18460 #include <$ac_header>
18462 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18474 (exit $ac_status); } >/dev/null && {
18475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18478 ac_header_preproc=yes
18480 echo "$as_me: failed program was
:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_header_preproc=no
18486 rm -f conftest.err conftest.$ac_ext
18487 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18488 echo "${ECHO_T}$ac_header_preproc" >&6; }
18490 # So? What about this header?
18491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18493 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18494 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18495 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18497 ac_header_preproc=yes
18500 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18501 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18502 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18503 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18504 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18505 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18506 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18507 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18508 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18510 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18511 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18515 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18516 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18517 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18518 echo $ECHO_N "(cached
) $ECHO_C" >&6
18520 eval "$as_ac_Header=\
$ac_header_preproc"
18522 ac_res=`eval echo '${'$as_ac_Header'}'`
18523 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18524 echo "${ECHO_T}$ac_res" >&6; }
18527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18528 cat >>confdefs.h <<_ACEOF
18529 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18538 if test -z "$GETOPT_H"; then
18540 for ac_func in getopt_long_only
18542 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18543 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18544 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18545 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18546 echo $ECHO_N "(cached
) $ECHO_C" >&6
18548 cat >conftest.$ac_ext <<_ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h. */
18554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18556 #define $ac_func innocuous_$ac_func
18558 /* System header to define __stub macros and hopefully few prototypes,
18559 which can conflict with char $ac_func (); below.
18560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18561 <limits.h> exists even on freestanding compilers. */
18564 # include <limits.h>
18566 # include <assert.h>
18571 /* Override any GCC internal prototype to avoid an error.
18572 Use char because int might match the return type of a GCC
18573 builtin and then its argument prototype would still apply. */
18578 /* The GNU C library defines this for functions which it implements
18579 to always fail with ENOSYS. Some functions are actually named
18580 something starting with __ and the normal name is an alias. */
18581 #if defined __stub_$ac_func || defined __stub___$ac_func
18588 return $ac_func ();
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_link") 2>conftest.er1
18602 grep -v '^ *+' conftest.er1 >conftest.err
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18606 (exit $ac_status); } && {
18607 test -z "$ac_c_werror_flag" ||
18608 test ! -s conftest.err
18609 } && test -s conftest$ac_exeext &&
18610 $as_test_x conftest$ac_exeext; then
18611 eval "$as_ac_var=yes"
18613 echo "$as_me: failed program was
:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18616 eval "$as_ac_var=no
"
18619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18620 conftest$ac_exeext conftest.$ac_ext
18622 ac_res=`eval echo '${'$as_ac_var'}'`
18623 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18624 echo "${ECHO_T}$ac_res" >&6; }
18625 if test `eval echo '${'$as_ac_var'}'` = yes; then
18626 cat >>confdefs.h <<_ACEOF
18627 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18637 if test -z "$GETOPT_H"; then
18638 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18639 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18640 if test "${ac_cv_have_decl_optreset+set}" = set; then
18641 echo $ECHO_N "(cached
) $ECHO_C" >&6
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 #include <getopt.h>
18662 rm -f conftest.$ac_objext
18663 if { (ac_try="$ac_compile"
18664 case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_compile") 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18675 (exit $ac_status); } && {
18676 test -z "$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18678 } && test -s conftest.$ac_objext; then
18679 ac_cv_have_decl_optreset=yes
18681 echo "$as_me: failed program was
:" >&5
18682 sed 's/^/| /' conftest.$ac_ext >&5
18684 ac_cv_have_decl_optreset=no
18687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18689 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18690 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18691 if test $ac_cv_have_decl_optreset = yes; then
18697 if test -z "$GETOPT_H"; then
18698 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18699 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18700 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18701 echo $ECHO_N "(cached
) $ECHO_C" >&6
18703 if test "$cross_compiling" = yes; then
18704 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18705 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18706 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18707 echo $ECHO_N "(cached
) $ECHO_C" >&6
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 #include <getopt.h>
18720 #ifndef getopt_clip
18721 (void) getopt_clip;
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18745 ac_cv_have_decl_getopt_clip=yes
18747 echo "$as_me: failed program was
:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 ac_cv_have_decl_getopt_clip=no
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18755 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18756 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18757 if test $ac_cv_have_decl_getopt_clip = yes; then
18758 gl_cv_func_gnu_getopt=no
18760 gl_cv_func_gnu_getopt=yes
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18770 #include <getopt.h>
18776 myargv[0] = "conftest
";
18779 return getopt (2, myargv, "+a
") != '?';
18785 rm -f conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_link") 2>&5
18794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18804 (exit $ac_status); }; }; then
18805 gl_cv_func_gnu_getopt=yes
18807 echo "$as_me: program exited with status
$ac_status" >&5
18808 echo "$as_me: failed program was
:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 ( exit $ac_status )
18812 gl_cv_func_gnu_getopt=no
18814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18819 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18820 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18821 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18828 if test -n "$GETOPT_H"; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define __GETOPT_PREFIX rpl_
18840 GETOPTOBJS='getopt.o getopt1.o'
18847 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18848 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18849 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18850 echo $ECHO_N "(cached
) $ECHO_C" >&6
18852 # Use it with a single arg.
18853 cat >conftest.$ac_ext <<_ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 $ac_includes_default
18868 rm -f conftest.$ac_objext
18869 if { (ac_try="$ac_compile"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_compile") 2>conftest.er1
18877 grep -v '^ *+' conftest.er1 >conftest.err
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18881 (exit $ac_status); } && {
18882 test -z "$ac_c_werror_flag" ||
18883 test ! -s conftest.err
18884 } && test -s conftest.$ac_objext; then
18885 ac_cv_func_getpgrp_void=no
18887 echo "$as_me: failed program was
:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18890 ac_cv_func_getpgrp_void=yes
18893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18896 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18897 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18898 if test $ac_cv_func_getpgrp_void = yes; then
18900 cat >>confdefs.h <<\_ACEOF
18901 #define GETPGRP_VOID 1
18908 for ac_func in strftime
18910 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18911 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18912 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached
) $ECHO_C" >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18932 # include <limits.h>
18934 # include <assert.h>
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18956 return $ac_func ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest$ac_exeext &&
18978 $as_test_x conftest$ac_exeext; then
18979 eval "$as_ac_var=yes"
18981 echo "$as_me: failed program was
:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18984 eval "$as_ac_var=no
"
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988 conftest$ac_exeext conftest.$ac_ext
18990 ac_res=`eval echo '${'$as_ac_var'}'`
18991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18992 echo "${ECHO_T}$ac_res" >&6; }
18993 if test `eval echo '${'$as_ac_var'}'` = yes; then
18994 cat >>confdefs.h <<_ACEOF
18995 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18999 # strftime is in -lintl on SCO UNIX.
19000 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19001 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19002 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19003 echo $ECHO_N "(cached
) $ECHO_C" >&6
19005 ac_check_lib_save_LIBS=$LIBS
19006 LIBS="-lintl $LIBS"
19007 cat >conftest.$ac_ext <<_ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h. */
19014 /* Override any GCC internal prototype to avoid an error.
19015 Use char because int might match the return type of a GCC
19016 builtin and then its argument prototype would still apply. */
19024 return strftime ();
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (ac_try="$ac_link"
19031 case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_link") 2>conftest.er1
19038 grep -v '^ *+' conftest.er1 >conftest.err
19040 cat conftest.err >&5
19041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19042 (exit $ac_status); } && {
19043 test -z "$ac_c_werror_flag" ||
19044 test ! -s conftest.err
19045 } && test -s conftest$ac_exeext &&
19046 $as_test_x conftest$ac_exeext; then
19047 ac_cv_lib_intl_strftime=yes
19049 echo "$as_me: failed program was
:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19052 ac_cv_lib_intl_strftime=no
19055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056 conftest$ac_exeext conftest.$ac_ext
19057 LIBS=$ac_check_lib_save_LIBS
19059 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19060 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19061 if test $ac_cv_lib_intl_strftime = yes; then
19062 cat >>confdefs.h <<\_ACEOF
19063 #define HAVE_STRFTIME 1
19066 LIBS="-lintl $LIBS"
19075 for ac_func in grantpt
19077 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19078 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19079 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19080 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19081 echo $ECHO_N "(cached
) $ECHO_C" >&6
19083 cat >conftest.$ac_ext <<_ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h. */
19089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19091 #define $ac_func innocuous_$ac_func
19093 /* System header to define __stub macros and hopefully few prototypes,
19094 which can conflict with char $ac_func (); below.
19095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19096 <limits.h> exists even on freestanding compilers. */
19099 # include <limits.h>
19101 # include <assert.h>
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19113 /* The GNU C library defines this for functions which it implements
19114 to always fail with ENOSYS. Some functions are actually named
19115 something starting with __ and the normal name is an alias. */
19116 #if defined __stub_$ac_func || defined __stub___$ac_func
19123 return $ac_func ();
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (ac_try="$ac_link"
19130 case "(($ac_try" in
19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_link") 2>conftest.er1
19137 grep -v '^ *+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest$ac_exeext &&
19145 $as_test_x conftest$ac_exeext; then
19146 eval "$as_ac_var=yes"
19148 echo "$as_me: failed program was
:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19151 eval "$as_ac_var=no
"
19154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19155 conftest$ac_exeext conftest.$ac_ext
19157 ac_res=`eval echo '${'$as_ac_var'}'`
19158 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19159 echo "${ECHO_T}$ac_res" >&6; }
19160 if test `eval echo '${'$as_ac_var'}'` = yes; then
19161 cat >>confdefs.h <<_ACEOF
19162 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19169 # PTY-related GNU extensions.
19171 for ac_func in getpt
19173 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19174 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19175 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19176 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19177 echo $ECHO_N "(cached
) $ECHO_C" >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19187 #define $ac_func innocuous_$ac_func
19189 /* System header to define __stub macros and hopefully few prototypes,
19190 which can conflict with char $ac_func (); below.
19191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19192 <limits.h> exists even on freestanding compilers. */
19195 # include <limits.h>
19197 # include <assert.h>
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19209 /* The GNU C library defines this for functions which it implements
19210 to always fail with ENOSYS. Some functions are actually named
19211 something starting with __ and the normal name is an alias. */
19212 #if defined __stub_$ac_func || defined __stub___$ac_func
19219 return $ac_func ();
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_link") 2>conftest.er1
19233 grep -v '^ *+' conftest.er1 >conftest.err
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19237 (exit $ac_status); } && {
19238 test -z "$ac_c_werror_flag" ||
19239 test ! -s conftest.err
19240 } && test -s conftest$ac_exeext &&
19241 $as_test_x conftest$ac_exeext; then
19242 eval "$as_ac_var=yes"
19244 echo "$as_me: failed program was
:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 eval "$as_ac_var=no
"
19250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19251 conftest$ac_exeext conftest.$ac_ext
19253 ac_res=`eval echo '${'$as_ac_var'}'`
19254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19255 echo "${ECHO_T}$ac_res" >&6; }
19256 if test `eval echo '${'$as_ac_var'}'` = yes; then
19257 cat >>confdefs.h <<_ACEOF
19258 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19265 # Check this now, so that we will NOT find the above functions in ncurses.
19266 # That is because we have not set up to link ncurses in lib-src.
19267 # It's better to believe a function is not available
19268 # than to expect to find it in ncurses.
19270 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19271 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19272 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19273 echo $ECHO_N "(cached
) $ECHO_C" >&6
19275 ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-lncurses $LIBS"
19277 cat >conftest.$ac_ext <<_ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19284 /* Override any GCC internal prototype to avoid an error.
19285 Use char because int might match the return type of a GCC
19286 builtin and then its argument prototype would still apply. */
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (ac_try="$ac_link"
19301 case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_link") 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest$ac_exeext &&
19316 $as_test_x conftest$ac_exeext; then
19317 ac_cv_lib_ncurses_tparm=yes
19319 echo "$as_me: failed program was
:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 ac_cv_lib_ncurses_tparm=no
19325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19326 conftest$ac_exeext conftest.$ac_ext
19327 LIBS=$ac_check_lib_save_LIBS
19329 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19330 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19331 if test $ac_cv_lib_ncurses_tparm = yes; then
19332 cat >>confdefs.h <<_ACEOF
19333 #define HAVE_LIBNCURSES 1
19336 LIBS="-lncurses $LIBS"
19341 # Do we need the Hesiod library to provide the support routines?
19342 if test "$with_hesiod" = yes ; then
19343 # Don't set $LIBS here -- see comments above.
19345 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19346 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19347 if test "${ac_cv_func_res_send+set}" = set; then
19348 echo $ECHO_N "(cached
) $ECHO_C" >&6
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19358 #define res_send innocuous_res_send
19360 /* System header to define __stub macros and hopefully few prototypes,
19361 which can conflict with char res_send (); below.
19362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19363 <limits.h> exists even on freestanding compilers. */
19366 # include <limits.h>
19368 # include <assert.h>
19373 /* Override any GCC internal prototype to avoid an error.
19374 Use char because int might match the return type of a GCC
19375 builtin and then its argument prototype would still apply. */
19380 /* The GNU C library defines this for functions which it implements
19381 to always fail with ENOSYS. Some functions are actually named
19382 something starting with __ and the normal name is an alias. */
19383 #if defined __stub_res_send || defined __stub___res_send
19390 return res_send ();
19395 rm -f conftest.$ac_objext conftest$ac_exeext
19396 if { (ac_try="$ac_link"
19397 case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_link") 2>conftest.er1
19404 grep -v '^ *+' conftest.er1 >conftest.err
19406 cat conftest.err >&5
19407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19408 (exit $ac_status); } && {
19409 test -z "$ac_c_werror_flag" ||
19410 test ! -s conftest.err
19411 } && test -s conftest$ac_exeext &&
19412 $as_test_x conftest$ac_exeext; then
19413 ac_cv_func_res_send=yes
19415 echo "$as_me: failed program was
:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19418 ac_cv_func_res_send=no
19421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19422 conftest$ac_exeext conftest.$ac_ext
19424 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19425 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19426 if test $ac_cv_func_res_send = yes; then
19429 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19430 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19431 if test "${ac_cv_func___res_send+set}" = set; then
19432 echo $ECHO_N "(cached
) $ECHO_C" >&6
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19442 #define __res_send innocuous___res_send
19444 /* System header to define __stub macros and hopefully few prototypes,
19445 which can conflict with char __res_send (); below.
19446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19447 <limits.h> exists even on freestanding compilers. */
19450 # include <limits.h>
19452 # include <assert.h>
19457 /* Override any GCC internal prototype to avoid an error.
19458 Use char because int might match the return type of a GCC
19459 builtin and then its argument prototype would still apply. */
19463 char __res_send ();
19464 /* The GNU C library defines this for functions which it implements
19465 to always fail with ENOSYS. Some functions are actually named
19466 something starting with __ and the normal name is an alias. */
19467 #if defined __stub___res_send || defined __stub_____res_send
19474 return __res_send ();
19479 rm -f conftest.$ac_objext conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_link") 2>conftest.er1
19488 grep -v '^ *+' conftest.er1 >conftest.err
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest$ac_exeext &&
19496 $as_test_x conftest$ac_exeext; then
19497 ac_cv_func___res_send=yes
19499 echo "$as_me: failed program was
:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_func___res_send=no
19505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19506 conftest$ac_exeext conftest.$ac_ext
19508 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19509 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19510 if test $ac_cv_func___res_send = yes; then
19513 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19514 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19515 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19516 echo $ECHO_N "(cached
) $ECHO_C" >&6
19518 ac_check_lib_save_LIBS=$LIBS
19519 LIBS="-lresolv $LIBS"
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19527 /* Override any GCC internal prototype to avoid an error.
19528 Use char because int might match the return type of a GCC
19529 builtin and then its argument prototype would still apply. */
19537 return res_send ();
19542 rm -f conftest.$ac_objext conftest$ac_exeext
19543 if { (ac_try="$ac_link"
19544 case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_link") 2>conftest.er1
19551 grep -v '^ *+' conftest.er1 >conftest.err
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19555 (exit $ac_status); } && {
19556 test -z "$ac_c_werror_flag" ||
19557 test ! -s conftest.err
19558 } && test -s conftest$ac_exeext &&
19559 $as_test_x conftest$ac_exeext; then
19560 ac_cv_lib_resolv_res_send=yes
19562 echo "$as_me: failed program was
:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19565 ac_cv_lib_resolv_res_send=no
19568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19569 conftest$ac_exeext conftest.$ac_ext
19570 LIBS=$ac_check_lib_save_LIBS
19572 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19573 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19574 if test $ac_cv_lib_resolv_res_send = yes; then
19577 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19578 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19579 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19580 echo $ECHO_N "(cached
) $ECHO_C" >&6
19582 ac_check_lib_save_LIBS=$LIBS
19583 LIBS="-lresolv $LIBS"
19584 cat >conftest.$ac_ext <<_ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19591 /* Override any GCC internal prototype to avoid an error.
19592 Use char because int might match the return type of a GCC
19593 builtin and then its argument prototype would still apply. */
19597 char __res_send ();
19601 return __res_send ();
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_link") 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19619 (exit $ac_status); } && {
19620 test -z "$ac_c_werror_flag" ||
19621 test ! -s conftest.err
19622 } && test -s conftest$ac_exeext &&
19623 $as_test_x conftest$ac_exeext; then
19624 ac_cv_lib_resolv___res_send=yes
19626 echo "$as_me: failed program was
:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_cv_lib_resolv___res_send=no
19632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19633 conftest$ac_exeext conftest.$ac_ext
19634 LIBS=$ac_check_lib_save_LIBS
19636 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19637 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19638 if test $ac_cv_lib_resolv___res_send = yes; then
19648 if test "$resolv" = yes ; then
19651 cat >>confdefs.h <<\_ACEOF
19652 #define HAVE_LIBRESOLV 1
19658 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19659 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19660 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19661 echo $ECHO_N "(cached
) $ECHO_C" >&6
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19669 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19671 #define hes_getmailhost innocuous_hes_getmailhost
19673 /* System header to define __stub macros and hopefully few prototypes,
19674 which can conflict with char hes_getmailhost (); below.
19675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19676 <limits.h> exists even on freestanding compilers. */
19679 # include <limits.h>
19681 # include <assert.h>
19684 #undef hes_getmailhost
19686 /* Override any GCC internal prototype to avoid an error.
19687 Use char because int might match the return type of a GCC
19688 builtin and then its argument prototype would still apply. */
19692 char hes_getmailhost ();
19693 /* The GNU C library defines this for functions which it implements
19694 to always fail with ENOSYS. Some functions are actually named
19695 something starting with __ and the normal name is an alias. */
19696 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19703 return hes_getmailhost ();
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (ac_try="$ac_link"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_link") 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest$ac_exeext &&
19725 $as_test_x conftest$ac_exeext; then
19726 ac_cv_func_hes_getmailhost=yes
19728 echo "$as_me: failed program was
:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_cv_func_hes_getmailhost=no
19734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19735 conftest$ac_exeext conftest.$ac_ext
19737 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19738 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19739 if test $ac_cv_func_hes_getmailhost = yes; then
19742 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19743 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19744 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19745 echo $ECHO_N "(cached
) $ECHO_C" >&6
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lhesiod $RESOLVLIB $LIBS"
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19762 char hes_getmailhost ();
19766 return hes_getmailhost ();
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>conftest.er1
19780 grep -v '^ *+' conftest.er1 >conftest.err
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19784 (exit $ac_status); } && {
19785 test -z "$ac_c_werror_flag" ||
19786 test ! -s conftest.err
19787 } && test -s conftest$ac_exeext &&
19788 $as_test_x conftest$ac_exeext; then
19789 ac_cv_lib_hesiod_hes_getmailhost=yes
19791 echo "$as_me: failed program was
:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19794 ac_cv_lib_hesiod_hes_getmailhost=no
19797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19802 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19803 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19805 cat >>confdefs.h <<\_ACEOF
19806 #define HAVE_LIBHESIOD 1
19817 # These tell us which Kerberos-related libraries to use.
19818 if test "${with_kerberos+set}" = set; then
19820 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19821 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19822 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19823 echo $ECHO_N "(cached
) $ECHO_C" >&6
19825 ac_check_lib_save_LIBS=$LIBS
19826 LIBS="-lcom_err $LIBS"
19827 cat >conftest.$ac_ext <<_ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19834 /* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19849 rm -f conftest.$ac_objext conftest$ac_exeext
19850 if { (ac_try="$ac_link"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_link") 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19862 (exit $ac_status); } && {
19863 test -z "$ac_c_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest$ac_exeext &&
19866 $as_test_x conftest$ac_exeext; then
19867 ac_cv_lib_com_err_com_err=yes
19869 echo "$as_me: failed program was
:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_lib_com_err_com_err=no
19875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19879 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19880 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19881 if test $ac_cv_lib_com_err_com_err = yes; then
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_LIBCOM_ERR 1
19886 LIBS="-lcom_err $LIBS"
19891 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19892 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19893 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19894 echo $ECHO_N "(cached
) $ECHO_C" >&6
19896 ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lk5crypto $LIBS"
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19911 char mit_des_cbc_encrypt ();
19915 return mit_des_cbc_encrypt ();
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_link") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19933 (exit $ac_status); } && {
19934 test -z "$ac_c_werror_flag" ||
19935 test ! -s conftest.err
19936 } && test -s conftest$ac_exeext &&
19937 $as_test_x conftest$ac_exeext; then
19938 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19940 echo "$as_me: failed program was
:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19947 conftest$ac_exeext conftest.$ac_ext
19948 LIBS=$ac_check_lib_save_LIBS
19950 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19951 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19952 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19953 cat >>confdefs.h <<_ACEOF
19954 #define HAVE_LIBK5CRYPTO 1
19957 LIBS="-lk5crypto $LIBS"
19962 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19963 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19964 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19965 echo $ECHO_N "(cached
) $ECHO_C" >&6
19967 ac_check_lib_save_LIBS=$LIBS
19968 LIBS="-lcrypto $LIBS"
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 /* Override any GCC internal prototype to avoid an error.
19977 Use char because int might match the return type of a GCC
19978 builtin and then its argument prototype would still apply. */
19982 char mit_des_cbc_encrypt ();
19986 return mit_des_cbc_encrypt ();
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (ac_try="$ac_link"
19993 case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_link") 2>conftest.er1
20000 grep -v '^ *+' conftest.er1 >conftest.err
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20004 (exit $ac_status); } && {
20005 test -z "$ac_c_werror_flag" ||
20006 test ! -s conftest.err
20007 } && test -s conftest$ac_exeext &&
20008 $as_test_x conftest$ac_exeext; then
20009 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20011 echo "$as_me: failed program was
:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20018 conftest$ac_exeext conftest.$ac_ext
20019 LIBS=$ac_check_lib_save_LIBS
20021 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20022 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20023 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20024 cat >>confdefs.h <<_ACEOF
20025 #define HAVE_LIBCRYPTO 1
20028 LIBS="-lcrypto $LIBS"
20033 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20034 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20035 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20036 echo $ECHO_N "(cached
) $ECHO_C" >&6
20038 ac_check_lib_save_LIBS=$LIBS
20039 LIBS="-lkrb5 $LIBS"
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20047 /* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20053 char krb5_init_context ();
20057 return krb5_init_context ();
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (ac_try="$ac_link"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_link") 2>conftest.er1
20071 grep -v '^ *+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest$ac_exeext &&
20079 $as_test_x conftest$ac_exeext; then
20080 ac_cv_lib_krb5_krb5_init_context=yes
20082 echo "$as_me: failed program was
:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_cv_lib_krb5_krb5_init_context=no
20088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20089 conftest$ac_exeext conftest.$ac_ext
20090 LIBS=$ac_check_lib_save_LIBS
20092 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20093 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20094 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE_LIBKRB5 1
20099 LIBS="-lkrb5 $LIBS"
20103 if test "${with_kerberos5+set}" != set; then
20105 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20106 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20107 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20108 echo $ECHO_N "(cached
) $ECHO_C" >&6
20110 ac_check_lib_save_LIBS=$LIBS
20111 LIBS="-ldes425 $LIBS"
20112 cat >conftest.$ac_ext <<_ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20119 /* Override any GCC internal prototype to avoid an error.
20120 Use char because int might match the return type of a GCC
20121 builtin and then its argument prototype would still apply. */
20125 char des_cbc_encrypt ();
20129 return des_cbc_encrypt ();
20134 rm -f conftest.$ac_objext conftest$ac_exeext
20135 if { (ac_try="$ac_link"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_link") 2>conftest.er1
20143 grep -v '^ *+' conftest.er1 >conftest.err
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest$ac_exeext &&
20151 $as_test_x conftest$ac_exeext; then
20152 ac_cv_lib_des425_des_cbc_encrypt=yes
20154 echo "$as_me: failed program was
:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20157 ac_cv_lib_des425_des_cbc_encrypt=no
20160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20161 conftest$ac_exeext conftest.$ac_ext
20162 LIBS=$ac_check_lib_save_LIBS
20164 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20165 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20166 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20167 cat >>confdefs.h <<_ACEOF
20168 #define HAVE_LIBDES425 1
20171 LIBS="-ldes425 $LIBS"
20175 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20176 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20177 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20178 echo $ECHO_N "(cached
) $ECHO_C" >&6
20180 ac_check_lib_save_LIBS=$LIBS
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20189 /* Override any GCC internal prototype to avoid an error.
20190 Use char because int might match the return type of a GCC
20191 builtin and then its argument prototype would still apply. */
20195 char des_cbc_encrypt ();
20199 return des_cbc_encrypt ();
20204 rm -f conftest.$ac_objext conftest$ac_exeext
20205 if { (ac_try="$ac_link"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_link") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest$ac_exeext &&
20221 $as_test_x conftest$ac_exeext; then
20222 ac_cv_lib_des_des_cbc_encrypt=yes
20224 echo "$as_me: failed program was
:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 ac_cv_lib_des_des_cbc_encrypt=no
20230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20231 conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20234 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20235 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20236 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define HAVE_LIBDES 1
20248 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20249 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20250 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20251 echo $ECHO_N "(cached
) $ECHO_C" >&6
20253 ac_check_lib_save_LIBS=$LIBS
20254 LIBS="-lkrb4 $LIBS"
20255 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 /* Override any GCC internal prototype to avoid an error.
20263 Use char because int might match the return type of a GCC
20264 builtin and then its argument prototype would still apply. */
20268 char krb_get_cred ();
20272 return krb_get_cred ();
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest$ac_exeext &&
20294 $as_test_x conftest$ac_exeext; then
20295 ac_cv_lib_krb4_krb_get_cred=yes
20297 echo "$as_me: failed program was
:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ac_cv_lib_krb4_krb_get_cred=no
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304 conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20307 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20308 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20309 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20310 cat >>confdefs.h <<_ACEOF
20311 #define HAVE_LIBKRB4 1
20314 LIBS="-lkrb4 $LIBS"
20318 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20319 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20320 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20321 echo $ECHO_N "(cached
) $ECHO_C" >&6
20323 ac_check_lib_save_LIBS=$LIBS
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20332 /* Override any GCC internal prototype to avoid an error.
20333 Use char because int might match the return type of a GCC
20334 builtin and then its argument prototype would still apply. */
20338 char krb_get_cred ();
20342 return krb_get_cred ();
20347 rm -f conftest.$ac_objext conftest$ac_exeext
20348 if { (ac_try="$ac_link"
20349 case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_link") 2>conftest.er1
20356 grep -v '^ *+' conftest.er1 >conftest.err
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20360 (exit $ac_status); } && {
20361 test -z "$ac_c_werror_flag" ||
20362 test ! -s conftest.err
20363 } && test -s conftest$ac_exeext &&
20364 $as_test_x conftest$ac_exeext; then
20365 ac_cv_lib_krb_krb_get_cred=yes
20367 echo "$as_me: failed program was
:" >&5
20368 sed 's/^/| /' conftest.$ac_ext >&5
20370 ac_cv_lib_krb_krb_get_cred=no
20373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20374 conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20377 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20378 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20379 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define HAVE_LIBKRB 1
20392 if test "${with_kerberos5+set}" = set; then
20394 for ac_header in krb5.h
20396 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20397 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20398 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20399 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20400 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20401 echo $ECHO_N "(cached
) $ECHO_C" >&6
20403 ac_res=`eval echo '${'$as_ac_Header'}'`
20404 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20405 echo "${ECHO_T}$ac_res" >&6; }
20407 # Is the header compilable?
20408 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20409 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20410 cat >conftest.$ac_ext <<_ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h. */
20416 $ac_includes_default
20417 #include <$ac_header>
20419 rm -f conftest.$ac_objext
20420 if { (ac_try="$ac_compile"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_compile") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20432 (exit $ac_status); } && {
20433 test -z "$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20435 } && test -s conftest.$ac_objext; then
20436 ac_header_compiler=yes
20438 echo "$as_me: failed program was
:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ac_header_compiler=no
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20446 echo "${ECHO_T}$ac_header_compiler" >&6; }
20448 # Is the header present?
20449 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20450 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20451 cat >conftest.$ac_ext <<_ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 #include <$ac_header>
20459 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20471 (exit $ac_status); } >/dev/null && {
20472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20475 ac_header_preproc=yes
20477 echo "$as_me: failed program was
:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_header_preproc=no
20483 rm -f conftest.err conftest.$ac_ext
20484 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20485 echo "${ECHO_T}$ac_header_preproc" >&6; }
20487 # So? What about this header?
20488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20490 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20491 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20492 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20494 ac_header_preproc=yes
20497 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20498 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20499 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20500 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20501 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20502 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20503 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20504 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20505 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20507 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20508 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20512 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20513 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20514 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20515 echo $ECHO_N "(cached
) $ECHO_C" >&6
20517 eval "$as_ac_Header=\
$ac_header_preproc"
20519 ac_res=`eval echo '${'$as_ac_Header'}'`
20520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20521 echo "${ECHO_T}$ac_res" >&6; }
20524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20525 cat >>confdefs.h <<_ACEOF
20526 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20535 for ac_header in des.h
20537 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20538 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20539 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20540 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20541 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20542 echo $ECHO_N "(cached
) $ECHO_C" >&6
20544 ac_res=`eval echo '${'$as_ac_Header'}'`
20545 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20546 echo "${ECHO_T}$ac_res" >&6; }
20548 # Is the header compilable?
20549 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20550 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 $ac_includes_default
20558 #include <$ac_header>
20560 rm -f conftest.$ac_objext
20561 if { (ac_try="$ac_compile"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_compile") 2>conftest.er1
20569 grep -v '^ *+' conftest.er1 >conftest.err
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20573 (exit $ac_status); } && {
20574 test -z "$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 } && test -s conftest.$ac_objext; then
20577 ac_header_compiler=yes
20579 echo "$as_me: failed program was
:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_header_compiler=no
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20586 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20587 echo "${ECHO_T}$ac_header_compiler" >&6; }
20589 # Is the header present?
20590 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20591 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #include <$ac_header>
20600 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20612 (exit $ac_status); } >/dev/null && {
20613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20614 test ! -s conftest.err
20616 ac_header_preproc=yes
20618 echo "$as_me: failed program was
:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20621 ac_header_preproc=no
20624 rm -f conftest.err conftest.$ac_ext
20625 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20626 echo "${ECHO_T}$ac_header_preproc" >&6; }
20628 # So? What about this header?
20629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20631 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20632 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20633 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20635 ac_header_preproc=yes
20638 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20639 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20640 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20641 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20642 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20643 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20644 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20645 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20646 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20648 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20649 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20653 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20654 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20656 echo $ECHO_N "(cached
) $ECHO_C" >&6
20658 eval "$as_ac_Header=\
$ac_header_preproc"
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20666 cat >>confdefs.h <<_ACEOF
20667 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20672 for ac_header in kerberosIV/des.h
20674 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20676 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20677 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20679 echo $ECHO_N "(cached
) $ECHO_C" >&6
20681 ac_res=`eval echo '${'$as_ac_Header'}'`
20682 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20683 echo "${ECHO_T}$ac_res" >&6; }
20685 # Is the header compilable?
20686 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20687 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 $ac_includes_default
20695 #include <$ac_header>
20697 rm -f conftest.$ac_objext
20698 if { (ac_try="$ac_compile"
20699 case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_compile") 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20710 (exit $ac_status); } && {
20711 test -z "$ac_c_werror_flag" ||
20712 test ! -s conftest.err
20713 } && test -s conftest.$ac_objext; then
20714 ac_header_compiler=yes
20716 echo "$as_me: failed program was
:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_header_compiler=no
20722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20724 echo "${ECHO_T}$ac_header_compiler" >&6; }
20726 # Is the header present?
20727 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20728 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20729 cat >conftest.$ac_ext <<_ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 #include <$ac_header>
20737 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20738 case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20745 grep -v '^ *+' conftest.er1 >conftest.err
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20749 (exit $ac_status); } >/dev/null && {
20750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20751 test ! -s conftest.err
20753 ac_header_preproc=yes
20755 echo "$as_me: failed program was
:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20758 ac_header_preproc=no
20761 rm -f conftest.err conftest.$ac_ext
20762 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20763 echo "${ECHO_T}$ac_header_preproc" >&6; }
20765 # So? What about this header?
20766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20768 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20769 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20770 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20772 ac_header_preproc=yes
20775 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20776 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20777 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20778 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20779 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20780 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20781 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20782 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20783 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20785 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20786 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20790 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20791 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20792 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20793 echo $ECHO_N "(cached
) $ECHO_C" >&6
20795 eval "$as_ac_Header=\
$ac_header_preproc"
20797 ac_res=`eval echo '${'$as_ac_Header'}'`
20798 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20799 echo "${ECHO_T}$ac_res" >&6; }
20802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20809 for ac_header in kerberos/des.h
20811 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20812 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20813 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20814 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20815 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20816 echo $ECHO_N "(cached
) $ECHO_C" >&6
20818 ac_res=`eval echo '${'$as_ac_Header'}'`
20819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20820 echo "${ECHO_T}$ac_res" >&6; }
20822 # Is the header compilable?
20823 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20824 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20825 cat >conftest.$ac_ext <<_ACEOF
20828 cat confdefs.h >>conftest.$ac_ext
20829 cat >>conftest.$ac_ext <<_ACEOF
20830 /* end confdefs.h. */
20831 $ac_includes_default
20832 #include <$ac_header>
20834 rm -f conftest.$ac_objext
20835 if { (ac_try="$ac_compile"
20836 case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_compile") 2>conftest.er1
20843 grep -v '^ *+' conftest.er1 >conftest.err
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20847 (exit $ac_status); } && {
20848 test -z "$ac_c_werror_flag" ||
20849 test ! -s conftest.err
20850 } && test -s conftest.$ac_objext; then
20851 ac_header_compiler=yes
20853 echo "$as_me: failed program was
:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 ac_header_compiler=no
20859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20860 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20861 echo "${ECHO_T}$ac_header_compiler" >&6; }
20863 # Is the header present?
20864 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20865 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20866 cat >conftest.$ac_ext <<_ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 #include <$ac_header>
20874 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20886 (exit $ac_status); } >/dev/null && {
20887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20890 ac_header_preproc=yes
20892 echo "$as_me: failed program was
:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_header_preproc=no
20898 rm -f conftest.err conftest.$ac_ext
20899 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20900 echo "${ECHO_T}$ac_header_preproc" >&6; }
20902 # So? What about this header?
20903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20905 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20906 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20907 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20909 ac_header_preproc=yes
20912 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20913 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20914 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20915 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20916 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20917 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20918 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20919 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20922 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20923 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20927 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20928 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20929 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20930 echo $ECHO_N "(cached
) $ECHO_C" >&6
20932 eval "$as_ac_Header=\
$ac_header_preproc"
20934 ac_res=`eval echo '${'$as_ac_Header'}'`
20935 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20936 echo "${ECHO_T}$ac_res" >&6; }
20939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20940 cat >>confdefs.h <<_ACEOF
20941 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20957 for ac_header in krb.h
20959 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20960 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20961 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20962 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20964 echo $ECHO_N "(cached
) $ECHO_C" >&6
20966 ac_res=`eval echo '${'$as_ac_Header'}'`
20967 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20968 echo "${ECHO_T}$ac_res" >&6; }
20970 # Is the header compilable?
20971 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20972 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20979 $ac_includes_default
20980 #include <$ac_header>
20982 rm -f conftest.$ac_objext
20983 if { (ac_try="$ac_compile"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_compile") 2>conftest.er1
20991 grep -v '^ *+' conftest.er1 >conftest.err
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20995 (exit $ac_status); } && {
20996 test -z "$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20998 } && test -s conftest.$ac_objext; then
20999 ac_header_compiler=yes
21001 echo "$as_me: failed program was
:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 ac_header_compiler=no
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21009 echo "${ECHO_T}$ac_header_compiler" >&6; }
21011 # Is the header present?
21012 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21013 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21014 cat >conftest.$ac_ext <<_ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 #include <$ac_header>
21022 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21023 case "(($ac_try" in
21024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025 *) ac_try_echo=$ac_try;;
21027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21028 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21030 grep -v '^ *+' conftest.er1 >conftest.err
21032 cat conftest.err >&5
21033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21034 (exit $ac_status); } >/dev/null && {
21035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21036 test ! -s conftest.err
21038 ac_header_preproc=yes
21040 echo "$as_me: failed program was
:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21043 ac_header_preproc=no
21046 rm -f conftest.err conftest.$ac_ext
21047 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21048 echo "${ECHO_T}$ac_header_preproc" >&6; }
21050 # So? What about this header?
21051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21053 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21054 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21055 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21057 ac_header_preproc=yes
21060 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21061 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21062 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21063 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21064 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21065 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21066 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21067 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21068 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21070 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21071 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21075 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21076 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21078 echo $ECHO_N "(cached
) $ECHO_C" >&6
21080 eval "$as_ac_Header=\
$ac_header_preproc"
21082 ac_res=`eval echo '${'$as_ac_Header'}'`
21083 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21084 echo "${ECHO_T}$ac_res" >&6; }
21087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21088 cat >>confdefs.h <<_ACEOF
21089 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21094 for ac_header in kerberosIV/krb.h
21096 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21098 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21099 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21100 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21101 echo $ECHO_N "(cached
) $ECHO_C" >&6
21103 ac_res=`eval echo '${'$as_ac_Header'}'`
21104 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21105 echo "${ECHO_T}$ac_res" >&6; }
21107 # Is the header compilable?
21108 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21109 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21110 cat >conftest.$ac_ext <<_ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 $ac_includes_default
21117 #include <$ac_header>
21119 rm -f conftest.$ac_objext
21120 if { (ac_try="$ac_compile"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_compile") 2>conftest.er1
21128 grep -v '^ *+' conftest.er1 >conftest.err
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest.$ac_objext; then
21136 ac_header_compiler=yes
21138 echo "$as_me: failed program was
:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 ac_header_compiler=no
21144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21145 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21146 echo "${ECHO_T}$ac_header_compiler" >&6; }
21148 # Is the header present?
21149 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21150 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21157 #include <$ac_header>
21159 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21160 case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21167 grep -v '^ *+' conftest.er1 >conftest.err
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21171 (exit $ac_status); } >/dev/null && {
21172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21175 ac_header_preproc=yes
21177 echo "$as_me: failed program was
:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21180 ac_header_preproc=no
21183 rm -f conftest.err conftest.$ac_ext
21184 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21185 echo "${ECHO_T}$ac_header_preproc" >&6; }
21187 # So? What about this header?
21188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21190 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21191 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21192 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21194 ac_header_preproc=yes
21197 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21198 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21199 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21200 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21201 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21202 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21203 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21204 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21205 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21207 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21208 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21212 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21213 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21214 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21215 echo $ECHO_N "(cached
) $ECHO_C" >&6
21217 eval "$as_ac_Header=\
$ac_header_preproc"
21219 ac_res=`eval echo '${'$as_ac_Header'}'`
21220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21221 echo "${ECHO_T}$ac_res" >&6; }
21224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21225 cat >>confdefs.h <<_ACEOF
21226 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21231 for ac_header in kerberos/krb.h
21233 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21234 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21235 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21236 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21237 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21238 echo $ECHO_N "(cached
) $ECHO_C" >&6
21240 ac_res=`eval echo '${'$as_ac_Header'}'`
21241 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21242 echo "${ECHO_T}$ac_res" >&6; }
21244 # Is the header compilable?
21245 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21246 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 $ac_includes_default
21254 #include <$ac_header>
21256 rm -f conftest.$ac_objext
21257 if { (ac_try="$ac_compile"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_compile") 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21269 (exit $ac_status); } && {
21270 test -z "$ac_c_werror_flag" ||
21271 test ! -s conftest.err
21272 } && test -s conftest.$ac_objext; then
21273 ac_header_compiler=yes
21275 echo "$as_me: failed program was
:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_header_compiler=no
21281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21282 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21283 echo "${ECHO_T}$ac_header_compiler" >&6; }
21285 # Is the header present?
21286 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21287 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21288 cat >conftest.$ac_ext <<_ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h. */
21294 #include <$ac_header>
21296 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21301 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21304 grep -v '^ *+' conftest.er1 >conftest.err
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21308 (exit $ac_status); } >/dev/null && {
21309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21312 ac_header_preproc=yes
21314 echo "$as_me: failed program was
:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21317 ac_header_preproc=no
21320 rm -f conftest.err conftest.$ac_ext
21321 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21322 echo "${ECHO_T}$ac_header_preproc" >&6; }
21324 # So? What about this header?
21325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21327 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21328 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21329 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21331 ac_header_preproc=yes
21334 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21335 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21336 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21337 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21338 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21339 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21340 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21341 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21344 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21345 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21349 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21350 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21351 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21352 echo $ECHO_N "(cached
) $ECHO_C" >&6
21354 eval "$as_ac_Header=\
$ac_header_preproc"
21356 ac_res=`eval echo '${'$as_ac_Header'}'`
21357 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21358 echo "${ECHO_T}$ac_res" >&6; }
21361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21362 cat >>confdefs.h <<_ACEOF
21363 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21380 for ac_header in com_err.h
21382 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21384 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21385 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21387 echo $ECHO_N "(cached
) $ECHO_C" >&6
21389 ac_res=`eval echo '${'$as_ac_Header'}'`
21390 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21391 echo "${ECHO_T}$ac_res" >&6; }
21393 # Is the header compilable?
21394 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21395 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 #include <$ac_header>
21405 rm -f conftest.$ac_objext
21406 if { (ac_try="$ac_compile"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compile") 2>conftest.er1
21414 grep -v '^ *+' conftest.er1 >conftest.err
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest.$ac_objext; then
21422 ac_header_compiler=yes
21424 echo "$as_me: failed program was
:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_header_compiler=no
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21432 echo "${ECHO_T}$ac_header_compiler" >&6; }
21434 # Is the header present?
21435 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21436 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <$ac_header>
21445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21453 grep -v '^ *+' conftest.er1 >conftest.err
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21457 (exit $ac_status); } >/dev/null && {
21458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21461 ac_header_preproc=yes
21463 echo "$as_me: failed program was
:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_header_preproc=no
21469 rm -f conftest.err conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21471 echo "${ECHO_T}$ac_header_preproc" >&6; }
21473 # So? What about this header?
21474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21476 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21477 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21480 ac_header_preproc=yes
21483 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21484 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21485 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21486 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21487 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21488 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21489 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21490 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21493 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21494 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21498 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21499 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21500 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21501 echo $ECHO_N "(cached
) $ECHO_C" >&6
21503 eval "$as_ac_Header=\
$ac_header_preproc"
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21511 cat >>confdefs.h <<_ACEOF
21512 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21521 # Solaris requires -lintl if you want strerror (which calls dgettext)
21522 # to return localized messages.
21524 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21525 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21526 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21527 echo $ECHO_N "(cached
) $ECHO_C" >&6
21529 ac_check_lib_save_LIBS=$LIBS
21530 LIBS="-lintl $LIBS"
21531 cat >conftest.$ac_ext <<_ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21538 /* Override any GCC internal prototype to avoid an error.
21539 Use char because int might match the return type of a GCC
21540 builtin and then its argument prototype would still apply. */
21548 return dgettext ();
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (ac_try="$ac_link"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_link") 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21566 (exit $ac_status); } && {
21567 test -z "$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 } && test -s conftest$ac_exeext &&
21570 $as_test_x conftest$ac_exeext; then
21571 ac_cv_lib_intl_dgettext=yes
21573 echo "$as_me: failed program was
:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_lib_intl_dgettext=no
21579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21580 conftest$ac_exeext conftest.$ac_ext
21581 LIBS=$ac_check_lib_save_LIBS
21583 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21584 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21585 if test $ac_cv_lib_intl_dgettext = yes; then
21586 cat >>confdefs.h <<_ACEOF
21587 #define HAVE_LIBINTL 1
21590 LIBS="-lintl $LIBS"
21595 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21596 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21597 if test "${emacs_cv_localtime_cache+set}" = set; then
21598 echo $ECHO_N "(cached
) $ECHO_C" >&6
21600 if test x$ac_cv_func_tzset = xyes; then
21601 if test "$cross_compiling" = yes; then
21602 # If we have tzset, assume the worst when cross-compiling.
21603 emacs_cv_localtime_cache=yes
21605 cat >conftest.$ac_ext <<_ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21612 extern char **environ;
21616 for (to = from = environ; (*to = *from); from++)
21617 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21620 char TZ_GMT0[] = "TZ
=GMT0
";
21621 char TZ_PST8[] = "TZ
=PST8
";
21624 time_t now = time ((time_t *) 0);
21625 int hour_GMT0, hour_unset;
21626 if (putenv (TZ_GMT0) != 0)
21628 hour_GMT0 = localtime (&now)->tm_hour;
21630 hour_unset = localtime (&now)->tm_hour;
21631 if (putenv (TZ_PST8) != 0)
21633 if (localtime (&now)->tm_hour == hour_GMT0)
21636 if (localtime (&now)->tm_hour != hour_unset)
21641 rm -f conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21648 (eval "$ac_link") 2>&5
21650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652 { (case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_try") 2>&5
21659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21660 (exit $ac_status); }; }; then
21661 emacs_cv_localtime_cache=no
21663 echo "$as_me: program exited with status
$ac_status" >&5
21664 echo "$as_me: failed program was
:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ( exit $ac_status )
21668 emacs_cv_localtime_cache=yes
21670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21675 # If we lack tzset, report that localtime does not cache TZ,
21676 # since we can't invalidate the cache if we don't have tzset.
21677 emacs_cv_localtime_cache=no
21680 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21681 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21682 if test $emacs_cv_localtime_cache = yes; then
21684 cat >>confdefs.h <<\_ACEOF
21685 #define LOCALTIME_CACHE 1
21690 if test "x
$HAVE_TIMEVAL" = xyes; then
21692 for ac_func in gettimeofday
21694 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21695 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21696 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21697 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21698 echo $ECHO_N "(cached
) $ECHO_C" >&6
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21708 #define $ac_func innocuous_$ac_func
21710 /* System header to define __stub macros and hopefully few prototypes,
21711 which can conflict with char $ac_func (); below.
21712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21713 <limits.h> exists even on freestanding compilers. */
21716 # include <limits.h>
21718 # include <assert.h>
21723 /* Override any GCC internal prototype to avoid an error.
21724 Use char because int might match the return type of a GCC
21725 builtin and then its argument prototype would still apply. */
21730 /* The GNU C library defines this for functions which it implements
21731 to always fail with ENOSYS. Some functions are actually named
21732 something starting with __ and the normal name is an alias. */
21733 #if defined __stub_$ac_func || defined __stub___$ac_func
21740 return $ac_func ();
21745 rm -f conftest.$ac_objext conftest$ac_exeext
21746 if { (ac_try="$ac_link"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_link") 2>conftest.er1
21754 grep -v '^ *+' conftest.er1 >conftest.err
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21758 (exit $ac_status); } && {
21759 test -z "$ac_c_werror_flag" ||
21760 test ! -s conftest.err
21761 } && test -s conftest$ac_exeext &&
21762 $as_test_x conftest$ac_exeext; then
21763 eval "$as_ac_var=yes"
21765 echo "$as_me: failed program was
:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21768 eval "$as_ac_var=no
"
21771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21772 conftest$ac_exeext conftest.$ac_ext
21774 ac_res=`eval echo '${'$as_ac_var'}'`
21775 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21776 echo "${ECHO_T}$ac_res" >&6; }
21777 if test `eval echo '${'$as_ac_var'}'` = yes; then
21778 cat >>confdefs.h <<_ACEOF
21779 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21785 if test $ac_cv_func_gettimeofday = yes; then
21786 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21787 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21788 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21789 echo $ECHO_N "(cached
) $ECHO_C" >&6
21791 cat >conftest.$ac_ext <<_ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21798 #ifdef TIME_WITH_SYS_TIME
21799 #include <sys/time.h>
21802 #ifdef HAVE_SYS_TIME_H
21803 #include <sys/time.h>
21811 struct timeval time;
21812 gettimeofday (&time, 0);
21817 rm -f conftest.$ac_objext
21818 if { (ac_try="$ac_compile"
21819 case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_compile") 2>conftest.er1
21826 grep -v '^ *+' conftest.er1 >conftest.err
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21830 (exit $ac_status); } && {
21831 test -z "$ac_c_werror_flag" ||
21832 test ! -s conftest.err
21833 } && test -s conftest.$ac_objext; then
21834 emacs_cv_gettimeofday_two_arguments=yes
21836 echo "$as_me: failed program was
:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21839 emacs_cv_gettimeofday_two_arguments=no
21842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21844 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21845 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21846 if test $emacs_cv_gettimeofday_two_arguments = no; then
21848 cat >>confdefs.h <<\_ACEOF
21849 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21857 { echo "$as_me:$LINENO: checking
for socket
" >&5
21858 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21859 if test "${ac_cv_func_socket+set}" = set; then
21860 echo $ECHO_N "(cached
) $ECHO_C" >&6
21862 cat >conftest.$ac_ext <<_ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21870 #define socket innocuous_socket
21872 /* System header to define __stub macros and hopefully few prototypes,
21873 which can conflict with char socket (); below.
21874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21875 <limits.h> exists even on freestanding compilers. */
21878 # include <limits.h>
21880 # include <assert.h>
21885 /* Override any GCC internal prototype to avoid an error.
21886 Use char because int might match the return type of a GCC
21887 builtin and then its argument prototype would still apply. */
21892 /* The GNU C library defines this for functions which it implements
21893 to always fail with ENOSYS. Some functions are actually named
21894 something starting with __ and the normal name is an alias. */
21895 #if defined __stub_socket || defined __stub___socket
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_link") 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest$ac_exeext &&
21924 $as_test_x conftest$ac_exeext; then
21925 ac_cv_func_socket=yes
21927 echo "$as_me: failed program was
:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_cv_func_socket=no
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21936 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21937 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21938 if test $ac_cv_func_socket = yes; then
21944 if test $ok_so_far = yes; then
21945 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21946 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21947 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21948 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21949 echo $ECHO_N "(cached
) $ECHO_C" >&6
21951 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21952 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21954 # Is the header compilable?
21955 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21956 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21957 cat >conftest.$ac_ext <<_ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h. */
21963 $ac_includes_default
21964 #include <netinet/in.h>
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21975 grep -v '^ *+' conftest.er1 >conftest.err
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest.$ac_objext; then
21983 ac_header_compiler=yes
21985 echo "$as_me: failed program was
:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_header_compiler=no
21991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21992 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21993 echo "${ECHO_T}$ac_header_compiler" >&6; }
21995 # Is the header present?
21996 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21997 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22004 #include <netinet/in.h>
22006 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22018 (exit $ac_status); } >/dev/null && {
22019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22022 ac_header_preproc=yes
22024 echo "$as_me: failed program was
:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22027 ac_header_preproc=no
22030 rm -f conftest.err conftest.$ac_ext
22031 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22032 echo "${ECHO_T}$ac_header_preproc" >&6; }
22034 # So? What about this header?
22035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22037 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22038 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22039 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22040 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22041 ac_header_preproc=yes
22044 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22045 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22046 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22047 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22048 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22049 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22050 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22051 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22052 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22053 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22054 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22055 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22059 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22060 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22061 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22062 echo $ECHO_N "(cached
) $ECHO_C" >&6
22064 ac_cv_header_netinet_in_h=$ac_header_preproc
22066 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22067 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22070 if test $ac_cv_header_netinet_in_h = yes; then
22078 if test $ok_so_far = yes; then
22079 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22080 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22081 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22082 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22083 echo $ECHO_N "(cached
) $ECHO_C" >&6
22085 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22086 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22088 # Is the header compilable?
22089 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22090 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22091 cat >conftest.$ac_ext <<_ACEOF
22094 cat confdefs.h >>conftest.$ac_ext
22095 cat >>conftest.$ac_ext <<_ACEOF
22096 /* end confdefs.h. */
22097 $ac_includes_default
22098 #include <arpa/inet.h>
22100 rm -f conftest.$ac_objext
22101 if { (ac_try="$ac_compile"
22102 case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_compile") 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22113 (exit $ac_status); } && {
22114 test -z "$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22116 } && test -s conftest.$ac_objext; then
22117 ac_header_compiler=yes
22119 echo "$as_me: failed program was
:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22122 ac_header_compiler=no
22125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22126 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22127 echo "${ECHO_T}$ac_header_compiler" >&6; }
22129 # Is the header present?
22130 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22131 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22132 cat >conftest.$ac_ext <<_ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h. */
22138 #include <arpa/inet.h>
22140 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22141 case "(($ac_try" in
22142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143 *) ac_try_echo=$ac_try;;
22145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22146 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22148 grep -v '^ *+' conftest.er1 >conftest.err
22150 cat conftest.err >&5
22151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22152 (exit $ac_status); } >/dev/null && {
22153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22154 test ! -s conftest.err
22156 ac_header_preproc=yes
22158 echo "$as_me: failed program was
:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 ac_header_preproc=no
22164 rm -f conftest.err conftest.$ac_ext
22165 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22166 echo "${ECHO_T}$ac_header_preproc" >&6; }
22168 # So? What about this header?
22169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22171 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22172 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22173 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22174 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22175 ac_header_preproc=yes
22178 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22179 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22180 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22181 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22182 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22183 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22184 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22185 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22186 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22187 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22188 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22189 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22193 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22194 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22195 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22196 echo $ECHO_N "(cached
) $ECHO_C" >&6
22198 ac_cv_header_arpa_inet_h=$ac_header_preproc
22200 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22201 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22204 if test $ac_cv_header_arpa_inet_h = yes; then
22212 if test $ok_so_far = yes; then
22214 cat >>confdefs.h <<\_ACEOF
22215 #define HAVE_INET_SOCKETS 1
22221 for ac_header in sys/ioctl.h
22223 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22224 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22225 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22226 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22227 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22228 echo $ECHO_N "(cached
) $ECHO_C" >&6
22230 ac_res=`eval echo '${'$as_ac_Header'}'`
22231 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22232 echo "${ECHO_T}$ac_res" >&6; }
22234 # Is the header compilable?
22235 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22236 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22237 cat >conftest.$ac_ext <<_ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 $ac_includes_default
22244 #include <$ac_header>
22246 rm -f conftest.$ac_objext
22247 if { (ac_try="$ac_compile"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_compile") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22259 (exit $ac_status); } && {
22260 test -z "$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 } && test -s conftest.$ac_objext; then
22263 ac_header_compiler=yes
22265 echo "$as_me: failed program was
:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_header_compiler=no
22271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22273 echo "${ECHO_T}$ac_header_compiler" >&6; }
22275 # Is the header present?
22276 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22277 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22278 cat >conftest.$ac_ext <<_ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22284 #include <$ac_header>
22286 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22287 case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22294 grep -v '^ *+' conftest.er1 >conftest.err
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22298 (exit $ac_status); } >/dev/null && {
22299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22302 ac_header_preproc=yes
22304 echo "$as_me: failed program was
:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 ac_header_preproc=no
22310 rm -f conftest.err conftest.$ac_ext
22311 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22312 echo "${ECHO_T}$ac_header_preproc" >&6; }
22314 # So? What about this header?
22315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22317 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22318 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22319 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22321 ac_header_preproc=yes
22324 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22325 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22326 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22327 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22328 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22329 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22330 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22331 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22332 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22334 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22335 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22339 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22340 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22341 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22342 echo $ECHO_N "(cached
) $ECHO_C" >&6
22344 eval "$as_ac_Header=\
$ac_header_preproc"
22346 ac_res=`eval echo '${'$as_ac_Header'}'`
22347 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22348 echo "${ECHO_T}$ac_res" >&6; }
22351 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22352 cat >>confdefs.h <<_ACEOF
22353 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22361 if test -f /usr/lpp/X11/bin/smt.exp; then
22363 cat >>confdefs.h <<\_ACEOF
22364 #define HAVE_AIX_SMT_EXP 1
22369 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22370 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22371 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22372 { echo "$as_me:$LINENO: result
: yes" >&5
22373 echo "${ECHO_T}yes" >&6; }
22375 cat >>confdefs.h <<\_ACEOF
22376 #define HAVE_DEV_PTMX 1
22380 { echo "$as_me:$LINENO: result
: no
" >&5
22381 echo "${ECHO_T}no
" >&6; }
22384 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22385 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22386 if test "${ac_cv_type_pid_t+set}" = set; then
22387 echo $ECHO_N "(cached
) $ECHO_C" >&6
22389 cat >conftest.$ac_ext <<_ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395 $ac_includes_default
22396 typedef pid_t ac__type_new_;
22400 if ((ac__type_new_ *) 0)
22402 if (sizeof (ac__type_new_))
22408 rm -f conftest.$ac_objext
22409 if { (ac_try="$ac_compile"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_compile") 2>conftest.er1
22417 grep -v '^ *+' conftest.er1 >conftest.err
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22421 (exit $ac_status); } && {
22422 test -z "$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22424 } && test -s conftest.$ac_objext; then
22425 ac_cv_type_pid_t=yes
22427 echo "$as_me: failed program was
:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22430 ac_cv_type_pid_t=no
22433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22436 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22437 if test $ac_cv_type_pid_t = yes; then
22441 cat >>confdefs.h <<_ACEOF
22448 for ac_header in vfork.h
22450 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22451 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22452 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22453 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22454 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22455 echo $ECHO_N "(cached
) $ECHO_C" >&6
22457 ac_res=`eval echo '${'$as_ac_Header'}'`
22458 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22459 echo "${ECHO_T}$ac_res" >&6; }
22461 # Is the header compilable?
22462 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22463 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470 $ac_includes_default
22471 #include <$ac_header>
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_compile") 2>conftest.er1
22482 grep -v '^ *+' conftest.er1 >conftest.err
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22486 (exit $ac_status); } && {
22487 test -z "$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 } && test -s conftest.$ac_objext; then
22490 ac_header_compiler=yes
22492 echo "$as_me: failed program was
:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ac_header_compiler=no
22498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22499 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22500 echo "${ECHO_T}$ac_header_compiler" >&6; }
22502 # Is the header present?
22503 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22504 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22505 cat >conftest.$ac_ext <<_ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 #include <$ac_header>
22513 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22521 grep -v '^ *+' conftest.er1 >conftest.err
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22525 (exit $ac_status); } >/dev/null && {
22526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22529 ac_header_preproc=yes
22531 echo "$as_me: failed program was
:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22534 ac_header_preproc=no
22537 rm -f conftest.err conftest.$ac_ext
22538 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22539 echo "${ECHO_T}$ac_header_preproc" >&6; }
22541 # So? What about this header?
22542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22544 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22545 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22546 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22548 ac_header_preproc=yes
22551 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22552 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22553 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22554 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22555 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22556 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22557 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22558 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22559 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22561 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22562 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22566 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22567 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22568 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22569 echo $ECHO_N "(cached
) $ECHO_C" >&6
22571 eval "$as_ac_Header=\
$ac_header_preproc"
22573 ac_res=`eval echo '${'$as_ac_Header'}'`
22574 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22575 echo "${ECHO_T}$ac_res" >&6; }
22578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22579 cat >>confdefs.h <<_ACEOF
22580 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22589 for ac_func in fork vfork
22591 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22592 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22593 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22594 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22595 echo $ECHO_N "(cached
) $ECHO_C" >&6
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22605 #define $ac_func innocuous_$ac_func
22607 /* System header to define __stub macros and hopefully few prototypes,
22608 which can conflict with char $ac_func (); below.
22609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22610 <limits.h> exists even on freestanding compilers. */
22613 # include <limits.h>
22615 # include <assert.h>
22620 /* Override any GCC internal prototype to avoid an error.
22621 Use char because int might match the return type of a GCC
22622 builtin and then its argument prototype would still apply. */
22627 /* The GNU C library defines this for functions which it implements
22628 to always fail with ENOSYS. Some functions are actually named
22629 something starting with __ and the normal name is an alias. */
22630 #if defined __stub_$ac_func || defined __stub___$ac_func
22637 return $ac_func ();
22642 rm -f conftest.$ac_objext conftest$ac_exeext
22643 if { (ac_try="$ac_link"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646 *) ac_try_echo=$ac_try;;
22648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22649 (eval "$ac_link") 2>conftest.er1
22651 grep -v '^ *+' conftest.er1 >conftest.err
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22655 (exit $ac_status); } && {
22656 test -z "$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22658 } && test -s conftest$ac_exeext &&
22659 $as_test_x conftest$ac_exeext; then
22660 eval "$as_ac_var=yes"
22662 echo "$as_me: failed program was
:" >&5
22663 sed 's/^/| /' conftest.$ac_ext >&5
22665 eval "$as_ac_var=no
"
22668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22669 conftest$ac_exeext conftest.$ac_ext
22671 ac_res=`eval echo '${'$as_ac_var'}'`
22672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22673 echo "${ECHO_T}$ac_res" >&6; }
22674 if test `eval echo '${'$as_ac_var'}'` = yes; then
22675 cat >>confdefs.h <<_ACEOF
22676 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22682 if test "x
$ac_cv_func_fork" = xyes; then
22683 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22684 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22685 if test "${ac_cv_func_fork_works+set}" = set; then
22686 echo $ECHO_N "(cached
) $ECHO_C" >&6
22688 if test "$cross_compiling" = yes; then
22689 ac_cv_func_fork_works=cross
22691 cat >conftest.$ac_ext <<_ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h. */
22697 $ac_includes_default
22702 /* By Ruediger Kuhlmann. */
22703 return fork () < 0;
22709 rm -f conftest$ac_exeext
22710 if { (ac_try="$ac_link"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_link") 2>&5
22718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22720 { (case "(($ac_try" in
22721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722 *) ac_try_echo=$ac_try;;
22724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22725 (eval "$ac_try") 2>&5
22727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22728 (exit $ac_status); }; }; then
22729 ac_cv_func_fork_works=yes
22731 echo "$as_me: program exited with status
$ac_status" >&5
22732 echo "$as_me: failed program was
:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22735 ( exit $ac_status )
22736 ac_cv_func_fork_works=no
22738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22743 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22744 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22747 ac_cv_func_fork_works=$ac_cv_func_fork
22749 if test "x
$ac_cv_func_fork_works" = xcross; then
22751 *-*-amigaos* | *-*-msdosdjgpp*)
22752 # Override, as these systems have only a dummy fork() stub
22753 ac_cv_func_fork_works=no
22756 ac_cv_func_fork_works=yes
22759 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22760 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22762 ac_cv_func_vfork_works=$ac_cv_func_vfork
22763 if test "x
$ac_cv_func_vfork" = xyes; then
22764 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22765 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22766 if test "${ac_cv_func_vfork_works+set}" = set; then
22767 echo $ECHO_N "(cached
) $ECHO_C" >&6
22769 if test "$cross_compiling" = yes; then
22770 ac_cv_func_vfork_works=cross
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 /* Thanks to Paul Eggert for this test. */
22779 $ac_includes_default
22780 #include <sys/wait.h>
22781 #ifdef HAVE_VFORK_H
22782 # include <vfork.h>
22784 /* On some sparc systems, changes by the child to local and incoming
22785 argument registers are propagated back to the parent. The compiler
22786 is told about this with #include <vfork.h>, but some compilers
22787 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22788 static variable whose address is put into a register that is
22789 clobbered by the vfork. */
22792 sparc_address_test (int arg)
22794 sparc_address_test (arg) int arg;
22797 static pid_t child;
22815 pid_t parent = getpid ();
22818 sparc_address_test (0);
22823 /* Here is another test for sparc vfork register problems. This
22824 test uses lots of local variables, at least as many local
22825 variables as main has allocated so far including compiler
22826 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22827 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22828 reuse the register of parent for one of the local variables,
22829 since it will think that parent can't possibly be used any more
22830 in this routine. Assigning to the local variable will thus
22831 munge parent in the parent process. */
22833 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22834 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22835 /* Convince the compiler that p..p7 are live; otherwise, it might
22836 use the same hardware register for all 8 local variables. */
22837 if (p != p1 || p != p2 || p != p3 || p != p4
22838 || p != p5 || p != p6 || p != p7)
22841 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22842 from child file descriptors. If the child closes a descriptor
22843 before it execs or exits, this munges the parent's descriptor
22844 as well. Test for this by closing stdout in the child. */
22845 _exit(close(fileno(stdout)) != 0);
22850 while (wait(&status) != child)
22853 /* Was there some problem with vforking? */
22856 /* Did the child fail? (This shouldn't happen.) */
22859 /* Did the vfork/compiler bug occur? */
22860 || parent != getpid()
22862 /* Did the file descriptor bug occur? */
22863 || fstat(fileno(stdout), &st) != 0
22868 rm -f conftest$ac_exeext
22869 if { (ac_try="$ac_link"
22870 case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_link") 2>&5
22877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22879 { (case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_try") 2>&5
22886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22887 (exit $ac_status); }; }; then
22888 ac_cv_func_vfork_works=yes
22890 echo "$as_me: program exited with status
$ac_status" >&5
22891 echo "$as_me: failed program was
:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 ( exit $ac_status )
22895 ac_cv_func_vfork_works=no
22897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22902 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22903 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22906 if test "x
$ac_cv_func_fork_works" = xcross; then
22907 ac_cv_func_vfork_works=$ac_cv_func_vfork
22908 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22909 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22912 if test "x
$ac_cv_func_vfork_works" = xyes; then
22914 cat >>confdefs.h <<\_ACEOF
22915 #define HAVE_WORKING_VFORK 1
22920 cat >>confdefs.h <<\_ACEOF
22925 if test "x
$ac_cv_func_fork_works" = xyes; then
22927 cat >>confdefs.h <<\_ACEOF
22928 #define HAVE_WORKING_FORK 1
22934 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22935 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22936 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22937 echo $ECHO_N "(cached
) $ECHO_C" >&6
22939 cat >conftest.$ac_ext <<_ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22945 #include <langinfo.h>
22949 char* cs = nl_langinfo(CODESET);
22954 rm -f conftest.$ac_objext conftest$ac_exeext
22955 if { (ac_try="$ac_link"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_link") 2>conftest.er1
22963 grep -v '^ *+' conftest.er1 >conftest.err
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22967 (exit $ac_status); } && {
22968 test -z "$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22970 } && test -s conftest$ac_exeext &&
22971 $as_test_x conftest$ac_exeext; then
22972 emacs_cv_langinfo_codeset=yes
22974 echo "$as_me: failed program was
:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 emacs_cv_langinfo_codeset=no
22980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22981 conftest$ac_exeext conftest.$ac_ext
22984 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22985 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22986 if test $emacs_cv_langinfo_codeset = yes; then
22988 cat >>confdefs.h <<\_ACEOF
22989 #define HAVE_LANGINFO_CODESET 1
22994 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22995 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22996 if test "${ac_cv_type_size_t+set}" = set; then
22997 echo $ECHO_N "(cached
) $ECHO_C" >&6
22999 cat >conftest.$ac_ext <<_ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 $ac_includes_default
23006 typedef size_t ac__type_new_;
23010 if ((ac__type_new_ *) 0)
23012 if (sizeof (ac__type_new_))
23018 rm -f conftest.$ac_objext
23019 if { (ac_try="$ac_compile"
23020 case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23025 (eval "$ac_compile") 2>conftest.er1
23027 grep -v '^ *+' conftest.er1 >conftest.err
23029 cat conftest.err >&5
23030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23031 (exit $ac_status); } && {
23032 test -z "$ac_c_werror_flag" ||
23033 test ! -s conftest.err
23034 } && test -s conftest.$ac_objext; then
23035 ac_cv_type_size_t=yes
23037 echo "$as_me: failed program was
:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23040 ac_cv_type_size_t=no
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23046 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23047 if test $ac_cv_type_size_t = yes; then
23049 cat >>confdefs.h <<_ACEOF
23050 #define HAVE_SIZE_T 1
23057 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23058 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23059 if test "${ac_cv_type_mbstate_t+set}" = set; then
23060 echo $ECHO_N "(cached
) $ECHO_C" >&6
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 $ac_includes_default
23069 # include <wchar.h>
23073 mbstate_t x; return sizeof x;
23078 rm -f conftest.$ac_objext
23079 if { (ac_try="$ac_compile"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23087 grep -v '^ *+' conftest.er1 >conftest.err
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23091 (exit $ac_status); } && {
23092 test -z "$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 } && test -s conftest.$ac_objext; then
23095 ac_cv_type_mbstate_t=yes
23097 echo "$as_me: failed program was
:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_cv_type_mbstate_t=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23106 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23107 if test $ac_cv_type_mbstate_t = yes; then
23109 cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_MBSTATE_T 1
23115 cat >>confdefs.h <<\_ACEOF
23116 #define mbstate_t int
23121 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23122 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23123 if test "${emacs_cv_c_restrict+set}" = set; then
23124 echo $ECHO_N "(cached
) $ECHO_C" >&6
23126 cat >conftest.$ac_ext <<_ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132 void fred (int *restrict x);
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest.$ac_objext; then
23158 emacs_cv_c_restrict=yes
23160 echo "$as_me: failed program was
:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23163 cat >conftest.$ac_ext <<_ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h. */
23169 void fred (int *__restrict x);
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182 *) ac_try_echo=$ac_try;;
23184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23187 grep -v '^ *+' conftest.er1 >conftest.err
23189 cat conftest.err >&5
23190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.$ac_objext; then
23195 emacs_cv_c_restrict=__restrict
23197 echo "$as_me: failed program was
:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 emacs_cv_c_restrict=no
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23209 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23210 case "$emacs_cv_c_restrict" in
23211 yes) emacs_restrict=restrict;;
23212 no) emacs_restrict="";;
23213 *) emacs_restrict="$emacs_cv_c_restrict";;
23215 if test "$emacs_restrict" != __restrict; then
23217 cat >>confdefs.h <<_ACEOF
23218 #define __restrict $emacs_restrict
23223 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23224 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23225 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23226 echo $ECHO_N "(cached
) $ECHO_C" >&6
23228 cat >conftest.$ac_ext <<_ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 void fred (int x[__restrict]);
23243 rm -f conftest.$ac_objext
23244 if { (ac_try="$ac_compile"
23245 case "(($ac_try" in
23246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23247 *) ac_try_echo=$ac_try;;
23249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23250 (eval "$ac_compile") 2>conftest.er1
23252 grep -v '^ *+' conftest.er1 >conftest.err
23254 cat conftest.err >&5
23255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23256 (exit $ac_status); } && {
23257 test -z "$ac_c_werror_flag" ||
23258 test ! -s conftest.err
23259 } && test -s conftest.$ac_objext; then
23260 emacs_cv_c_restrict_arr=yes
23262 echo "$as_me: failed program was
:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23265 emacs_cv_c_restrict_arr=no
23268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23270 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23271 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23272 if test "$emacs_cv_c_restrict_arr" = yes; then
23274 cat >>confdefs.h <<\_ACEOF
23275 #define __restrict_arr __restrict
23282 # Set up the CFLAGS for real compilation, so we can substitute it.
23283 CFLAGS="$REAL_CFLAGS"
23284 CPPFLAGS="$REAL_CPPFLAGS"
23286 #### Find out which version of Emacs this is.
23287 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23288 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23289 if test x"${version}" = x; then
23290 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23291 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23292 { (exit 1); exit 1; }; }
23295 ### Specify what sort of things we'll be editing into Makefile and config.h.
23296 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23332 cat >>confdefs.h <<_ACEOF
23333 #define EMACS_CONFIGURATION "${canonical}"
23337 cat >>confdefs.h <<_ACEOF
23338 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23342 cat >>confdefs.h <<_ACEOF
23343 #define config_machfile "${machfile}"
23347 cat >>confdefs.h <<_ACEOF
23348 #define config_opsysfile "${opsysfile}"
23352 cat >>confdefs.h <<_ACEOF
23353 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23357 cat >>confdefs.h <<_ACEOF
23358 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23362 cat >>confdefs.h <<_ACEOF
23363 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23367 cat >>confdefs.h <<_ACEOF
23368 #define UNEXEC_SRC ${UNEXEC_SRC}
23372 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23374 cat >>confdefs.h <<\_ACEOF
23375 #define HAVE_X_WINDOWS 1
23379 if test "${USE_X_TOOLKIT}" != "none
" ; then
23381 cat >>confdefs.h <<\_ACEOF
23382 #define USE_X_TOOLKIT 1
23386 if test "${HAVE_X11}" = "yes" ; then
23388 cat >>confdefs.h <<\_ACEOF
23393 if test "${HAVE_XFREE386}" = "yes" ; then
23395 cat >>confdefs.h <<\_ACEOF
23396 #define HAVE_XFREE386 1
23400 if test "${HAVE_MENUS}" = "yes" ; then
23402 cat >>confdefs.h <<\_ACEOF
23403 #define HAVE_MENUS 1
23407 if test "${GNU_MALLOC}" = "yes" ; then
23409 cat >>confdefs.h <<\_ACEOF
23410 #define GNU_MALLOC 1
23414 if test "${REL_ALLOC}" = "yes" ; then
23416 cat >>confdefs.h <<\_ACEOF
23417 #define REL_ALLOC 1
23426 #### Report on what we decided to do.
23427 #### Report GTK as a toolkit, even if it doesn't use Xt.
23428 #### It makes printing result more understandable as using GTK sets
23429 #### toolkit_scroll_bars to yes by default.
23430 if test "${HAVE_GTK}" = "yes"; then
23435 Configured
for \
`${canonical}'.
23437 Where should the build process find the source code? ${srcdir}
23438 What operating system and machine description files should Emacs use?
23439 \`${opsysfile}' and \`${machfile}'
23440 What compiler should emacs be built with?
${CC} ${CFLAGS}
23441 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23442 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23443 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23444 What window system should Emacs use?
${window_system}
23445 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23447 if test -n "${x_includes}"; then
23448 echo " Where
do we
find X Windows header files?
${x_includes}"
23450 echo " Where
do we
find X Windows header files? Standard
dirs"
23452 if test -n "${x_libraries}"; then
23453 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23455 echo " Where
do we
find X Windows libraries? Standard
dirs"
23458 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23459 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23460 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23461 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23462 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23463 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23464 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23465 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23468 if test $USE_XASSERTS = yes; then
23469 echo " Compiling with asserts turned on.
"
23470 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23474 if test "$USE_X_TOOLKIT" = GTK; then
23475 case "$canonical" in
23477 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23478 will probably get a crash on startup. If this happens
, please use another
23479 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23486 # Remove any trailing slashes in these variables.
23487 test "${prefix}" != NONE &&
23488 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23489 test "${exec_prefix}" != NONE &&
23490 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23492 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23493 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23494 ## from Makefile.c can correctly provide the arg `-traditional' to the
23497 cat >conftest.$ac_ext <<_ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h. */
23505 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23506 $EGREP "yes..
yes" >/dev/null 2>&1; then
23507 CPP_NEED_TRADITIONAL=no
23509 CPP_NEED_TRADITIONAL=yes
23514 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
"
23516 ac_config_commands="$ac_config_commands default
"
23518 cat >confcache <<\_ACEOF
23519 # This file is a shell script that caches the results of configure
23520 # tests run on this system so they can be shared between configure
23521 # scripts and configure runs, see configure's option --config-cache.
23522 # It is not useful on other systems. If it contains results you don't
23523 # want to keep, you may remove or edit it.
23525 # config.status only pays attention to the cache file if you give it
23526 # the --recheck option to rerun configure.
23528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23530 # following values.
23534 # The following way of writing the cache mishandles newlines in values,
23535 # but we know of no workaround that is simple, portable, and efficient.
23536 # So, we kill variables containing newlines.
23537 # Ultrix sh set writes to stderr and can't be redirected directly,
23538 # and sets the high bit in the cache file unless we assign to the vars.
23540 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23541 eval ac_val=\$$ac_var
23545 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23546 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23549 _ | IFS | as_nl) ;; #(
23550 *) $as_unset $ac_var ;;
23556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23557 *${as_nl}ac_space=\ *)
23558 # `set' does not quote correctly, so add quotes (double-quote
23559 # substitution turns \\\\ into \\, and sed turns \\ into \).
23562 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23565 # `set' quotes correctly as required by POSIX, so do not add quotes.
23566 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23580 if test -w "$cache_file"; then
23581 test "x
$cache_file" != "x
/dev
/null
" &&
23582 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23583 echo "$as_me: updating cache
$cache_file" >&6;}
23584 cat confcache >$cache_file
23586 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23587 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23592 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23593 # Let make expand exec_prefix.
23594 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23596 DEFS=-DHAVE_CONFIG_H
23600 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23601 # 1. Remove the extension, and $U if already installed.
23602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23603 ac_i=`echo "$ac_i" | sed "$ac_script"`
23604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23605 # will be set to the directory where LIBOBJS objects are built.
23606 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23607 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23609 LIBOBJS=$ac_libobjs
23611 LTLIBOBJS=$ac_ltlibobjs
23615 : ${CONFIG_STATUS=./config.status}
23616 ac_clean_files_save=$ac_clean_files
23617 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23618 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23619 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23620 cat >$CONFIG_STATUS <<_ACEOF
23622 # Generated by $as_me.
23623 # Run this file to recreate the current configuration.
23624 # Compiler output produced by configure, useful for debugging
23625 # configure, is in config.log if it exists.
23628 ac_cs_recheck=false
23630 SHELL=\${CONFIG_SHELL-$SHELL}
23633 cat >>$CONFIG_STATUS <<\_ACEOF
23634 ## --------------------- ##
23635 ## M4sh Initialization. ##
23636 ## --------------------- ##
23638 # Be more Bourne compatible
23639 DUALCASE=1; export DUALCASE # for MKS sh
23640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23643 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23644 # is contrary to our usage. Disable this feature.
23645 alias -g '${1+"$@"}'='"$@
"'
23646 setopt NO_GLOB_SUBST
23648 case `(set -o) 2>/dev/null` in
23649 *posix*) set -o posix ;;
23658 # Avoid depending upon Character Ranges.
23659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23662 as_cr_digits='0123456789'
23663 as_cr_alnum=$as_cr_Letters$as_cr_digits
23665 # The user is always right.
23666 if test "${PATH_SEPARATOR+set}" != set; then
23667 echo "#! /bin/sh" >conf$$.sh
23668 echo "exit 0" >>conf$$.sh
23670 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23678 # Support unset when possible.
23679 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23687 # We need space, tab and new line, in precisely that order. Quoting is
23688 # there to prevent editors from complaining about space-tab.
23689 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23690 # splitting by setting IFS to empty value.)
23695 # Find who we are. Look in the path if we contain no directory separator.
23697 *[\\/]* ) as_myself
=$0 ;;
23698 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23699 for as_dir
in $PATH
23702 test -z "$as_dir" && as_dir
=.
23703 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23709 # We did not find ourselves, most probably we were run as `sh COMMAND'
23710 # in which case we are not to be found in the path.
23711 if test "x$as_myself" = x
; then
23714 if test ! -f "$as_myself"; then
23715 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23716 { (exit 1); exit 1; }
23719 # Work around bugs in pre-3.0 UWIN ksh.
23720 for as_var
in ENV MAIL MAILPATH
23721 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23729 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23730 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23731 LC_TELEPHONE LC_TIME
23733 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23734 eval $as_var=C
; export $as_var
23736 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23740 # Required to use basename.
23741 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23742 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23748 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23749 as_basename
=basename
23755 # Name of the executable.
23756 as_me
=`$as_basename -- "$0" ||
23757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23758 X"$0" : 'X\(//\)$' \| \
23759 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23761 sed '/^.*\/\([^/][^/]*\)\/*$/{
23780 as_lineno_1
=$LINENO
23781 as_lineno_2
=$LINENO
23782 test "x$as_lineno_1" != "x$as_lineno_2" &&
23783 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23785 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23786 # uniformly replaced by the line number. The first 'sed' inserts a
23787 # line-number line after each line using $LINENO; the second 'sed'
23788 # does the real work. The second script uses 'N' to pair each
23789 # line-number line with the line containing $LINENO, and appends
23790 # trailing '-' during substitution so that $LINENO is not a special
23791 # case at line end.
23792 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23793 # scripts with optimization help from Paolo Bonzini. Blame Lee
23794 # E. McMahon (1931-1989) for sed's syntax. :-)
23806 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23809 ' >$as_me.lineno
&&
23810 chmod +x
"$as_me.lineno" ||
23811 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23812 { (exit 1); exit 1; }; }
23814 # Don't try to exec as it changes $[0], causing all sort of problems
23815 # (the dirname of $[0] is not the place where we might find the
23816 # original and so on. Autoconf is especially sensitive to this).
23817 .
"./$as_me.lineno"
23818 # Exit status is that of the last command.
23823 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23829 ECHO_C
= ECHO_N
= ECHO_T
=
23830 case `echo -n x` in
23832 case `echo 'x\c'` in
23833 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23840 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23841 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23847 rm -f conf$$ conf$$.exe conf$$.
file
23848 if test -d conf$$.dir
; then
23849 rm -f conf$$.dir
/conf$$.
file
23855 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23857 # ... but there are two gotchas:
23858 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23859 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23860 # In both cases, we have to default to `cp -p'.
23861 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23863 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23868 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23869 rmdir conf$$.dir
2>/dev
/null
23871 if mkdir
-p .
2>/dev
/null
; then
23874 test -d .
/-p && rmdir .
/-p
23878 if test -x / >/dev
/null
2>&1; then
23879 as_test_x
='test -x'
23881 if ls -dL / >/dev
/null
2>&1; then
23888 if test -d "$1"; then
23894 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23895 ???[sx]*):;;*)false;;esac;fi
23899 as_executable_p
=$as_test_x
23901 # Sed expression to map a string onto a valid CPP name.
23902 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23904 # Sed expression to map a string onto a valid variable name.
23905 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23910 # Save the log message, to keep $[0] and so on meaningful, and to
23911 # report actual input values of CONFIG_FILES etc. instead of their
23912 # values after options handling.
23914 This file was extended by $as_me, which was
23915 generated by GNU Autoconf 2.61. Invocation command line was
23917 CONFIG_FILES = $CONFIG_FILES
23918 CONFIG_HEADERS = $CONFIG_HEADERS
23919 CONFIG_LINKS = $CONFIG_LINKS
23920 CONFIG_COMMANDS = $CONFIG_COMMANDS
23923 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23928 cat >>$CONFIG_STATUS <<_ACEOF
23929 # Files that config.status was made for.
23930 config_files="$ac_config_files"
23931 config_headers="$ac_config_headers"
23932 config_commands="$ac_config_commands"
23936 cat >>$CONFIG_STATUS <<\_ACEOF
23938 \`$as_me' instantiates files from templates according to the
23939 current configuration.
23941 Usage: $0 [OPTIONS] [FILE]...
23943 -h, --help print this help, then exit
23944 -V, --version print version number and configuration settings, then exit
23945 -q, --quiet do not print progress messages
23946 -d, --debug don't remove temporary files
23947 --recheck update $as_me by reconfiguring in the same conditions
23948 --file=FILE[:TEMPLATE]
23949 instantiate the configuration file FILE
23950 --header=FILE[:TEMPLATE]
23951 instantiate the configuration header FILE
23953 Configuration files:
23956 Configuration headers:
23959 Configuration commands:
23962 Report bugs to <bug-autoconf@gnu.org>."
23965 cat >>$CONFIG_STATUS <<_ACEOF
23968 configured by $0, generated by GNU Autoconf 2.61,
23969 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23971 Copyright (C) 2006 Free Software Foundation, Inc.
23972 This config.status script is free software; the Free Software Foundation
23973 gives unlimited permission to copy, distribute and modify it."
23980 cat >>$CONFIG_STATUS <<\_ACEOF
23981 # If no file are specified by the user, then we need to provide default
23982 # value. By we need to know if files were specified by the user.
23988 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23989 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24000 # Handling of the options.
24001 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24003 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24004 echo "$ac_cs_version"; exit ;;
24005 --debug |
--debu |
--deb |
--de |
--d |
-d )
24007 --file |
--fil |
--fi |
--f )
24009 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24010 ac_need_defaults
=false
;;
24011 --header |
--heade |
--head |
--hea )
24013 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24014 ac_need_defaults
=false
;;
24016 # Conflict between --help and --header
24017 { echo "$as_me: error: ambiguous option: $1
24018 Try \`$0 --help' for more information." >&2
24019 { (exit 1); exit 1; }; };;
24020 --help |
--hel |
-h )
24021 echo "$ac_cs_usage"; exit ;;
24022 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24023 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24026 # This is an error.
24027 -*) { echo "$as_me: error: unrecognized option: $1
24028 Try \`$0 --help' for more information." >&2
24029 { (exit 1); exit 1; }; } ;;
24031 *) ac_config_targets
="$ac_config_targets $1"
24032 ac_need_defaults
=false
;;
24038 ac_configure_extra_args
=
24040 if $ac_cs_silent; then
24042 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24046 cat >>$CONFIG_STATUS <<_ACEOF
24047 if \$ac_cs_recheck; then
24048 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24049 CONFIG_SHELL=$SHELL
24050 export CONFIG_SHELL
24051 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24055 cat >>$CONFIG_STATUS <<\_ACEOF
24059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24060 ## Running $as_me. ##
24066 cat >>$CONFIG_STATUS <<_ACEOF
24070 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24074 cat >>$CONFIG_STATUS <<\_ACEOF
24076 # Handling of arguments.
24077 for ac_config_target
in $ac_config_targets
24079 case $ac_config_target in
24080 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24081 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24082 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24083 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24084 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24085 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24086 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24087 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24088 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24089 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24090 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24091 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24093 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24094 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24095 { (exit 1); exit 1; }; };;
24100 # If the user did not use the arguments to specify the items to instantiate,
24101 # then the envvar interface is used. Set only those that are not.
24102 # We use the long form for the default assignment because of an extremely
24103 # bizarre bug on SunOS 4.1.3.
24104 if $ac_need_defaults; then
24105 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24106 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24110 # Have a temporary directory for convenience. Make it in the build tree
24111 # simply because there is no reason against having it here, and in addition,
24112 # creating and moving files from /tmp can sometimes cause problems.
24113 # Hook for its removal unless debugging.
24114 # Note that there is a small window in which the directory will not be cleaned:
24115 # after its creation but before its name has been assigned to `$tmp'.
24119 trap 'exit_status=$?
24120 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24122 trap '{ (exit 1); exit 1; }' 1 2 13 15
24124 # Create a (secure) tmp directory for tmp files.
24127 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24128 test -n "$tmp" && test -d "$tmp"
24131 tmp
=.
/conf$$
-$RANDOM
24132 (umask 077 && mkdir
"$tmp")
24135 echo "$me: cannot create a temporary directory in ." >&2
24136 { (exit 1); exit 1; }
24140 # Set up the sed scripts for CONFIG_FILES section.
24143 # No need to generate the scripts if there are no CONFIG_FILES.
24144 # This happens for instance when ./config.status config.h
24145 if test -n "$CONFIG_FILES"; then
24152 for ac_last_try
in false false false false false
:; do
24153 cat >conf$
$subs.
sed <<_ACEOF
24154 SHELL!$SHELL$ac_delim
24155 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24156 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24157 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24158 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24159 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24160 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24161 exec_prefix!$exec_prefix$ac_delim
24162 prefix!$prefix$ac_delim
24163 program_transform_name!$program_transform_name$ac_delim
24164 bindir!$bindir$ac_delim
24165 sbindir!$sbindir$ac_delim
24166 libexecdir!$libexecdir$ac_delim
24167 datarootdir!$datarootdir$ac_delim
24168 datadir!$datadir$ac_delim
24169 sysconfdir!$sysconfdir$ac_delim
24170 sharedstatedir!$sharedstatedir$ac_delim
24171 localstatedir!$localstatedir$ac_delim
24172 includedir!$includedir$ac_delim
24173 oldincludedir!$oldincludedir$ac_delim
24174 docdir!$docdir$ac_delim
24175 infodir!$infodir$ac_delim
24176 htmldir!$htmldir$ac_delim
24177 dvidir!$dvidir$ac_delim
24178 pdfdir!$pdfdir$ac_delim
24179 psdir!$psdir$ac_delim
24180 libdir!$libdir$ac_delim
24181 localedir!$localedir$ac_delim
24182 mandir!$mandir$ac_delim
24183 DEFS!$DEFS$ac_delim
24184 ECHO_C!$ECHO_C$ac_delim
24185 ECHO_N!$ECHO_N$ac_delim
24186 ECHO_T!$ECHO_T$ac_delim
24187 LIBS!$LIBS$ac_delim
24188 build_alias!$build_alias$ac_delim
24189 host_alias!$host_alias$ac_delim
24190 target_alias!$target_alias$ac_delim
24191 MAINT!$MAINT$ac_delim
24192 build!$build$ac_delim
24193 build_cpu!$build_cpu$ac_delim
24194 build_vendor!$build_vendor$ac_delim
24195 build_os!$build_os$ac_delim
24196 host!$host$ac_delim
24197 host_cpu!$host_cpu$ac_delim
24198 host_vendor!$host_vendor$ac_delim
24199 host_os!$host_os$ac_delim
24201 CFLAGS!$CFLAGS$ac_delim
24202 LDFLAGS!$LDFLAGS$ac_delim
24203 CPPFLAGS!$CPPFLAGS$ac_delim
24204 ac_ct_CC!$ac_ct_CC$ac_delim
24205 EXEEXT!$EXEEXT$ac_delim
24206 OBJEXT!$OBJEXT$ac_delim
24208 GREP!$GREP$ac_delim
24209 EGREP!$EGREP$ac_delim
24210 LN_S!$LN_S$ac_delim
24211 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24212 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24213 INSTALL_DATA!$INSTALL_DATA$ac_delim
24214 RANLIB!$RANLIB$ac_delim
24215 INSTALL_INFO!$INSTALL_INFO$ac_delim
24216 GZIP_PROG!$GZIP_PROG$ac_delim
24217 LIBSOUND!$LIBSOUND$ac_delim
24218 PKG_CONFIG!$PKG_CONFIG$ac_delim
24219 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24220 ALSA_LIBS!$ALSA_LIBS$ac_delim
24221 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24222 SET_MAKE!$SET_MAKE$ac_delim
24223 XMKMF!$XMKMF$ac_delim
24224 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24225 GTK_LIBS!$GTK_LIBS$ac_delim
24226 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24227 XFT_LIBS!$XFT_LIBS$ac_delim
24228 ALLOCA!$ALLOCA$ac_delim
24229 liblockfile!$liblockfile$ac_delim
24230 LIBOBJS!$LIBOBJS$ac_delim
24231 NEED_SETGID!$NEED_SETGID$ac_delim
24232 KMEM_GROUP!$KMEM_GROUP$ac_delim
24233 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24234 GETOPT_H!$GETOPT_H$ac_delim
24235 GETOPTOBJS!$GETOPTOBJS$ac_delim
24236 version!$version$ac_delim
24237 configuration!$configuration$ac_delim
24238 canonical!$canonical$ac_delim
24239 srcdir!$srcdir$ac_delim
24240 lispdir!$lispdir$ac_delim
24241 locallisppath!$locallisppath$ac_delim
24242 lisppath!$lisppath$ac_delim
24243 x_default_search_path!$x_default_search_path$ac_delim
24244 etcdir!$etcdir$ac_delim
24245 archlibdir!$archlibdir$ac_delim
24246 bitmapdir!$bitmapdir$ac_delim
24247 gamedir!$gamedir$ac_delim
24248 gameuser!$gameuser$ac_delim
24249 c_switch_system!$c_switch_system$ac_delim
24250 c_switch_machine!$c_switch_machine$ac_delim
24253 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24255 elif $ac_last_try; then
24256 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24257 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24258 { (exit 1); exit 1; }; }
24260 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24264 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24265 if test -n "$ac_eof"; then
24266 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24267 ac_eof
=`expr $ac_eof + 1`
24270 cat >>$CONFIG_STATUS <<_ACEOF
24271 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24275 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24276 s/^/s,@/; s/!/@,|#_!!_#|/
24279 s/'"$ac_delim"'$/,g/; t
24281 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24282 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24283 rm -f conf$
$subs.
sed
24284 cat >>$CONFIG_STATUS <<_ACEOF
24290 for ac_last_try
in false false false false false
:; do
24291 cat >conf$
$subs.
sed <<_ACEOF
24292 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24293 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24294 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24295 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24296 machfile!$machfile$ac_delim
24297 opsysfile!$opsysfile$ac_delim
24298 carbon_appdir!$carbon_appdir$ac_delim
24299 LTLIBOBJS!$LTLIBOBJS$ac_delim
24302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24304 elif $ac_last_try; then
24305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24307 { (exit 1); exit 1; }; }
24309 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24313 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24314 if test -n "$ac_eof"; then
24315 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24316 ac_eof
=`expr $ac_eof + 1`
24319 cat >>$CONFIG_STATUS <<_ACEOF
24320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24325 s/^/s,@/; s/!/@,|#_!!_#|/
24328 s/'"$ac_delim"'$/,g/; t
24330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24331 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24332 rm -f conf$
$subs.
sed
24333 cat >>$CONFIG_STATUS <<_ACEOF
24340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24342 # trailing colons and then remove the whole line if VPATH becomes empty
24343 # (actually we leave an empty line to preserve line numbers).
24344 if test "x$srcdir" = x.
; then
24345 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24346 s/:*\$(srcdir):*/:/
24347 s/:*\${srcdir}:*/:/
24349 s/^\([^=]*=[ ]*\):*/\1/
24355 cat >>$CONFIG_STATUS <<\_ACEOF
24356 fi # test -n "$CONFIG_FILES"
24359 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24362 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24364 case $ac_mode$ac_tag in
24366 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24368 { (exit 1); exit 1; }; };;
24369 :[FH
]-) ac_tag
=-:-;;
24370 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24387 -) ac_f
="$tmp/stdin";;
24388 *) # Look for the file first in the build tree, then in the source tree
24389 # (if the path is not absolute). The absolute path cannot be DOS-style,
24390 # because $ac_f cannot contain `:'.
24394 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24398 { (exit 1); exit 1; }; };;
24400 ac_file_inputs
="$ac_file_inputs $ac_f"
24403 # Let's still pretend it is `configure' which instantiates (i.e., don't
24404 # use $as_me), people would be surprised to read:
24405 # /* config.h. Generated by config.status. */
24406 configure_input
="Generated from "`IFS=:
24407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24408 if test x
"$ac_file" != x-
; then
24409 configure_input
="$ac_file. $configure_input"
24410 { echo "$as_me:$LINENO: creating $ac_file" >&5
24411 echo "$as_me: creating $ac_file" >&6;}
24415 *:-:* |
*:-) cat >"$tmp/stdin";;
24420 ac_dir
=`$as_dirname -- "$ac_file" ||
24421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24422 X"$ac_file" : 'X\(//\)[^/]' \| \
24423 X"$ac_file" : 'X\(//\)$' \| \
24424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24430 /^X\(\/\/\)[^/].*/{
24445 -*) as_dir
=.
/$as_dir;;
24447 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24451 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24452 *) as_qdir
=$as_dir;;
24454 as_dirs
="'$as_qdir' $as_dirs"
24455 as_dir
=`$as_dirname -- "$as_dir" ||
24456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24457 X"$as_dir" : 'X\(//\)[^/]' \| \
24458 X"$as_dir" : 'X\(//\)$' \| \
24459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24465 /^X\(\/\/\)[^/].*/{
24478 test -d "$as_dir" && break
24480 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24481 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24483 { (exit 1); exit 1; }; }; }
24487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24489 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24490 # A ".." for each directory in $ac_dir_suffix.
24491 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24492 case $ac_top_builddir_sub in
24493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24497 ac_abs_top_builddir
=$ac_pwd
24498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24499 # for backward compatibility:
24500 ac_top_builddir
=$ac_top_build_prefix
24503 .
) # We are building in place.
24505 ac_top_srcdir
=$ac_top_builddir_sub
24506 ac_abs_top_srcdir
=$ac_pwd ;;
24507 [\\/]* | ?
:[\\/]* ) # Absolute name.
24508 ac_srcdir
=$srcdir$ac_dir_suffix;
24509 ac_top_srcdir
=$srcdir
24510 ac_abs_top_srcdir
=$srcdir ;;
24511 *) # Relative name.
24512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24526 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24527 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24531 cat >>$CONFIG_STATUS <<\_ACEOF
24532 # If the template does not know about datarootdir, expand it.
24533 # FIXME: This hack should be removed a few years after 2.60.
24534 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24536 case `sed -n '/datarootdir/ {
24545 ' $ac_file_inputs` in
24546 *datarootdir
*) ac_datarootdir_seen
=yes;;
24547 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24548 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24551 cat >>$CONFIG_STATUS <<_ACEOF
24552 ac_datarootdir_hack='
24553 s&@datadir@&$datadir&g
24554 s&@docdir@&$docdir&g
24555 s&@infodir@&$infodir&g
24556 s&@localedir@&$localedir&g
24557 s&@mandir@&$mandir&g
24558 s&\\\${datarootdir}&$datarootdir&g' ;;
24562 # Neutralize VPATH when `$srcdir' = `.'.
24563 # Shell code in configure.ac might set extrasub.
24564 # FIXME: do we really want to maintain this feature?
24565 cat >>$CONFIG_STATUS <<_ACEOF
24569 cat >>$CONFIG_STATUS <<\_ACEOF
24571 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24572 s
&@configure_input@
&$configure_input&;t t
24573 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24574 s
&@srcdir@
&$ac_srcdir&;t t
24575 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24576 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24577 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24578 s
&@builddir@
&$ac_builddir&;t t
24579 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24580 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24581 s
&@INSTALL@
&$ac_INSTALL&;t t
24582 $ac_datarootdir_hack
24583 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24588 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24589 which seems to be undefined. Please make sure it is defined." >&5
24590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24591 which seems to be undefined. Please make sure it is defined." >&2;}
24595 -) cat "$tmp/out"; rm -f "$tmp/out";;
24596 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24605 # Transform confdefs.h into a sed script `conftest.defines', that
24606 # substitutes the proper values into config.h.in to produce config.h.
24607 rm -f conftest.defines conftest.
tail
24608 # First, append a space to every undef/define line, to ease matching.
24609 echo 's/$/ /' >conftest.defines
24610 # Then, protect against being on the right side of a sed subst, or in
24611 # an unquoted here document, in config.status. If some macros were
24612 # called several times there might be several #defines for the same
24613 # symbol, which is useless. But do not sort them, since the last
24614 # AC_DEFINE must be honored.
24615 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24618 # PARAMS is the parameter list in the macro definition--in most cases, it's
24619 # just an empty string.
24620 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24621 ac_dB
='\\)[ (].*,\\1define\\2'
24629 s/^[ ]*#[ ]*define[ ][ ]*//
24634 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24635 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24636 ' >>conftest.defines
24638 # Remove the space that was appended to ease matching.
24639 # Then replace #undef with comments. This is necessary, for
24640 # example, in the case of _POSIX_SOURCE, which is predefined and required
24641 # on some systems where configure will not decide to define it.
24642 # (The regexp can be short, since the line contains either #define or #undef.)
24644 s,^[ #]*u.*,/* & */,' >>conftest.defines
24646 # Break up conftest.defines:
24647 ac_max_sed_lines
=50
24649 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24650 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24651 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24653 ac_in
='$ac_file_inputs'
24654 ac_out
='"$tmp/out1"'
24655 ac_nxt
='"$tmp/out2"'
24659 # Write a here document:
24660 cat >>$CONFIG_STATUS <<_ACEOF
24661 # First, check the format of the line:
24662 cat >"\$tmp/defines.sed" <<\\CEOF
24663 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24664 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24668 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24670 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24671 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24672 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24673 grep . conftest.
tail >/dev
/null ||
break
24674 rm -f conftest.defines
24675 mv conftest.
tail conftest.defines
24677 rm -f conftest.defines conftest.
tail
24679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24680 cat >>$CONFIG_STATUS <<\_ACEOF
24681 if test x
"$ac_file" != x-
; then
24682 echo "/* $configure_input */" >"$tmp/config.h"
24683 cat "$ac_result" >>"$tmp/config.h"
24684 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24686 echo "$as_me: $ac_file is unchanged" >&6;}
24689 mv "$tmp/config.h" $ac_file
24692 echo "/* $configure_input */"
24698 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24699 echo "$as_me: executing $ac_file commands" >&6;}
24704 case $ac_file$ac_mode in
24707 ### Make the necessary directories, if they don't exist.
24708 for dir
in etc lisp
; do
24709 test -d ${dir} || mkdir
${dir}
24712 # Build src/Makefile from ${srcdir}/src/Makefile.c
24713 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24714 # This must be done after src/config.h is built, since we rely on that file.
24716 # Now get this: Some word that is part of the ${srcdir} directory name
24717 # or the ${configuration} value might, just might, happen to be an
24718 # identifier like `sun4' or `i386' or something, and be predefined by
24719 # the C preprocessor to some helpful value like 1, or maybe the empty
24720 # string. Needless to say consequent macro substitutions are less
24721 # than conducive to the makefile finding the correct directory.
24722 undefs
="`echo $top_srcdir $configuration $canonical |
24723 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24724 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24727 echo creating src
/epaths.h
24728 ${MAKE-make} epaths-force
24730 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24731 # `..' to `. .' unless invoked with -traditional
24733 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24734 CPPFLAGS
="$CPPFLAGS -traditional"
24737 echo creating lib-src
/Makefile
24739 rm -f junk.c junk1.c junk2.c
24740 sed -e '/start of cpp stuff/q' \
24741 < Makefile.c
> junk1.c
24742 sed -e '1,/start of cpp stuff/d'\
24743 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24744 < Makefile.c
> junk.c
24745 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24746 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24747 cat junk1.c junk2.c
> Makefile.new
24748 rm -f junk.c junk1.c junk2.c
24749 chmod 444 Makefile.new
24750 mv -f Makefile.new Makefile
24753 echo creating src
/Makefile
24755 rm -f junk.c junk1.c junk2.c
24756 sed -e '/start of cpp stuff/q' \
24757 < Makefile.c
> junk1.c
24758 sed -e '1,/start of cpp stuff/d'\
24759 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24760 < Makefile.c
> junk.c
24761 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24762 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24763 cat junk1.c junk2.c
> Makefile.new
24764 rm -f junk.c junk1.c junk2.c
24765 chmod 444 Makefile.new
24766 mv -f Makefile.new Makefile
24769 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24770 echo creating src
/.gdbinit
24771 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24774 # This is how we know whether to re-run configure in certain cases.
24775 touch src
/config.stamp
24783 { (exit 0); exit 0; }
24785 chmod +x
$CONFIG_STATUS
24786 ac_clean_files
=$ac_clean_files_save
24789 # configure is writing to config.log, and then calls config.status.
24790 # config.status does its own redirection, appending to config.log.
24791 # Unfortunately, on DOS this fails, as config.log is still kept open
24792 # by configure, so config.status won't be able to write to it; its
24793 # output is simply discarded. So we exec the FD to /dev/null,
24794 # effectively closing config.log, so it can be properly (re)opened and
24795 # appended to by config.status. When coming back to configure, we
24796 # need to make the FD available again.
24797 if test "$no_create" != yes; then
24799 ac_config_status_args
=
24800 test "$silent" = yes &&
24801 ac_config_status_args
="$ac_config_status_args --quiet"
24803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24806 # would make configure fail if this is the last instruction.
24807 $ac_cs_success ||
{ (exit 1); exit 1; }