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 No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
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 for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1343 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1344 --without-toolkit-scroll-bars
1345 don't use Motif or Xaw3d scroll bars
1346 --without-xim don
't use X11 XIM
1347 --without-carbon don't use Carbon GUI on Mac OS X
1348 --with-x use the X Window System
1350 Some influential environment variables
:
1351 CC C compiler
command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1354 nonstandard directory
<lib dir
>
1355 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1356 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1357 you have headers
in a nonstandard directory
<include dir
>
1359 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1361 Use these variables to override the choices made by
`configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" || continue
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1391 .) # We are building in place.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1415 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1425 generated by GNU Autoconf 2.61
1427 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1428 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1434 cat >config.log <<_ACEOF
1435 This file contains any messages produced by compilers while
1436 running configure, to aid debugging if configure makes a mistake.
1438 It was created by $as_me, which was
1439 generated by GNU Autoconf 2.61. Invocation command line was
1451 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1452 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1453 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1454 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1455 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1457 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1458 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1460 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1461 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1462 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1463 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1464 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1465 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1466 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 test -z "$as_dir" && as_dir=.
1475 echo "PATH: $as_dir"
1491 # Keep a trace of the command line.
1492 # Strip out --no-create and --no-recursion so they do not pile up.
1493 # Strip out --silent because we don't want to record it for future runs.
1494 # Also quote any args containing shell meta-characters.
1495 # Make two passes to allow for proper duplicate-argument suppression.
1499 ac_must_keep_next=false
1505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1510 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1513 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1516 if test $ac_must_keep_next = true; then
1517 ac_must_keep_next=false # Got value, back to normal.
1520 *=* | --config-cache | -C | -disable-* | --disable-* \
1521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1523 | -with-* | --with-* | -without-* | --without-* | --x)
1524 case "$ac_configure_args0 " in
1525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 -* ) ac_must_keep_next=true ;;
1531 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1537 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539 # When interrupted or exit'd, cleanup temporary files, and complete
1540 # config.log. We remove comments because anyway the quotes in there
1541 # would cause problems or look ugly.
1542 # WARNING: Use '\'' to represent an apostrophe within the trap.
1543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1544 trap 'exit_status=$?
1545 # Save into config.log some information that might help in debugging.
1550 ## ---------------- ##
1551 ## Cache variables. ##
1552 ## ---------------- ##
1555 # The following way of writing the cache mishandles newlines in values,
1557 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1558 eval ac_val=\$$ac_var
1562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1563 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 _ | IFS | as_nl) ;; #(
1567 *) $as_unset $ac_var ;;
1572 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1573 *${as_nl}ac_space=\ *)
1575 "s/'\''/'\''\\\\'\'''\''/g;
1576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1587 ## ----------------- ##
1588 ## Output variables. ##
1589 ## ----------------- ##
1592 for ac_var in $ac_subst_vars
1594 eval ac_val=\$$ac_var
1596 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 echo "$ac_var='\''$ac_val'\''"
1602 if test -n "$ac_subst_files"; then
1604 ## ------------------- ##
1605 ## File substitutions. ##
1606 ## ------------------- ##
1609 for ac_var in $ac_subst_files
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 echo "$ac_var='\''$ac_val'\''"
1620 if test -s confdefs.h; then
1630 test "$ac_signal" != 0 &&
1631 echo "$as_me: caught signal $ac_signal"
1632 echo "$as_me: exit $exit_status"
1634 rm -f core *.core core.conftest.* &&
1635 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 for ac_signal in 1 2 13 15; do
1639 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1644 rm -f -r conftest* confdefs.h
1646 # Predefined preprocessor variables.
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_NAME "$PACKAGE_NAME"
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_STRING "$PACKAGE_STRING"
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673 # Let the site file select an alternate cache file if it wants to.
1674 # Prefer explicitly selected file to automatically selected ones.
1675 if test -n "$CONFIG_SITE"; then
1676 set x "$CONFIG_SITE"
1677 elif test "x$prefix" != xNONE; then
1678 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 set x "$ac_default_prefix/share/config.site" \
1681 "$ac_default_prefix/etc/config.site"
1686 if test -r "$ac_site_file"; then
1687 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1688 echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1694 if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special
1696 # files actually), so we avoid doing that.
1697 if test -f "$cache_file"; then
1698 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1699 echo "$as_me: loading cache $cache_file" >&6;}
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1706 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1707 echo "$as_me: creating cache $cache_file" >&6;}
1711 ac_header_list="$ac_header_list sys/time.h"
1712 ac_header_list="$ac_header_list unistd.h"
1713 ac_func_list="$ac_func_list alarm"
1714 # Check that the precious variables saved in the cache have kept the same
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1725 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1729 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1736 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1737 echo "$as_me: former value
: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1739 echo "$as_me: current value
: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1757 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1758 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789 test "$program_prefix" != NONE &&
1790 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1791 # Use a double $ so make ignores it.
1792 test "$program_suffix" != NONE &&
1793 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1794 # Double any \ or $. echo might interpret backslashes.
1795 # By default was `s
,x
,x
', remove it if useless.
1796 cat <<\_ACEOF >conftest.sed
1797 s/[\\$]/&&/g;s/;s,x,x,$//
1799 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1803 lispdir='${datadir}/emacs
/${version}/lisp
'
1804 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1805 '${datadir}/emacs
/site-lisp
'
1806 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1807 etcdir='${datadir}/emacs
/${version}/etc
'
1808 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1809 docdir='${datadir}/emacs
/${version}/etc
'
1810 gamedir='${localstatedir}/games
/emacs
'
1815 # Check whether --with-gcc was given.
1816 if test "${with_gcc+set}" = set; then
1821 # Check whether --with-pop was given.
1822 if test "${with_pop+set}" = set; then
1823 withval=$with_pop; if test "$withval" = yes; then
1824 cat >>confdefs.h <<\_ACEOF
1825 #define MAIL_USE_POP 1
1831 cat >>confdefs.h <<\_ACEOF
1832 #define MAIL_USE_POP 1
1839 # Check whether --with-kerberos was given.
1840 if test "${with_kerberos+set}" = set; then
1841 withval=$with_kerberos; if test "$withval" = yes; then
1842 cat >>confdefs.h <<\_ACEOF
1851 # Check whether --with-kerberos5 was given.
1852 if test "${with_kerberos5+set}" = set; then
1853 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1854 if test "${with_kerberos+set}" != set; then
1856 cat >>confdefs.h <<\_ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1870 # Check whether --with-hesiod was given.
1871 if test "${with_hesiod+set}" = set; then
1872 withval=$with_hesiod; if test "$withval" = yes; then
1874 cat >>confdefs.h <<\_ACEOF
1883 # Check whether --with-sound was given.
1884 if test "${with_sound+set}" = set; then
1885 withval=$with_sound;
1890 # Check whether --with-x-toolkit was given.
1891 if test "${with_x_toolkit+set}" = set; then
1892 withval=$with_x_toolkit; case "${withval}" in
1893 y | ye | yes ) val=athena ;;
1895 l | lu | luc | luci | lucid ) val=lucid ;;
1896 a | at | ath | athe | athen | athena ) val=athena ;;
1897 m | mo | mot | moti | motif ) val=motif ;;
1898 g | gt | gtk ) val=gtk ;;
1900 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1901 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1902 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1903 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1904 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1905 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1906 { (exit 1); exit 1; }; }
1914 # Check whether --with-xpm was given.
1915 if test "${with_xpm+set}" = set; then
1920 # Check whether --with-jpeg was given.
1921 if test "${with_jpeg+set}" = set; then
1926 # Check whether --with-tiff was given.
1927 if test "${with_tiff+set}" = set; then
1932 # Check whether --with-gif was given.
1933 if test "${with_gif+set}" = set; then
1938 # Check whether --with-png was given.
1939 if test "${with_png+set}" = set; then
1944 # Check whether --with-gtk was given.
1945 if test "${with_gtk+set}" = set; then
1950 # Check whether --with-pkg-config-prog was given.
1951 if test "${with_pkg_config_prog+set}" = set; then
1952 withval=$with_pkg_config_prog;
1956 # Check whether --with-toolkit-scroll-bars was given.
1957 if test "${with_toolkit_scroll_bars+set}" = set; then
1958 withval=$with_toolkit_scroll_bars;
1962 # Check whether --with-xim was given.
1963 if test "${with_xim+set}" = set; then
1968 # Check whether --with-carbon was given.
1969 if test "${with_carbon+set}" = set; then
1970 withval=$with_carbon;
1973 # Check whether --enable-carbon-app was given.
1974 if test "${enable_carbon_app+set}" = set; then
1975 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1979 # Check whether --enable-asserts was given.
1980 if test "${enable_asserts+set}" = set; then
1981 enableval=$enable_asserts; USE_XASSERTS=$enableval
1987 # Check whether --enable-maintainer-mode was given.
1988 if test "${enable_maintainer_mode+set}" = set; then
1989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1991 USE_MAINTAINER_MODE=no
1994 if test $USE_MAINTAINER_MODE = yes; then
2001 # Check whether --enable-locallisppath was given.
2002 if test "${enable_locallisppath+set}" = set; then
2003 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005 elif test "${enableval}" != "yes"; then
2006 locallisppath=${enableval}
2011 #### Make srcdir absolute, if it isn't already. It
's important to
2012 #### avoid running the path through pwd unnecessarily, since pwd can
2013 #### give you automounter prefixes, which can go away. We do all this
2014 #### so Emacs can find its files when run uninstalled.
2015 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2020 ## We may be able to use the $PWD environment variable to make this
2021 ## absolute. But sometimes PWD is inaccurate.
2022 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2023 ## but that tested only for a well-formed and valid PWD,
2024 ## it did not object when PWD was well-formed and valid but just wrong.
2025 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2029 srcdir
="`(cd ${srcdir}; pwd)`"
2032 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2035 #### Check if the source directory already has a configured system in it.
2036 if test `pwd` != `(cd ${srcdir} && pwd)` \
2037 && test -f "${srcdir}/src/config.h" ; then
2038 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&5
2044 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2045 as a build directory right now; it has been configured in its own
2046 right. To configure in another directory as well, you MUST
2047 use GNU make. If you do not have GNU make, then you must
2048 now do \`make distclean' in ${srcdir},
2049 and then run $0 again." >&2;}
2052 #### Given the configuration name, set machfile and opsysfile to the
2053 #### names of the m/*.h and s/*.h files we should use.
2055 ### Canonicalize the configuration name.
2058 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2059 if test -f "$ac_dir/install-sh"; then
2061 ac_install_sh
="$ac_aux_dir/install-sh -c"
2063 elif test -f "$ac_dir/install.sh"; then
2065 ac_install_sh
="$ac_aux_dir/install.sh -c"
2067 elif test -f "$ac_dir/shtool"; then
2069 ac_install_sh
="$ac_aux_dir/shtool install -c"
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_build_alias
=$build_alias
2100 test "x$ac_build_alias" = x
&&
2101 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x
&&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2121 ac_save_IFS
=$IFS; IFS
='-'
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2131 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test "x$host_alias" = x
; then
2140 ac_cv_host
=$ac_cv_build
2142 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS
=$IFS; IFS
='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172 configuration
=${host_alias-$host}
2176 ### If you add support for a new configuration, add code to this
2177 ### switch statement to recognize your configuration name and select
2178 ### the appropriate operating system and machine description files.
2180 ### You would hope that you could choose an m/*.h file pretty much
2181 ### based on the machine portion of the configuration name, and an s-
2182 ### file based on the operating system portion. However, it turns out
2183 ### that each m/*.h file is pretty manufacturer-specific - for
2184 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2185 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2186 ### machines. So we basically have to have a special case for each
2187 ### configuration name.
2189 ### As far as handling version numbers on operating systems is
2190 ### concerned, make sure things will fail in a fixable way. If
2191 ### /etc/MACHINES doesn't say anything about version numbers, be
2192 ### prepared to handle anything reasonably. If version numbers
2193 ### matter, be sure /etc/MACHINES says something about it.
2195 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2196 ### "System V Release 4"; he writes, "The old convention encouraged
2197 ### confusion between `system' and `release' levels'."
2199 machine
='' opsys
='' unported
=no
2200 case "${canonical}" in
2205 case "${canonical}" in
2206 alpha
*-*-freebsd*) machine
=alpha
;;
2207 arm
*-*-freebsd*) machine
=arm
;;
2208 ia64-
*-freebsd*) machine
=ia64
;;
2209 sparc64-
*-freebsd*) machine
=sparc
;;
2210 powerpc-
*-freebsd*) machine
=macppc
;;
2211 i
[3456]86-*-freebsd*) machine
=intel386
;;
2212 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2216 ## FreeBSD kernel + glibc based userland
2219 case "${canonical}" in
2220 alpha
*-*-kfreebsd*) machine
=alpha
;;
2221 ia64-
*-kfreebsd*) machine
=ia64
;;
2222 sparc64-
*-kfreebsd*) machine
=sparc
;;
2223 powerpc-
*-kfreebsd*) machine
=macppc
;;
2224 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2225 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2232 if test -f /usr
/lib
/crti.o
; then
2234 cat >>confdefs.h
<<\_ACEOF
2240 case "${canonical}" in
2241 alpha
*-*-netbsd*) machine
=alpha
;;
2242 i
[3456]86-*-netbsd*) machine
=intel386
;;
2244 # This is somewhat bogus.
2245 machine
=hp9000s300
;;
2246 mips-
*-netbsd*) machine
=pmax
;;
2247 mipsel-
*-netbsd*) machine
=pmax
;;
2248 mipseb-
*-netbsd*) machine
=pmax
;;
2249 ns32k-
*-netbsd*) machine
=ns32000
;;
2250 powerpc-
*-netbsd*) machine
=macppc
;;
2251 sparc
*-*-netbsd*) machine
=sparc
;;
2252 vax-
*-netbsd*) machine
=vax
;;
2253 arm-
*-netbsd*) machine
=arm
;;
2254 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2255 hppa-
*-netbsd*) machine
=hp800
;;
2256 shle-
*-netbsd*) machine
=sh3el
;;
2263 case "${canonical}" in
2264 alpha
*-*-openbsd*) machine
=alpha
;;
2265 arm-
*-openbsd*) machine
=arm
;;
2266 hppa-
*-openbsd*) machine
=hp9000s300
;;
2267 i386-
*-openbsd*) machine
=intel386
;;
2268 m68k-
*-openbsd*) machine
=hp9000s300
;;
2269 m88k-
*-openbsd*) machine
=aviion
;;
2270 mips64-
*-openbsd*) machine
=mips64
;;
2271 powerpc-
*-openbsd*) machine
=macppc
;;
2272 sh-
*-openbsd*) machine
=sh3el
;;
2273 sparc
*-*-openbsd*) machine
=sparc
;;
2274 vax-
*-openbsd*) machine
=vax
;;
2275 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2282 case "${canonical}" in
2283 i
[3456]86-*-lynxos*) machine
=intel386
;;
2284 powerpc-
*-lynxos*) machine
=powerpc
;;
2289 arm-acorn-riscix1.1
* )
2290 machine
=acorn opsys
=riscix1-1
2292 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2293 ## This name is riscix12 instead of riscix1.2
2294 ## to avoid a file name conflict on MSDOS.
2295 machine
=acorn opsys
=riscix12
2301 case "${canonical}" in
2302 i
[345]86-*-bsdi*) machine
=intel386
;;
2303 sparc-
*-bsdi*) machine
=sparc
;;
2304 powerpc-
*-bsdi*) machine
=macppc
;;
2306 case "${canonical}" in
2307 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2308 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2309 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2310 *-*-bsdi3* ) opsys
=bsdos3
;;
2311 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2316 ## Strictly speaking, we need the version of the alliant operating
2317 ## system to choose the right machine file, but currently the
2318 ## configuration name doesn't tell us enough to choose the right
2319 ## one; we need to give alliants their own operating system name to
2320 ## do this right. When someone cares, they can help us.
2322 machine
=alliant4 opsys
=bsd4-2
2325 machine
=alliant-2800 opsys
=bsd4-3
2328 ## Alpha (DEC) machines.
2330 machine
=alpha opsys
=osf1
2331 # This is needed to find X11R6.1 libraries for certain tests.
2332 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2333 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2334 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2335 # due to non-traditional preprocessing with the current compiler
2336 # defaults. OSF 4 can also have that compiler version, and there
2337 # seems always to have been a usable /usr/bin/cpp.
2338 NON_GNU_CPP
=/usr
/bin
/cpp
2339 case "${canonical}" in
2340 alpha
*-dec-osf[5-9]*)
2345 alpha
*-*-linux-gnu* )
2346 machine
=alpha opsys
=gnu-linux
2350 machine
=arm opsys
=gnu-linux
2355 machine
=altos opsys
=usg5-2
2360 machine
=amdahl opsys
=usg5-2-2
2363 ## Apollo, Domain/OS
2365 machine
=apollo opsys
=bsd4-3
2368 ## Apple Darwin / Mac OS X
2370 case "${canonical}" in
2371 i
[3456]86-* ) machine
=intel386
;;
2372 powerpc-
* ) machine
=powermac
;;
2376 # Define CPP as follows to make autoconf work correctly.
2377 CPP
="${CC-cc} -E -no-cpp-precomp"
2378 # Use fink packages if available.
2379 if test -d /sw
/include
&& test -d /sw
/lib
; then
2380 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2381 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2382 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2386 ## AT&T 3b2, 3b5, 3b15, 3b20
2388 machine
=att3b opsys
=usg5-2-2
2391 ## AT&T 3b1 - The Mighty Unix PC!
2393 machine
=7300 opsys
=usg5-2-2
2398 machine
=ibmrs6000 opsys
=aix3-2
2403 machine
=dpx2 opsys
=usg5-3
2408 machine
=sps7 opsys
=usg5-2
2411 ## CCI 5/32, 6/32 -- see "Tahoe".
2414 ## I don't know what configuration name to use for this; config.sub
2415 ## doesn't seem to know anything about it. Hey, Celerity users, get
2416 ## in touch with us!
2417 celerity-celerity-bsd
* )
2418 machine
=celerity opsys
=bsd4-2
2422 ## What operating systems does this chip run that Emacs has been
2426 ## We'll use the catch-all code at the bottom to guess the
2427 ## operating system.
2431 mips-compaq-nonstopux
* )
2432 machine
=nonstopux opsys
=nonstopux
2436 *-convex-bsd* |
*-convex-convexos* )
2437 machine
=convex opsys
=bsd4-3
2438 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2439 NON_GNU_CPP
="cc -E -P"
2443 i
[3456]86-cubix-sysv* )
2444 machine
=intel386 opsys
=usg5-3
2448 cydra
*-cydrome-sysv* )
2449 machine
=cydra5 opsys
=usg5-3
2452 ## Data General AViiON Machines
2453 ## DG changed naming conventions with the release of 5.4.4.10, they
2454 ## dropped the initial 5.4 but left the intervening R. Because of the
2455 ## R this shouldn't conflict with older versions of the OS (which I
2456 ## think were named like dgux4.*). In addition, DG new AViiONs series
2457 ## uses either Motorola M88k or Intel Pentium CPUs.
2458 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2459 machine
=aviion opsys
=dgux4
2461 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2462 ## This name is dgux5-4-3 instead of dgux5-4r3
2463 ## to avoid a file name conflict on MSDOS.
2464 machine
=aviion opsys
=dgux5-4-3
2466 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2467 machine
=aviion opsys
=dgux5-4r2
2470 machine
=aviion opsys
=dgux
2473 ## Data General AViiON Intel (x86) Machines
2474 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2475 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2476 i
[345]86-dg-dguxR4* )
2477 machine
=aviion-intel opsys
=dgux4
2481 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2482 machine
=pmax opsys
=bsd4-2
2484 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2485 machine
=pmax opsys
=bsd4-3
2488 machine
=pmax opsys
=ultrix4-3
2491 machine
=pmax opsys
=osf1
2493 mips-dec-mach_bsd4.3
* )
2494 machine
=pmax opsys
=mach-bsd4-3
2497 ## Motorola Delta machines
2498 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2499 machine
=delta opsys
=usg5-3
2500 if test -z "`type gnucc | grep 'not found'`"
2502 if test -s /etc
/167config
2503 then CC
="gnucc -m68040"
2504 else CC
="gnucc -m68881"
2507 if test -z "`type gcc | grep 'not found'`"
2513 m88k-motorola-sysv4
* )
2514 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2515 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2516 # I hope there are not other 4.0 versions for this machine
2517 # which really need usg5-4 instead.
2518 machine
=delta88k opsys
=usg5-4-2
2520 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2521 machine
=delta88k opsys
=usg5-3
2526 machine
=dual opsys
=usg5-2
2528 m68
*-dual-uniplus* )
2529 machine
=dual opsys
=unipl5-2
2534 machine
=elxsi opsys
=usg5-2
2539 machine
=ns16000 opsys
=umax
2542 ## The GEC 63 - apparently, this port isn't really finished yet.
2543 # I'm sure we finished off the last of the machines, though. -- fx
2545 ## Gould Power Node and NP1
2547 machine
=gould opsys
=bsd4-2
2550 machine
=gould opsys
=bsd4-3
2553 machine
=gould-np1 opsys
=bsd4-3
2556 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2557 ## as far as Emacs is concerned).
2559 # Build needs to be different on 7.0 and later releases
2560 case "`uname -r`" in
2561 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2562 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2564 NON_GNU_CPP
="/lib/cpp"
2566 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2568 machine
=nh3000 opsys
=cxux
2570 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2571 powerpc-harris-powerunix
)
2572 machine
=nh6000 opsys
=powerunix
2573 NON_GNU_CPP
="cc -Xo -E -P"
2575 ## SR2001/SR2201 running HI-UX/MPP
2576 hppa1.1
-hitachi-hiuxmpp* )
2577 machine
=sr2k opsys
=hiuxmpp
2579 hppa1.1
-hitachi-hiuxwe2* )
2580 machine
=sr2k opsys
=hiuxwe2
2583 xps
*-honeywell-sysv* )
2584 machine
=xps100 opsys
=usg5-2
2587 ## HP 9000 series 200 or 300
2589 machine
=hp9000s300 opsys
=bsd4-3
2591 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2593 case "`uname -r`" in
2594 ## Someone's system reports A.B8.05 for this.
2595 ## I wonder what other possibilities there are.
2596 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2597 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2598 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2599 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2600 *) machine
=hp9000s300 opsys
=hpux
;;
2604 ## HP 9000 series 700 and 800, running HP/UX
2606 machine
=hp800 opsys
=hpux
2609 machine
=hp800 opsys
=hpux8
2611 hppa
*-hp-hpux9shr* )
2612 machine
=hp800 opsys
=hpux9shr
2615 machine
=hp800 opsys
=hpux9
2617 hppa
*-hp-hpux10.2
* )
2618 machine
=hp800 opsys
=hpux10-20
2621 machine
=hp800 opsys
=hpux10
2623 hppa
*-hp-hpux1[1-9]* )
2624 machine
=hp800 opsys
=hpux11
2625 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2628 hppa
*-*-linux-gnu* )
2629 machine
=hp800 opsys
=gnu-linux
2632 ## HP 9000 series 700 and 800, running HP/UX
2634 ## Cross-compilation? Nah!
2635 case "`uname -r`" in
2636 ## Someone's system reports A.B8.05 for this.
2637 ## I wonder what other possibilities there are.
2638 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2639 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2640 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2641 *) machine
=hp800 opsys
=hpux10
;;
2645 machine
=hp800 opsys
=nextstep
2650 machine
=orion opsys
=bsd4-2
2652 clipper-orion-bsd
* )
2653 machine
=orion105 opsys
=bsd4-2
2657 i
[3456]86-ibm-aix1.1
* )
2658 machine
=ibmps2-aix opsys
=usg5-2-2
2660 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2661 machine
=ibmps2-aix opsys
=usg5-3
2664 machine
=ibm370aix opsys
=usg5-3
2667 machine
=ibms390 opsys
=gnu-linux
2669 s390x-
*-linux-gnu* )
2670 machine
=ibms390x opsys
=gnu-linux
2672 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2673 machine
=ibmrs6000 opsys
=aix3-1
2675 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2676 machine
=ibmrs6000 opsys
=aix3-2-5
2678 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2679 machine
=ibmrs6000 opsys
=aix4-1
2681 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2682 machine
=ibmrs6000 opsys
=aix4-2
2684 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2685 machine
=ibmrs6000 opsys
=aix4-2
2687 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2688 machine
=ibmrs6000 opsys
=aix4-2
2690 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2691 machine
=ibmrs6000 opsys
=aix4
2693 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2694 machine
=ibmrs6000 opsys
=aix4-1
2696 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2697 machine
=ibmrs6000 opsys
=aix3-2
2700 machine
=ibmrt opsys
=bsd4-3
2703 machine
=ibmrt opsys
=bsd4-2
2706 machine
=ibmrt opsys
=bsd4-3
2709 machine
=ibmrt opsys
=bsd4-2
2712 machine
=ibmrt opsys
=bsd4-3
2715 machine
=ibmrt opsys
=bsd4-3
2718 machine
=ibmrt-aix opsys
=usg5-2-2
2721 ## Integrated Solutions `Optimum V'
2723 machine
=isi-ov opsys
=bsd4-2
2726 machine
=isi-ov opsys
=bsd4-3
2729 ## Intel 386 machines where we do care about the manufacturer
2730 i
[3456]86-intsys-sysv* )
2731 machine
=is386 opsys
=usg5-2-2
2735 i
[3456]86-prime-sysv* )
2736 machine
=i386 opsys
=usg5-3
2739 ## Sequent Symmetry running Dynix
2740 i
[3456]86-sequent-bsd* )
2741 machine
=symmetry opsys
=bsd4-3
2744 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2745 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2746 machine
=sequent-ptx opsys
=ptx4
2747 NON_GNU_CPP
=/lib
/cpp
2750 ## Sequent Symmetry running DYNIX/ptx
2751 ## Use the old cpp rather than the newer ANSI one.
2752 i
[3456]86-sequent-ptx* )
2753 machine
=sequent-ptx opsys
=ptx
2754 NON_GNU_CPP
="/lib/cpp"
2757 ## ncr machine running svr4.3.
2758 i
[3456]86-ncr-sysv4.3
)
2759 machine
=ncr386 opsys
=usg5-4-3
2762 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2763 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2764 i
[3456]86-ncr-sysv* )
2765 machine
=ncr386 opsys
=usg5-4-2
2768 ## Intel Paragon OSF/1
2770 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2775 machine
=i860 opsys
=usg5-4
2776 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2777 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2780 ## Macintosh PowerPC
2781 powerpc
*-*-linux-gnu* )
2782 machine
=macppc opsys
=gnu-linux
2785 ## Masscomp machines
2786 m68
*-masscomp-rtu* )
2787 machine
=masscomp opsys
=rtu
2790 ## Megatest machines
2791 m68
*-megatest-bsd* )
2792 machine
=mega68 opsys
=bsd4-2
2795 ## Workstations sold by MIPS
2796 ## This is not necessarily all workstations using the MIPS processor -
2797 ## Irises are produced by SGI, and DECstations by DEC.
2799 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2800 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2801 ## it gives for choosing between the alternatives seems to be "Use
2802 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2803 ## the BSD world." I'll assume that these are instructions for
2804 ## handling two odd situations, and that every other situation
2805 ## should use mips.h and usg5-2-2, they being listed first.
2808 ## Fall through to the general code at the bottom to decide on the OS.
2810 mips-mips-riscos4
* )
2811 machine
=mips4 opsys
=bsd4-3
2812 NON_GNU_CC
="cc -systype bsd43"
2813 NON_GNU_CPP
="cc -systype bsd43 -E"
2815 mips-mips-riscos5
* )
2816 machine
=mips4 opsys
=riscos5
2817 NON_GNU_CC
="cc -systype bsd43"
2818 NON_GNU_CPP
="cc -systype bsd43 -E"
2821 machine
=mips opsys
=bsd4-3
2824 machine
=mips opsys
=usg5-2-2
2828 m68
*-next-* | m68k-
*-nextstep* )
2829 machine
=m68k opsys
=nextstep
2832 ## The complete machine from National Semiconductor
2834 machine
=ns32000 opsys
=usg5-2
2838 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2839 machine
=tower32 opsys
=usg5-2-2
2841 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2842 machine
=tower32v3 opsys
=usg5-3
2847 machine
=ews4800 opsys
=ux4800
2850 ## Nixdorf Targon 31
2851 m68
*-nixdorf-sysv* )
2852 machine
=targon31 opsys
=usg5-2-2
2857 machine
=nu opsys
=usg5-2
2862 machine
=plexus opsys
=usg5-2
2866 ## I don't really have any idea what sort of processor the Pyramid has,
2867 ## so I'm assuming it is its own architecture.
2868 pyramid-pyramid-bsd
* )
2869 machine
=pyramid opsys
=bsd4-2
2873 ns32k-sequent-bsd4.2
* )
2874 machine
=sequent opsys
=bsd4-2
2876 ns32k-sequent-bsd4.3
* )
2877 machine
=sequent opsys
=bsd4-3
2881 mips-siemens-sysv
* | mips-sni-sysv
*)
2882 machine
=mips-siemens opsys
=usg5-4
2883 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2884 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2887 ## Silicon Graphics machines
2888 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2890 machine
=irist opsys
=iris3-5
2892 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2893 machine
=irist opsys
=iris3-6
2897 machine
=iris4d opsys
=irix3-3
2900 machine
=iris4d opsys
=irix4-0
2903 machine
=iris4d opsys
=irix6-5
2904 # Without defining _LANGUAGE_C, things get masked out in the headers
2905 # so that, for instance, grepping for `free' in stdlib.h fails and
2906 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2907 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2908 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2911 machine
=iris4d opsys
=irix6-0
2912 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2913 # but presumably it does no harm.
2914 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2915 # -32 probably isn't necessary in later v.6s -- anyone know which?
2916 NON_GCC_TEST_OPTIONS
=-32
2918 mips-sgi-irix5.
[01]* )
2919 machine
=iris4d opsys
=irix5-0
2921 mips-sgi-irix5
* | mips-sgi-irix
* )
2922 machine
=iris4d opsys
=irix5-2
2927 machine
=news opsys
=bsd4-2
2930 machine
=news opsys
=bsd4-3
2932 m68
*-sony-newsos3* | m68
*-sony-news3*)
2933 machine
=news opsys
=bsd4-3
2935 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2936 machine
=news-risc opsys
=bsd4-3
2938 mips-sony-newsos6
* )
2939 machine
=news-r6 opsys
=newsos6
2942 machine
=news-risc opsys
=newsos5
2947 machine
=stride opsys
=usg5-2
2951 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2952 machine
=sparc opsys
=gnu-linux
2955 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2956 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2957 | rs6000-
*-solaris2*)
2958 case "${canonical}" in
2959 m68
*-sunos1* ) machine
=sun1
;;
2960 m68
*-sunos2* ) machine
=sun2
;;
2961 m68
* ) machine
=sun3
;;
2962 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2963 i
[3456]86-*-* ) machine
=intel386
;;
2964 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2965 powerpcle
* ) machine
=powerpcle
;;
2966 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2967 sparc
* ) machine
=sparc
;;
2970 case "${canonical}" in
2971 ## The Sun386 didn't get past 4.0.
2972 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2973 *-sunos4.0
* ) opsys
=sunos4-0
;;
2974 *-sunos4.1.
[3-9]*noshare
)
2975 ## This name is sunos413 instead of sunos4-1-3
2976 ## to avoid a file name conflict on MSDOS.
2978 NON_GNU_CPP
=/usr
/lib
/cpp
2979 NON_GCC_TEST_OPTIONS
=-Bstatic
2980 GCC_TEST_OPTIONS
=-static
2982 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2984 NON_GNU_CPP
=/usr
/lib
/cpp
2986 *-sunos4* |
*-sunos )
2988 NON_GCC_TEST_OPTIONS
=-Bstatic
2989 GCC_TEST_OPTIONS
=-static
2991 *-sunos5.3
* |
*-solaris2.3
* )
2993 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2995 *-sunos5.4
* |
*-solaris2.4
* )
2997 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3000 *-sunos5.5
* |
*-solaris2.5
* )
3002 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3005 *-sunos5.6
* |
*-solaris2.6
* )
3007 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3010 *-sunos5* |
*-solaris* )
3012 ## FIXME: make this into a proper fix that checks the compiler type,
3013 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3014 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3015 ## -Xs prevents spurious whitespace.
3016 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3018 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3023 ## Watch out for a compiler that we know will not work.
3024 case "${canonical}" in
3025 *-solaris* |
*-sunos5* )
3026 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3027 ## /usr/ucb/cc doesn't work;
3028 ## we should find some other compiler that does work.
3036 machine
=sparc opsys
=nextstep
3040 m68
*-tadpole-sysv* )
3041 machine
=tad68k opsys
=usg5-3
3045 tahoe-tahoe-bsd4.2
* )
3046 machine
=tahoe opsys
=bsd4-2
3048 tahoe-tahoe-bsd4.3
* )
3049 machine
=tahoe opsys
=bsd4-3
3052 ## Tandem Integrity S2
3054 machine
=tandem-s2 opsys
=usg5-3
3058 m88k-tektronix-sysv3
* )
3059 machine
=tekxd88 opsys
=usg5-3
3062 ## Tektronix 16000 box (6130?)
3063 ns16k-tektronix-bsd
* )
3064 machine
=ns16000 opsys
=bsd4-2
3067 ## src/m/tek4300.h hints that this is a m68k machine.
3068 m68
*-tektronix-bsd* )
3069 machine
=tek4300 opsys
=bsd4-3
3073 ## We seem to have lost the machine-description file titan.h!
3075 machine
=titan opsys
=usg5-3
3078 ## Ustation E30 (SS5E)
3079 m68
*-unisys-uniplus* )
3080 machine
=ustation opsystem
=unipl5-2
3086 case "${canonical}" in
3087 *-bsd4.1
* ) opsys
=bsd4-1
;;
3088 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3089 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3090 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3091 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3092 *-vms* ) opsys
=vms
;;
3098 ns16k-whitechapel-
* )
3100 ## We don't know what sort of OS runs on these; we'll let the
3101 ## operating system guessing code below try.
3106 machine
=wicat opsys
=usg5-2
3111 machine
=ia64 opsys
=gnu-linux
3114 ## Intel 386 machines where we don't care about the manufacturer
3117 case "${canonical}" in
3118 *-cygwin ) opsys
=cygwin
;;
3119 *-darwin* ) opsys
=darwin
3120 CPP
="${CC-cc} -E -no-cpp-precomp"
3122 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3123 *-isc2.2
* ) opsys
=isc2-2
;;
3124 *-isc4.0
* ) opsys
=isc4-0
;;
3125 *-isc4.
* ) opsys
=isc4-1
3126 GCC_TEST_OPTIONS
=-posix
3127 NON_GCC_TEST_OPTIONS
=-Xp
3129 *-isc* ) opsys
=isc3-0
;;
3130 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3131 *-esix* ) opsys
=esix
;;
3132 *-xenix* ) opsys
=xenix
;;
3133 *-linux-gnu* ) opsys
=gnu-linux
;;
3134 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3135 *-sco3.2v5
* ) opsys
=sco5
3136 NON_GNU_CPP
=/lib
/cpp
3137 # Prevent -belf from being passed to $CPP.
3138 # /lib/cpp does not accept it.
3139 OVERRIDE_CPPFLAGS
=" "
3141 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3142 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3143 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3144 *-386bsd* ) opsys
=386bsd
;;
3145 *-nextstep* ) opsys
=nextstep
;;
3146 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3150 ## m68k Linux-based GNU system
3152 machine
=m68k opsys
=gnu-linux
3155 ## Mips Linux-based GNU system
3156 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3157 machine
=mips opsys
=gnu-linux
3161 sparc-fujitsu-sysv4
* )
3162 machine
=sparc opsys
=uxpds
3163 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3168 f301-fujitsu-uxpv4.1
)
3169 machine
=f301 opsys
=uxpv
3172 ## AMD x86-64 Linux-based GNU system
3173 x86_64-
*-linux-gnu* )
3174 machine
=amdx86-64 opsys
=gnu-linux
3177 ## Tensilica Xtensa Linux-based GNU system
3179 machine
=xtensa opsys
=gnu-linux
3187 ### If the code above didn't choose an operating system, just choose
3188 ### an operating system based on the configuration name. You really
3189 ### only want to use this when you have no idea what the right
3190 ### operating system is; if you know what operating systems a machine
3191 ### runs, it's cleaner to make it explicit in the case statement
3193 if test x
"${opsys}" = x
; then
3194 case "${canonical}" in
3195 *-gnu* ) opsys
=gnu
;;
3196 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3197 *-bsd4.2
) opsys
=bsd4-2
;;
3198 *-bsd4.3
) opsys
=bsd4-3
;;
3199 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3200 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3201 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3202 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3203 *-sysv4.2uw
* ) opsys
=unixware
;;
3204 *-sysv5uw* ) opsys
=unixware
;;
3205 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3206 *-sysv4.1
* |
*-sysvr4.1
* )
3207 NON_GNU_CPP
=/usr
/lib
/cpp
3209 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3210 if [ x
$NON_GNU_CPP = x
]; then
3211 if [ -f /usr
/ccs
/lib
/cpp
]; then
3212 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3214 NON_GNU_CPP
=/lib
/cpp
3218 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3225 ### Tests for sytems that we beleive are obsolete and should be desupported.
3227 case "${machine}" in
3228 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
3229 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
3230 echo "and it is planned to be desupported in the next version of Emacs"
3231 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
3232 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
3233 echo "exit 33 line. After that you can run configure again and 'complete' the build."
3239 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 |
386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv
)
3240 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
3241 echo "and it is planned to be desupported in the next version of Emacs"
3242 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
3243 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
3244 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
3251 if test $unported = yes; then
3252 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3253 Check \`etc/MACHINES' for recognized configuration names." >&5
3254 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3255 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3256 { (exit 1); exit 1; }; }
3259 machfile
="m/${machine}.h"
3260 opsysfile
="s/${opsys}.h"
3263 #### Choose a compiler.
3264 test -n "$CC" && cc_specified
=yes
3266 # Save the value of CFLAGS that the user specified.
3267 SPECIFIED_CFLAGS
="$CFLAGS"
3270 "yes" ) CC
="gcc" GCC
=yes ;;
3271 "no" ) : ${CC=cc} ;;
3275 ac_cpp
='$CPP $CPPFLAGS'
3276 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3279 if test -n "$ac_tool_prefix"; then
3280 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3281 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_CC+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC
="$CC" # Let the user override the test.
3290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir
=.
3295 for ac_exec_ext
in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 if test -n "$CC"; then
3309 { echo "$as_me:$LINENO: result: $CC" >&5
3310 echo "${ECHO_T}$CC" >&6; }
3312 { echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6; }
3318 if test -z "$ac_cv_prog_CC"; then
3320 # Extract the first word of "gcc", so it can be a program name with args.
3321 set dummy gcc
; ac_word
=$2
3322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 if test -n "$ac_ct_CC"; then
3328 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir
=.
3335 for ac_exec_ext
in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_ac_ct_CC
="gcc"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3348 if test -n "$ac_ct_CC"; then
3349 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3350 echo "${ECHO_T}$ac_ct_CC" >&6; }
3352 { echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6; }
3356 if test "x$ac_ct_CC" = x
; then
3359 case $cross_compiling:$ac_tool_warned in
3361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3362 whose name does not start with the host triplet. If you think this
3363 configuration is useful to you, please write to autoconf@gnu.org." >&5
3364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3365 whose name does not start with the host triplet. If you think this
3366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3367 ac_tool_warned
=yes ;;
3375 if test -z "$CC"; then
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3378 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_CC+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 if test -n "$CC"; then
3385 ac_cv_prog_CC
="$CC" # Let the user override the test.
3387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir
=.
3392 for ac_exec_ext
in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 if test -n "$CC"; then
3406 { echo "$as_me:$LINENO: result: $CC" >&5
3407 echo "${ECHO_T}$CC" >&6; }
3409 { echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6; }
3416 if test -z "$CC"; then
3417 # Extract the first word of "cc", so it can be a program name with args.
3418 set dummy cc
; ac_word
=$2
3419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC
="$CC" # Let the user override the test.
3428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir
=.
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3436 ac_prog_rejected
=yes
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test $ac_prog_rejected = yes; then
3448 # We found a bogon in the path, so make sure we never use it.
3449 set dummy
$ac_cv_prog_CC
3451 if test $# != 0; then
3452 # We chose a different compiler from the bogus one.
3453 # However, it has the same basename, so the bogon will be chosen
3454 # first if we set CC to just the basename; use the full file name.
3456 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3462 if test -n "$CC"; then
3463 { echo "$as_me:$LINENO: result: $CC" >&5
3464 echo "${ECHO_T}$CC" >&6; }
3466 { echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6; }
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 for ac_prog
in cl.exe
3476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3477 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3480 if test "${ac_cv_prog_CC+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC
="$CC" # Let the user override the test.
3486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir
=.
3491 for ac_exec_ext
in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504 if test -n "$CC"; then
3505 { echo "$as_me:$LINENO: result: $CC" >&5
3506 echo "${ECHO_T}$CC" >&6; }
3508 { echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6; }
3513 test -n "$CC" && break
3516 if test -z "$CC"; then
3518 for ac_prog
in cl.exe
3520 # Extract the first word of "$ac_prog", so it can be a program name with args.
3521 set dummy
$ac_prog; ac_word
=$2
3522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 if test -n "$ac_ct_CC"; then
3528 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir
=.
3535 for ac_exec_ext
in '' $ac_executable_extensions; do
3536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3537 ac_cv_prog_ac_ct_CC
="$ac_prog"
3538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3548 if test -n "$ac_ct_CC"; then
3549 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3550 echo "${ECHO_T}$ac_ct_CC" >&6; }
3552 { echo "$as_me:$LINENO: result: no" >&5
3553 echo "${ECHO_T}no" >&6; }
3557 test -n "$ac_ct_CC" && break
3560 if test "x$ac_ct_CC" = x
; then
3563 case $cross_compiling:$ac_tool_warned in
3565 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3566 whose name does not start with the host triplet. If you think this
3567 configuration is useful to you, please write to autoconf@gnu.org." >&5
3568 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3569 whose name does not start with the host triplet. If you think this
3570 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3571 ac_tool_warned
=yes ;;
3580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3581 See \`config.log' for more details." >&5
3582 echo "$as_me: error: no acceptable C compiler found in \$PATH
3583 See \`config.log' for more details." >&2;}
3584 { (exit 1); exit 1; }; }
3586 # Provide some information about the compiler.
3587 echo "$as_me:$LINENO: checking for C compiler version" >&5
3588 ac_compiler
=`set X $ac_compile; echo $2`
3589 { (ac_try
="$ac_compiler --version >&5"
3591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compiler --version >&5") 2>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }
3599 { (ac_try="$ac_compiler -v >&5"
3601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3602 *) ac_try_echo
=$ac_try;;
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compiler -v >&5") 2>&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); }
3609 { (ac_try
="$ac_compiler -V >&5"
3611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compiler -V >&5") 2>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3635 ac_clean_files_save=$ac_clean_files
3636 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3637 # Try to create an executable without -o first, disregard a.out.
3638 # It will help us diagnose broken compilers, and finding out an intuition
3640 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3641 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3642 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3644 # List of possible output files, starting from the most likely.
3645 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3646 # only as a last resort. b.out is created by i960 compilers.
3647 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3649 # The IRIX 6 linker writes into existing files which may not be
3650 # executable, retaining their permissions. Remove them first so a
3651 # subsequent execution test works.
3653 for ac_file in $ac_files
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3657 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3662 if { (ac_try="$ac_link_default"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_link_default") 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; then
3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3675 # so that the user can short-circuit this test for compilers unknown to
3677 for ac_file
in $ac_files ''
3679 test -f "$ac_file" ||
continue
3681 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3684 # We found the default executable, but exeext='' is most
3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3690 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 # We set ac_cv_exeext here because the later test for it is not
3693 # safe: cross compilers may not add the suffix if given an `-o'
3694 # argument, so we may need to know it at that point already.
3695 # Even if this section looks crufty: it has the advantage of
3702 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3708 { echo "$as_me:$LINENO: result: $ac_file" >&5
3709 echo "${ECHO_T}$ac_file" >&6; }
3710 if test -z "$ac_file"; then
3711 echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.
$ac_ext >&5
3714 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3715 See \`config.log' for more details." >&5
3716 echo "$as_me: error: C compiler cannot create executables
3717 See \`config.log' for more details." >&2;}
3718 { (exit 77); exit 77; }; }
3721 ac_exeext
=$ac_cv_exeext
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 the C compiler works" >&5
3726 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3727 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3728 # If not cross compiling, check that we can run a simple program.
3729 if test "$cross_compiling" != yes; then
3730 if { ac_try
='./$ac_file'
3731 { (case "(($ac_try" in
3732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_try") 2>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; }; then
3742 if test "$cross_compiling" = maybe; then
3745 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3746 If you meant to cross compile, use \`--host'.
3747 See \`config.log' for more details.
" >&5
3748 echo "$as_me: error
: cannot run C compiled programs.
3749 If you meant to cross compile
, use \
`--host'.
3750 See \`config.log
' for more details." >&2;}
3751 { (exit 1); exit 1; }; }
3755 { echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6; }
3758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3759 ac_clean_files=$ac_clean_files_save
3760 # Check that the compiler produces executables we can run. If not, either
3761 # the compiler is broken, or we cross compile.
3762 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3764 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3765 echo "${ECHO_T}$cross_compiling" >&6; }
3767 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3769 if { (ac_try="$ac_link"
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_link") 2>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; then
3779 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3780 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3781 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3783 for ac_file
in conftest.exe conftest conftest.
*; do
3784 test -f "$ac_file" ||
continue
3786 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3787 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3793 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3794 See \`config.log' for more details." >&5
3795 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3796 See \`config.log' for more details." >&2;}
3797 { (exit 1); exit 1; }; }
3800 rm -f conftest
$ac_cv_exeext
3801 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3802 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3804 rm -f conftest.
$ac_ext
3805 EXEEXT
=$ac_cv_exeext
3807 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3808 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3809 if test "${ac_cv_objext+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3827 rm -f conftest.o conftest.obj
3828 if { (ac_try
="$ac_compile"
3830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_compile") 2>&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; then
3838 for ac_file in conftest.o conftest.obj conftest.*; do
3839 test -f "$ac_file" || continue;
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3842 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3851 See \`config.log
' for more details." >&5
3852 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3853 See \`config.log' for more details.
" >&2;}
3854 { (exit 1); exit 1; }; }
3857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3859 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3860 echo "${ECHO_T}$ac_cv_objext" >&6; }
3861 OBJEXT=$ac_cv_objext
3863 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3864 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3865 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3866 echo $ECHO_N "(cached
) $ECHO_C" >&6
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3899 (exit $ac_status); } && {
3900 test -z "$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 } && test -s conftest.$ac_objext; then
3905 echo "$as_me: failed program was
:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3915 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3916 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3917 GCC=`test $ac_compiler_gnu = yes && echo yes`
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3921 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3922 if test "${ac_cv_prog_cc_g+set}" = set; then
3923 echo $ECHO_N "(cached
) $ECHO_C" >&6
3925 ac_save_c_werror_flag=$ac_c_werror_flag
3926 ac_c_werror_flag=yes
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest.$ac_objext; then
3963 echo "$as_me: failed program was
:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3982 rm -f conftest.$ac_objext
3983 if { (ac_try="$ac_compile"
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3989 (eval "$ac_compile") 2>conftest.er1
3991 grep -v '^ *+' conftest.er1 >conftest.err
3993 cat conftest.err >&5
3994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3995 (exit $ac_status); } && {
3996 test -z "$ac_c_werror_flag" ||
3997 test ! -s conftest.err
3998 } && test -s conftest.$ac_objext; then
4001 echo "$as_me: failed program was
:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 ac_c_werror_flag=$ac_save_c_werror_flag
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4034 (exit $ac_status); } && {
4035 test -z "$ac_c_werror_flag" ||
4036 test ! -s conftest.err
4037 } && test -s conftest.$ac_objext; then
4040 echo "$as_me: failed program was
:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4055 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4057 if test "$ac_test_CFLAGS" = set; then
4058 CFLAGS=$ac_save_CFLAGS
4059 elif test $ac_cv_prog_cc_g = yes; then
4060 if test "$GCC" = yes; then
4066 if test "$GCC" = yes; then
4072 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4073 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4074 if test "${ac_cv_prog_cc_c89+set}" = set; then
4075 echo $ECHO_N "(cached
) $ECHO_C" >&6
4077 ac_cv_prog_cc_c89=no
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4087 #include <sys/types.h>
4088 #include <sys/stat.h>
4089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4090 struct buf { int x; };
4091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4092 static char *e (p, i)
4098 static char *f (char * (*g) (char **, int), char **p, ...)
4103 s = g (p, va_arg (v,int));
4108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4109 function prototypes and stuff, but not '\xHH' hex character constants.
4110 These don't provoke an error unfortunately, instead are silently treated
4111 as 'x'. The following induces an error, until -std is added to get
4112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4113 array size at least. It's necessary to write '\x00'==0 to get something
4114 that's true only with -std. */
4115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4118 inside strings and character constants. */
4120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122 int test (int i, double x);
4123 struct s1 {int (*f) (int a);};
4124 struct s2 {int (*f) (double a);};
4125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 CC="$ac_save_CC $ac_arg"
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4153 (exit $ac_status); } && {
4154 test -z "$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4156 } && test -s conftest.$ac_objext; then
4157 ac_cv_prog_cc_c89=$ac_arg
4159 echo "$as_me: failed program was
:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4165 rm -f core conftest.err conftest.$ac_objext
4166 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4168 rm -f conftest.$ac_ext
4173 case "x
$ac_cv_prog_cc_c89" in
4175 { echo "$as_me:$LINENO: result
: none needed
" >&5
4176 echo "${ECHO_T}none needed
" >&6; } ;;
4178 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4179 echo "${ECHO_T}unsupported
" >&6; } ;;
4181 CC="$CC $ac_cv_prog_cc_c89"
4182 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4183 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 # On Suns, sometimes $CPP names a directory.
4195 if test -n "$CPP" && test -d "$CPP"; then
4199 #### Some systems specify a CPP to use unless we are using GCC.
4200 #### Now that we know whether we are using GCC, we can decide whether
4201 #### to use that one.
4202 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4207 #### Some systems specify a CC to use unless we are using GCC.
4208 #### Now that we know whether we are using GCC, we can decide whether
4209 #### to use that one.
4210 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4211 test x$cc_specified != xyes
4216 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4218 CC="$CC $GCC_TEST_OPTIONS"
4221 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4223 CC="$CC $NON_GCC_TEST_OPTIONS"
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4233 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4234 # On Suns, sometimes $CPP names a directory.
4235 if test -n "$CPP" && test -d "$CPP"; then
4238 if test -z "$CPP"; then
4239 if test "${ac_cv_prog_CPP+set}" = set; then
4240 echo $ECHO_N "(cached
) $ECHO_C" >&6
4242 # Double quotes because CPP needs to be expanded
4243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4246 for ac_c_preproc_warn_flag in '' yes
4248 # Use a header file that comes with gcc, so configuring glibc
4249 # with a fresh cross-compiler works.
4250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4251 # <limits.h> exists even on freestanding compilers.
4252 # On the NeXT, cc -E runs the code through the compiler's parser,
4253 # not just through cpp. "Syntax error
" is here to catch this case.
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4261 # include <limits.h>
4263 # include <assert.h>
4267 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4279 (exit $ac_status); } >/dev/null && {
4280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4285 echo "$as_me: failed program was
:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 # Broken: fails on valid input.
4292 rm -f conftest.err conftest.$ac_ext
4294 # OK, works on sane cases. Now check whether nonexistent headers
4295 # can be detected and how.
4296 cat >conftest.$ac_ext <<_ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 #include <ac_nonexistent.h>
4304 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4312 grep -v '^ *+' conftest.er1 >conftest.err
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4316 (exit $ac_status); } >/dev/null && {
4317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4320 # Broken: success on invalid input.
4323 echo "$as_me: failed program was
:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 # Passes both tests.
4331 rm -f conftest.err conftest.$ac_ext
4334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4335 rm -f conftest.err conftest.$ac_ext
4336 if $ac_preproc_ok; then
4348 { echo "$as_me:$LINENO: result
: $CPP" >&5
4349 echo "${ECHO_T}$CPP" >&6; }
4351 for ac_c_preproc_warn_flag in '' yes
4353 # Use a header file that comes with gcc, so configuring glibc
4354 # with a fresh cross-compiler works.
4355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356 # <limits.h> exists even on freestanding compilers.
4357 # On the NeXT, cc -E runs the code through the compiler's parser,
4358 # not just through cpp. "Syntax error
" is here to catch this case.
4359 cat >conftest.$ac_ext <<_ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4366 # include <limits.h>
4368 # include <assert.h>
4372 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4380 grep -v '^ *+' conftest.er1 >conftest.err
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4384 (exit $ac_status); } >/dev/null && {
4385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4390 echo "$as_me: failed program was
:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Broken: fails on valid input.
4397 rm -f conftest.err conftest.$ac_ext
4399 # OK, works on sane cases. Now check whether nonexistent headers
4400 # can be detected and how.
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4407 #include <ac_nonexistent.h>
4409 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4415 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4421 (exit $ac_status); } >/dev/null && {
4422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4425 # Broken: success on invalid input.
4428 echo "$as_me: failed program was
:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 # Passes both tests.
4436 rm -f conftest.err conftest.$ac_ext
4439 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4440 rm -f conftest.err conftest.$ac_ext
4441 if $ac_preproc_ok; then
4444 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4445 See \
`config.log' for more details." >&5
4446 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4447 See \`config.log
' for more details." >&2;}
4448 { (exit 1); exit 1; }; }
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4454 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4458 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4459 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4460 if test "${ac_cv_path_GREP+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 # Extract the first word of "grep ggrep" to use in msg output
4464 if test -z "$GREP"; then
4465 set dummy grep ggrep; ac_prog_name=$2
4466 if test "${ac_cv_path_GREP+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 ac_path_GREP_found=false
4470 # Loop through the user's path and
test for each of PROGNAME-LIST
4471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4472 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4475 test -z "$as_dir" && as_dir
=.
4476 for ac_prog
in grep ggrep
; do
4477 for ac_exec_ext
in '' $ac_executable_extensions; do
4478 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4479 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4480 # Check for GNU ac_path_GREP and select it if it is found.
4481 # Check for GNU $ac_path_GREP
4482 case `"$ac_path_GREP" --version 2>&1` in
4484 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4487 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4490 cat "conftest.in" "conftest.in" >"conftest.tmp"
4491 mv "conftest.tmp" "conftest.in"
4492 cp "conftest.in" "conftest.nl"
4493 echo 'GREP' >> "conftest.nl"
4494 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4495 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4496 ac_count
=`expr $ac_count + 1`
4497 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_GREP
="$ac_path_GREP"
4500 ac_path_GREP_max
=$ac_count
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4505 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4509 $ac_path_GREP_found && break 3
4519 GREP
="$ac_cv_path_GREP"
4520 if test -z "$GREP"; then
4521 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4522 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4523 { (exit 1); exit 1; }; }
4527 ac_cv_path_GREP
=$GREP
4532 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4533 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4534 GREP
="$ac_cv_path_GREP"
4537 { echo "$as_me:$LINENO: checking for egrep" >&5
4538 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4539 if test "${ac_cv_path_EGREP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4543 then ac_cv_path_EGREP
="$GREP -E"
4545 # Extract the first word of "egrep" to use in msg output
4546 if test -z "$EGREP"; then
4547 set dummy
egrep; ac_prog_name
=$2
4548 if test "${ac_cv_path_EGREP+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 ac_path_EGREP_found
=false
4552 # Loop through the user's path and test for each of PROGNAME-LIST
4553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4554 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4557 test -z "$as_dir" && as_dir
=.
4558 for ac_prog
in egrep; do
4559 for ac_exec_ext
in '' $ac_executable_extensions; do
4560 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4561 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4562 # Check for GNU ac_path_EGREP and select it if it is found.
4563 # Check for GNU $ac_path_EGREP
4564 case `"$ac_path_EGREP" --version 2>&1` in
4566 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4569 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4572 cat "conftest.in" "conftest.in" >"conftest.tmp"
4573 mv "conftest.tmp" "conftest.in"
4574 cp "conftest.in" "conftest.nl"
4575 echo 'EGREP' >> "conftest.nl"
4576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4577 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4578 ac_count
=`expr $ac_count + 1`
4579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4580 # Best one so far, save it but keep looking for a better one
4581 ac_cv_path_EGREP
="$ac_path_EGREP"
4582 ac_path_EGREP_max
=$ac_count
4584 # 10*(2^10) chars as input seems more than enough
4585 test $ac_count -gt 10 && break
4587 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4591 $ac_path_EGREP_found && break 3
4601 EGREP
="$ac_cv_path_EGREP"
4602 if test -z "$EGREP"; then
4603 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4604 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4605 { (exit 1); exit 1; }; }
4609 ac_cv_path_EGREP
=$EGREP
4615 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4616 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4617 EGREP
="$ac_cv_path_EGREP"
4621 { echo "$as_me:$LINENO: checking for AIX" >&5
4622 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4623 cat >conftest.
$ac_ext <<_ACEOF
4626 cat confdefs.h
>>conftest.
$ac_ext
4627 cat >>conftest.
$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "yes" >/dev
/null
2>&1; then
4636 { echo "$as_me:$LINENO: result: yes" >&5
4637 echo "${ECHO_T}yes" >&6; }
4638 cat >>confdefs.h
<<\_ACEOF
4639 #define _ALL_SOURCE 1
4643 { echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6; }
4650 cat >>confdefs.h
<<\_ACEOF
4651 #define _GNU_SOURCE 1
4656 ### Use -Wno-pointer-sign if the compiler supports it
4657 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4658 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4659 SAVE_CFLAGS
="$CFLAGS"
4660 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4661 cat >conftest.
$ac_ext <<_ACEOF
4664 cat confdefs.h
>>conftest.
$ac_ext
4665 cat >>conftest.
$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4676 rm -f conftest.
$ac_objext
4677 if { (ac_try
="$ac_compile"
4679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1 >conftest.err
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 if test $has_option = yes; then
4703 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4705 { echo "$as_me:$LINENO: result: $has_option" >&5
4706 echo "${ECHO_T}$has_option" >&6; }
4707 CFLAGS="$SAVE_CFLAGS"
4711 #### Some other nice autoconf tests.
4713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4716 if test "$LN_S" = "ln -s"; then
4717 { echo "$as_me:$LINENO: result: yes" >&5
4718 echo "${ECHO_T}yes" >&6; }
4720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4721 echo "${ECHO_T}no, using $LN_S" >&6; }
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4730 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4731 # On Suns, sometimes $CPP names a directory.
4732 if test -n "$CPP" && test -d "$CPP"; then
4735 if test -z "$CPP"; then
4736 if test "${ac_cv_prog_CPP+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 # Double quotes because CPP needs to be expanded
4740 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4743 for ac_c_preproc_warn_flag in '' yes
4745 # Use a header file that comes with gcc, so configuring glibc
4746 # with a fresh cross-compiler works.
4747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4748 # <limits.h> exists even on freestanding compilers.
4749 # On the NeXT, cc -E runs the code through the compiler's parser,
4750 # not just through cpp. "Syntax error" is here to catch this case.
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4758 # include <limits.h>
4760 # include <assert.h>
4764 if { (ac_try="$ac_cpp conftest.$ac_ext"
4766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4767 *) ac_try_echo
=$ac_try;;
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772 grep -v '^ *+' conftest.er1
>conftest.err
4774 cat conftest.err
>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } >/dev
/null
&& {
4777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4785 # Broken: fails on valid input.
4789 rm -f conftest.err conftest.
$ac_ext
4791 # OK, works on sane cases. Now check whether nonexistent headers
4792 # can be detected and how.
4793 cat >conftest.
$ac_ext <<_ACEOF
4796 cat confdefs.h
>>conftest.
$ac_ext
4797 cat >>conftest.
$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 #include <ac_nonexistent.h>
4801 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4809 grep -v '^ *+' conftest.er1 >conftest.err
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null && {
4814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4815 test ! -s conftest.err
4817 # Broken: success on invalid input.
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 # Passes both tests.
4828 rm -f conftest.err conftest.$ac_ext
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.err conftest.
$ac_ext
4833 if $ac_preproc_ok; then
4845 { echo "$as_me:$LINENO: result: $CPP" >&5
4846 echo "${ECHO_T}$CPP" >&6; }
4848 for ac_c_preproc_warn_flag
in '' yes
4850 # Use a header file that comes with gcc, so configuring glibc
4851 # with a fresh cross-compiler works.
4852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853 # <limits.h> exists even on freestanding compilers.
4854 # On the NeXT, cc -E runs the code through the compiler's parser,
4855 # not just through cpp. "Syntax error" is here to catch this case.
4856 cat >conftest.
$ac_ext <<_ACEOF
4859 cat confdefs.h
>>conftest.
$ac_ext
4860 cat >>conftest.
$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4863 # include <limits.h>
4865 # include <assert.h>
4869 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 # Broken: fails on valid input.
4894 rm -f conftest.err conftest.$ac_ext
4896 # OK, works on sane cases. Now check whether nonexistent headers
4897 # can be detected and how.
4898 cat >conftest.$ac_ext <<_ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <ac_nonexistent.h>
4906 if { (ac_try="$ac_cpp conftest.$ac_ext"
4908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4909 *) ac_try_echo
=$ac_try;;
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4914 grep -v '^ *+' conftest.er1
>conftest.err
4916 cat conftest.err
>&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } >/dev
/null
&& {
4919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4922 # Broken: success on invalid input.
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.
$ac_ext >&5
4928 # Passes both tests.
4933 rm -f conftest.err conftest.
$ac_ext
4936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4937 rm -f conftest.err conftest.
$ac_ext
4938 if $ac_preproc_ok; then
4941 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4942 See \`config.log' for more details." >&5
4943 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4944 See \`config.log' for more details." >&2;}
4945 { (exit 1); exit 1; }; }
4949 ac_cpp
='$CPP $CPPFLAGS'
4950 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4951 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4952 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4954 # Find a good install program. We prefer a C program (faster),
4955 # so one script is as good as another. But avoid the broken or
4956 # incompatible versions:
4957 # SysV /etc/install, /usr/sbin/install
4958 # SunOS /usr/etc/install
4959 # IRIX /sbin/install
4961 # AmigaOS /C/install, which installs bootblocks on floppy discs
4962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4965 # OS/2's system install, which has a completely different semantic
4966 # ./install, which can be erroneously created by make from ./install.sh.
4967 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4968 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4969 if test -z "$INSTALL"; then
4970 if test "${ac_cv_path_install+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir
=.
4978 # Account for people who put trailing slashes in PATH elements.
4980 .
/ | .
// |
/cC
/* | \
4981 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4982 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4985 # OSF1 and SCO ODT 3.0 have their own names for install.
4986 # Don't use installbsd from OSF since it installs stuff as root
4988 for ac_prog
in ginstall scoinst
install; do
4989 for ac_exec_ext
in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4991 if test $ac_prog = install &&
4992 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4993 # AIX install. It has an incompatible calling convention.
4995 elif test $ac_prog = install &&
4996 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4997 # program-specific install script used by HP pwplus--don't use.
5000 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5013 if test "${ac_cv_path_install+set}" = set; then
5014 INSTALL
=$ac_cv_path_install
5016 # As a last resort, use the slow shell script. Don't cache a
5017 # value for INSTALL within a source directory, because that will
5018 # break other packages using the cache if that directory is
5019 # removed, or if the value is a relative name.
5020 INSTALL
=$ac_install_sh
5023 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5024 echo "${ECHO_T}$INSTALL" >&6; }
5026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5027 # It thinks the first close brace ends the variable substitution.
5028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5032 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5034 if test "x$RANLIB" = x
; then
5035 if test -n "$ac_tool_prefix"; then
5036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5037 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5040 if test "${ac_cv_prog_RANLIB+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 if test -n "$RANLIB"; then
5044 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir
=.
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 RANLIB
=$ac_cv_prog_RANLIB
5064 if test -n "$RANLIB"; then
5065 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5066 echo "${ECHO_T}$RANLIB" >&6; }
5068 { echo "$as_me:$LINENO: result: no" >&5
5069 echo "${ECHO_T}no" >&6; }
5074 if test -z "$ac_cv_prog_RANLIB"; then
5075 ac_ct_RANLIB
=$RANLIB
5076 # Extract the first word of "ranlib", so it can be a program name with args.
5077 set dummy ranlib
; ac_word
=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test -n "$ac_ct_RANLIB"; then
5084 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir
=.
5091 for ac_exec_ext
in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5104 if test -n "$ac_ct_RANLIB"; then
5105 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5106 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5108 { echo "$as_me:$LINENO: result: no" >&5
5109 echo "${ECHO_T}no" >&6; }
5112 if test "x$ac_ct_RANLIB" = x
; then
5115 case $cross_compiling:$ac_tool_warned in
5117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5118 whose name does not start with the host triplet. If you think this
5119 configuration is useful to you, please write to autoconf@gnu.org." >&5
5120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5121 whose name does not start with the host triplet. If you think this
5122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5123 ac_tool_warned
=yes ;;
5125 RANLIB
=$ac_ct_RANLIB
5128 RANLIB
="$ac_cv_prog_RANLIB"
5132 # Extract the first word of "install-info", so it can be a program name with args.
5133 set dummy install-info
; ac_word
=$2
5134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5136 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 case $INSTALL_INFO in
5141 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir
=.
5149 for ac_exec_ext
in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5163 if test -n "$INSTALL_INFO"; then
5164 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5165 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5167 { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5172 # Extract the first word of "install-info", so it can be a program name with args.
5173 set dummy install-info
; ac_word
=$2
5174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5176 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 case $INSTALL_INFO in
5181 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5185 for as_dir
in /usr
/sbin
5188 test -z "$as_dir" && as_dir
=.
5189 for ac_exec_ext
in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5203 if test -n "$INSTALL_INFO"; then
5204 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5205 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5207 { echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6; }
5212 # Extract the first word of "install-info", so it can be a program name with args.
5213 set dummy install-info
; ac_word
=$2
5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 case $INSTALL_INFO in
5221 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir
=.
5229 for ac_exec_ext
in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5243 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5244 if test -n "$INSTALL_INFO"; then
5245 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5246 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5248 { echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6; }
5253 # Extract the first word of "gzip", so it can be a program name with args.
5254 set dummy
gzip; ac_word
=$2
5255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5257 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir
=.
5270 for ac_exec_ext
in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5284 if test -n "$GZIP_PROG"; then
5285 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5286 echo "${ECHO_T}$GZIP_PROG" >&6; }
5288 { echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6; }
5295 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5297 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5300 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5302 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5306 late_LDFLAGS
=$LDFLAGS
5307 if test "$GCC" = yes; then
5308 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5310 LDFLAGS
="$LDFLAGS -znocombreloc"
5313 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5314 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5315 cat >conftest.
$ac_ext <<_ACEOF
5318 rm -f conftest.
$ac_objext conftest
$ac_exeext
5319 if { (ac_try
="$ac_link"
5321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5325 (eval "$ac_link") 2>conftest.er1
5327 grep -v '^ *+' conftest.er1 >conftest.err
5329 cat conftest.err >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest$ac_exeext &&
5335 $as_test_x conftest$ac_exeext; then
5336 { echo "$as_me:$LINENO: result: yes" >&5
5337 echo "${ECHO_T}yes" >&6; }
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 LDFLAGS=$late_LDFLAGS
5343 { echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6; }
5347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5348 conftest$ac_exeext conftest.$ac_ext
5350 #### Extract some information from the operating system and machine files.
5352 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5353 - which libraries the lib-src programs will want, and
5354 - whether the GNU malloc routines are usable..." >&5
5355 echo "$as_me: checking the machine- and system-dependent files to find out
5356 - which libraries the lib-src programs will want, and
5357 - whether the GNU malloc routines are usable..." >&6;}
5359 ### First figure out CFLAGS (which we use for running the compiler here)
5360 ### and REAL_CFLAGS (which we use for real compilation).
5361 ### The two are the same except on a few systems, where they are made
5362 ### different to work around various lossages. For example,
5363 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5364 ### as implying static linking.
5366 ### If the CFLAGS env var is specified, we use that value
5367 ### instead of the default.
5369 ### It's not important that this name contain the PID; you can't run
5370 ### two configures in the same directory and have anything work
5372 tempcname="conftest.c"
5375 #include "'${srcdir}'/src/'${opsysfile}'"
5376 #include "'${srcdir}'/src/'${machfile}'"
5377 #ifndef LIBS_MACHINE
5378 #define LIBS_MACHINE
5383 #ifndef C_SWITCH_SYSTEM
5384 #define C_SWITCH_SYSTEM
5386 #ifndef C_SWITCH_MACHINE
5387 #define C_SWITCH_MACHINE
5389 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5390 configure___ c_switch_system=C_SWITCH_SYSTEM
5391 configure___ c_switch_machine=C_SWITCH_MACHINE
5394 #define LIB_X11_LIB -lX11
5397 #ifndef LIBX11_MACHINE
5398 #define LIBX11_MACHINE
5401 #ifndef LIBX11_SYSTEM
5402 #define LIBX11_SYSTEM
5404 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5407 configure___ unexec=UNEXEC
5409 configure___ unexec=unexec.o
5412 #ifdef SYSTEM_MALLOC
5413 configure___ system_malloc=yes
5415 configure___ system_malloc=no
5418 #ifdef USE_MMAP_FOR_BUFFERS
5419 configure___ use_mmap_for_buffers=yes
5421 configure___ use_mmap_for_buffers=no
5424 #ifndef C_DEBUG_SWITCH
5425 #define C_DEBUG_SWITCH -g
5428 #ifndef C_OPTIMIZE_SWITCH
5430 #define C_OPTIMIZE_SWITCH -O2
5432 #define C_OPTIMIZE_SWITCH -O
5436 #ifndef C_WARNINGS_SWITCH
5437 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5440 #ifndef LD_SWITCH_MACHINE
5441 #define LD_SWITCH_MACHINE
5444 #ifndef LD_SWITCH_SYSTEM
5445 #define LD_SWITCH_SYSTEM
5448 #ifndef LD_SWITCH_X_SITE_AUX
5449 #define LD_SWITCH_X_SITE_AUX
5452 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5453 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5455 #ifdef THIS_IS_CONFIGURE
5457 /* Get the CFLAGS for tests in configure. */
5459 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5461 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5464 #else /* not THIS_IS_CONFIGURE */
5466 /* Get the CFLAGS for real compilation. */
5468 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5470 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5473 #endif /* not THIS_IS_CONFIGURE */
5476 # The value of CPP is a quoted variable reference, so we need to do this
5477 # to get its actual value...
5478 CPP=`eval "echo $CPP"`
5479 eval `${CPP} -Isrc ${tempcname} \
5480 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5481 if test "x$SPECIFIED_CFLAGS" = x; then
5482 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5483 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5485 REAL_CFLAGS="$CFLAGS"
5489 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5491 ### Make sure subsequent tests use flags consistent with the build flags.
5493 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5494 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5496 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5501 # Check whether --enable-largefile was given.
5502 if test "${enable_largefile+set}" = set; then
5503 enableval=$enable_largefile;
5506 if test "$enable_largefile" != no; then
5508 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5509 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5510 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 ac_cv_sys_largefile_CC=no
5514 if test "$GCC" != yes; then
5517 # IRIX 6.2 and later do not support large files by default,
5518 # so use the C compiler's -n32 option if that helps.
5519 cat >conftest.$ac_ext <<_ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <sys/types.h>
5526 /* Check that off_t can represent 2**63 - 1 correctly.
5527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5528 since some C++ compilers masquerading as C compilers
5529 incorrectly reject 9223372036854775807. */
5530 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5532 && LARGE_OFF_T % 2147483647 == 1)
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5546 *) ac_try_echo
=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1
>conftest.err
5553 cat conftest.err
>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.
$ac_objext; then
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.
$ac_ext >&5
5567 rm -f core conftest.err conftest.
$ac_objext
5569 rm -f conftest.
$ac_objext
5570 if { (ac_try
="$ac_compile"
5572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1 >conftest.err
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.$ac_objext; then
5586 ac_cv_sys_largefile_CC=' -n32'; break
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5594 rm -f core conftest.err conftest.$ac_objext
5598 rm -f conftest.$ac_ext
5601 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5602 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5603 if test "$ac_cv_sys_largefile_CC" != no; then
5604 CC=$CC$ac_cv_sys_largefile_CC
5607 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5608 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5609 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5619 #include <sys/types.h>
5620 /* Check that off_t can represent 2**63 - 1 correctly.
5621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5622 since some C++ compilers masquerading as C compilers
5623 incorrectly reject 9223372036854775807. */
5624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5626 && LARGE_OFF_T % 2147483647 == 1)
5636 rm -f conftest.$ac_objext
5637 if { (ac_try="$ac_compile"
5639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5640 *) ac_try_echo
=$ac_try;;
5642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5643 (eval "$ac_compile") 2>conftest.er1
5645 grep -v '^ *+' conftest.er1
>conftest.err
5647 cat conftest.err
>&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } && {
5650 test -z "$ac_c_werror_flag" ||
5651 test ! -s conftest.err
5652 } && test -s conftest.
$ac_objext; then
5653 ac_cv_sys_file_offset_bits
=no
; break
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.
$ac_ext >&5
5661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5662 cat >conftest.
$ac_ext <<_ACEOF
5665 cat confdefs.h
>>conftest.
$ac_ext
5666 cat >>conftest.
$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5668 #define _FILE_OFFSET_BITS 64
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5686 rm -f conftest.
$ac_objext
5687 if { (ac_try
="$ac_compile"
5689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1 >conftest.err
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.$ac_objext; then
5703 ac_cv_sys_file_offset_bits=64; break
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cv_sys_file_offset_bits=unknown
5716 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5717 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5718 case $ac_cv_sys_file_offset_bits in #(
5721 cat >>confdefs.h <<_ACEOF
5722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5727 if test $ac_cv_sys_file_offset_bits = unknown; then
5728 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5729 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5730 if test "${ac_cv_sys_large_files+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 /* Check that off_t can represent 2**63 - 1 correctly.
5742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5743 since some C++ compilers masquerading as C compilers
5744 incorrectly reject 9223372036854775807. */
5745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5747 && LARGE_OFF_T % 2147483647 == 1)
5757 rm -f conftest.$ac_objext
5758 if { (ac_try="$ac_compile"
5760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5761 *) ac_try_echo
=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compile") 2>conftest.er1
5766 grep -v '^ *+' conftest.er1
>conftest.err
5768 cat conftest.err
>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } && {
5771 test -z "$ac_c_werror_flag" ||
5772 test ! -s conftest.err
5773 } && test -s conftest.
$ac_objext; then
5774 ac_cv_sys_large_files
=no
; break
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.
$ac_ext >&5
5782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5783 cat >conftest.
$ac_ext <<_ACEOF
5786 cat confdefs.h
>>conftest.
$ac_ext
5787 cat >>conftest.
$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #define _LARGE_FILES 1
5790 #include <sys/types.h>
5791 /* Check that off_t can represent 2**63 - 1 correctly.
5792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5793 since some C++ compilers masquerading as C compilers
5794 incorrectly reject 9223372036854775807. */
5795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5797 && LARGE_OFF_T % 2147483647 == 1)
5807 rm -f conftest.
$ac_objext
5808 if { (ac_try
="$ac_compile"
5810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.$ac_objext; then
5824 ac_cv_sys_large_files=1; break
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 ac_cv_sys_large_files=unknown
5837 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5838 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5839 case $ac_cv_sys_large_files in #(
5842 cat >>confdefs.h <<_ACEOF
5843 #define _LARGE_FILES $ac_cv_sys_large_files
5853 ### The standard library on x86-64 GNU/Linux distributions can
5854 ### be located in either /usr/lib64 or /usr/lib.
5855 case "${canonical}" in
5856 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5857 if test -d /usr/lib64; then
5859 cat >>confdefs.h <<\_ACEOF
5860 #define HAVE_X86_64_LIB64_DIR 1
5869 if test "${with_sound}" != "no"; then
5870 # Sound support for GNU/Linux and the free BSDs.
5871 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5873 if test "${ac_cv_header_stdc+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5899 *) ac_try_echo
=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1
>conftest.err
5906 cat conftest.err
>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.
$ac_objext; then
5912 ac_cv_header_stdc
=yes
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.
$ac_ext >&5
5917 ac_cv_header_stdc
=no
5920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5922 if test $ac_cv_header_stdc = yes; then
5923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5924 cat >conftest.
$ac_ext <<_ACEOF
5927 cat confdefs.h
>>conftest.
$ac_ext
5928 cat >>conftest.
$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5934 $EGREP "memchr" >/dev
/null
2>&1; then
5937 ac_cv_header_stdc
=no
5943 if test $ac_cv_header_stdc = yes; then
5944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5955 $EGREP "free" >/dev
/null
2>&1; then
5958 ac_cv_header_stdc
=no
5964 if test $ac_cv_header_stdc = yes; then
5965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5966 if test "$cross_compiling" = yes; then
5969 cat >conftest.
$ac_ext <<_ACEOF
5972 cat confdefs.h
>>conftest.
$ac_ext
5973 cat >>conftest.
$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5977 #if ((' ' & 0x0FF) == 0x020)
5978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5981 # define ISLOWER(c) \
5982 (('a' <= (c) && (c) <= 'i') \
5983 || ('j' <= (c) && (c) <= 'r') \
5984 || ('s' <= (c) && (c) <= 'z'))
5985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5993 for (i = 0; i < 256; i++)
5994 if (XOR (islower (i), ISLOWER (i))
5995 || toupper (i) != TOUPPER (i))
6000 rm -f conftest
$ac_exeext
6001 if { (ac_try
="$ac_link"
6003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_link") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6011 { (case "(($ac_try" in
6012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6013 *) ac_try_echo
=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_try") 2>&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6022 echo "$as_me: program exited with status $ac_status" >&5
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.
$ac_ext >&5
6027 ac_cv_header_stdc
=no
6029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6037 if test $ac_cv_header_stdc = yes; then
6039 cat >>confdefs.h
<<\_ACEOF
6040 #define STDC_HEADERS 1
6045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6055 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6056 inttypes.h stdint.h unistd.h
6058 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6061 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6072 #include <$ac_header>
6074 rm -f conftest.
$ac_objext
6075 if { (ac_try
="$ac_compile"
6077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1 >conftest.err
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.$ac_objext; then
6091 eval "$as_ac_Header=yes"
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 eval "$as_ac_Header=no"
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 ac_res=`eval echo '${'$as_ac_Header'}'`
6102 { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6105 cat >>confdefs.h <<_ACEOF
6106 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6117 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6119 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 ac_res=`eval echo '${'$as_ac_Header'}'`
6127 { echo "$as_me:$LINENO: result: $ac_res" >&5
6128 echo "${ECHO_T}$ac_res" >&6; }
6130 # Is the header compilable?
6131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6133 cat >conftest.$ac_ext <<_ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 $ac_includes_default
6140 #include <$ac_header>
6142 rm -f conftest.$ac_objext
6143 if { (ac_try="$ac_compile"
6145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6146 *) ac_try_echo
=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_compile") 2>conftest.er1
6151 grep -v '^ *+' conftest.er1
>conftest.err
6153 cat conftest.err
>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && {
6156 test -z "$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 } && test -s conftest.
$ac_objext; then
6159 ac_header_compiler
=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.
$ac_ext >&5
6164 ac_header_compiler
=no
6167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169 echo "${ECHO_T}$ac_header_compiler" >&6; }
6171 # Is the header present?
6172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6174 cat >conftest.
$ac_ext <<_ACEOF
6177 cat confdefs.h
>>conftest.
$ac_ext
6178 cat >>conftest.
$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 #include <$ac_header>
6182 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6190 grep -v '^ *+' conftest.er1 >conftest.err
6192 cat conftest.err >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } >/dev/null && {
6195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6198 ac_header_preproc=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_header_preproc=no
6206 rm -f conftest.err conftest.$ac_ext
6207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6208 echo "${ECHO_T}$ac_header_preproc" >&6; }
6210 # So? What about this header?
6211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6217 ac_header_preproc=yes
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 eval "$as_ac_Header=\$ac_header_preproc"
6242 ac_res=`eval echo '${'$as_ac_Header'}'`
6243 { echo "$as_me:$LINENO: result: $ac_res" >&5
6244 echo "${ECHO_T}$ac_res" >&6; }
6247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6256 # Emulation library used on NetBSD.
6257 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6258 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6259 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 ac_check_lib_save_LIBS=$LIBS
6263 LIBS="-lossaudio $LIBS"
6264 cat >conftest.$ac_ext <<_ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6271 /* Override any GCC internal prototype to avoid an error.
6272 Use char because int might match the return type of a GCC
6273 builtin and then its argument prototype would still apply. */
6281 return _oss_ioctl ();
6286 rm -f conftest.$ac_objext conftest$ac_exeext
6287 if { (ac_try="$ac_link"
6289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6290 *) ac_try_echo
=$ac_try;;
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_link") 2>conftest.er1
6295 grep -v '^ *+' conftest.er1
>conftest.err
6297 cat conftest.err
>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest
$ac_exeext &&
6303 $as_test_x conftest
$ac_exeext; then
6304 ac_cv_lib_ossaudio__oss_ioctl
=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.
$ac_ext >&5
6309 ac_cv_lib_ossaudio__oss_ioctl
=no
6312 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6313 conftest
$ac_exeext conftest.
$ac_ext
6314 LIBS
=$ac_check_lib_save_LIBS
6316 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6317 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6318 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6327 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6328 if test "X${with_pkg_config_prog}" != X
; then
6329 PKG_CONFIG
="${with_pkg_config_prog}"
6334 if test -z "$PKG_CONFIG"; then
6335 # Extract the first word of "pkg-config", so it can be a program name with args.
6336 set dummy pkg-config
; ac_word
=$2
6337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir
=.
6352 for ac_exec_ext
in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6366 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6367 if test -n "$PKG_CONFIG"; then
6368 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6369 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6371 { echo "$as_me:$LINENO: result: no" >&5
6372 echo "${ECHO_T}no" >&6; }
6378 if test "$PKG_CONFIG" = "no" ; then
6381 PKG_CONFIG_MIN_VERSION
=0.9.0
6382 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6383 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6384 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6386 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6387 { echo "$as_me:$LINENO: result: yes" >&5
6388 echo "${ECHO_T}yes" >&6; }
6391 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6392 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6393 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6394 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6395 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6397 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6398 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6399 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6400 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6401 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6403 { echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6; }
6407 ## If we have a custom action on failure, don't print errors, but
6408 ## do set a variable so people can do so.
6409 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6416 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6417 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6421 if test $succeeded = yes; then
6427 if test $HAVE_ALSA = yes; then
6428 SAVE_CFLAGS
="$CFLAGS"
6429 SAVE_LDFLAGS
="$LDFLAGS"
6430 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6431 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6432 cat >conftest.
$ac_ext <<_ACEOF
6435 cat confdefs.h
>>conftest.
$ac_ext
6436 cat >>conftest.
$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <asoundlib.h>
6442 snd_lib_error_set_handler (0);
6447 rm -f conftest.
$ac_objext
6448 if { (ac_try
="$ac_compile"
6450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_compile") 2>conftest.er1
6456 grep -v '^ *+' conftest.er1 >conftest.err
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest.$ac_objext; then
6464 emacs_alsa_normal=yes
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 emacs_alsa_normal=no
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 if test "$emacs_alsa_normal" != yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <alsa/asoundlib.h>
6484 snd_lib_error_set_handler (0);
6489 rm -f conftest.$ac_objext
6490 if { (ac_try="$ac_compile"
6492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6493 *) ac_try_echo
=$ac_try;;
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_compile") 2>conftest.er1
6498 grep -v '^ *+' conftest.er1
>conftest.err
6500 cat conftest.err
>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.
$ac_objext; then
6506 emacs_alsa_subdir
=yes
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.
$ac_ext >&5
6511 emacs_alsa_subdir
=no
6514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6515 if test "$emacs_alsa_subdir" != yes; then
6516 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6517 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6518 { (exit 1); exit 1; }; }
6520 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6523 CFLAGS
="$SAVE_CFLAGS"
6524 LDFLAGS
="$SAVE_LDFLAGS"
6525 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6526 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6528 cat >>confdefs.h
<<\_ACEOF
6561 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6562 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6563 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6564 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6567 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6568 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6571 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 ac_res
=`eval echo '${'$as_ac_Header'}'`
6575 { echo "$as_me:$LINENO: result: $ac_res" >&5
6576 echo "${ECHO_T}$ac_res" >&6; }
6578 # Is the header compilable?
6579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6581 cat >conftest.
$ac_ext <<_ACEOF
6584 cat confdefs.h
>>conftest.
$ac_ext
6585 cat >>conftest.
$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6588 #include <$ac_header>
6590 rm -f conftest.
$ac_objext
6591 if { (ac_try
="$ac_compile"
6593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } && {
6604 test -z "$ac_c_werror_flag" ||
6605 test ! -s conftest.err
6606 } && test -s conftest.$ac_objext; then
6607 ac_header_compiler=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_header_compiler=no
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6617 echo "${ECHO_T}$ac_header_compiler" >&6; }
6619 # Is the header present?
6620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6622 cat >conftest.$ac_ext <<_ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <$ac_header>
6630 if { (ac_try="$ac_cpp conftest.$ac_ext"
6632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6633 *) ac_try_echo
=$ac_try;;
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6638 grep -v '^ *+' conftest.er1
>conftest.err
6640 cat conftest.err
>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } >/dev
/null
&& {
6643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6646 ac_header_preproc
=yes
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 ac_header_preproc
=no
6654 rm -f conftest.err conftest.
$ac_ext
6655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6656 echo "${ECHO_T}$ac_header_preproc" >&6; }
6658 # So? What about this header?
6659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6665 ac_header_preproc
=yes
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6685 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 eval "$as_ac_Header=\$ac_header_preproc"
6690 ac_res
=`eval echo '${'$as_ac_Header'}'`
6691 { echo "$as_me:$LINENO: result: $ac_res" >&5
6692 echo "${ECHO_T}$ac_res" >&6; }
6695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6696 cat >>confdefs.h
<<_ACEOF
6697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6705 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6706 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6707 cat >conftest.
$ac_ext <<_ACEOF
6710 cat confdefs.h
>>conftest.
$ac_ext
6711 cat >>conftest.
$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <sys/personality.h>
6717 personality (PER_LINUX32)
6722 rm -f conftest.
$ac_objext
6723 if { (ac_try
="$ac_compile"
6725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.$ac_objext; then
6739 emacs_cv_personality_linux32=yes
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 emacs_cv_personality_linux32=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6749 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6751 if test $emacs_cv_personality_linux32 = yes; then
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_PERSONALITY_LINUX32 1
6760 for ac_header in term.h
6762 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <$ac_header>
6776 if { (ac_try="$ac_cpp conftest.$ac_ext"
6778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6779 *) ac_try_echo
=$ac_try;;
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6784 grep -v '^ *+' conftest.er1
>conftest.err
6786 cat conftest.err
>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } >/dev
/null
&& {
6789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6792 eval "$as_ac_Header=yes"
6794 echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.
$ac_ext >&5
6797 eval "$as_ac_Header=no"
6800 rm -f conftest.err conftest.
$ac_ext
6802 ac_res
=`eval echo '${'$as_ac_Header'}'`
6803 { echo "$as_me:$LINENO: result: $ac_res" >&5
6804 echo "${ECHO_T}$ac_res" >&6; }
6805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6806 cat >>confdefs.h
<<_ACEOF
6807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6816 if test "${ac_cv_header_stdc+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 cat >conftest.
$ac_ext <<_ACEOF
6822 cat confdefs.h
>>conftest.
$ac_ext
6823 cat >>conftest.
$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6838 rm -f conftest.
$ac_objext
6839 if { (ac_try
="$ac_compile"
6841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6845 (eval "$ac_compile") 2>conftest.er1
6847 grep -v '^ *+' conftest.er1 >conftest.err
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest.$ac_objext; then
6855 ac_cv_header_stdc=yes
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6860 ac_cv_header_stdc=no
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 if test $ac_cv_header_stdc = yes; then
6866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6877 $EGREP "memchr" >/dev/null 2>&1; then
6880 ac_cv_header_stdc=no
6886 if test $ac_cv_header_stdc = yes; then
6887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6898 $EGREP "free" >/dev/null 2>&1; then
6901 ac_cv_header_stdc=no
6907 if test $ac_cv_header_stdc = yes; then
6908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6909 if test "$cross_compiling" = yes; then
6912 cat >conftest.$ac_ext <<_ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6920 #if ((' ' & 0x0FF) == 0x020)
6921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6924 # define ISLOWER(c) \
6925 (('a' <= (c) && (c) <= 'i') \
6926 || ('j' <= (c) && (c) <= 'r') \
6927 || ('s' <= (c) && (c) <= 'z'))
6928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6936 for (i = 0; i < 256; i++)
6937 if (XOR (islower (i), ISLOWER (i))
6938 || toupper (i) != TOUPPER (i))
6943 rm -f conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6947 *) ac_try_echo
=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_link") 2>&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6954 { (case "(($ac_try" in
6955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_try") 2>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6965 echo "$as_me: program exited with status $ac_status" >&5
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_stdc=no
6972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6978 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6979 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6980 if test $ac_cv_header_stdc = yes; then
6982 cat >>confdefs.h <<\_ACEOF
6983 #define STDC_HEADERS 1
6988 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6989 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6990 if test "${ac_cv_header_time+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 #include <sys/types.h>
7000 #include <sys/time.h>
7006 if ((struct tm *) 0)
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7016 *) ac_try_echo
=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1
>conftest.err
7023 cat conftest.err
>&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.
$ac_objext; then
7029 ac_cv_header_time
=yes
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.
$ac_ext >&5
7034 ac_cv_header_time
=no
7037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7039 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7040 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7041 if test $ac_cv_header_time = yes; then
7043 cat >>confdefs.h
<<\_ACEOF
7044 #define TIME_WITH_SYS_TIME 1
7049 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7050 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7051 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.
$ac_ext <<_ACEOF
7057 cat confdefs.h
>>conftest.
$ac_ext
7058 cat >>conftest.
$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 $ac_includes_default
7072 rm -f conftest.
$ac_objext
7073 if { (ac_try
="$ac_compile"
7075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7089 ac_cv_have_decl_sys_siglist=yes
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 ac_cv_have_decl_sys_siglist=no
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7100 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7101 if test $ac_cv_have_decl_sys_siglist = yes; then
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DECL_SYS_SIGLIST 1
7109 cat >>confdefs.h <<_ACEOF
7110 #define HAVE_DECL_SYS_SIGLIST 0
7117 if test $ac_cv_have_decl_sys_siglist != yes; then
7118 # For Tru64, at least:
7119 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7120 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7121 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 $ac_includes_default
7134 #ifndef __sys_siglist
7135 (void) __sys_siglist;
7142 rm -f conftest.$ac_objext
7143 if { (ac_try="$ac_compile"
7145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7146 *) ac_try_echo
=$ac_try;;
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149 (eval "$ac_compile") 2>conftest.er1
7151 grep -v '^ *+' conftest.er1
>conftest.err
7153 cat conftest.err
>&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && {
7156 test -z "$ac_c_werror_flag" ||
7157 test ! -s conftest.err
7158 } && test -s conftest.
$ac_objext; then
7159 ac_cv_have_decl___sys_siglist
=yes
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.
$ac_ext >&5
7164 ac_cv_have_decl___sys_siglist
=no
7167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7169 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7170 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7171 if test $ac_cv_have_decl___sys_siglist = yes; then
7173 cat >>confdefs.h
<<_ACEOF
7174 #define HAVE_DECL___SYS_SIGLIST 1
7179 cat >>confdefs.h
<<_ACEOF
7180 #define HAVE_DECL___SYS_SIGLIST 0
7187 if test $ac_cv_have_decl___sys_siglist = yes; then
7189 cat >>confdefs.h
<<\_ACEOF
7190 #define sys_siglist __sys_siglist
7195 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7196 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7197 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 cat >conftest.
$ac_ext <<_ACEOF
7203 cat confdefs.h
>>conftest.
$ac_ext
7204 cat >>conftest.
$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 #include <sys/types.h>
7207 #include <sys/wait.h>
7209 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7212 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7220 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7225 rm -f conftest.
$ac_objext
7226 if { (ac_try
="$ac_compile"
7228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 ac_cv_header_sys_wait_h=yes
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_cv_header_sys_wait_h=no
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7253 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7254 if test $ac_cv_header_sys_wait_h = yes; then
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_SYS_WAIT_H 1
7263 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7264 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7265 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 cat >conftest.$ac_ext <<_ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #ifdef TIME_WITH_SYS_TIME
7275 #include <sys/time.h>
7278 #ifdef HAVE_SYS_TIME_H
7279 #include <sys/time.h>
7290 static struct utimbuf x; x.actime = x.modtime;
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7299 *) ac_try_echo
=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1
>conftest.err
7306 cat conftest.err
>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.
$ac_objext; then
7312 emacs_cv_struct_utimbuf
=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.
$ac_ext >&5
7317 emacs_cv_struct_utimbuf
=no
7320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7322 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7323 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7324 if test $emacs_cv_struct_utimbuf = yes; then
7326 cat >>confdefs.h
<<\_ACEOF
7327 #define HAVE_STRUCT_UTIMBUF 1
7332 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7333 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7334 if test "${ac_cv_type_signal+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 cat >conftest.
$ac_ext <<_ACEOF
7340 cat confdefs.h
>>conftest.
$ac_ext
7341 cat >>conftest.
$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 #include <sys/types.h>
7349 return *(signal (0, 0)) (0) == 1;
7354 rm -f conftest.
$ac_objext
7355 if { (ac_try
="$ac_compile"
7357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7371 ac_cv_type_signal=int
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_type_signal=void
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7382 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7384 cat >>confdefs.h <<_ACEOF
7385 #define RETSIGTYPE $ac_cv_type_signal
7390 { echo "$as_me:$LINENO: checking for speed_t" >&5
7391 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7392 if test "${emacs_cv_speed_t+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 cat >conftest.$ac_ext <<_ACEOF
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 #include <termios.h>
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7414 *) ac_try_echo
=$ac_try;;
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7419 grep -v '^ *+' conftest.er1
>conftest.err
7421 cat conftest.err
>&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.
$ac_objext; then
7427 emacs_cv_speed_t
=yes
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.
$ac_ext >&5
7435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7437 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7438 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7439 if test $emacs_cv_speed_t = yes; then
7441 cat >>confdefs.h
<<\_ACEOF
7442 #define HAVE_SPEED_T 1
7447 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7448 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7449 if test "${emacs_cv_struct_timeval+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 cat >conftest.
$ac_ext <<_ACEOF
7455 cat confdefs.h
>>conftest.
$ac_ext
7456 cat >>conftest.
$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #ifdef TIME_WITH_SYS_TIME
7459 #include <sys/time.h>
7462 #ifdef HAVE_SYS_TIME_H
7463 #include <sys/time.h>
7471 static struct timeval x; x.tv_sec = x.tv_usec;
7476 rm -f conftest.
$ac_objext
7477 if { (ac_try
="$ac_compile"
7479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7483 (eval "$ac_compile") 2>conftest.er1
7485 grep -v '^ *+' conftest.er1 >conftest.err
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } && {
7490 test -z "$ac_c_werror_flag" ||
7491 test ! -s conftest.err
7492 } && test -s conftest.$ac_objext; then
7493 emacs_cv_struct_timeval=yes
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.$ac_ext >&5
7498 emacs_cv_struct_timeval=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7504 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7505 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7506 if test $emacs_cv_struct_timeval = yes; then
7508 cat >>confdefs.h <<\_ACEOF
7509 #define HAVE_TIMEVAL 1
7514 { echo "$as_me:$LINENO: checking for struct exception" >&5
7515 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7516 if test "${emacs_cv_struct_exception+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7529 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7538 *) ac_try_echo
=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1
>conftest.err
7545 cat conftest.err
>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.
$ac_objext; then
7551 emacs_cv_struct_exception
=yes
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.
$ac_ext >&5
7556 emacs_cv_struct_exception
=no
7559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7561 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7562 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7563 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7564 if test $emacs_cv_struct_exception != yes; then
7566 cat >>confdefs.h
<<\_ACEOF
7567 #define NO_MATHERR 1
7573 for ac_header
in sys
/socket.h
7575 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7576 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7579 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 ac_res
=`eval echo '${'$as_ac_Header'}'`
7583 { echo "$as_me:$LINENO: result: $ac_res" >&5
7584 echo "${ECHO_T}$ac_res" >&6; }
7586 # Is the header compilable?
7587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7589 cat >conftest.
$ac_ext <<_ACEOF
7592 cat confdefs.h
>>conftest.
$ac_ext
7593 cat >>conftest.
$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 #include <$ac_header>
7598 rm -f conftest.
$ac_objext
7599 if { (ac_try
="$ac_compile"
7601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7607 grep -v '^ *+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 ac_header_compiler=yes
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_header_compiler=no
7623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7625 echo "${ECHO_T}$ac_header_compiler" >&6; }
7627 # Is the header present?
7628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7630 cat >conftest.$ac_ext <<_ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 #include <$ac_header>
7638 if { (ac_try="$ac_cpp conftest.$ac_ext"
7640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7641 *) ac_try_echo
=$ac_try;;
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7646 grep -v '^ *+' conftest.er1
>conftest.err
7648 cat conftest.err
>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } >/dev
/null
&& {
7651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7654 ac_header_preproc
=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.
$ac_ext >&5
7659 ac_header_preproc
=no
7662 rm -f conftest.err conftest.
$ac_ext
7663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7664 echo "${ECHO_T}$ac_header_preproc" >&6; }
7666 # So? What about this header?
7667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7673 ac_header_preproc
=yes
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7693 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 eval "$as_ac_Header=\$ac_header_preproc"
7698 ac_res
=`eval echo '${'$as_ac_Header'}'`
7699 { echo "$as_me:$LINENO: result: $ac_res" >&5
7700 echo "${ECHO_T}$ac_res" >&6; }
7703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7704 cat >>confdefs.h
<<_ACEOF
7705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713 for ac_header
in net
/if.h
7715 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7718 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 cat >conftest.
$ac_ext <<_ACEOF
7724 cat confdefs.h
>>conftest.
$ac_ext
7725 cat >>conftest.
$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 #if HAVE_SYS_SOCKET_H
7729 #include <sys/socket.h>
7732 #include <$ac_header>
7734 rm -f conftest.
$ac_objext
7735 if { (ac_try
="$ac_compile"
7737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_compile") 2>conftest.er1
7743 grep -v '^ *+' conftest.er1 >conftest.err
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.$ac_objext; then
7751 eval "$as_ac_Header=yes"
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7756 eval "$as_ac_Header=no"
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 ac_res=`eval echo '${'$as_ac_Header'}'`
7762 { echo "$as_me:$LINENO: result: $ac_res" >&5
7763 echo "${ECHO_T}$ac_res" >&6; }
7764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7765 cat >>confdefs.h <<_ACEOF
7766 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7774 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7775 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7776 if test "${ac_cv_struct_tm+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 #include <sys/types.h>
7792 int *p = &tm.tm_sec;
7798 rm -f conftest.$ac_objext
7799 if { (ac_try="$ac_compile"
7801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7802 *) ac_try_echo
=$ac_try;;
7804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7807 grep -v '^ *+' conftest.er1
>conftest.err
7809 cat conftest.err
>&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_c_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest.
$ac_objext; then
7815 ac_cv_struct_tm
=time.h
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.
$ac_ext >&5
7820 ac_cv_struct_tm
=sys
/time.h
7823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7825 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7826 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7827 if test $ac_cv_struct_tm = sys
/time.h
; then
7829 cat >>confdefs.h
<<\_ACEOF
7830 #define TM_IN_SYS_TIME 1
7835 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7836 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7837 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 cat >conftest.
$ac_ext <<_ACEOF
7843 cat confdefs.h
>>conftest.
$ac_ext
7844 cat >>conftest.
$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 #include <sys/types.h>
7847 #include <$ac_cv_struct_tm>
7853 static struct tm ac_aggr;
7854 if (ac_aggr.tm_zone)
7860 rm -f conftest.
$ac_objext
7861 if { (ac_try
="$ac_compile"
7863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_zone=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 cat >conftest.$ac_ext <<_ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <sys/types.h>
7889 #include <$ac_cv_struct_tm>
7895 static struct tm ac_aggr;
7896 if (sizeof ac_aggr.tm_zone)
7902 rm -f conftest.$ac_objext
7903 if { (ac_try="$ac_compile"
7905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7906 *) ac_try_echo
=$ac_try;;
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_compile") 2>conftest.er1
7911 grep -v '^ *+' conftest.er1
>conftest.err
7913 cat conftest.err
>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && {
7916 test -z "$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 } && test -s conftest.
$ac_objext; then
7919 ac_cv_member_struct_tm_tm_zone
=yes
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.
$ac_ext >&5
7924 ac_cv_member_struct_tm_tm_zone
=no
7927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7932 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7933 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7934 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7936 cat >>confdefs.h
<<_ACEOF
7937 #define HAVE_STRUCT_TM_TM_ZONE 1
7943 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7945 cat >>confdefs.h
<<\_ACEOF
7946 #define HAVE_TM_ZONE 1
7950 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7951 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7952 if test "${ac_cv_have_decl_tzname+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 cat >conftest.
$ac_ext <<_ACEOF
7958 cat confdefs.h
>>conftest.
$ac_ext
7959 cat >>conftest.
$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7974 rm -f conftest.
$ac_objext
7975 if { (ac_try
="$ac_compile"
7977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 ac_cv_have_decl_tzname=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_have_decl_tzname=no
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8002 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8003 if test $ac_cv_have_decl_tzname = yes; then
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DECL_TZNAME 1
8011 cat >>confdefs.h <<_ACEOF
8012 #define HAVE_DECL_TZNAME 0
8019 { echo "$as_me:$LINENO: checking for tzname" >&5
8020 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8021 if test "${ac_cv_var_tzname+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 cat >conftest.$ac_ext <<_ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8031 #if !HAVE_DECL_TZNAME
8032 extern char *tzname[];
8038 return tzname[0][0];
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (ac_try="$ac_link"
8046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8047 *) ac_try_echo
=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_link") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1
>conftest.err
8054 cat conftest.err
>&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest
$ac_exeext &&
8060 $as_test_x conftest
$ac_exeext; then
8061 ac_cv_var_tzname
=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8070 conftest
$ac_exeext conftest.
$ac_ext
8072 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8073 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8074 if test $ac_cv_var_tzname = yes; then
8076 cat >>confdefs.h
<<\_ACEOF
8077 #define HAVE_TZNAME 1
8083 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8084 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8085 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 cat >conftest.
$ac_ext <<_ACEOF
8091 cat confdefs.h
>>conftest.
$ac_ext
8092 cat >>conftest.
$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8099 static struct tm ac_aggr;
8100 if (ac_aggr.tm_gmtoff)
8106 rm -f conftest.
$ac_objext
8107 if { (ac_try
="$ac_compile"
8109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_cv_member_struct_tm_tm_gmtoff=yes
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8128 cat >conftest.$ac_ext <<_ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8139 static struct tm ac_aggr;
8140 if (sizeof ac_aggr.tm_gmtoff)
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8150 *) ac_try_echo
=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8155 grep -v '^ *+' conftest.er1
>conftest.err
8157 cat conftest.err
>&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_c_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.
$ac_objext; then
8163 ac_cv_member_struct_tm_tm_gmtoff
=yes
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.
$ac_ext >&5
8168 ac_cv_member_struct_tm_tm_gmtoff
=no
8171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8176 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8177 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8178 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8180 cat >>confdefs.h
<<\_ACEOF
8181 #define HAVE_TM_GMTOFF 1
8186 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8187 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8188 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8191 cat >conftest.
$ac_ext <<_ACEOF
8194 cat confdefs.h
>>conftest.
$ac_ext
8195 cat >>conftest.
$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 $ac_includes_default
8198 #if HAVE_SYS_SOCKET_H
8199 #include <sys/socket.h>
8208 static struct ifreq ac_aggr;
8209 if (ac_aggr.ifr_flags)
8215 rm -f conftest.
$ac_objext
8216 if { (ac_try
="$ac_compile"
8218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_compile") 2>conftest.er1
8224 grep -v '^ *+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest.$ac_objext; then
8232 ac_cv_member_struct_ifreq_ifr_flags=yes
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 cat >conftest.$ac_ext <<_ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8244 #if HAVE_SYS_SOCKET_H
8245 #include <sys/socket.h>
8254 static struct ifreq ac_aggr;
8255 if (sizeof ac_aggr.ifr_flags)
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8265 *) ac_try_echo
=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1
>conftest.err
8272 cat conftest.err
>&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.
$ac_objext; then
8278 ac_cv_member_struct_ifreq_ifr_flags
=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.
$ac_ext >&5
8283 ac_cv_member_struct_ifreq_ifr_flags
=no
8286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8292 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8293 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8295 cat >>confdefs.h
<<_ACEOF
8296 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8301 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8302 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8303 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 cat >conftest.
$ac_ext <<_ACEOF
8309 cat confdefs.h
>>conftest.
$ac_ext
8310 cat >>conftest.
$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 #if HAVE_SYS_SOCKET_H
8314 #include <sys/socket.h>
8323 static struct ifreq ac_aggr;
8324 if (ac_aggr.ifr_hwaddr)
8330 rm -f conftest.
$ac_objext
8331 if { (ac_try
="$ac_compile"
8333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8339 grep -v '^ *+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 #if HAVE_SYS_SOCKET_H
8360 #include <sys/socket.h>
8369 static struct ifreq ac_aggr;
8370 if (sizeof ac_aggr.ifr_hwaddr)
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8380 *) ac_try_echo
=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1
>conftest.err
8387 cat conftest.err
>&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.
$ac_objext; then
8393 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.
$ac_ext >&5
8398 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8406 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8407 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8408 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8410 cat >>confdefs.h
<<_ACEOF
8411 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8416 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8417 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8418 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 cat >conftest.
$ac_ext <<_ACEOF
8424 cat confdefs.h
>>conftest.
$ac_ext
8425 cat >>conftest.
$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #if HAVE_SYS_SOCKET_H
8429 #include <sys/socket.h>
8438 static struct ifreq ac_aggr;
8439 if (ac_aggr.ifr_netmask)
8445 rm -f conftest.
$ac_objext
8446 if { (ac_try
="$ac_compile"
8448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_compile") 2>conftest.er1
8454 grep -v '^ *+' conftest.er1 >conftest.err
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
8462 ac_cv_member_struct_ifreq_ifr_netmask=yes
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #if HAVE_SYS_SOCKET_H
8475 #include <sys/socket.h>
8484 static struct ifreq ac_aggr;
8485 if (sizeof ac_aggr.ifr_netmask)
8491 rm -f conftest.$ac_objext
8492 if { (ac_try="$ac_compile"
8494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8495 *) ac_try_echo
=$ac_try;;
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_compile") 2>conftest.er1
8500 grep -v '^ *+' conftest.er1
>conftest.err
8502 cat conftest.err
>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest.
$ac_objext; then
8508 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.
$ac_ext >&5
8513 ac_cv_member_struct_ifreq_ifr_netmask
=no
8516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8522 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8523 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8525 cat >>confdefs.h
<<_ACEOF
8526 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8531 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8532 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8533 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 cat >conftest.
$ac_ext <<_ACEOF
8539 cat confdefs.h
>>conftest.
$ac_ext
8540 cat >>conftest.
$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 $ac_includes_default
8543 #if HAVE_SYS_SOCKET_H
8544 #include <sys/socket.h>
8553 static struct ifreq ac_aggr;
8554 if (ac_aggr.ifr_broadaddr)
8560 rm -f conftest.
$ac_objext
8561 if { (ac_try
="$ac_compile"
8563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8569 grep -v '^ *+' conftest.er1 >conftest.err
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && {
8574 test -z "$ac_c_werror_flag" ||
8575 test ! -s conftest.err
8576 } && test -s conftest.$ac_objext; then
8577 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 cat >conftest.$ac_ext <<_ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h. */
8588 $ac_includes_default
8589 #if HAVE_SYS_SOCKET_H
8590 #include <sys/socket.h>
8599 static struct ifreq ac_aggr;
8600 if (sizeof ac_aggr.ifr_broadaddr)
8606 rm -f conftest.$ac_objext
8607 if { (ac_try="$ac_compile"
8609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8610 *) ac_try_echo
=$ac_try;;
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_compile") 2>conftest.er1
8615 grep -v '^ *+' conftest.er1
>conftest.err
8617 cat conftest.err
>&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } && {
8620 test -z "$ac_c_werror_flag" ||
8621 test ! -s conftest.err
8622 } && test -s conftest.
$ac_objext; then
8623 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.
$ac_ext >&5
8628 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8636 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8637 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8638 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8640 cat >>confdefs.h
<<_ACEOF
8641 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8646 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8647 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8648 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 cat >conftest.
$ac_ext <<_ACEOF
8654 cat confdefs.h
>>conftest.
$ac_ext
8655 cat >>conftest.
$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #if HAVE_SYS_SOCKET_H
8659 #include <sys/socket.h>
8668 static struct ifreq ac_aggr;
8669 if (ac_aggr.ifr_addr)
8675 rm -f conftest.
$ac_objext
8676 if { (ac_try
="$ac_compile"
8678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_cv_member_struct_ifreq_ifr_addr=yes
8694 echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #if HAVE_SYS_SOCKET_H
8705 #include <sys/socket.h>
8714 static struct ifreq ac_aggr;
8715 if (sizeof ac_aggr.ifr_addr)
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8725 *) ac_try_echo
=$ac_try;;
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8730 grep -v '^ *+' conftest.er1
>conftest.err
8732 cat conftest.err
>&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest.
$ac_objext; then
8738 ac_cv_member_struct_ifreq_ifr_addr
=yes
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.
$ac_ext >&5
8743 ac_cv_member_struct_ifreq_ifr_addr
=no
8746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8751 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8752 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8753 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8755 cat >>confdefs.h
<<_ACEOF
8756 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8764 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8765 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8766 if test "$ac_cv_prog_cc_c89" != no
; then
8767 { echo "$as_me:$LINENO: result: yes" >&5
8768 echo "${ECHO_T}yes" >&6; }
8770 cat >>confdefs.h
<<\_ACEOF
8771 #define PROTOTYPES 1
8775 cat >>confdefs.h
<<\_ACEOF
8776 #define __PROTOTYPES 1
8780 { echo "$as_me:$LINENO: result: no" >&5
8781 echo "${ECHO_T}no" >&6; }
8784 { echo "$as_me:$LINENO: checking for working volatile" >&5
8785 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8786 if test "${ac_cv_c_volatile+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 cat >conftest.
$ac_ext <<_ACEOF
8792 cat confdefs.h
>>conftest.
$ac_ext
8793 cat >>conftest.
$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8801 int * volatile y = (int *) 0;
8807 rm -f conftest.
$ac_objext
8808 if { (ac_try
="$ac_compile"
8810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_compile") 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest.$ac_objext; then
8824 ac_cv_c_volatile=yes
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8835 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8836 if test $ac_cv_c_volatile = no; then
8838 cat >>confdefs.h <<\_ACEOF
8844 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8845 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8846 if test "${ac_cv_c_const+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8859 /* FIXME: Include the comments suggested by Paul. */
8861 /* Ultrix mips cc rejects this. */
8862 typedef int charset[2];
8864 /* SunOS 4.1.1 cc rejects this. */
8865 char const *const *pcpcc;
8867 /* NEC SVR4.0.2 mips cc rejects this. */
8868 struct point {int x, y;};
8869 static struct point const zero = {0,0};
8870 /* AIX XL C 1.02.0.0 rejects this.
8871 It does not let you subtract one const X* pointer from another in
8872 an arm of an if-expression whose if-part is not a constant
8874 const char *g = "string";
8875 pcpcc = &g + (g ? g-g : 0);
8876 /* HPUX 7.0 cc rejects these. */
8878 ppc = (char**) pcpcc;
8879 pcpcc = (char const *const *) ppc;
8880 { /* SCO 3.2v4 cc rejects this. */
8882 char const *s = 0 ? (char *) 0 : (char const *) 0;
8887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8889 const int *foo = &x[0];
8892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8893 typedef const int *iptr;
8897 { /* AIX XL C 1.02.0.0 rejects this saying
8898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8899 struct s { int j; const int *ap[3]; };
8900 struct s *b; b->j = 5;
8902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8906 return !cs[0] && !zero.x;
8913 rm -f conftest.$ac_objext
8914 if { (ac_try="$ac_compile"
8916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8917 *) ac_try_echo
=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1
>conftest.err
8924 cat conftest.err
>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.
$ac_objext; then
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.
$ac_ext >&5
8938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8940 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8941 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8942 if test $ac_cv_c_const = no
; then
8944 cat >>confdefs.h
<<\_ACEOF
8950 { echo "$as_me:$LINENO: checking for void * support" >&5
8951 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8952 if test "${emacs_cv_void_star+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 cat >conftest.
$ac_ext <<_ACEOF
8958 cat confdefs.h
>>conftest.
$ac_ext
8959 cat >>conftest.
$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8970 rm -f conftest.
$ac_objext
8971 if { (ac_try
="$ac_compile"
8973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
8987 emacs_cv_void_star=yes
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 emacs_cv_void_star=no
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8998 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8999 if test $emacs_cv_void_star = yes; then
9000 cat >>confdefs.h <<\_ACEOF
9001 #define POINTER_TYPE void
9005 cat >>confdefs.h <<\_ACEOF
9006 #define POINTER_TYPE char
9015 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9016 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9017 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9018 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 cat >conftest.make <<\_ACEOF
9024 @echo '@@@%%%=$(MAKE)=@@@%%%'
9026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9027 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9029 eval ac_cv_prog_make_${ac_make}_set=yes;;
9031 eval ac_cv_prog_make_${ac_make}_set=no;;
9035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9036 { echo "$as_me:$LINENO: result: yes" >&5
9037 echo "${ECHO_T}yes" >&6; }
9040 { echo "$as_me:$LINENO: result: no" >&5
9041 echo "${ECHO_T}no" >&6; }
9042 SET_MAKE="MAKE=${MAKE-make}"
9046 { echo "$as_me:$LINENO: checking for long file names" >&5
9047 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9048 if test "${ac_cv_sys_long_file_names+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 ac_cv_sys_long_file_names=yes
9052 # Test for long file names in all the places we know might matter:
9053 # . the current directory, where building will happen
9054 # $prefix/lib where we will be installing things
9055 # $exec_prefix/lib likewise
9056 # $TMPDIR if set, where it might want to write temporary files
9057 # /tmp where it might want to write temporary files
9060 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9061 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9062 # in the usual case where exec_prefix is '${prefix}'.
9064 . | /* | ?:[\\/]*) ;; #(
9067 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9068 ac_xdir=$ac_dir/cf$$
9069 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9070 ac_tf1=$ac_xdir/conftest9012345
9071 ac_tf2=$ac_xdir/conftest9012346
9072 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9073 ac_cv_sys_long_file_names=no
9074 rm -f -r "$ac_xdir" 2>/dev/null
9075 test $ac_cv_sys_long_file_names = no && break
9078 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9079 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9080 if test $ac_cv_sys_long_file_names = yes; then
9082 cat >>confdefs.h <<\_ACEOF
9083 #define HAVE_LONG_FILE_NAMES 1
9089 #### Choose a window system.
9091 { echo "$as_me:$LINENO: checking for X" >&5
9092 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9095 # Check whether --with-x was given.
9096 if test "${with_x+set}" = set; then
9100 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9101 if test "x$with_x" = xno; then
9102 # The user explicitly disabled X.
9105 case $x_includes,$x_libraries in #(
9106 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9107 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9108 { (exit 1); exit 1; }; };; #(
9109 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 # One or both of the vars are not set, and there is no cached value.
9113 ac_x_includes=no ac_x_libraries=no
9114 rm -f -r conftest.dir
9115 if mkdir conftest.dir; then
9117 cat >Imakefile <<'_ACEOF'
9119 @echo incroot='${INCROOT}'
9121 @echo usrlibdir='${USRLIBDIR}'
9123 @echo libdir='${LIBDIR}'
9125 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9126 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9127 for ac_var in incroot usrlibdir libdir; do
9128 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9130 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9131 for ac_extension in a so sl; do
9132 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9133 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9134 ac_im_usrlibdir=$ac_im_libdir; break
9137 # Screen out bogus values from the imake configuration. They are
9138 # bogus both because they are the default anyway, and because
9139 # using them would break gcc on systems where it needs fixed includes.
9140 case $ac_im_incroot in
9141 /usr/include) ac_x_includes= ;;
9142 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9144 case $ac_im_usrlibdir in
9146 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9150 rm -f -r conftest.dir
9153 # Standard set of common directories for X headers.
9154 # Check X11 before X11Rn because it is often a symlink to the current release.
9166 /usr/local/X11/include
9167 /usr/local/X11R6/include
9168 /usr/local/X11R5/include
9169 /usr/local/X11R4/include
9171 /usr/local/include/X11
9172 /usr/local/include/X11R6
9173 /usr/local/include/X11R5
9174 /usr/local/include/X11R4
9178 /usr/XFree86/include/X11
9182 /usr/unsupported/include
9184 /usr/local/x11r5/include
9185 /usr/lpp/Xamples/include
9187 /usr/openwin/include
9188 /usr/openwin/share/include'
9190 if test "$ac_x_includes" = no; then
9191 # Guess where to find include files, by looking for Xlib.h.
9192 # First, try using that file with no special directory specified.
9193 cat >conftest.$ac_ext <<_ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <X11/Xlib.h>
9201 if { (ac_try="$ac_cpp conftest.$ac_ext"
9203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9204 *) ac_try_echo
=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1
>conftest.err
9211 cat conftest.err
>&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev
/null
&& {
9214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9217 # We can compile using X headers with no special include directory.
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.
$ac_ext >&5
9223 for ac_dir
in $ac_x_header_dirs; do
9224 if test -r "$ac_dir/X11/Xlib.h"; then
9225 ac_x_includes
=$ac_dir
9231 rm -f conftest.err conftest.
$ac_ext
9232 fi # $ac_x_includes = no
9234 if test "$ac_x_libraries" = no
; then
9235 # Check for the libraries.
9236 # See if we find them without any special options.
9237 # Don't add to $LIBS permanently.
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 #include <X11/Xlib.h>
9255 rm -f conftest.
$ac_objext conftest
$ac_exeext
9256 if { (ac_try
="$ac_link"
9258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_link") 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && {
9269 test -z "$ac_c_werror_flag" ||
9270 test ! -s conftest.err
9271 } && test -s conftest$ac_exeext &&
9272 $as_test_x conftest$ac_exeext; then
9274 # We can link X programs with no special library path.
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9281 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9283 # Don't even attempt the hair of trying to link an X program!
9284 for ac_extension in a so sl; do
9285 if test -r "$ac_dir/libX11.$ac_extension"; then
9286 ac_x_libraries=$ac_dir
9293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9294 conftest$ac_exeext conftest.$ac_ext
9295 fi # $ac_x_libraries = no
9297 case $ac_x_includes,$ac_x_libraries in #(
9299 # Didn't find X, or a directory has "'" in its name.
9300 ac_cv_have_x="have_x=no";; #(
9302 # Record where we found X for the cache.
9303 ac_cv_have_x="have_x=yes\
9304 ac_x_includes='$ac_x_includes'\
9305 ac_x_libraries='$ac_x_libraries'"
9311 eval "$ac_cv_have_x"
9314 if test "$have_x" != yes; then
9315 { echo "$as_me:$LINENO: result: $have_x" >&5
9316 echo "${ECHO_T}$have_x" >&6; }
9319 # If each of the values was on the command line, it overrides each guess.
9320 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9321 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9322 # Update the cache value to reflect the command line values.
9323 ac_cv_have_x="have_x=yes\
9324 ac_x_includes='$x_includes'\
9325 ac_x_libraries='$x_libraries'"
9326 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9327 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9330 if test "$no_x" = yes; then
9336 if test "${x_libraries}" != NONE; then
9337 if test -n "${x_libraries}"; then
9338 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9339 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9341 x_default_search_path=""
9342 x_search_path=${x_libraries}
9343 if test -z "${x_search_path}"; then
9344 x_search_path=/usr/lib
9346 for x_library in `echo ${x_search_path}: | \
9347 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9349 ${x_library}/X11/%L/%T/%N%C%S:\
9350 ${x_library}/X11/%l/%T/%N%C%S:\
9351 ${x_library}/X11/%T/%N%C%S:\
9352 ${x_library}/X11/%L/%T/%N%S:\
9353 ${x_library}/X11/%l/%T/%N%S:\
9354 ${x_library}/X11/%T/%N%S"
9355 if test x"${x_default_search_path}" = x; then
9356 x_default_search_path=${x_search_path}
9358 x_default_search_path="${x_search_path}:${x_default_search_path}"
9362 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9363 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9366 if test x"${x_includes}" = x; then
9367 bitmapdir=/usr/include/X11/bitmaps
9369 # accumulate include directories that have X11 bitmap subdirectories
9371 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9372 if test -d "${bmd}/X11/bitmaps"; then
9373 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9375 if test -d "${bmd}/bitmaps"; then
9376 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9379 if test ${bmd_acc} != "dummyval"; then
9380 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9385 if test "${with_carbon}" != no; then
9386 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9387 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9388 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9389 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9393 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9395 # Is the header compilable?
9396 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9397 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9404 $ac_includes_default
9405 #include <Carbon/Carbon.h>
9407 rm -f conftest.$ac_objext
9408 if { (ac_try="$ac_compile"
9410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9411 *) ac_try_echo
=$ac_try;;
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_compile") 2>conftest.er1
9416 grep -v '^ *+' conftest.er1
>conftest.err
9418 cat conftest.err
>&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && {
9421 test -z "$ac_c_werror_flag" ||
9422 test ! -s conftest.err
9423 } && test -s conftest.
$ac_objext; then
9424 ac_header_compiler
=yes
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.
$ac_ext >&5
9429 ac_header_compiler
=no
9432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9434 echo "${ECHO_T}$ac_header_compiler" >&6; }
9436 # Is the header present?
9437 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9438 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9439 cat >conftest.
$ac_ext <<_ACEOF
9442 cat confdefs.h
>>conftest.
$ac_ext
9443 cat >>conftest.
$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9445 #include <Carbon/Carbon.h>
9447 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9455 grep -v '^ *+' conftest.er1 >conftest.err
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } >/dev/null && {
9460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9461 test ! -s conftest.err
9463 ac_header_preproc=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_header_preproc=no
9471 rm -f conftest.err conftest.$ac_ext
9472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9473 echo "${ECHO_T}$ac_header_preproc" >&6; }
9475 # So? What about this header?
9476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9478 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9479 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9481 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9482 ac_header_preproc=yes
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9491 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9492 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9493 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9494 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9495 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9496 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9500 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9501 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9502 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9507 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9508 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9511 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9517 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9518 if test "${with_carbon+set}" != set \
9519 && test "${carbon_appdir_x+set}" != set; then
9520 for var in with_x with_x_toolkit with_gtk with_xim \
9521 with_xpm with_jpeg with_tiff with_gif with_png; do
9522 if eval test \"\${$var+set}\" = set; then
9529 if test "${HAVE_CARBON}" = yes; then
9533 case "${window_system}" in
9537 case "${with_x_toolkit}" in
9538 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9539 motif ) USE_X_TOOLKIT=MOTIF ;;
9541 USE_X_TOOLKIT=none ;;
9542 no ) USE_X_TOOLKIT=none ;;
9543 * ) USE_X_TOOLKIT=maybe ;;
9553 ### If we're using X11, we should use the X menu package.
9556 yes ) HAVE_MENUS=yes ;;
9559 if test "${opsys}" = "hpux9"; then
9560 case "${x_libraries}" in
9562 opsysfile="s/hpux9-x11r4.h"
9567 if test "${opsys}" = "hpux9shr"; then
9568 case "${x_libraries}" in
9570 opsysfile="s/hpux9shxr4.h"
9575 ### Compute the unexec source name from the object name.
9576 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9578 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9579 # Assume not, until told otherwise.
9582 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9583 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9584 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 cat >conftest.$ac_ext <<_ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9593 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9595 #define malloc_get_state innocuous_malloc_get_state
9597 /* System header to define __stub macros and hopefully few prototypes,
9598 which can conflict with char malloc_get_state (); below.
9599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9600 <limits.h> exists even on freestanding compilers. */
9603 # include <limits.h>
9605 # include <assert.h>
9608 #undef malloc_get_state
9610 /* Override any GCC internal prototype to avoid an error.
9611 Use char because int might match the return type of a GCC
9612 builtin and then its argument prototype would still apply. */
9616 char malloc_get_state ();
9617 /* The GNU C library defines this for functions which it implements
9618 to always fail with ENOSYS. Some functions are actually named
9619 something starting with __ and the normal name is an alias. */
9620 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9627 return malloc_get_state ();
9632 rm -f conftest.$ac_objext conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9636 *) ac_try_echo
=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_link") 2>conftest.er1
9641 grep -v '^ *+' conftest.er1
>conftest.err
9643 cat conftest.err
>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_c_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest
$ac_exeext &&
9649 $as_test_x conftest
$ac_exeext; then
9650 ac_cv_func_malloc_get_state
=yes
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9655 ac_cv_func_malloc_get_state
=no
9658 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9659 conftest
$ac_exeext conftest.
$ac_ext
9661 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9662 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9663 if test $ac_cv_func_malloc_get_state = yes; then
9669 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9670 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9671 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 cat >conftest.
$ac_ext <<_ACEOF
9677 cat confdefs.h
>>conftest.
$ac_ext
9678 cat >>conftest.
$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9682 #define malloc_set_state innocuous_malloc_set_state
9684 /* System header to define __stub macros and hopefully few prototypes,
9685 which can conflict with char malloc_set_state (); below.
9686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9687 <limits.h> exists even on freestanding compilers. */
9690 # include <limits.h>
9692 # include <assert.h>
9695 #undef malloc_set_state
9697 /* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
9703 char malloc_set_state ();
9704 /* The GNU C library defines this for functions which it implements
9705 to always fail with ENOSYS. Some functions are actually named
9706 something starting with __ and the normal name is an alias. */
9707 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9714 return malloc_set_state ();
9719 rm -f conftest.
$ac_objext conftest
$ac_exeext
9720 if { (ac_try
="$ac_link"
9722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 ac_cv_func_malloc_set_state=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_func_malloc_set_state=no
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 conftest$ac_exeext conftest.$ac_ext
9748 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9749 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9750 if test $ac_cv_func_malloc_set_state = yes; then
9756 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9757 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9758 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 extern void (* __after_morecore_hook)();
9771 __after_morecore_hook = 0
9776 rm -f conftest.$ac_objext conftest$ac_exeext
9777 if { (ac_try="$ac_link"
9779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9780 *) ac_try_echo
=$ac_try;;
9782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_link") 2>conftest.er1
9785 grep -v '^ *+' conftest.er1
>conftest.err
9787 cat conftest.err
>&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } && {
9790 test -z "$ac_c_werror_flag" ||
9791 test ! -s conftest.err
9792 } && test -s conftest
$ac_exeext &&
9793 $as_test_x conftest
$ac_exeext; then
9794 emacs_cv_var___after_morecore_hook
=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 emacs_cv_var___after_morecore_hook
=no
9802 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9803 conftest
$ac_exeext conftest.
$ac_ext
9805 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9806 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9807 if test $emacs_cv_var___after_morecore_hook = no
; then
9810 if test "${system_malloc}" = "yes"; then
9813 (The GNU allocators don't work with this system configuration.)"
9815 if test "$doug_lea_malloc" = "yes" ; then
9816 if test "$GNU_MALLOC" = yes ; then
9818 (Using Doug Lea's new malloc from the GNU C Library.)"
9821 cat >>confdefs.h
<<\_ACEOF
9822 #define DOUG_LEA_MALLOC 1
9827 if test x
"${REL_ALLOC}" = x
; then
9828 REL_ALLOC
=${GNU_MALLOC}
9834 for ac_header
in stdlib.h unistd.h
9836 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9837 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9840 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 ac_res
=`eval echo '${'$as_ac_Header'}'`
9844 { echo "$as_me:$LINENO: result: $ac_res" >&5
9845 echo "${ECHO_T}$ac_res" >&6; }
9847 # Is the header compilable?
9848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9850 cat >conftest.
$ac_ext <<_ACEOF
9853 cat confdefs.h
>>conftest.
$ac_ext
9854 cat >>conftest.
$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9856 $ac_includes_default
9857 #include <$ac_header>
9859 rm -f conftest.
$ac_objext
9860 if { (ac_try
="$ac_compile"
9862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.$ac_objext; then
9876 ac_header_compiler=yes
9878 echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9881 ac_header_compiler=no
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9886 echo "${ECHO_T}$ac_header_compiler" >&6; }
9888 # Is the header present?
9889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 #include <$ac_header>
9899 if { (ac_try="$ac_cpp conftest.$ac_ext"
9901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9902 *) ac_try_echo
=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9907 grep -v '^ *+' conftest.er1
>conftest.err
9909 cat conftest.err
>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } >/dev
/null
&& {
9912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9913 test ! -s conftest.err
9915 ac_header_preproc
=yes
9917 echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.
$ac_ext >&5
9920 ac_header_preproc
=no
9923 rm -f conftest.err conftest.
$ac_ext
9924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9925 echo "${ECHO_T}$ac_header_preproc" >&6; }
9927 # So? What about this header?
9928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9934 ac_header_preproc
=yes
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9954 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 eval "$as_ac_Header=\$ac_header_preproc"
9959 ac_res
=`eval echo '${'$as_ac_Header'}'`
9960 { echo "$as_me:$LINENO: result: $ac_res" >&5
9961 echo "${ECHO_T}$ac_res" >&6; }
9964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9965 cat >>confdefs.h
<<_ACEOF
9966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9974 for ac_func
in getpagesize
9976 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9979 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 cat >conftest.
$ac_ext <<_ACEOF
9985 cat confdefs.h
>>conftest.
$ac_ext
9986 cat >>conftest.
$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9990 #define $ac_func innocuous_$ac_func
9992 /* System header to define __stub macros and hopefully few prototypes,
9993 which can conflict with char $ac_func (); below.
9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995 <limits.h> exists even on freestanding compilers. */
9998 # include <limits.h>
10000 # include <assert.h>
10005 /* Override any GCC internal prototype to avoid an error.
10006 Use char because int might match the return type of a GCC
10007 builtin and then its argument prototype would still apply. */
10012 /* The GNU C library defines this for functions which it implements
10013 to always fail with ENOSYS. Some functions are actually named
10014 something starting with __ and the normal name is an alias. */
10015 #if defined __stub_$ac_func || defined __stub___$ac_func
10022 return $ac_func ();
10027 rm -f conftest.
$ac_objext conftest
$ac_exeext
10028 if { (ac_try
="$ac_link"
10029 case "(($ac_try" in
10030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest$ac_exeext &&
10044 $as_test_x conftest$ac_exeext; then
10045 eval "$as_ac_var=yes"
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10050 eval "$as_ac_var=no"
10053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054 conftest$ac_exeext conftest.$ac_ext
10056 ac_res=`eval echo '${'$as_ac_var'}'`
10057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10059 if test `eval echo '${'$as_ac_var'}'` = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10067 { echo "$as_me:$LINENO: checking for working mmap" >&5
10068 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10069 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 if test "$cross_compiling" = yes; then
10073 ac_cv_func_mmap_fixed_mapped=no
10075 cat >conftest.$ac_ext <<_ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 $ac_includes_default
10082 /* malloc might have been renamed as rpl_malloc. */
10085 /* Thanks to Mike Haertel and Jim Avera for this test.
10086 Here is a matrix of mmap possibilities:
10087 mmap private not fixed
10088 mmap private fixed at somewhere currently unmapped
10089 mmap private fixed at somewhere already mapped
10090 mmap shared not fixed
10091 mmap shared fixed at somewhere currently unmapped
10092 mmap shared fixed at somewhere already mapped
10093 For private mappings, we should verify that changes cannot be read()
10094 back from the file, nor mmap's back from the file at a different
10095 address. (There have been systems where private was not correctly
10096 implemented like the infamous i386 svr4.0, and systems where the
10097 VM page cache was not coherent with the file system buffer cache
10098 like early versions of FreeBSD and possibly contemporary NetBSD.)
10099 For shared mappings, we should conversely verify that changes get
10100 propagated back to all the places they're supposed to be.
10102 Grep wants private fixed already mapped.
10103 The main things grep needs to know about mmap are:
10104 * does it exist and is it safe to write into the mmap'd area
10105 * how to use it (BSD variants) */
10108 #include <sys/mman.h>
10110 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10114 /* This mess was copied from the GNU getpagesize.h. */
10115 #ifndef HAVE_GETPAGESIZE
10116 /* Assume that all systems that can run configure have sys/param.h. */
10117 # ifndef HAVE_SYS_PARAM_H
10118 # define HAVE_SYS_PARAM_H 1
10121 # ifdef _SC_PAGESIZE
10122 # define getpagesize() sysconf(_SC_PAGESIZE)
10123 # else /* no _SC_PAGESIZE */
10124 # ifdef HAVE_SYS_PARAM_H
10125 # include <sys/param.h>
10126 # ifdef EXEC_PAGESIZE
10127 # define getpagesize() EXEC_PAGESIZE
10128 # else /* no EXEC_PAGESIZE */
10130 # define getpagesize() NBPG * CLSIZE
10133 # endif /* no CLSIZE */
10134 # else /* no NBPG */
10136 # define getpagesize() NBPC
10137 # else /* no NBPC */
10139 # define getpagesize() PAGESIZE
10140 # endif /* PAGESIZE */
10141 # endif /* no NBPC */
10142 # endif /* no NBPG */
10143 # endif /* no EXEC_PAGESIZE */
10144 # else /* no HAVE_SYS_PARAM_H */
10145 # define getpagesize() 8192 /* punt totally */
10146 # endif /* no HAVE_SYS_PARAM_H */
10147 # endif /* no _SC_PAGESIZE */
10149 #endif /* no HAVE_GETPAGESIZE */
10154 char *data, *data2, *data3;
10158 pagesize = getpagesize ();
10160 /* First, make a file with some known garbage in it. */
10161 data = (char *) malloc (pagesize);
10164 for (i = 0; i < pagesize; ++i)
10165 *(data + i) = rand ();
10167 fd = creat ("conftest.mmap", 0600);
10170 if (write (fd, data, pagesize) != pagesize)
10174 /* Next, try to mmap the file at a fixed address which already has
10175 something else allocated at it. If we can, also make sure that
10176 we see the same garbage. */
10177 fd = open ("conftest.mmap", O_RDWR);
10180 data2 = (char *) malloc (2 * pagesize);
10183 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10184 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10185 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10187 for (i = 0; i < pagesize; ++i)
10188 if (*(data + i) != *(data2 + i))
10191 /* Finally, make sure that changes to the mapped area do not
10192 percolate back to the file as seen by read(). (This is a bug on
10193 some variants of i386 svr4.0.) */
10194 for (i = 0; i < pagesize; ++i)
10195 *(data2 + i) = *(data2 + i) + 1;
10196 data3 = (char *) malloc (pagesize);
10199 if (read (fd, data3, pagesize) != pagesize)
10201 for (i = 0; i < pagesize; ++i)
10202 if (*(data + i) != *(data3 + i))
10208 rm -f conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10212 *) ac_try_echo
=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_link") 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10219 { (case "(($ac_try" in
10220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_func_mmap_fixed_mapped=yes
10230 echo "$as_me: program exited with status $ac_status" >&5
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ( exit $ac_status )
10235 ac_cv_func_mmap_fixed_mapped=no
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10242 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10243 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10244 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_MMAP 1
10251 rm -f conftest.mmap
10253 if test $use_mmap_for_buffers = yes; then
10257 LIBS="$libsrc_libs $LIBS"
10260 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10261 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10262 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 ac_check_lib_save_LIBS=$LIBS
10266 LIBS="-ldnet $LIBS"
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10274 /* Override any GCC internal prototype to avoid an error.
10275 Use char because int might match the return type of a GCC
10276 builtin and then its argument prototype would still apply. */
10284 return dnet_ntoa ();
10289 rm -f conftest.$ac_objext conftest$ac_exeext
10290 if { (ac_try="$ac_link"
10291 case "(($ac_try" in
10292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10293 *) ac_try_echo
=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_link") 2>conftest.er1
10298 grep -v '^ *+' conftest.er1
>conftest.err
10300 cat conftest.err
>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && {
10303 test -z "$ac_c_werror_flag" ||
10304 test ! -s conftest.err
10305 } && test -s conftest
$ac_exeext &&
10306 $as_test_x conftest
$ac_exeext; then
10307 ac_cv_lib_dnet_dnet_ntoa
=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.
$ac_ext >&5
10312 ac_cv_lib_dnet_dnet_ntoa
=no
10315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10316 conftest
$ac_exeext conftest.
$ac_ext
10317 LIBS
=$ac_check_lib_save_LIBS
10319 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10320 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10321 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10322 cat >>confdefs.h
<<_ACEOF
10323 #define HAVE_LIBDNET 1
10326 LIBS
="-ldnet $LIBS"
10331 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10332 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10333 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 ac_check_lib_save_LIBS
=$LIBS
10337 LIBS
="-lXbsd $LIBS"
10338 cat >conftest.
$ac_ext <<_ACEOF
10341 cat confdefs.h
>>conftest.
$ac_ext
10342 cat >>conftest.
$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10354 rm -f conftest.
$ac_objext conftest
$ac_exeext
10355 if { (ac_try
="$ac_link"
10356 case "(($ac_try" in
10357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest$ac_exeext &&
10371 $as_test_x conftest$ac_exeext; then
10372 ac_cv_lib_Xbsd_main=yes
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10377 ac_cv_lib_Xbsd_main=no
10380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10381 conftest$ac_exeext conftest.$ac_ext
10382 LIBS=$ac_check_lib_save_LIBS
10384 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10385 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10386 if test $ac_cv_lib_Xbsd_main = yes; then
10387 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10392 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10393 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10394 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 ac_check_lib_save_LIBS=$LIBS
10398 LIBS="-lpthreads $LIBS"
10399 cat >conftest.$ac_ext <<_ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h. */
10406 /* Override any GCC internal prototype to avoid an error.
10407 Use char because int might match the return type of a GCC
10408 builtin and then its argument prototype would still apply. */
10416 return cma_open ();
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (ac_try="$ac_link"
10423 case "(($ac_try" in
10424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10425 *) ac_try_echo
=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_link") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1
>conftest.err
10432 cat conftest.err
>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest
$ac_exeext &&
10438 $as_test_x conftest
$ac_exeext; then
10439 ac_cv_lib_pthreads_cma_open
=yes
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.
$ac_ext >&5
10444 ac_cv_lib_pthreads_cma_open
=no
10447 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10448 conftest
$ac_exeext conftest.
$ac_ext
10449 LIBS
=$ac_check_lib_save_LIBS
10451 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10452 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10453 if test $ac_cv_lib_pthreads_cma_open = yes; then
10454 cat >>confdefs.h
<<_ACEOF
10455 #define HAVE_LIBPTHREADS 1
10458 LIBS
="-lpthreads $LIBS"
10463 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10464 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10465 if test -d /usr
/X386
/include
; then
10467 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10471 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10472 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10477 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10478 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10479 if test "${gdb_cv_bigtoc+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10485 *) gdb_cv_bigtoc
=-bbigtoc ;;
10488 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10489 cat >conftest.
$ac_ext <<_ACEOF
10492 cat confdefs.h
>>conftest.
$ac_ext
10493 cat >>conftest.
$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10504 rm -f conftest.
$ac_objext conftest
$ac_exeext
10505 if { (ac_try
="$ac_link"
10506 case "(($ac_try" in
10507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest$ac_exeext &&
10521 $as_test_x conftest$ac_exeext; then
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10534 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10535 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10539 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10540 # used for the tests that follow. We set them back to REAL_CFLAGS and
10541 # REAL_CPPFLAGS later on.
10543 REAL_CPPFLAGS="$CPPFLAGS"
10545 if test "${HAVE_X11}" = "yes"; then
10546 DEFS="$C_SWITCH_X_SITE $DEFS"
10547 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10549 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10550 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10552 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10553 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10554 # but it's more convenient here to set LD_RUN_PATH
10555 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10556 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10557 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10561 if test "${opsys}" = "gnu-linux"; then
10562 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10563 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10574 XOpenDisplay ("foo");
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (ac_try="$ac_link"
10581 case "(($ac_try" in
10582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10583 *) ac_try_echo
=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_link") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1
>conftest.err
10590 cat conftest.err
>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest
$ac_exeext &&
10596 $as_test_x conftest
$ac_exeext; then
10597 xlinux_first_failure
=no
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.
$ac_ext >&5
10602 xlinux_first_failure
=yes
10605 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10606 conftest
$ac_exeext conftest.
$ac_ext
10607 if test "${xlinux_first_failure}" = "yes"; then
10608 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10609 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10610 OLD_CPPFLAGS
="$CPPFLAGS"
10612 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10613 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10614 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10615 LIBS
="$LIBS -b i486-linuxaout"
10616 cat >conftest.
$ac_ext <<_ACEOF
10619 cat confdefs.h
>>conftest.
$ac_ext
10620 cat >>conftest.
$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10626 XOpenDisplay ("foo");
10631 rm -f conftest.
$ac_objext conftest
$ac_exeext
10632 if { (ac_try
="$ac_link"
10633 case "(($ac_try" in
10634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10649 xlinux_second_failure=no
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 xlinux_second_failure=yes
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10659 if test "${xlinux_second_failure}" = "yes"; then
10660 # If we get the same failure with -b, there is no use adding -b.
10661 # So take it out. This plays safe.
10662 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10663 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10664 CPPFLAGS="$OLD_CPPFLAGS"
10666 { echo "$as_me:$LINENO: result: no" >&5
10667 echo "${ECHO_T}no" >&6; }
10669 { echo "$as_me:$LINENO: result: yes" >&5
10670 echo "${ECHO_T}yes" >&6; }
10673 { echo "$as_me:$LINENO: result: no" >&5
10674 echo "${ECHO_T}no" >&6; }
10678 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10679 # header files included from there.
10680 { echo "$as_me:$LINENO: checking for Xkb" >&5
10681 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <X11/Xlib.h>
10689 #include <X11/XKBlib.h>
10693 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (ac_try="$ac_link"
10700 case "(($ac_try" in
10701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10702 *) ac_try_echo
=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_link") 2>conftest.er1
10707 grep -v '^ *+' conftest.er1
>conftest.err
10709 cat conftest.err
>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 } && test -s conftest
$ac_exeext &&
10715 $as_test_x conftest
$ac_exeext; then
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.
$ac_ext >&5
10724 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10725 conftest
$ac_exeext conftest.
$ac_ext
10726 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10727 echo "${ECHO_T}$emacs_xkb" >&6; }
10728 if test $emacs_xkb = yes; then
10730 cat >>confdefs.h
<<\_ACEOF
10731 #define HAVE_XKBGETKEYBOARD 1
10740 for ac_func
in XrmSetDatabase XScreenResourceString \
10741 XScreenNumberOfScreen XSetWMProtocols
10743 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10746 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 cat >conftest.
$ac_ext <<_ACEOF
10752 cat confdefs.h
>>conftest.
$ac_ext
10753 cat >>conftest.
$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10757 #define $ac_func innocuous_$ac_func
10759 /* System header to define __stub macros and hopefully few prototypes,
10760 which can conflict with char $ac_func (); below.
10761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10762 <limits.h> exists even on freestanding compilers. */
10765 # include <limits.h>
10767 # include <assert.h>
10772 /* Override any GCC internal prototype to avoid an error.
10773 Use char because int might match the return type of a GCC
10774 builtin and then its argument prototype would still apply. */
10779 /* The GNU C library defines this for functions which it implements
10780 to always fail with ENOSYS. Some functions are actually named
10781 something starting with __ and the normal name is an alias. */
10782 #if defined __stub_$ac_func || defined __stub___$ac_func
10789 return $ac_func ();
10794 rm -f conftest.
$ac_objext conftest
$ac_exeext
10795 if { (ac_try
="$ac_link"
10796 case "(($ac_try" in
10797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10803 grep -v '^ *+' conftest.er1 >conftest.err
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest$ac_exeext &&
10811 $as_test_x conftest$ac_exeext; then
10812 eval "$as_ac_var=yes"
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10817 eval "$as_ac_var=no"
10820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10821 conftest$ac_exeext conftest.$ac_ext
10823 ac_res=`eval echo '${'$as_ac_var'}'`
10824 { echo "$as_me:$LINENO: result: $ac_res" >&5
10825 echo "${ECHO_T}$ac_res" >&6; }
10826 if test `eval echo '${'$as_ac_var'}'` = yes; then
10827 cat >>confdefs.h <<_ACEOF
10828 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10836 if test "${window_system}" = "x11"; then
10837 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10838 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10839 if test "${emacs_cv_x11_version_6+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 cat >conftest.$ac_ext <<_ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 #include <X11/Xlib.h>
10852 #if XlibSpecificationRelease < 6
10860 rm -f conftest.$ac_objext conftest$ac_exeext
10861 if { (ac_try="$ac_link"
10862 case "(($ac_try" in
10863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10864 *) ac_try_echo
=$ac_try;;
10866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_link") 2>conftest.er1
10869 grep -v '^ *+' conftest.er1
>conftest.err
10871 cat conftest.err
>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && {
10874 test -z "$ac_c_werror_flag" ||
10875 test ! -s conftest.err
10876 } && test -s conftest
$ac_exeext &&
10877 $as_test_x conftest
$ac_exeext; then
10878 emacs_cv_x11_version_6
=yes
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.
$ac_ext >&5
10883 emacs_cv_x11_version_6
=no
10886 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10887 conftest
$ac_exeext conftest.
$ac_ext
10890 if test $emacs_cv_x11_version_6 = yes; then
10891 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10892 echo "${ECHO_T}6 or newer" >&6; }
10894 cat >>confdefs.h
<<\_ACEOF
10895 #define HAVE_X11R6 1
10899 { echo "$as_me:$LINENO: result: before 6" >&5
10900 echo "${ECHO_T}before 6" >&6; }
10904 if test "${window_system}" = "x11"; then
10905 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10906 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10907 if test "${emacs_cv_x11_version_5+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 cat >conftest.
$ac_ext <<_ACEOF
10913 cat confdefs.h
>>conftest.
$ac_ext
10914 cat >>conftest.
$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 #include <X11/Xlib.h>
10920 #if XlibSpecificationRelease < 5
10928 rm -f conftest.
$ac_objext conftest
$ac_exeext
10929 if { (ac_try
="$ac_link"
10930 case "(($ac_try" in
10931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest$ac_exeext &&
10945 $as_test_x conftest$ac_exeext; then
10946 emacs_cv_x11_version_5=yes
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 emacs_cv_x11_version_5=no
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955 conftest$ac_exeext conftest.$ac_ext
10958 if test $emacs_cv_x11_version_5 = yes; then
10959 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10960 echo "${ECHO_T}5 or newer" >&6; }
10963 cat >>confdefs.h <<\_ACEOF
10964 #define HAVE_X11R5 1
10969 { echo "$as_me:$LINENO: result: before 5" >&5
10970 echo "${ECHO_T}before 5" >&6; }
10975 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10978 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10979 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10980 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10981 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10982 { (exit 1); exit 1; }; };
10986 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10988 if test "X${with_pkg_config_prog}" != X; then
10989 PKG_CONFIG="${with_pkg_config_prog}"
10994 if test -z "$PKG_CONFIG"; then
10995 # Extract the first word of "pkg-config", so it can be a program name with args.
10996 set dummy pkg-config; ac_word=$2
10997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10999 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 case $PKG_CONFIG in
11004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11027 if test -n "$PKG_CONFIG"; then
11028 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11029 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11031 { echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6; }
11038 if test "$PKG_CONFIG" = "no" ; then
11039 { { echo "$as_me:$LINENO: error:
11040 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11041 echo "$as_me: error:
11042 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11043 { (exit 1); exit 1; }; }
11045 PKG_CONFIG_MIN_VERSION=0.9.0
11046 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11047 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11048 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11050 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11051 { echo "$as_me:$LINENO: result: yes" >&5
11052 echo "${ECHO_T}yes" >&6; }
11055 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11056 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11057 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11058 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11059 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11061 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11062 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11063 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11064 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11065 echo "${ECHO_T}$GTK_LIBS" >&6; }
11067 { echo "$as_me:$LINENO: result: no" >&5
11068 echo "${ECHO_T}no" >&6; }
11071 ## If we have a custom action on failure, don't print errors, but
11072 ## do set a variable so people can do so.
11073 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11074 echo $GTK_PKG_ERRORS
11080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11085 if test $succeeded = yes; then
11088 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11089 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11090 { (exit 1); exit 1; }; }
11095 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11096 CFLAGS="$CFLAGS $GTK_CFLAGS"
11097 LIBS="$GTK_LIBS $LIBS"
11100 for ac_func in gtk_main
11102 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 cat >conftest.$ac_ext <<_ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11116 #define $ac_func innocuous_$ac_func
11118 /* System header to define __stub macros and hopefully few prototypes,
11119 which can conflict with char $ac_func (); below.
11120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11121 <limits.h> exists even on freestanding compilers. */
11124 # include <limits.h>
11126 # include <assert.h>
11131 /* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
11138 /* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined __stub_$ac_func || defined __stub___$ac_func
11148 return $ac_func ();
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (ac_try="$ac_link"
11155 case "(($ac_try" in
11156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11157 *) ac_try_echo
=$ac_try;;
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_link") 2>conftest.er1
11162 grep -v '^ *+' conftest.er1
>conftest.err
11164 cat conftest.err
>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } && {
11167 test -z "$ac_c_werror_flag" ||
11168 test ! -s conftest.err
11169 } && test -s conftest
$ac_exeext &&
11170 $as_test_x conftest
$ac_exeext; then
11171 eval "$as_ac_var=yes"
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.
$ac_ext >&5
11176 eval "$as_ac_var=no"
11179 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11180 conftest
$ac_exeext conftest.
$ac_ext
11182 ac_res
=`eval echo '${'$as_ac_var'}'`
11183 { echo "$as_me:$LINENO: result: $ac_res" >&5
11184 echo "${ECHO_T}$ac_res" >&6; }
11185 if test `eval echo '${'$as_ac_var'}'` = yes; then
11186 cat >>confdefs.h
<<_ACEOF
11187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11193 if test "${GTK_COMPILES}" != "yes"; then
11194 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11195 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11196 { (exit 1); exit 1; }; };
11201 cat >>confdefs.h
<<\_ACEOF
11207 if test "$with_toolkit_scroll_bars" != no
; then
11208 with_toolkit_scroll_bars
=yes
11211 HAVE_GTK_MULTIDISPLAY
=no
11213 for ac_func
in gdk_display_open
11215 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11218 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 cat >conftest.
$ac_ext <<_ACEOF
11224 cat confdefs.h
>>conftest.
$ac_ext
11225 cat >>conftest.
$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11229 #define $ac_func innocuous_$ac_func
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below.
11233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11234 <limits.h> exists even on freestanding compilers. */
11237 # include <limits.h>
11239 # include <assert.h>
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11251 /* The GNU C library defines this for functions which it implements
11252 to always fail with ENOSYS. Some functions are actually named
11253 something starting with __ and the normal name is an alias. */
11254 #if defined __stub_$ac_func || defined __stub___$ac_func
11261 return $ac_func ();
11266 rm -f conftest.
$ac_objext conftest
$ac_exeext
11267 if { (ac_try
="$ac_link"
11268 case "(($ac_try" in
11269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_link") 2>conftest.er1
11275 grep -v '^ *+' conftest.er1 >conftest.err
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest$ac_exeext &&
11283 $as_test_x conftest$ac_exeext; then
11284 eval "$as_ac_var=yes"
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11289 eval "$as_ac_var=no"
11292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11293 conftest$ac_exeext conftest.$ac_ext
11295 ac_res=`eval echo '${'$as_ac_var'}'`
11296 { echo "$as_me:$LINENO: result: $ac_res" >&5
11297 echo "${ECHO_T}$ac_res" >&6; }
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11302 HAVE_GTK_MULTIDISPLAY=yes
11306 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11308 cat >>confdefs.h <<\_ACEOF
11309 #define HAVE_GTK_MULTIDISPLAY 1
11313 HAVE_GTK_FILE_SELECTION=no
11315 for ac_func in gtk_file_selection_new
11317 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 cat >conftest.$ac_ext <<_ACEOF
11326 cat confdefs.h >>conftest.$ac_ext
11327 cat >>conftest.$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11331 #define $ac_func innocuous_$ac_func
11333 /* System header to define __stub macros and hopefully few prototypes,
11334 which can conflict with char $ac_func (); below.
11335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11336 <limits.h> exists even on freestanding compilers. */
11339 # include <limits.h>
11341 # include <assert.h>
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11353 /* The GNU C library defines this for functions which it implements
11354 to always fail with ENOSYS. Some functions are actually named
11355 something starting with __ and the normal name is an alias. */
11356 #if defined __stub_$ac_func || defined __stub___$ac_func
11363 return $ac_func ();
11368 rm -f conftest.$ac_objext conftest$ac_exeext
11369 if { (ac_try="$ac_link"
11370 case "(($ac_try" in
11371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11372 *) ac_try_echo
=$ac_try;;
11374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_link") 2>conftest.er1
11377 grep -v '^ *+' conftest.er1
>conftest.err
11379 cat conftest.err
>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } && {
11382 test -z "$ac_c_werror_flag" ||
11383 test ! -s conftest.err
11384 } && test -s conftest
$ac_exeext &&
11385 $as_test_x conftest
$ac_exeext; then
11386 eval "$as_ac_var=yes"
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.
$ac_ext >&5
11391 eval "$as_ac_var=no"
11394 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11395 conftest
$ac_exeext conftest.
$ac_ext
11397 ac_res
=`eval echo '${'$as_ac_var'}'`
11398 { echo "$as_me:$LINENO: result: $ac_res" >&5
11399 echo "${ECHO_T}$ac_res" >&6; }
11400 if test `eval echo '${'$as_ac_var'}'` = yes; then
11401 cat >>confdefs.h
<<_ACEOF
11402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11404 HAVE_GTK_FILE_SELECTION
=yes
11409 HAVE_GTK_FILE_CHOOSER
=no
11411 for ac_func
in gtk_file_chooser_dialog_new
11413 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11416 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 cat >conftest.
$ac_ext <<_ACEOF
11422 cat confdefs.h
>>conftest.
$ac_ext
11423 cat >>conftest.
$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11427 #define $ac_func innocuous_$ac_func
11429 /* System header to define __stub macros and hopefully few prototypes,
11430 which can conflict with char $ac_func (); below.
11431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11432 <limits.h> exists even on freestanding compilers. */
11435 # include <limits.h>
11437 # include <assert.h>
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11449 /* The GNU C library defines this for functions which it implements
11450 to always fail with ENOSYS. Some functions are actually named
11451 something starting with __ and the normal name is an alias. */
11452 #if defined __stub_$ac_func || defined __stub___$ac_func
11459 return $ac_func ();
11464 rm -f conftest.
$ac_objext conftest
$ac_exeext
11465 if { (ac_try
="$ac_link"
11466 case "(($ac_try" in
11467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_link") 2>conftest.er1
11473 grep -v '^ *+' conftest.er1 >conftest.err
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 } && test -s conftest$ac_exeext &&
11481 $as_test_x conftest$ac_exeext; then
11482 eval "$as_ac_var=yes"
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 eval "$as_ac_var=no"
11490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11491 conftest$ac_exeext conftest.$ac_ext
11493 ac_res=`eval echo '${'$as_ac_var'}'`
11494 { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11496 if test `eval echo '${'$as_ac_var'}'` = yes; then
11497 cat >>confdefs.h <<_ACEOF
11498 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11500 HAVE_GTK_FILE_CHOOSER=yes
11505 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11506 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11508 cat >>confdefs.h <<\_ACEOF
11509 #define HAVE_GTK_FILE_BOTH 1
11514 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11515 HAVE_GTK_AND_PTHREAD=no
11517 for ac_header in pthread.h
11519 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 ac_res=`eval echo '${'$as_ac_Header'}'`
11527 { echo "$as_me:$LINENO: result: $ac_res" >&5
11528 echo "${ECHO_T}$ac_res" >&6; }
11530 # Is the header compilable?
11531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11540 #include <$ac_header>
11542 rm -f conftest.$ac_objext
11543 if { (ac_try="$ac_compile"
11544 case "(($ac_try" in
11545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11546 *) ac_try_echo
=$ac_try;;
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11551 grep -v '^ *+' conftest.er1
>conftest.err
11553 cat conftest.err
>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.
$ac_objext; then
11559 ac_header_compiler
=yes
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.
$ac_ext >&5
11564 ac_header_compiler
=no
11567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11569 echo "${ECHO_T}$ac_header_compiler" >&6; }
11571 # Is the header present?
11572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11574 cat >conftest.
$ac_ext <<_ACEOF
11577 cat confdefs.h
>>conftest.
$ac_ext
11578 cat >>conftest.
$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <$ac_header>
11582 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11583 case "(($ac_try" in
11584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11590 grep -v '^ *+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } >/dev/null && {
11595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11598 ac_header_preproc=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_header_preproc=no
11606 rm -f conftest.err conftest.$ac_ext
11607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11608 echo "${ECHO_T}$ac_header_preproc" >&6; }
11610 # So? What about this header?
11611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11617 ac_header_preproc=yes
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 eval "$as_ac_Header=\$ac_header_preproc"
11642 ac_res=`eval echo '${'$as_ac_Header'}'`
11643 { echo "$as_me:$LINENO: result: $ac_res" >&5
11644 echo "${ECHO_T}$ac_res" >&6; }
11647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11648 cat >>confdefs.h <<_ACEOF
11649 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11656 if test "$ac_cv_header_pthread_h"; then
11657 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11658 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11659 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 ac_check_lib_save_LIBS=$LIBS
11663 LIBS="-lpthread $LIBS"
11664 cat >conftest.$ac_ext <<_ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11677 char pthread_self ();
11681 return pthread_self ();
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11690 *) ac_try_echo
=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1
>conftest.err
11697 cat conftest.err
>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest
$ac_exeext &&
11703 $as_test_x conftest
$ac_exeext; then
11704 ac_cv_lib_pthread_pthread_self
=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.
$ac_ext >&5
11709 ac_cv_lib_pthread_pthread_self
=no
11712 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11713 conftest
$ac_exeext conftest.
$ac_ext
11714 LIBS
=$ac_check_lib_save_LIBS
11716 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11717 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11718 if test $ac_cv_lib_pthread_pthread_self = yes; then
11719 HAVE_GTK_AND_PTHREAD
=yes
11723 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11724 case "${canonical}" in
11726 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
11729 cat >>confdefs.h
<<\_ACEOF
11730 #define HAVE_GTK_AND_PTHREAD 1
11737 ### Link with -lXft if available to work around a bug.
11739 if test "${HAVE_GTK}" = "yes"; then
11740 if test "X${with_pkg_config_prog}" != X
; then
11741 PKG_CONFIG
="${with_pkg_config_prog}"
11747 if test -z "$PKG_CONFIG"; then
11748 # Extract the first word of "pkg-config", so it can be a program name with args.
11749 set dummy pkg-config
; ac_word
=$2
11750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 case $PKG_CONFIG in
11757 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11761 for as_dir
in $PATH
11764 test -z "$as_dir" && as_dir
=.
11765 for ac_exec_ext
in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11767 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11779 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11780 if test -n "$PKG_CONFIG"; then
11781 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11782 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11784 { echo "$as_me:$LINENO: result: no" >&5
11785 echo "${ECHO_T}no" >&6; }
11791 if test "$PKG_CONFIG" = "no" ; then
11794 PKG_CONFIG_MIN_VERSION
=0.9.0
11795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11796 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11797 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11799 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11800 { echo "$as_me:$LINENO: result: yes" >&5
11801 echo "${ECHO_T}yes" >&6; }
11804 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11805 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11806 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11807 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11808 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11810 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11811 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11812 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11813 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11814 echo "${ECHO_T}$XFT_LIBS" >&6; }
11816 { echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6; }
11820 ## If we have a custom action on failure, don't print errors, but
11821 ## do set a variable so people can do so.
11822 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11834 if test $succeeded = yes; then
11840 if test "$HAVE_XFT" != no
; then
11841 OLD_CFLAGS
="$CPPFLAGS"
11842 OLD_CPPFLAGS
="$CFLAGS"
11844 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11845 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11846 LIBS
="$XFT_LIBS $LIBS"
11847 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11848 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11849 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11850 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11854 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11856 # Is the header compilable?
11857 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11858 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11859 cat >conftest.
$ac_ext <<_ACEOF
11862 cat confdefs.h
>>conftest.
$ac_ext
11863 cat >>conftest.
$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 $ac_includes_default
11866 #include <X11/Xft/Xft.h>
11868 rm -f conftest.
$ac_objext
11869 if { (ac_try
="$ac_compile"
11870 case "(($ac_try" in
11871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest.$ac_objext; then
11885 ac_header_compiler=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_header_compiler=no
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895 echo "${ECHO_T}$ac_header_compiler" >&6; }
11897 # Is the header present?
11898 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11899 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 #include <X11/Xft/Xft.h>
11908 if { (ac_try="$ac_cpp conftest.$ac_ext"
11909 case "(($ac_try" in
11910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11911 *) ac_try_echo
=$ac_try;;
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11916 grep -v '^ *+' conftest.er1
>conftest.err
11918 cat conftest.err
>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } >/dev
/null
&& {
11921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11924 ac_header_preproc
=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.
$ac_ext >&5
11929 ac_header_preproc
=no
11932 rm -f conftest.err conftest.
$ac_ext
11933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11934 echo "${ECHO_T}$ac_header_preproc" >&6; }
11936 # So? What about this header?
11937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11939 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11940 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11942 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11943 ac_header_preproc
=yes
11946 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11947 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11949 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11951 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11953 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11955 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11957 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11961 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11962 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11963 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11968 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11969 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11972 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11973 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11974 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11975 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 ac_check_lib_save_LIBS
=$LIBS
11979 LIBS
="-lXft $XFT_LIBS $LIBS"
11980 cat >conftest.
$ac_ext <<_ACEOF
11983 cat confdefs.h
>>conftest.
$ac_ext
11984 cat >>conftest.
$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11993 char XftFontOpen ();
11997 return XftFontOpen ();
12002 rm -f conftest.
$ac_objext conftest
$ac_exeext
12003 if { (ac_try
="$ac_link"
12004 case "(($ac_try" in
12005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_link") 2>conftest.er1
12011 grep -v '^ *+' conftest.er1 >conftest.err
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && {
12016 test -z "$ac_c_werror_flag" ||
12017 test ! -s conftest.err
12018 } && test -s conftest$ac_exeext &&
12019 $as_test_x conftest$ac_exeext; then
12020 ac_cv_lib_Xft_XftFontOpen=yes
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_cv_lib_Xft_XftFontOpen=no
12028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12032 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12033 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12034 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12042 if test "${HAVE_XFT}" = "yes"; then
12044 cat >>confdefs.h <<\_ACEOF
12049 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12051 CFLAGS="$OLD_CPPFLAGS"
12052 CFLAGS="$OLD_CFLAGS"
12058 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12059 if test x"${HAVE_X11R5}" = xyes; then
12060 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12061 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12062 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 cat >conftest.$ac_ext <<_ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12072 #include <X11/Intrinsic.h>
12073 #include <X11/Xaw/Simple.h>
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (ac_try="$ac_link"
12084 case "(($ac_try" in
12085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12086 *) ac_try_echo
=$ac_try;;
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_link") 2>conftest.er1
12091 grep -v '^ *+' conftest.er1
>conftest.err
12093 cat conftest.err
>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } && {
12096 test -z "$ac_c_werror_flag" ||
12097 test ! -s conftest.err
12098 } && test -s conftest
$ac_exeext &&
12099 $as_test_x conftest
$ac_exeext; then
12100 emacs_cv_x11_version_5_with_xaw
=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.
$ac_ext >&5
12105 emacs_cv_x11_version_5_with_xaw
=no
12108 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12109 conftest
$ac_exeext conftest.
$ac_ext
12112 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12113 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12114 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12115 USE_X_TOOLKIT
=LUCID
12117 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12118 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12119 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12120 { (exit 1); exit 1; }; }
12122 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12123 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12132 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12134 if test "${USE_X_TOOLKIT}" != "none"; then
12135 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12136 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12137 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.
$ac_ext <<_ACEOF
12143 cat confdefs.h
>>conftest.
$ac_ext
12144 cat >>conftest.
$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 #include <X11/Intrinsic.h>
12150 #if XtSpecificationRelease < 6
12158 rm -f conftest.
$ac_objext conftest
$ac_exeext
12159 if { (ac_try
="$ac_link"
12160 case "(($ac_try" in
12161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext &&
12175 $as_test_x conftest$ac_exeext; then
12176 emacs_cv_x11_toolkit_version_6=yes
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 emacs_cv_x11_toolkit_version_6=no
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12188 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12189 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12190 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12191 echo "${ECHO_T}6 or newer" >&6; }
12193 cat >>confdefs.h <<\_ACEOF
12194 #define HAVE_X11XTR6 1
12198 { echo "$as_me:$LINENO: result: before 6" >&5
12199 echo "${ECHO_T}before 6" >&6; }
12203 if test x$HAVE_X11XTR6 = xyes; then
12204 LIBS="-lXt -lSM -lICE $LIBS"
12209 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12210 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12211 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 ac_check_lib_save_LIBS=$LIBS
12216 cat >conftest.$ac_ext <<_ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12229 char XmuConvertStandardSelection ();
12233 return XmuConvertStandardSelection ();
12238 rm -f conftest.$ac_objext conftest$ac_exeext
12239 if { (ac_try="$ac_link"
12240 case "(($ac_try" in
12241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12242 *) ac_try_echo
=$ac_try;;
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12247 grep -v '^ *+' conftest.er1
>conftest.err
12249 cat conftest.err
>&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && {
12252 test -z "$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12254 } && test -s conftest
$ac_exeext &&
12255 $as_test_x conftest
$ac_exeext; then
12256 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.
$ac_ext >&5
12261 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12264 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12265 conftest
$ac_exeext conftest.
$ac_ext
12266 LIBS
=$ac_check_lib_save_LIBS
12268 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12269 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12270 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12271 cat >>confdefs.h
<<_ACEOF
12272 #define HAVE_LIBXMU 1
12279 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12282 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12283 if test "${HAVE_X11}" = "yes"; then
12284 if test "${USE_X_TOOLKIT}" != "none"; then
12286 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12287 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 ac_check_lib_save_LIBS
=$LIBS
12292 LIBS
="-lXext $LIBS"
12293 cat >conftest.
$ac_ext <<_ACEOF
12296 cat confdefs.h
>>conftest.
$ac_ext
12297 cat >>conftest.
$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12306 char XShapeQueryExtension ();
12310 return XShapeQueryExtension ();
12315 rm -f conftest.
$ac_objext conftest
$ac_exeext
12316 if { (ac_try
="$ac_link"
12317 case "(($ac_try" in
12318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12324 grep -v '^ *+' conftest.er1 >conftest.err
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext &&
12332 $as_test_x conftest$ac_exeext; then
12333 ac_cv_lib_Xext_XShapeQueryExtension=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12338 ac_cv_lib_Xext_XShapeQueryExtension=no
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12346 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12347 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_LIBXEXT 1
12352 LIBS="-lXext $LIBS"
12359 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12360 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12361 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12362 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12375 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12378 Motif version prior to 2.1.
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12388 *) ac_try_echo
=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
12393 grep -v '^ *+' conftest.er1
>conftest.err
12395 cat conftest.err
>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && {
12398 test -z "$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest.
$ac_objext; then
12401 emacs_cv_motif_version_2_1
=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.
$ac_ext >&5
12406 emacs_cv_motif_version_2_1
=no
12409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12411 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12412 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12413 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12414 if test $emacs_cv_motif_version_2_1 = yes; then
12417 cat >>confdefs.h
<<\_ACEOF
12418 #define HAVE_MOTIF_2_1 1
12421 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12422 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12423 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 ac_check_lib_save_LIBS
=$LIBS
12428 cat >conftest.
$ac_ext <<_ACEOF
12431 cat confdefs.h
>>conftest.
$ac_ext
12432 cat >>conftest.
$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12441 char XpCreateContext ();
12445 return XpCreateContext ();
12450 rm -f conftest.
$ac_objext conftest
$ac_exeext
12451 if { (ac_try
="$ac_link"
12452 case "(($ac_try" in
12453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_link") 2>conftest.er1
12459 grep -v '^ *+' conftest.er1 >conftest.err
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } && {
12464 test -z "$ac_c_werror_flag" ||
12465 test ! -s conftest.err
12466 } && test -s conftest$ac_exeext &&
12467 $as_test_x conftest$ac_exeext; then
12468 ac_cv_lib_Xp_XpCreateContext=yes
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_cv_lib_Xp_XpCreateContext=no
12476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12477 conftest$ac_exeext conftest.$ac_ext
12478 LIBS=$ac_check_lib_save_LIBS
12480 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12481 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12482 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12486 if test ${HAVE_LIBXP} = yes; then
12488 cat >>confdefs.h <<\_ACEOF
12489 #define HAVE_LIBXP 1
12494 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12495 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12496 if test "${emacs_cv_lesstif+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 # We put this in CFLAGS temporarily to precede other -I options
12500 # that might be in CFLAGS temporarily.
12501 # We put this in CPPFLAGS where it precedes the other -I options.
12502 OLD_CPPFLAGS=$CPPFLAGS
12504 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12505 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12521 rm -f conftest.$ac_objext
12522 if { (ac_try="$ac_compile"
12523 case "(($ac_try" in
12524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12525 *) ac_try_echo
=$ac_try;;
12527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_compile") 2>conftest.er1
12530 grep -v '^ *+' conftest.er1
>conftest.err
12532 cat conftest.err
>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } && {
12535 test -z "$ac_c_werror_flag" ||
12536 test ! -s conftest.err
12537 } && test -s conftest.
$ac_objext; then
12538 emacs_cv_lesstif
=yes
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.
$ac_ext >&5
12543 emacs_cv_lesstif
=no
12546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12548 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12549 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12550 if test $emacs_cv_lesstif = yes; then
12551 # Make sure this -I option remains in CPPFLAGS after it is set
12552 # back to REAL_CPPFLAGS.
12553 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12554 # have those other -I options anyway. Ultimately, having this
12555 # directory ultimately in CPPFLAGS will be enough.
12556 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12557 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12560 CPPFLAGS
=$OLD_CPPFLAGS
12565 ### Is -lXaw3d available?
12567 if test "${HAVE_X11}" = "yes"; then
12568 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12569 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12570 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12571 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 cat >conftest.
$ac_ext <<_ACEOF
12577 cat confdefs.h
>>conftest.
$ac_ext
12578 cat >>conftest.
$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 #include <X11/Xaw3d/Scrollbar.h>
12582 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12583 case "(($ac_try" in
12584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12590 grep -v '^ *+' conftest.er1 >conftest.err
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } >/dev/null && {
12595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12598 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12606 rm -f conftest.err conftest.$ac_ext
12608 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12609 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12610 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12611 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12612 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12613 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 ac_check_lib_save_LIBS=$LIBS
12617 LIBS="-lXaw3d $LIBS"
12618 cat >conftest.$ac_ext <<_ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12625 /* Override any GCC internal prototype to avoid an error.
12626 Use char because int might match the return type of a GCC
12627 builtin and then its argument prototype would still apply. */
12631 char XawScrollbarSetThumb ();
12635 return XawScrollbarSetThumb ();
12640 rm -f conftest.$ac_objext conftest$ac_exeext
12641 if { (ac_try="$ac_link"
12642 case "(($ac_try" in
12643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12644 *) ac_try_echo
=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_link") 2>conftest.er1
12649 grep -v '^ *+' conftest.er1
>conftest.err
12651 cat conftest.err
>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && {
12654 test -z "$ac_c_werror_flag" ||
12655 test ! -s conftest.err
12656 } && test -s conftest
$ac_exeext &&
12657 $as_test_x conftest
$ac_exeext; then
12658 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.
$ac_ext >&5
12663 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12666 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12667 conftest
$ac_exeext conftest.
$ac_ext
12668 LIBS
=$ac_check_lib_save_LIBS
12670 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12671 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12672 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12679 if test "${HAVE_XAW3D}" = "yes"; then
12681 cat >>confdefs.h
<<\_ACEOF
12682 #define HAVE_XAW3D 1
12691 USE_TOOLKIT_SCROLL_BARS
=no
12692 if test "${with_toolkit_scroll_bars}" != "no"; then
12693 if test "${USE_X_TOOLKIT}" != "none"; then
12694 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12695 cat >>confdefs.h
<<\_ACEOF
12696 #define USE_TOOLKIT_SCROLL_BARS 1
12700 USE_TOOLKIT_SCROLL_BARS
=yes
12701 elif test "${HAVE_XAW3D}" = "yes"; then
12702 cat >>confdefs.h
<<\_ACEOF
12703 #define USE_TOOLKIT_SCROLL_BARS 1
12706 USE_TOOLKIT_SCROLL_BARS
=yes
12708 elif test "${HAVE_GTK}" = "yes"; then
12709 cat >>confdefs.h
<<\_ACEOF
12710 #define USE_TOOLKIT_SCROLL_BARS 1
12713 USE_TOOLKIT_SCROLL_BARS
=yes
12714 elif test "${HAVE_CARBON}" = "yes"; then
12715 cat >>confdefs.h
<<\_ACEOF
12716 #define USE_TOOLKIT_SCROLL_BARS 1
12719 USE_TOOLKIT_SCROLL_BARS
=yes
12723 cat >conftest.
$ac_ext <<_ACEOF
12726 cat confdefs.h
>>conftest.
$ac_ext
12727 cat >>conftest.
$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12730 #include <X11/Xlib.h>
12731 #include <X11/Xresource.h>
12740 rm -f conftest.
$ac_objext
12741 if { (ac_try
="$ac_compile"
12742 case "(($ac_try" in
12743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_compile") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1 >conftest.err
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest.$ac_objext; then
12759 cat >>confdefs.h <<\_ACEOF
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 if test "${with_xim}" != "no"; then
12775 cat >>confdefs.h <<\_ACEOF
12782 if test "${HAVE_XIM}" != "no"; then
12783 late_CFLAGS=$CFLAGS
12784 if test "$GCC" = yes; then
12785 CFLAGS="$CFLAGS --pedantic-errors"
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12794 #include <X11/Xlib.h>
12795 #include <X11/Xresource.h>
12804 XPointer *client_data;
12806 /* If we're not using GCC, it's probably not XFree86, and this is
12807 probably right, but we can't use something like --pedantic-errors. */
12808 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12809 char*, XIMProc, XPointer*);
12811 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12817 rm -f conftest.$ac_objext
12818 if { (ac_try="$ac_compile"
12819 case "(($ac_try" in
12820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12821 *) ac_try_echo
=$ac_try;;
12823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_compile") 2>conftest.er1
12826 grep -v '^ *+' conftest.er1
>conftest.err
12828 cat conftest.err
>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } && {
12831 test -z "$ac_c_werror_flag" ||
12832 test ! -s conftest.err
12833 } && test -s conftest.
$ac_objext; then
12834 emacs_cv_arg6_star
=yes
12836 echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.
$ac_ext >&5
12842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12844 if test "$emacs_cv_arg6_star" = yes; then
12845 cat >>confdefs.h
<<\_ACEOF
12846 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12850 cat >>confdefs.h
<<\_ACEOF
12851 #define XRegisterIMInstantiateCallback_arg6 XPointer
12855 CFLAGS
=$late_CFLAGS
12858 ### Use -lXpm if available, unless `--with-xpm=no'.
12860 if test "${HAVE_X11}" = "yes"; then
12861 if test "${with_xpm}" != "no"; then
12862 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12863 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12864 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12865 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12869 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12871 # Is the header compilable?
12872 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12873 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12874 cat >conftest.
$ac_ext <<_ACEOF
12877 cat confdefs.h
>>conftest.
$ac_ext
12878 cat >>conftest.
$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 $ac_includes_default
12881 #include <X11/xpm.h>
12883 rm -f conftest.
$ac_objext
12884 if { (ac_try
="$ac_compile"
12885 case "(($ac_try" in
12886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_compile") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest.$ac_objext; then
12900 ac_header_compiler=yes
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12905 ac_header_compiler=no
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12910 echo "${ECHO_T}$ac_header_compiler" >&6; }
12912 # Is the header present?
12913 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12914 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 #include <X11/xpm.h>
12923 if { (ac_try="$ac_cpp conftest.$ac_ext"
12924 case "(($ac_try" in
12925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12926 *) ac_try_echo
=$ac_try;;
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12931 grep -v '^ *+' conftest.er1
>conftest.err
12933 cat conftest.err
>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } >/dev
/null
&& {
12936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12939 ac_header_preproc
=yes
12941 echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.
$ac_ext >&5
12944 ac_header_preproc
=no
12947 rm -f conftest.err conftest.
$ac_ext
12948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12949 echo "${ECHO_T}$ac_header_preproc" >&6; }
12951 # So? What about this header?
12952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12954 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12955 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12956 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12957 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12958 ac_header_preproc
=yes
12961 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12962 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12964 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12966 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12968 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12969 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12970 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12971 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12972 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12976 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12977 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12978 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12983 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12984 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12987 if test $ac_cv_header_X11_xpm_h = yes; then
12988 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12989 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12990 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12993 ac_check_lib_save_LIBS
=$LIBS
12994 LIBS
="-lXpm -lX11 $LIBS"
12995 cat >conftest.
$ac_ext <<_ACEOF
12998 cat confdefs.h
>>conftest.
$ac_ext
12999 cat >>conftest.
$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13008 char XpmReadFileToPixmap ();
13012 return XpmReadFileToPixmap ();
13017 rm -f conftest.
$ac_objext conftest
$ac_exeext
13018 if { (ac_try
="$ac_link"
13019 case "(($ac_try" in
13020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_link") 2>conftest.er1
13026 grep -v '^ *+' conftest.er1 >conftest.err
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest$ac_exeext &&
13034 $as_test_x conftest$ac_exeext; then
13035 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13040 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13044 conftest$ac_exeext conftest.$ac_ext
13045 LIBS=$ac_check_lib_save_LIBS
13047 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13048 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13049 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13056 if test "${HAVE_XPM}" = "yes"; then
13057 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13058 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 #include "X11/xpm.h"
13066 #ifndef XpmReturnAllocPixels
13067 no_return_alloc_pixels
13071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13072 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13080 if test "${HAVE_XPM}" = "yes"; then
13081 { echo "$as_me:$LINENO: result: yes" >&5
13082 echo "${ECHO_T}yes" >&6; }
13084 { echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6; }
13090 if test "${HAVE_XPM}" = "yes"; then
13092 cat >>confdefs.h <<\_ACEOF
13099 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13101 if test "${HAVE_X11}" = "yes"; then
13102 if test "${with_jpeg}" != "no"; then
13103 if test "${ac_cv_header_jerror_h+set}" = set; then
13104 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13105 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13106 if test "${ac_cv_header_jerror_h+set}" = set; then
13107 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13110 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13112 # Is the header compilable?
13113 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13114 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 $ac_includes_default
13122 #include <jerror.h>
13124 rm -f conftest.$ac_objext
13125 if { (ac_try="$ac_compile"
13126 case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_compile") 2>conftest.er1
13133 grep -v '^
*+' conftest.er1 >conftest.err
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && {
13138 test -z "$ac_c_werror_flag" ||
13139 test ! -s conftest.err
13140 } && test -s conftest.$ac_objext; then
13141 ac_header_compiler=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's
/^
/|
/' conftest.$ac_ext >&5
13146 ac_header_compiler=no
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13151 echo "${ECHO_T}$ac_header_compiler" >&6; }
13153 # Is the header present?
13154 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13155 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13156 cat >conftest.$ac_ext <<_ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 #include <jerror.h>
13164 if { (ac_try="$ac_cpp conftest.$ac_ext"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13172 grep -v '^
*+' conftest.er1 >conftest.err
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } >/dev/null && {
13177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13180 ac_header_preproc=yes
13182 echo "$as_me: failed program was:" >&5
13183 sed 's
/^
/|
/' conftest.$ac_ext >&5
13185 ac_header_preproc=no
13188 rm -f conftest.err conftest.$ac_ext
13189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13190 echo "${ECHO_T}$ac_header_preproc" >&6; }
13192 # So? What about this header?
13193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13195 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13196 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13198 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13199 ac_header_preproc=yes
13202 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13203 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13204 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13205 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13206 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13207 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13208 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13209 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13211 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13213 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13217 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13218 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13219 if test "${ac_cv_header_jerror_h+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 ac_cv_header_jerror_h=$ac_header_preproc
13224 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13225 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13228 if test $ac_cv_header_jerror_h = yes; then
13229 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13230 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13231 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-ljpeg $LIBS"
13236 cat >conftest.$ac_ext <<_ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 /* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
13249 char jpeg_destroy_compress ();
13253 return jpeg_destroy_compress ();
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>conftest.er1
13267 grep -v '^
*+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } && {
13272 test -z "$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 } && test -s conftest$ac_exeext &&
13275 $as_test_x conftest$ac_exeext; then
13276 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13278 echo "$as_me: failed program was:" >&5
13279 sed 's
/^
/|
/' conftest.$ac_ext >&5
13281 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13288 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13289 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13290 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
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
13547 if test "${HAVE_PNG}" = "yes"; then
13549 cat >>confdefs.h <<\_ACEOF
13556 ### Use -ltiff if available, unless `--with-tiff=no
'.
13558 if test "${HAVE_X11}" = "yes"; then
13559 if test "${with_tiff}" != "no"; then
13560 if test "${ac_cv_header_tiffio_h+set}" = set; then
13561 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13562 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13563 if test "${ac_cv_header_tiffio_h+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13569 # Is the header compilable?
13570 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13571 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13572 cat >conftest.$ac_ext <<_ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13579 #include <tiffio.h>
13581 rm -f conftest.$ac_objext
13582 if { (ac_try="$ac_compile"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_compile") 2>conftest.er1
13590 grep -v '^
*+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } && {
13595 test -z "$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13597 } && test -s conftest.$ac_objext; then
13598 ac_header_compiler=yes
13600 echo "$as_me: failed program was:" >&5
13601 sed 's
/^
/|
/' conftest.$ac_ext >&5
13603 ac_header_compiler=no
13606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13608 echo "${ECHO_T}$ac_header_compiler" >&6; }
13610 # Is the header present?
13611 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13612 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 #include <tiffio.h>
13621 if { (ac_try="$ac_cpp conftest.$ac_ext"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13629 grep -v '^
*+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } >/dev/null && {
13634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13635 test ! -s conftest.err
13637 ac_header_preproc=yes
13639 echo "$as_me: failed program was:" >&5
13640 sed 's
/^
/|
/' conftest.$ac_ext >&5
13642 ac_header_preproc=no
13645 rm -f conftest.err conftest.$ac_ext
13646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13647 echo "${ECHO_T}$ac_header_preproc" >&6; }
13649 # So? What about this header?
13650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13652 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13653 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13655 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13656 ac_header_preproc=yes
13659 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13660 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13662 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13664 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13665 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13666 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13667 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13668 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13669 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13670 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13674 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13675 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13676 if test "${ac_cv_header_tiffio_h+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 ac_cv_header_tiffio_h=$ac_header_preproc
13681 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13682 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13685 if test $ac_cv_header_tiffio_h = yes; then
13687 # At least one tiff package requires the jpeg library.
13688 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13689 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13690 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13691 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-ltiff $tifflibs $LIBS"
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13709 char TIFFGetVersion ();
13713 return TIFFGetVersion ();
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_link") 2>conftest.er1
13727 grep -v '^
*+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest$ac_exeext &&
13735 $as_test_x conftest$ac_exeext; then
13736 ac_cv_lib_tiff_TIFFGetVersion=yes
13738 echo "$as_me: failed program was:" >&5
13739 sed 's
/^
/|
/' conftest.$ac_ext >&5
13741 ac_cv_lib_tiff_TIFFGetVersion=no
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13748 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13749 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13750 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13759 if test "${HAVE_TIFF}" = "yes"; then
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_TIFF 1
13768 ### Use -lgif if available, unless `--with-gif=no'.
13770 if test "${HAVE_X11}" = "yes"; then
13771 if test "${with_gif}" != "no"; then
13772 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13773 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13774 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13775 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13778 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13779 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13781 # Is the header compilable?
13782 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13783 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13784 cat >conftest.
$ac_ext <<_ACEOF
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13791 #include <gif_lib.h>
13793 rm -f conftest.
$ac_objext
13794 if { (ac_try
="$ac_compile"
13795 case "(($ac_try" in
13796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_compile") 2>conftest.er1
13802 grep -v '^ *+' conftest.er1 >conftest.err
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } && {
13807 test -z "$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13809 } && test -s conftest.$ac_objext; then
13810 ac_header_compiler=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_header_compiler=no
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13820 echo "${ECHO_T}$ac_header_compiler" >&6; }
13822 # Is the header present?
13823 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13824 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13825 cat >conftest.$ac_ext <<_ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 #include <gif_lib.h>
13833 if { (ac_try="$ac_cpp conftest.$ac_ext"
13834 case "(($ac_try" in
13835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13836 *) ac_try_echo
=$ac_try;;
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13841 grep -v '^ *+' conftest.er1
>conftest.err
13843 cat conftest.err
>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } >/dev
/null
&& {
13846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13849 ac_header_preproc
=yes
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.
$ac_ext >&5
13854 ac_header_preproc
=no
13857 rm -f conftest.err conftest.
$ac_ext
13858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13859 echo "${ECHO_T}$ac_header_preproc" >&6; }
13861 # So? What about this header?
13862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13864 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13865 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13866 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13867 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13868 ac_header_preproc
=yes
13871 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13872 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13874 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13876 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13878 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13880 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13882 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13886 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13887 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13888 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 ac_cv_header_gif_lib_h
=$ac_header_preproc
13893 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13894 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13897 if test $ac_cv_header_gif_lib_h = yes; then
13898 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13899 # Earlier versions can crash Emacs.
13900 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13901 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13902 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 ac_check_lib_save_LIBS
=$LIBS
13906 LIBS
="-lungif $LIBS"
13907 cat >conftest.
$ac_ext <<_ACEOF
13910 cat confdefs.h
>>conftest.
$ac_ext
13911 cat >>conftest.
$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13914 /* Override any GCC internal prototype to avoid an error.
13915 Use char because int might match the return type of a GCC
13916 builtin and then its argument prototype would still apply. */
13920 char EGifPutExtensionLast ();
13924 return EGifPutExtensionLast ();
13929 rm -f conftest.
$ac_objext conftest
$ac_exeext
13930 if { (ac_try
="$ac_link"
13931 case "(($ac_try" in
13932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13933 *) ac_try_echo=$ac_try;;
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936 (eval "$ac_link") 2>conftest.er1
13938 grep -v '^ *+' conftest.er1 >conftest.err
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } && {
13943 test -z "$ac_c_werror_flag" ||
13944 test ! -s conftest.err
13945 } && test -s conftest$ac_exeext &&
13946 $as_test_x conftest$ac_exeext; then
13947 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_cv_lib_ungif_EGifPutExtensionLast=no
13955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13956 conftest$ac_exeext conftest.$ac_ext
13957 LIBS=$ac_check_lib_save_LIBS
13959 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13960 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13961 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13970 if test "${HAVE_GIF}" = "yes"; then
13972 cat >>confdefs.h <<\_ACEOF
13979 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13980 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13981 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13982 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13986 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13988 # Is the header compilable?
13989 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13990 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13991 cat >conftest.$ac_ext <<_ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 $ac_includes_default
13998 #include <malloc/malloc.h>
14000 rm -f conftest.$ac_objext
14001 if { (ac_try="$ac_compile"
14002 case "(($ac_try" in
14003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14004 *) ac_try_echo
=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_compile") 2>conftest.er1
14009 grep -v '^ *+' conftest.er1
>conftest.err
14011 cat conftest.err
>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest.
$ac_objext; then
14017 ac_header_compiler
=yes
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.
$ac_ext >&5
14022 ac_header_compiler
=no
14025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14027 echo "${ECHO_T}$ac_header_compiler" >&6; }
14029 # Is the header present?
14030 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14031 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14032 cat >conftest.
$ac_ext <<_ACEOF
14035 cat confdefs.h
>>conftest.
$ac_ext
14036 cat >>conftest.
$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 #include <malloc/malloc.h>
14040 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14041 case "(($ac_try" in
14042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14043 *) ac_try_echo=$ac_try;;
14045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } >/dev/null && {
14053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14054 test ! -s conftest.err
14056 ac_header_preproc=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14061 ac_header_preproc=no
14064 rm -f conftest.err conftest.$ac_ext
14065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14066 echo "${ECHO_T}$ac_header_preproc" >&6; }
14068 # So? What about this header?
14069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14071 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14072 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14074 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14075 ac_header_preproc=yes
14078 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14079 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14080 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14081 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14083 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14085 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14087 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14089 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14093 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14094 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14095 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14098 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14100 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14101 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14104 if test $ac_cv_header_malloc_malloc_h = yes; then
14106 cat >>confdefs.h <<\_ACEOF
14107 #define HAVE_MALLOC_MALLOC_H 1
14114 ### Use Mac OS X Carbon API to implement GUI.
14115 if test "${HAVE_CARBON}" = "yes"; then
14117 cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_CARBON 1
14122 for ac_header in AvailabilityMacros.h
14124 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_res=`eval echo '${'$as_ac_Header'}'`
14132 { echo "$as_me:$LINENO: result: $ac_res" >&5
14133 echo "${ECHO_T}$ac_res" >&6; }
14135 # Is the header compilable?
14136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 $ac_includes_default
14145 #include <$ac_header>
14147 rm -f conftest.$ac_objext
14148 if { (ac_try="$ac_compile"
14149 case "(($ac_try" in
14150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14151 *) ac_try_echo
=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_compile") 2>conftest.er1
14156 grep -v '^ *+' conftest.er1
>conftest.err
14158 cat conftest.err
>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } && {
14161 test -z "$ac_c_werror_flag" ||
14162 test ! -s conftest.err
14163 } && test -s conftest.
$ac_objext; then
14164 ac_header_compiler
=yes
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.
$ac_ext >&5
14169 ac_header_compiler
=no
14172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14174 echo "${ECHO_T}$ac_header_compiler" >&6; }
14176 # Is the header present?
14177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14179 cat >conftest.
$ac_ext <<_ACEOF
14182 cat confdefs.h
>>conftest.
$ac_ext
14183 cat >>conftest.
$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14185 #include <$ac_header>
14187 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14188 case "(($ac_try" in
14189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14195 grep -v '^ *+' conftest.er1 >conftest.err
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } >/dev/null && {
14200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14201 test ! -s conftest.err
14203 ac_header_preproc=yes
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_header_preproc=no
14211 rm -f conftest.err conftest.$ac_ext
14212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14213 echo "${ECHO_T}$ac_header_preproc" >&6; }
14215 # So? What about this header?
14216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14222 ac_header_preproc=yes
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 eval "$as_ac_Header=\$ac_header_preproc"
14247 ac_res=`eval echo '${'$as_ac_Header'}'`
14248 { echo "$as_me:$LINENO: result: $ac_res" >&5
14249 echo "${ECHO_T}$ac_res" >&6; }
14252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14253 cat >>confdefs.h <<_ACEOF
14254 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14261 ## Specify the install directory
14263 if test "${carbon_appdir_x}" != ""; then
14264 case ${carbon_appdir_x} in
14265 y | ye | yes) carbon_appdir=/Applications ;;
14266 * ) carbon_appdir=${carbon_appdir_x} ;;
14269 # We also have mouse menus.
14273 ### Use session management (-lSM -lICE) if available
14275 if test "${HAVE_X11}" = "yes"; then
14276 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14277 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14278 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14279 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14283 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14285 # Is the header compilable?
14286 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14287 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14288 cat >conftest.$ac_ext <<_ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294 $ac_includes_default
14295 #include <X11/SM/SMlib.h>
14297 rm -f conftest.$ac_objext
14298 if { (ac_try="$ac_compile"
14299 case "(($ac_try" in
14300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14301 *) ac_try_echo
=$ac_try;;
14303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14304 (eval "$ac_compile") 2>conftest.er1
14306 grep -v '^ *+' conftest.er1
>conftest.err
14308 cat conftest.err
>&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } && {
14311 test -z "$ac_c_werror_flag" ||
14312 test ! -s conftest.err
14313 } && test -s conftest.
$ac_objext; then
14314 ac_header_compiler
=yes
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.
$ac_ext >&5
14319 ac_header_compiler
=no
14322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14324 echo "${ECHO_T}$ac_header_compiler" >&6; }
14326 # Is the header present?
14327 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14328 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14329 cat >conftest.
$ac_ext <<_ACEOF
14332 cat confdefs.h
>>conftest.
$ac_ext
14333 cat >>conftest.
$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 #include <X11/SM/SMlib.h>
14337 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14338 case "(($ac_try" in
14339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14345 grep -v '^ *+' conftest.er1 >conftest.err
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } >/dev/null && {
14350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14353 ac_header_preproc=yes
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 ac_header_preproc=no
14361 rm -f conftest.err conftest.$ac_ext
14362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14363 echo "${ECHO_T}$ac_header_preproc" >&6; }
14365 # So? What about this header?
14366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14368 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14369 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14371 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14372 ac_header_preproc=yes
14375 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14376 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14377 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14378 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14379 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14380 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14381 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14382 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14383 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14384 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14385 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14386 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14390 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14391 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14392 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14397 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14398 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14401 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14402 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14403 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14404 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
14407 ac_check_lib_save_LIBS=$LIBS
14408 LIBS="-lSM -lICE $LIBS"
14409 cat >conftest.$ac_ext <<_ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14416 /* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14422 char SmcOpenConnection ();
14426 return SmcOpenConnection ();
14431 rm -f conftest.$ac_objext conftest$ac_exeext
14432 if { (ac_try="$ac_link"
14433 case "(($ac_try" in
14434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14435 *) ac_try_echo
=$ac_try;;
14437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14438 (eval "$ac_link") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1
>conftest.err
14442 cat conftest.err
>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } && {
14445 test -z "$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14447 } && test -s conftest
$ac_exeext &&
14448 $as_test_x conftest
$ac_exeext; then
14449 ac_cv_lib_SM_SmcOpenConnection
=yes
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.
$ac_ext >&5
14454 ac_cv_lib_SM_SmcOpenConnection
=no
14457 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14458 conftest
$ac_exeext conftest.
$ac_ext
14459 LIBS
=$ac_check_lib_save_LIBS
14461 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14462 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14463 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14471 if test "${HAVE_X_SM}" = "yes"; then
14473 cat >>confdefs.h
<<\_ACEOF
14474 #define HAVE_X_SM 1
14479 *) LIBS
="-lSM -lICE $LIBS" ;;
14484 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14485 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14486 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14487 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14505 rm -f conftest.
$ac_objext conftest
$ac_exeext
14506 if { (ac_try
="$ac_link"
14507 case "(($ac_try" in
14508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14509 *) ac_try_echo=$ac_try;;
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512 (eval "$ac_link") 2>conftest.er1
14514 grep -v '^ *+' conftest.er1 >conftest.err
14516 cat conftest.err >&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && {
14519 test -z "$ac_c_werror_flag" ||
14520 test ! -s conftest.err
14521 } && test -s conftest$ac_exeext &&
14522 $as_test_x conftest$ac_exeext; then
14523 emacs_cv_netdb_declares_h_errno=yes
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 emacs_cv_netdb_declares_h_errno=no
14531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14532 conftest$ac_exeext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14535 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14536 if test $emacs_cv_netdb_declares_h_errno = yes; then
14538 cat >>confdefs.h <<\_ACEOF
14539 #define HAVE_H_ERRNO 1
14544 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14545 # for constant arguments. Useless!
14546 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14547 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14548 if test "${ac_cv_working_alloca_h+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 #include <alloca.h>
14561 char *p = (char *) alloca (2 * sizeof (int));
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14571 *) ac_try_echo
=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1
>conftest.err
14578 cat conftest.err
>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest
$ac_exeext &&
14584 $as_test_x conftest
$ac_exeext; then
14585 ac_cv_working_alloca_h
=yes
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.
$ac_ext >&5
14590 ac_cv_working_alloca_h
=no
14593 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14594 conftest
$ac_exeext conftest.
$ac_ext
14596 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14597 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14598 if test $ac_cv_working_alloca_h = yes; then
14600 cat >>confdefs.h
<<\_ACEOF
14601 #define HAVE_ALLOCA_H 1
14606 { echo "$as_me:$LINENO: checking for alloca" >&5
14607 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14608 if test "${ac_cv_func_alloca_works+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 cat >conftest.
$ac_ext <<_ACEOF
14614 cat confdefs.h
>>conftest.
$ac_ext
14615 cat >>conftest.
$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 # define alloca __builtin_alloca
14621 # include <malloc.h>
14622 # define alloca _alloca
14624 # ifdef HAVE_ALLOCA_H
14625 # include <alloca.h>
14630 # ifndef alloca /* predefined by HP cc +Olibcalls */
14641 char *p = (char *) alloca (1);
14647 rm -f conftest.
$ac_objext conftest
$ac_exeext
14648 if { (ac_try
="$ac_link"
14649 case "(($ac_try" in
14650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14651 *) ac_try_echo=$ac_try;;
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654 (eval "$ac_link") 2>conftest.er1
14656 grep -v '^ *+' conftest.er1 >conftest.err
14658 cat conftest.err >&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } && {
14661 test -z "$ac_c_werror_flag" ||
14662 test ! -s conftest.err
14663 } && test -s conftest$ac_exeext &&
14664 $as_test_x conftest$ac_exeext; then
14665 ac_cv_func_alloca_works=yes
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14670 ac_cv_func_alloca_works=no
14673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14674 conftest$ac_exeext conftest.$ac_ext
14676 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14677 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14679 if test $ac_cv_func_alloca_works = yes; then
14681 cat >>confdefs.h <<\_ACEOF
14682 #define HAVE_ALLOCA 1
14686 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14687 # that cause trouble. Some versions do not even contain alloca or
14688 # contain a buggy version. If you still want to use their alloca,
14689 # use ar to extract alloca.o from them instead of compiling alloca.c.
14691 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14693 cat >>confdefs.h <<\_ACEOF
14698 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14699 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14700 if test "${ac_cv_os_cray+set}" = set; then
14701 echo $ECHO_N "(cached
) $ECHO_C" >&6
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #if defined CRAY && ! defined CRAY2
14716 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14717 $EGREP "webecray
" >/dev/null 2>&1; then
14725 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14726 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14727 if test $ac_cv_os_cray = yes; then
14728 for ac_func in _getb67 GETB67 getb67; do
14729 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14730 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14731 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14732 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14733 echo $ECHO_N "(cached
) $ECHO_C" >&6
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14743 #define $ac_func innocuous_$ac_func
14745 /* System header to define __stub macros and hopefully few prototypes,
14746 which can conflict with char $ac_func (); below.
14747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14748 <limits.h> exists even on freestanding compilers. */
14751 # include <limits.h>
14753 # include <assert.h>
14758 /* Override any GCC internal prototype to avoid an error.
14759 Use char because int might match the return type of a GCC
14760 builtin and then its argument prototype would still apply. */
14765 /* The GNU C library defines this for functions which it implements
14766 to always fail with ENOSYS. Some functions are actually named
14767 something starting with __ and the normal name is an alias. */
14768 #if defined __stub_$ac_func || defined __stub___$ac_func
14775 return $ac_func ();
14780 rm -f conftest.$ac_objext conftest$ac_exeext
14781 if { (ac_try="$ac_link"
14782 case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_link") 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14793 (exit $ac_status); } && {
14794 test -z "$ac_c_werror_flag" ||
14795 test ! -s conftest.err
14796 } && test -s conftest$ac_exeext &&
14797 $as_test_x conftest$ac_exeext; then
14798 eval "$as_ac_var=yes"
14800 echo "$as_me: failed program was
:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 eval "$as_ac_var=no
"
14806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14807 conftest$ac_exeext conftest.$ac_ext
14809 ac_res=`eval echo '${'$as_ac_var'}'`
14810 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14811 echo "${ECHO_T}$ac_res" >&6; }
14812 if test `eval echo '${'$as_ac_var'}'` = yes; then
14814 cat >>confdefs.h <<_ACEOF
14815 #define CRAY_STACKSEG_END $ac_func
14824 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14825 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14826 if test "${ac_cv_c_stack_direction+set}" = set; then
14827 echo $ECHO_N "(cached
) $ECHO_C" >&6
14829 if test "$cross_compiling" = yes; then
14830 ac_cv_c_stack_direction=0
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 $ac_includes_default
14840 find_stack_direction ()
14842 static char *addr = 0;
14847 return find_stack_direction ();
14850 return (&dummy > addr) ? 1 : -1;
14856 return find_stack_direction () < 0;
14859 rm -f conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14866 (eval "$ac_link") 2>&5
14868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 ac_cv_c_stack_direction=1
14881 echo "$as_me: program exited with status
$ac_status" >&5
14882 echo "$as_me: failed program was
:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14885 ( exit $ac_status )
14886 ac_cv_c_stack_direction=-1
14888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14893 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14894 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14896 cat >>confdefs.h <<_ACEOF
14897 #define STACK_DIRECTION $ac_cv_c_stack_direction
14904 # fmod, logb, and frexp are found in -lm on most systems.
14905 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14907 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14908 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14909 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14910 echo $ECHO_N "(cached
) $ECHO_C" >&6
14912 ac_check_lib_save_LIBS=$LIBS
14914 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14921 /* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
14936 rm -f conftest.$ac_objext conftest$ac_exeext
14937 if { (ac_try="$ac_link"
14938 case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_link") 2>conftest.er1
14945 grep -v '^ *+' conftest.er1 >conftest.err
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14949 (exit $ac_status); } && {
14950 test -z "$ac_c_werror_flag" ||
14951 test ! -s conftest.err
14952 } && test -s conftest$ac_exeext &&
14953 $as_test_x conftest$ac_exeext; then
14954 ac_cv_lib_m_sqrt=yes
14956 echo "$as_me: failed program was
:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ac_cv_lib_m_sqrt=no
14962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14963 conftest$ac_exeext conftest.$ac_ext
14964 LIBS=$ac_check_lib_save_LIBS
14966 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14967 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14968 if test $ac_cv_lib_m_sqrt = yes; then
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_LIBM 1
14978 # Check for mail-locking functions in a "mail" library. Probably this should
14979 # have the same check as for liblockfile below.
14981 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14982 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14983 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14984 echo $ECHO_N "(cached
) $ECHO_C" >&6
14986 ac_check_lib_save_LIBS=$LIBS
14987 LIBS="-lmail $LIBS"
14988 cat >conftest.$ac_ext <<_ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14995 /* Override any GCC internal prototype to avoid an error.
14996 Use char because int might match the return type of a GCC
14997 builtin and then its argument prototype would still apply. */
15005 return maillock ();
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_link") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest$ac_exeext &&
15027 $as_test_x conftest$ac_exeext; then
15028 ac_cv_lib_mail_maillock=yes
15030 echo "$as_me: failed program was
:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 ac_cv_lib_mail_maillock=no
15036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15037 conftest$ac_exeext conftest.$ac_ext
15038 LIBS=$ac_check_lib_save_LIBS
15040 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15041 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15042 if test $ac_cv_lib_mail_maillock = yes; then
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_LIBMAIL 1
15047 LIBS="-lmail $LIBS"
15052 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15053 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15054 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15055 echo $ECHO_N "(cached
) $ECHO_C" >&6
15057 ac_check_lib_save_LIBS=$LIBS
15058 LIBS="-llockfile $LIBS"
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15066 /* Override any GCC internal prototype to avoid an error.
15067 Use char because int might match the return type of a GCC
15068 builtin and then its argument prototype would still apply. */
15076 return maillock ();
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15088 (eval "$ac_link") 2>conftest.er1
15090 grep -v '^ *+' conftest.er1 >conftest.err
15092 cat conftest.err >&5
15093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15094 (exit $ac_status); } && {
15095 test -z "$ac_c_werror_flag" ||
15096 test ! -s conftest.err
15097 } && test -s conftest$ac_exeext &&
15098 $as_test_x conftest$ac_exeext; then
15099 ac_cv_lib_lockfile_maillock=yes
15101 echo "$as_me: failed program was
:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15104 ac_cv_lib_lockfile_maillock=no
15107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15111 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15112 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15113 if test $ac_cv_lib_lockfile_maillock = yes; then
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_LIBLOCKFILE 1
15118 LIBS="-llockfile $LIBS"
15122 # If we have the shared liblockfile, assume we must use it for mail
15123 # locking (e.g. Debian). If we couldn't link against liblockfile
15124 # (no liblockfile.a installed), ensure that we don't need to.
15125 if test "$ac_cv_lib_lockfile_maillock" = no; then
15126 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15127 set dummy liblockfile.so; ac_word=$2
15128 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15129 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15130 if test "${ac_cv_prog_liblockfile+set}" = set; then
15131 echo $ECHO_N "(cached
) $ECHO_C" >&6
15133 if test -n "$liblockfile"; then
15134 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15137 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15138 for as_dir in $as_dummy
15141 test -z "$as_dir" && as_dir=.
15142 for ac_exec_ext in '' $ac_executable_extensions; do
15143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15144 ac_cv_prog_liblockfile="yes"
15145 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15152 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15155 liblockfile=$ac_cv_prog_liblockfile
15156 if test -n "$liblockfile"; then
15157 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15158 echo "${ECHO_T}$liblockfile" >&6; }
15160 { echo "$as_me:$LINENO: result
: no
" >&5
15161 echo "${ECHO_T}no
" >&6; }
15165 if test $ac_cv_prog_liblockfile = yes; then
15166 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15167 This probably means that movemail could lose mail.
15168 There may be a \`development' package to
install containing liblockfile.
" >&5
15169 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15170 This probably means that movemail could lose mail.
15171 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15172 { (exit 1); exit 1; }; }
15177 for ac_func in touchlock
15179 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15180 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15181 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15182 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached
) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193 #define $ac_func innocuous_$ac_func
15195 /* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15201 # include <limits.h>
15203 # include <assert.h>
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined __stub_$ac_func || defined __stub___$ac_func
15225 return $ac_func ();
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext &&
15247 $as_test_x conftest$ac_exeext; then
15248 eval "$as_ac_var=yes"
15250 echo "$as_me: failed program was
:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 eval "$as_ac_var=no
"
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257 conftest$ac_exeext conftest.$ac_ext
15259 ac_res=`eval echo '${'$as_ac_var'}'`
15260 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_var'}'` = yes; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15271 for ac_header in maillock.h
15273 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15275 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15276 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached
) $ECHO_C" >&6
15280 ac_res=`eval echo '${'$as_ac_Header'}'`
15281 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15282 echo "${ECHO_T}$ac_res" >&6; }
15284 # Is the header compilable?
15285 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15286 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 $ac_includes_default
15294 #include <$ac_header>
15296 rm -f conftest.$ac_objext
15297 if { (ac_try="$ac_compile"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_compile") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest.$ac_objext; then
15313 ac_header_compiler=yes
15315 echo "$as_me: failed program was
:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_header_compiler=no
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15323 echo "${ECHO_T}$ac_header_compiler" >&6; }
15325 # Is the header present?
15326 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15327 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 #include <$ac_header>
15336 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15337 case "(($ac_try" in
15338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15348 (exit $ac_status); } >/dev/null && {
15349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15350 test ! -s conftest.err
15352 ac_header_preproc=yes
15354 echo "$as_me: failed program was
:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ac_header_preproc=no
15360 rm -f conftest.err conftest.$ac_ext
15361 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15362 echo "${ECHO_T}$ac_header_preproc" >&6; }
15364 # So? What about this header?
15365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15367 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15368 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15369 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15371 ac_header_preproc=yes
15374 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15375 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15376 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15377 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15378 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15379 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15380 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15381 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15382 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15384 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15385 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15389 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15390 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15392 echo $ECHO_N "(cached
) $ECHO_C" >&6
15394 eval "$as_ac_Header=\
$ac_header_preproc"
15396 ac_res=`eval echo '${'$as_ac_Header'}'`
15397 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15398 echo "${ECHO_T}$ac_res" >&6; }
15401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15402 cat >>confdefs.h <<_ACEOF
15403 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15481 for ac_func in gethostname getdomainname dup2 \
15482 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15483 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15484 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15485 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15486 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15487 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15488 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15489 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15491 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15492 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15493 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15494 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15495 echo $ECHO_N "(cached
) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15505 #define $ac_func innocuous_$ac_func
15507 /* System header to define __stub macros and hopefully few prototypes,
15508 which can conflict with char $ac_func (); below.
15509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510 <limits.h> exists even on freestanding compilers. */
15513 # include <limits.h>
15515 # include <assert.h>
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined __stub_$ac_func || defined __stub___$ac_func
15537 return $ac_func ();
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest$ac_exeext &&
15559 $as_test_x conftest$ac_exeext; then
15560 eval "$as_ac_var=yes"
15562 echo "$as_me: failed program was
:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 eval "$as_ac_var=no
"
15568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15569 conftest$ac_exeext conftest.$ac_ext
15571 ac_res=`eval echo '${'$as_ac_var'}'`
15572 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15573 echo "${ECHO_T}$ac_res" >&6; }
15574 if test `eval echo '${'$as_ac_var'}'` = yes; then
15575 cat >>confdefs.h <<_ACEOF
15576 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15584 for ac_header in sys/un.h
15586 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15588 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15589 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15590 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15591 echo $ECHO_N "(cached
) $ECHO_C" >&6
15593 ac_res=`eval echo '${'$as_ac_Header'}'`
15594 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15595 echo "${ECHO_T}$ac_res" >&6; }
15597 # Is the header compilable?
15598 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15599 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606 $ac_includes_default
15607 #include <$ac_header>
15609 rm -f conftest.$ac_objext
15610 if { (ac_try="$ac_compile"
15611 case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_compile") 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15622 (exit $ac_status); } && {
15623 test -z "$ac_c_werror_flag" ||
15624 test ! -s conftest.err
15625 } && test -s conftest.$ac_objext; then
15626 ac_header_compiler=yes
15628 echo "$as_me: failed program was
:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_header_compiler=no
15634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15635 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15636 echo "${ECHO_T}$ac_header_compiler" >&6; }
15638 # Is the header present?
15639 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15640 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15641 cat >conftest.$ac_ext <<_ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h. */
15647 #include <$ac_header>
15649 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15661 (exit $ac_status); } >/dev/null && {
15662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15665 ac_header_preproc=yes
15667 echo "$as_me: failed program was
:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_header_preproc=no
15673 rm -f conftest.err conftest.$ac_ext
15674 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15675 echo "${ECHO_T}$ac_header_preproc" >&6; }
15677 # So? What about this header?
15678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15680 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15681 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15682 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15684 ac_header_preproc=yes
15687 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15688 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15689 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15690 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15691 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15692 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15693 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15694 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15695 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15697 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15698 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15702 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15703 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15704 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached
) $ECHO_C" >&6
15707 eval "$as_ac_Header=\
$ac_header_preproc"
15709 ac_res=`eval echo '${'$as_ac_Header'}'`
15710 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15711 echo "${ECHO_T}$ac_res" >&6; }
15714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15728 for ac_header in $ac_header_list
15730 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15731 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15732 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15733 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15734 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15735 echo $ECHO_N "(cached
) $ECHO_C" >&6
15737 ac_res=`eval echo '${'$as_ac_Header'}'`
15738 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15739 echo "${ECHO_T}$ac_res" >&6; }
15741 # Is the header compilable?
15742 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15743 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15750 $ac_includes_default
15751 #include <$ac_header>
15753 rm -f conftest.$ac_objext
15754 if { (ac_try="$ac_compile"
15755 case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_compile") 2>conftest.er1
15762 grep -v '^ *+' conftest.er1 >conftest.err
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest.$ac_objext; then
15770 ac_header_compiler=yes
15772 echo "$as_me: failed program was
:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 ac_header_compiler=no
15778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15780 echo "${ECHO_T}$ac_header_compiler" >&6; }
15782 # Is the header present?
15783 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15784 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15785 cat >conftest.$ac_ext <<_ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 #include <$ac_header>
15793 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15805 (exit $ac_status); } >/dev/null && {
15806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15809 ac_header_preproc=yes
15811 echo "$as_me: failed program was
:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_header_preproc=no
15817 rm -f conftest.err conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15819 echo "${ECHO_T}$ac_header_preproc" >&6; }
15821 # So? What about this header?
15822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15824 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15825 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15826 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15828 ac_header_preproc=yes
15831 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15832 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15833 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15834 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15835 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15836 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15837 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15838 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15839 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15841 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15842 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15846 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15847 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15848 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15849 echo $ECHO_N "(cached
) $ECHO_C" >&6
15851 eval "$as_ac_Header=\
$ac_header_preproc"
15853 ac_res=`eval echo '${'$as_ac_Header'}'`
15854 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15855 echo "${ECHO_T}$ac_res" >&6; }
15858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15859 cat >>confdefs.h <<_ACEOF
15860 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15875 for ac_func in $ac_func_list
15877 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15878 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15879 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15880 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached
) $ECHO_C" >&6
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15891 #define $ac_func innocuous_$ac_func
15893 /* System header to define __stub macros and hopefully few prototypes,
15894 which can conflict with char $ac_func (); below.
15895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 <limits.h> exists even on freestanding compilers. */
15899 # include <limits.h>
15901 # include <assert.h>
15906 /* Override any GCC internal prototype to avoid an error.
15907 Use char because int might match the return type of a GCC
15908 builtin and then its argument prototype would still apply. */
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined __stub_$ac_func || defined __stub___$ac_func
15923 return $ac_func ();
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (ac_try="$ac_link"
15930 case "(($ac_try" in
15931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15932 *) ac_try_echo=$ac_try;;
15934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_link") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1 >conftest.err
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15941 (exit $ac_status); } && {
15942 test -z "$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15944 } && test -s conftest$ac_exeext &&
15945 $as_test_x conftest$ac_exeext; then
15946 eval "$as_ac_var=yes"
15948 echo "$as_me: failed program was
:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15951 eval "$as_ac_var=no
"
15954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15955 conftest$ac_exeext conftest.$ac_ext
15957 ac_res=`eval echo '${'$as_ac_var'}'`
15958 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15959 echo "${ECHO_T}$ac_res" >&6; }
15960 if test `eval echo '${'$as_ac_var'}'` = yes; then
15961 cat >>confdefs.h <<_ACEOF
15962 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15984 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15985 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15986 if test "${ac_cv_func_working_mktime+set}" = set; then
15987 echo $ECHO_N "(cached
) $ECHO_C" >&6
15989 if test "$cross_compiling" = yes; then
15990 ac_cv_func_working_mktime=no
15992 cat >conftest.$ac_ext <<_ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 /* Test program from Paul Eggert and Tony Leneis. */
15999 #ifdef TIME_WITH_SYS_TIME
16000 # include <sys/time.h>
16003 # ifdef HAVE_SYS_TIME_H
16004 # include <sys/time.h>
16010 #include <limits.h>
16011 #include <stdlib.h>
16013 #ifdef HAVE_UNISTD_H
16014 # include <unistd.h>
16018 # define alarm(X) /* empty */
16021 /* Work around redefinition to rpl_putenv by other config tests. */
16024 static time_t time_t_max;
16025 static time_t time_t_min;
16027 /* Values we'll use to set the TZ environment variable. */
16028 static char *tz_strings[] = {
16029 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16030 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16032 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16034 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16035 Based on a problem report from Andreas Jaeger. */
16037 spring_forward_gap ()
16039 /* glibc (up to about 1998-10-07) failed this test. */
16042 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16043 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16044 on systems that don't support the Olson extension, or don't have the
16045 full zoneinfo tables installed. */
16046 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16055 return mktime (&tm) != (time_t) -1;
16063 return ! (lt = localtime (&now)) || mktime (lt) == now;
16070 return (mktime_test1 (now)
16071 && mktime_test1 ((time_t) (time_t_max - now))
16072 && mktime_test1 ((time_t) (time_t_min + now)));
16078 /* Based on code from Ariel Faigon. */
16088 return tm.tm_mon == 2 && tm.tm_mday == 31;
16097 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16098 now = mktime (&tm);
16099 if (now != (time_t) -1)
16101 struct tm *lt = localtime (&now);
16103 && lt->tm_year == tm.tm_year
16104 && lt->tm_mon == tm.tm_mon
16105 && lt->tm_mday == tm.tm_mday
16106 && lt->tm_hour == tm.tm_hour
16107 && lt->tm_min == tm.tm_min
16108 && lt->tm_sec == tm.tm_sec
16109 && lt->tm_yday == tm.tm_yday
16110 && lt->tm_wday == tm.tm_wday
16111 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16112 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16121 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16122 ignoring leap seconds. */
16123 unsigned long int answer = 2527315200UL;
16127 tm.tm_year = 2050 - 1900;
16130 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16133 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16134 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16135 on systems that don't support the Olson extension, or don't have the
16136 full zoneinfo tables installed. */
16137 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16141 /* Check that the result is either a failure, or close enough
16142 to the correct answer that we can assume the discrepancy is
16143 due to leap seconds. */
16144 return (t == (time_t) -1
16145 || (0 < t && answer - 120 <= t && t <= answer + 120));
16154 /* This test makes some buggy mktime implementations loop.
16155 Give up after 60 seconds; a mktime slower than that
16156 isn't worth using anyway. */
16161 t = (time_t_max << 1) + 1;
16162 if (t <= time_t_max)
16166 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16168 delta = time_t_max / 997; /* a suitable prime number */
16169 for (i = 0; i < N_STRINGS; i++)
16172 putenv (tz_strings[i]);
16174 for (t = 0; t <= time_t_max - delta; t += delta)
16175 if (! mktime_test (t))
16177 if (! (mktime_test ((time_t) 1)
16178 && mktime_test ((time_t) (60 * 60))
16179 && mktime_test ((time_t) (60 * 60 * 24))))
16182 for (j = 1; ; j <<= 1)
16183 if (! bigtime_test (j))
16185 else if (INT_MAX / 2 < j)
16187 if (! bigtime_test (INT_MAX))
16190 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16193 rm -f conftest$ac_exeext
16194 if { (ac_try="$ac_link"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_link") 2>&5
16202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16204 { (case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_try") 2>&5
16211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_func_working_mktime=yes
16215 echo "$as_me: program exited with status
$ac_status" >&5
16216 echo "$as_me: failed program was
:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ( exit $ac_status )
16220 ac_cv_func_working_mktime=no
16222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16227 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16228 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16229 if test $ac_cv_func_working_mktime = no; then
16230 case " $LIBOBJS " in
16231 *" mktime.
$ac_objext "* ) ;;
16232 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16238 if test "$ac_cv_func_working_mktime" = no; then
16240 cat >>confdefs.h <<\_ACEOF
16241 #define BROKEN_MKTIME 1
16246 ac_have_func=no # yes means we've found a way to get the load average.
16248 # Make sure getloadavg.c is where it belongs, at configure-time.
16249 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16250 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16251 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16252 { (exit 1); exit 1; }; }
16256 # Check for getloadavg, but be sure not to touch the cache variable.
16257 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16258 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16259 if test "${ac_cv_func_getloadavg+set}" = set; then
16260 echo $ECHO_N "(cached
) $ECHO_C" >&6
16262 cat >conftest.$ac_ext <<_ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16270 #define getloadavg innocuous_getloadavg
16272 /* System header to define __stub macros and hopefully few prototypes,
16273 which can conflict with char getloadavg (); below.
16274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16275 <limits.h> exists even on freestanding compilers. */
16278 # include <limits.h>
16280 # include <assert.h>
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16291 char getloadavg ();
16292 /* The GNU C library defines this for functions which it implements
16293 to always fail with ENOSYS. Some functions are actually named
16294 something starting with __ and the normal name is an alias. */
16295 #if defined __stub_getloadavg || defined __stub___getloadavg
16302 return getloadavg ();
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_link") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest$ac_exeext &&
16324 $as_test_x conftest$ac_exeext; then
16325 ac_cv_func_getloadavg=yes
16327 echo "$as_me: failed program was
:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_cv_func_getloadavg=no
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16336 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16337 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16338 if test $ac_cv_func_getloadavg = yes; then
16343 ) && ac_have_func=yes
16345 # On HPUX9, an unprivileged user can get load averages through this function.
16347 for ac_func in pstat_getdynamic
16349 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16350 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16351 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16352 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16353 echo $ECHO_N "(cached
) $ECHO_C" >&6
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16363 #define $ac_func innocuous_$ac_func
16365 /* System header to define __stub macros and hopefully few prototypes,
16366 which can conflict with char $ac_func (); below.
16367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16368 <limits.h> exists even on freestanding compilers. */
16371 # include <limits.h>
16373 # include <assert.h>
16378 /* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16385 /* The GNU C library defines this for functions which it implements
16386 to always fail with ENOSYS. Some functions are actually named
16387 something starting with __ and the normal name is an alias. */
16388 #if defined __stub_$ac_func || defined __stub___$ac_func
16395 return $ac_func ();
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (ac_try="$ac_link"
16402 case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_link") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest$ac_exeext &&
16417 $as_test_x conftest$ac_exeext; then
16418 eval "$as_ac_var=yes"
16420 echo "$as_me: failed program was
:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 eval "$as_ac_var=no
"
16426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16427 conftest$ac_exeext conftest.$ac_ext
16429 ac_res=`eval echo '${'$as_ac_var'}'`
16430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16431 echo "${ECHO_T}$ac_res" >&6; }
16432 if test `eval echo '${'$as_ac_var'}'` = yes; then
16433 cat >>confdefs.h <<_ACEOF
16434 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16441 # Solaris has libkstat which does not require root.
16443 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16444 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16445 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16446 echo $ECHO_N "(cached
) $ECHO_C" >&6
16448 ac_check_lib_save_LIBS=$LIBS
16449 LIBS="-lkstat $LIBS"
16450 cat >conftest.$ac_ext <<_ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16457 /* Override any GCC internal prototype to avoid an error.
16458 Use char because int might match the return type of a GCC
16459 builtin and then its argument prototype would still apply. */
16463 char kstat_open ();
16467 return kstat_open ();
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_link") 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext &&
16489 $as_test_x conftest$ac_exeext; then
16490 ac_cv_lib_kstat_kstat_open=yes
16492 echo "$as_me: failed program was
:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_cv_lib_kstat_kstat_open=no
16498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16499 conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16502 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16503 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16504 if test $ac_cv_lib_kstat_kstat_open = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define HAVE_LIBKSTAT 1
16509 LIBS="-lkstat $LIBS"
16513 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16515 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16516 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16517 # to get the right answer into the cache.
16518 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16519 if test $ac_have_func = no; then
16520 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16521 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16522 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16523 echo $ECHO_N "(cached
) $ECHO_C" >&6
16525 ac_check_lib_save_LIBS=$LIBS
16527 cat >conftest.$ac_ext <<_ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16534 /* Override any GCC internal prototype to avoid an error.
16535 Use char because int might match the return type of a GCC
16536 builtin and then its argument prototype would still apply. */
16544 return elf_begin ();
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_link") 2>conftest.er1
16558 grep -v '^ *+' conftest.er1 >conftest.err
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest$ac_exeext &&
16566 $as_test_x conftest$ac_exeext; then
16567 ac_cv_lib_elf_elf_begin=yes
16569 echo "$as_me: failed program was
:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 ac_cv_lib_elf_elf_begin=no
16575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16576 conftest$ac_exeext conftest.$ac_ext
16577 LIBS=$ac_check_lib_save_LIBS
16579 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16580 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16581 if test $ac_cv_lib_elf_elf_begin = yes; then
16586 if test $ac_have_func = no; then
16587 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16588 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16589 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16590 echo $ECHO_N "(cached
) $ECHO_C" >&6
16592 ac_check_lib_save_LIBS=$LIBS
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16601 /* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
16611 return kvm_open ();
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (ac_try="$ac_link"
16618 case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_link") 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16629 (exit $ac_status); } && {
16630 test -z "$ac_c_werror_flag" ||
16631 test ! -s conftest.err
16632 } && test -s conftest$ac_exeext &&
16633 $as_test_x conftest$ac_exeext; then
16634 ac_cv_lib_kvm_kvm_open=yes
16636 echo "$as_me: failed program was
:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 ac_cv_lib_kvm_kvm_open=no
16642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16643 conftest$ac_exeext conftest.$ac_ext
16644 LIBS=$ac_check_lib_save_LIBS
16646 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16647 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16648 if test $ac_cv_lib_kvm_kvm_open = yes; then
16652 # Check for the 4.4BSD definition of getloadavg.
16653 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16654 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16655 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16656 echo $ECHO_N "(cached
) $ECHO_C" >&6
16658 ac_check_lib_save_LIBS=$LIBS
16659 LIBS="-lutil $LIBS"
16660 cat >conftest.$ac_ext <<_ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16667 /* Override any GCC internal prototype to avoid an error.
16668 Use char because int might match the return type of a GCC
16669 builtin and then its argument prototype would still apply. */
16673 char getloadavg ();
16677 return getloadavg ();
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16689 (eval "$ac_link") 2>conftest.er1
16691 grep -v '^ *+' conftest.er1 >conftest.err
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16695 (exit $ac_status); } && {
16696 test -z "$ac_c_werror_flag" ||
16697 test ! -s conftest.err
16698 } && test -s conftest$ac_exeext &&
16699 $as_test_x conftest$ac_exeext; then
16700 ac_cv_lib_util_getloadavg=yes
16702 echo "$as_me: failed program was
:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ac_cv_lib_util_getloadavg=no
16708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16709 conftest$ac_exeext conftest.$ac_ext
16710 LIBS=$ac_check_lib_save_LIBS
16712 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16713 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16714 if test $ac_cv_lib_util_getloadavg = yes; then
16715 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16720 if test $ac_have_func = no; then
16721 # There is a commonly available library for RS/6000 AIX.
16722 # Since it is not a standard part of AIX, it might be installed locally.
16723 ac_getloadavg_LIBS=$LIBS
16724 LIBS="-L/usr
/local
/lib
$LIBS"
16725 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16726 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16727 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16728 echo $ECHO_N "(cached
) $ECHO_C" >&6
16730 ac_check_lib_save_LIBS=$LIBS
16731 LIBS="-lgetloadavg $LIBS"
16732 cat >conftest.$ac_ext <<_ACEOF
16735 cat confdefs.h >>conftest.$ac_ext
16736 cat >>conftest.$ac_ext <<_ACEOF
16737 /* end confdefs.h. */
16739 /* Override any GCC internal prototype to avoid an error.
16740 Use char because int might match the return type of a GCC
16741 builtin and then its argument prototype would still apply. */
16745 char getloadavg ();
16749 return getloadavg ();
16754 rm -f conftest.$ac_objext conftest$ac_exeext
16755 if { (ac_try="$ac_link"
16756 case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_link") 2>conftest.er1
16763 grep -v '^ *+' conftest.er1 >conftest.err
16765 cat conftest.err >&5
16766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16767 (exit $ac_status); } && {
16768 test -z "$ac_c_werror_flag" ||
16769 test ! -s conftest.err
16770 } && test -s conftest$ac_exeext &&
16771 $as_test_x conftest$ac_exeext; then
16772 ac_cv_lib_getloadavg_getloadavg=yes
16774 echo "$as_me: failed program was
:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ac_cv_lib_getloadavg_getloadavg=no
16780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16781 conftest$ac_exeext conftest.$ac_ext
16782 LIBS=$ac_check_lib_save_LIBS
16784 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16785 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16786 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16787 LIBS="-lgetloadavg $LIBS"
16789 LIBS=$ac_getloadavg_LIBS
16794 # Make sure it is really in the library, if we think we found it,
16795 # otherwise set up the replacement function.
16797 for ac_func in getloadavg
16799 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16800 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16801 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16802 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16803 echo $ECHO_N "(cached
) $ECHO_C" >&6
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16813 #define $ac_func innocuous_$ac_func
16815 /* System header to define __stub macros and hopefully few prototypes,
16816 which can conflict with char $ac_func (); below.
16817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16818 <limits.h> exists even on freestanding compilers. */
16821 # include <limits.h>
16823 # include <assert.h>
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16835 /* The GNU C library defines this for functions which it implements
16836 to always fail with ENOSYS. Some functions are actually named
16837 something starting with __ and the normal name is an alias. */
16838 #if defined __stub_$ac_func || defined __stub___$ac_func
16845 return $ac_func ();
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 eval "$as_ac_var=yes"
16870 echo "$as_me: failed program was
:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 eval "$as_ac_var=no
"
16876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16877 conftest$ac_exeext conftest.$ac_ext
16879 ac_res=`eval echo '${'$as_ac_var'}'`
16880 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16881 echo "${ECHO_T}$ac_res" >&6; }
16882 if test `eval echo '${'$as_ac_var'}'` = yes; then
16883 cat >>confdefs.h <<_ACEOF
16884 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16888 case " $LIBOBJS " in
16889 *" getloadavg.
$ac_objext "* ) ;;
16890 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16895 cat >>confdefs.h <<\_ACEOF
16896 #define C_GETLOADAVG 1
16899 # Figure out what our getloadavg.c needs.
16901 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16902 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16903 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16904 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16905 echo $ECHO_N "(cached
) $ECHO_C" >&6
16907 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16908 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16910 # Is the header compilable?
16911 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16912 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16913 cat >conftest.$ac_ext <<_ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 $ac_includes_default
16920 #include <sys/dg_sys_info.h>
16922 rm -f conftest.$ac_objext
16923 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
16939 ac_header_compiler=yes
16941 echo "$as_me: failed program was
:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_header_compiler=no
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16949 echo "${ECHO_T}$ac_header_compiler" >&6; }
16951 # Is the header present?
16952 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16953 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16954 cat >conftest.$ac_ext <<_ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 #include <sys/dg_sys_info.h>
16962 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16963 case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16970 grep -v '^ *+' conftest.er1 >conftest.err
16972 cat conftest.err >&5
16973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16974 (exit $ac_status); } >/dev/null && {
16975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16976 test ! -s conftest.err
16978 ac_header_preproc=yes
16980 echo "$as_me: failed program was
:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_header_preproc=no
16986 rm -f conftest.err conftest.$ac_ext
16987 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16988 echo "${ECHO_T}$ac_header_preproc" >&6; }
16990 # So? What about this header?
16991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16993 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16994 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16995 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16996 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16997 ac_header_preproc=yes
17000 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17001 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17002 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17003 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17004 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17005 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17006 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17007 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17008 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17009 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17010 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17011 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17015 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17016 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17017 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17018 echo $ECHO_N "(cached
) $ECHO_C" >&6
17020 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17022 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17023 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17026 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17029 cat >>confdefs.h <<\_ACEOF
17034 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17035 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17036 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17037 echo $ECHO_N "(cached
) $ECHO_C" >&6
17039 ac_check_lib_save_LIBS=$LIBS
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17048 /* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17054 char dg_sys_info ();
17058 return dg_sys_info ();
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest$ac_exeext &&
17080 $as_test_x conftest$ac_exeext; then
17081 ac_cv_lib_dgc_dg_sys_info=yes
17083 echo "$as_me: failed program was
:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_lib_dgc_dg_sys_info=no
17089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090 conftest$ac_exeext conftest.$ac_ext
17091 LIBS=$ac_check_lib_save_LIBS
17093 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17094 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17095 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17096 cat >>confdefs.h <<_ACEOF
17097 #define HAVE_LIBDGC 1
17108 if test "${ac_cv_header_locale_h+set}" = set; then
17109 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17110 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17111 if test "${ac_cv_header_locale_h+set}" = set; then
17112 echo $ECHO_N "(cached
) $ECHO_C" >&6
17114 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17115 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17117 # Is the header compilable?
17118 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17119 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17120 cat >conftest.$ac_ext <<_ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h. */
17126 $ac_includes_default
17127 #include <locale.h>
17129 rm -f conftest.$ac_objext
17130 if { (ac_try="$ac_compile"
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_compile") 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); } && {
17143 test -z "$ac_c_werror_flag" ||
17144 test ! -s conftest.err
17145 } && test -s conftest.$ac_objext; then
17146 ac_header_compiler=yes
17148 echo "$as_me: failed program was
:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 ac_header_compiler=no
17154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17155 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17156 echo "${ECHO_T}$ac_header_compiler" >&6; }
17158 # Is the header present?
17159 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17160 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <locale.h>
17169 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17170 case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17177 grep -v '^ *+' conftest.er1 >conftest.err
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17181 (exit $ac_status); } >/dev/null && {
17182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17183 test ! -s conftest.err
17185 ac_header_preproc=yes
17187 echo "$as_me: failed program was
:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_header_preproc=no
17193 rm -f conftest.err conftest.$ac_ext
17194 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17195 echo "${ECHO_T}$ac_header_preproc" >&6; }
17197 # So? What about this header?
17198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17200 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17201 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17202 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17203 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17204 ac_header_preproc=yes
17207 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17208 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17209 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17210 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17211 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17212 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17213 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17214 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17215 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17216 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17217 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17218 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17222 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17223 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17224 if test "${ac_cv_header_locale_h+set}" = set; then
17225 echo $ECHO_N "(cached
) $ECHO_C" >&6
17227 ac_cv_header_locale_h=$ac_header_preproc
17229 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17230 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17236 for ac_func in setlocale
17238 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17239 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17240 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17241 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17242 echo $ECHO_N "(cached
) $ECHO_C" >&6
17244 cat >conftest.$ac_ext <<_ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17252 #define $ac_func innocuous_$ac_func
17254 /* System header to define __stub macros and hopefully few prototypes,
17255 which can conflict with char $ac_func (); below.
17256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17257 <limits.h> exists even on freestanding compilers. */
17260 # include <limits.h>
17262 # include <assert.h>
17267 /* Override any GCC internal prototype to avoid an error.
17268 Use char because int might match the return type of a GCC
17269 builtin and then its argument prototype would still apply. */
17274 /* The GNU C library defines this for functions which it implements
17275 to always fail with ENOSYS. Some functions are actually named
17276 something starting with __ and the normal name is an alias. */
17277 #if defined __stub_$ac_func || defined __stub___$ac_func
17284 return $ac_func ();
17289 rm -f conftest.$ac_objext conftest$ac_exeext
17290 if { (ac_try="$ac_link"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_link") 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17302 (exit $ac_status); } && {
17303 test -z "$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17305 } && test -s conftest$ac_exeext &&
17306 $as_test_x conftest$ac_exeext; then
17307 eval "$as_ac_var=yes"
17309 echo "$as_me: failed program was
:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 eval "$as_ac_var=no
"
17315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17316 conftest$ac_exeext conftest.$ac_ext
17318 ac_res=`eval echo '${'$as_ac_var'}'`
17319 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17320 echo "${ECHO_T}$ac_res" >&6; }
17321 if test `eval echo '${'$as_ac_var'}'` = yes; then
17322 cat >>confdefs.h <<_ACEOF
17323 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17330 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17331 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17332 # Irix 4.0.5F has the header but not the library.
17333 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17336 cat >>confdefs.h <<\_ACEOF
17342 if test $ac_have_func = no; then
17343 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17344 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17345 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17346 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17347 echo $ECHO_N "(cached
) $ECHO_C" >&6
17349 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17350 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17352 # Is the header compilable?
17353 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17354 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17355 cat >conftest.$ac_ext <<_ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361 $ac_includes_default
17362 #include <inq_stats/cpustats.h>
17364 rm -f conftest.$ac_objext
17365 if { (ac_try="$ac_compile"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_compile") 2>conftest.er1
17373 grep -v '^ *+' conftest.er1 >conftest.err
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_c_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest.$ac_objext; then
17381 ac_header_compiler=yes
17383 echo "$as_me: failed program was
:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 ac_header_compiler=no
17389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17390 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17391 echo "${ECHO_T}$ac_header_compiler" >&6; }
17393 # Is the header present?
17394 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17395 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17396 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 #include <inq_stats/cpustats.h>
17404 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17405 case "(($ac_try" in
17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407 *) ac_try_echo=$ac_try;;
17409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17410 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17416 (exit $ac_status); } >/dev/null && {
17417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17418 test ! -s conftest.err
17420 ac_header_preproc=yes
17422 echo "$as_me: failed program was
:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17425 ac_header_preproc=no
17428 rm -f conftest.err conftest.$ac_ext
17429 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17430 echo "${ECHO_T}$ac_header_preproc" >&6; }
17432 # So? What about this header?
17433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17435 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17436 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17437 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17438 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17439 ac_header_preproc=yes
17442 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17443 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17444 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17445 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17446 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17447 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17448 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17449 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17450 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17451 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17452 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17453 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17457 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17458 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17459 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17460 echo $ECHO_N "(cached
) $ECHO_C" >&6
17462 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17464 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17465 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17468 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17471 cat >>confdefs.h <<\_ACEOF
17476 cat >>confdefs.h <<\_ACEOF
17485 if test $ac_have_func = no; then
17486 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17487 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17488 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17489 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17490 echo $ECHO_N "(cached
) $ECHO_C" >&6
17492 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17495 # Is the header compilable?
17496 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17497 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17505 #include <sys/cpustats.h>
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
17524 ac_header_compiler=yes
17526 echo "$as_me: failed program was
:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 ac_header_compiler=no
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17534 echo "${ECHO_T}$ac_header_compiler" >&6; }
17536 # Is the header present?
17537 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17538 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 #include <sys/cpustats.h>
17547 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17559 (exit $ac_status); } >/dev/null && {
17560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17563 ac_header_preproc=yes
17565 echo "$as_me: failed program was
:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_header_preproc=no
17571 rm -f conftest.err conftest.$ac_ext
17572 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17573 echo "${ECHO_T}$ac_header_preproc" >&6; }
17575 # So? What about this header?
17576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17578 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17579 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17580 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17581 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17582 ac_header_preproc=yes
17585 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17586 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17587 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17588 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17589 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17590 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17591 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17592 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17593 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17594 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17595 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17596 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17600 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17601 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17602 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17603 echo $ECHO_N "(cached
) $ECHO_C" >&6
17605 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17607 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17608 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17611 if test $ac_cv_header_sys_cpustats_h = yes; then
17612 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17621 if test $ac_have_func = no; then
17623 for ac_header in mach/mach.h
17625 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17626 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17627 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17628 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17629 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17630 echo $ECHO_N "(cached
) $ECHO_C" >&6
17632 ac_res=`eval echo '${'$as_ac_Header'}'`
17633 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17634 echo "${ECHO_T}$ac_res" >&6; }
17636 # Is the header compilable?
17637 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17638 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 $ac_includes_default
17646 #include <$ac_header>
17648 rm -f conftest.$ac_objext
17649 if { (ac_try="$ac_compile"
17650 case "(($ac_try" in
17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17655 (eval "$ac_compile") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17661 (exit $ac_status); } && {
17662 test -z "$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17664 } && test -s conftest.$ac_objext; then
17665 ac_header_compiler=yes
17667 echo "$as_me: failed program was
:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_header_compiler=no
17673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17675 echo "${ECHO_T}$ac_header_compiler" >&6; }
17677 # Is the header present?
17678 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17679 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17680 cat >conftest.$ac_ext <<_ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 #include <$ac_header>
17688 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17689 case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17696 grep -v '^ *+' conftest.er1 >conftest.err
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17700 (exit $ac_status); } >/dev/null && {
17701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17702 test ! -s conftest.err
17704 ac_header_preproc=yes
17706 echo "$as_me: failed program was
:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 ac_header_preproc=no
17712 rm -f conftest.err conftest.$ac_ext
17713 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17714 echo "${ECHO_T}$ac_header_preproc" >&6; }
17716 # So? What about this header?
17717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17719 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17720 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17721 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17723 ac_header_preproc=yes
17726 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17727 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17728 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17729 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17730 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17731 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17732 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17733 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17734 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17736 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17737 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17741 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17742 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17743 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17744 echo $ECHO_N "(cached
) $ECHO_C" >&6
17746 eval "$as_ac_Header=\
$ac_header_preproc"
17748 ac_res=`eval echo '${'$as_ac_Header'}'`
17749 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17750 echo "${ECHO_T}$ac_res" >&6; }
17753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17765 for ac_header in nlist.h
17767 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17768 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17769 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17770 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17772 echo $ECHO_N "(cached
) $ECHO_C" >&6
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17778 # Is the header compilable?
17779 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17780 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17781 cat >conftest.$ac_ext <<_ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787 $ac_includes_default
17788 #include <$ac_header>
17790 rm -f conftest.$ac_objext
17791 if { (ac_try="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17803 (exit $ac_status); } && {
17804 test -z "$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 } && test -s conftest.$ac_objext; then
17807 ac_header_compiler=yes
17809 echo "$as_me: failed program was
:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_header_compiler=no
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17817 echo "${ECHO_T}$ac_header_compiler" >&6; }
17819 # Is the header present?
17820 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17821 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17822 cat >conftest.$ac_ext <<_ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828 #include <$ac_header>
17830 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17831 case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17838 grep -v '^ *+' conftest.er1 >conftest.err
17840 cat conftest.err >&5
17841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17842 (exit $ac_status); } >/dev/null && {
17843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17844 test ! -s conftest.err
17846 ac_header_preproc=yes
17848 echo "$as_me: failed program was
:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 ac_header_preproc=no
17854 rm -f conftest.err conftest.$ac_ext
17855 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17856 echo "${ECHO_T}$ac_header_preproc" >&6; }
17858 # So? What about this header?
17859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17861 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17862 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17863 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17865 ac_header_preproc=yes
17868 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17869 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17870 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17871 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17872 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17873 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17874 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17875 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17876 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17878 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17879 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17883 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17884 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17885 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17886 echo $ECHO_N "(cached
) $ECHO_C" >&6
17888 eval "$as_ac_Header=\
$ac_header_preproc"
17890 ac_res=`eval echo '${'$as_ac_Header'}'`
17891 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17892 echo "${ECHO_T}$ac_res" >&6; }
17895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17896 cat >>confdefs.h <<_ACEOF
17897 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17899 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17900 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17901 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17902 echo $ECHO_N "(cached
) $ECHO_C" >&6
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17915 static struct nlist ac_aggr;
17916 if (ac_aggr.n_un.n_name)
17922 rm -f conftest.$ac_objext
17923 if { (ac_try="$ac_compile"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_compile") 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17935 (exit $ac_status); } && {
17936 test -z "$ac_c_werror_flag" ||
17937 test ! -s conftest.err
17938 } && test -s conftest.$ac_objext; then
17939 ac_cv_member_struct_nlist_n_un_n_name=yes
17941 echo "$as_me: failed program was
:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17955 static struct nlist ac_aggr;
17956 if (sizeof ac_aggr.n_un.n_name)
17962 rm -f conftest.$ac_objext
17963 if { (ac_try="$ac_compile"
17964 case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17969 (eval "$ac_compile") 2>conftest.er1
17971 grep -v '^ *+' conftest.er1 >conftest.err
17973 cat conftest.err >&5
17974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17975 (exit $ac_status); } && {
17976 test -z "$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 } && test -s conftest.$ac_objext; then
17979 ac_cv_member_struct_nlist_n_un_n_name=yes
17981 echo "$as_me: failed program was
:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17984 ac_cv_member_struct_nlist_n_un_n_name=no
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17992 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17993 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17994 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18001 cat >>confdefs.h <<\_ACEOF
18002 #define NLIST_NAME_UNION 1
18016 # Some definitions of getloadavg require that the program be installed setgid.
18017 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18018 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18019 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18020 echo $ECHO_N "(cached
) $ECHO_C" >&6
18022 cat >conftest.$ac_ext <<_ACEOF
18025 cat confdefs.h >>conftest.$ac_ext
18026 cat >>conftest.$ac_ext <<_ACEOF
18027 /* end confdefs.h. */
18028 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18029 #ifdef LDAV_PRIVILEGED
18030 Yowza Am I SETGID yet
18033 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18034 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18035 ac_cv_func_getloadavg_setgid=yes
18037 ac_cv_func_getloadavg_setgid=no
18042 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18043 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18044 if test $ac_cv_func_getloadavg_setgid = yes; then
18047 cat >>confdefs.h <<\_ACEOF
18048 #define GETLOADAVG_PRIVILEGED 1
18055 if test $ac_cv_func_getloadavg_setgid = yes; then
18056 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18057 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18058 if test "${ac_cv_group_kmem+set}" = set; then
18059 echo $ECHO_N "(cached
) $ECHO_C" >&6
18061 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18062 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18063 # If we got an error (system does not support symlinks), try without -L.
18064 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18065 ac_cv_group_kmem=`echo $ac_ls_output \
18066 | sed -ne 's/[ ][ ]*/ /g;
18067 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18071 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18072 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18073 KMEM_GROUP=$ac_cv_group_kmem
18075 if test "x
$ac_save_LIBS" = x; then
18076 GETLOADAVG_LIBS=$LIBS
18078 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18084 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18085 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18086 if test "${ac_cv_sys_largefile_source+set}" = set; then
18087 echo $ECHO_N "(cached
) $ECHO_C" >&6
18090 cat >conftest.$ac_ext <<_ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h. */
18096 #include <sys/types.h> /* for off_t */
18101 int (*fp) (FILE *, off_t, int) = fseeko;
18102 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18107 rm -f conftest.$ac_objext conftest$ac_exeext
18108 if { (ac_try="$ac_link"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_link") 2>conftest.er1
18116 grep -v '^ *+' conftest.er1 >conftest.err
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18120 (exit $ac_status); } && {
18121 test -z "$ac_c_werror_flag" ||
18122 test ! -s conftest.err
18123 } && test -s conftest$ac_exeext &&
18124 $as_test_x conftest$ac_exeext; then
18125 ac_cv_sys_largefile_source=no; break
18127 echo "$as_me: failed program was
:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18134 conftest$ac_exeext conftest.$ac_ext
18135 cat >conftest.$ac_ext <<_ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h. */
18141 #define _LARGEFILE_SOURCE 1
18142 #include <sys/types.h> /* for off_t */
18147 int (*fp) (FILE *, off_t, int) = fseeko;
18148 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (ac_try="$ac_link"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_link") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest$ac_exeext &&
18170 $as_test_x conftest$ac_exeext; then
18171 ac_cv_sys_largefile_source=1; break
18173 echo "$as_me: failed program was
:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18180 conftest$ac_exeext conftest.$ac_ext
18181 ac_cv_sys_largefile_source=unknown
18185 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18186 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18187 case $ac_cv_sys_largefile_source in #(
18190 cat >>confdefs.h <<_ACEOF
18191 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18197 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18198 # in glibc 2.1.3, but that breaks too many other things.
18199 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18200 if test $ac_cv_sys_largefile_source != unknown; then
18202 cat >>confdefs.h <<\_ACEOF
18203 #define HAVE_FSEEKO 1
18209 # Configure getopt.
18210 # getopt.m4 serial 10
18212 # The getopt module assume you want GNU getopt, with getopt_long etc,
18213 # rather than vanilla POSIX getopt. This means your your code should
18214 # always include <getopt.h> for the getopt prototypes.
18226 # Prerequisites of lib/getopt*.
18233 for ac_header in getopt.h
18235 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18237 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18238 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18240 echo $ECHO_N "(cached
) $ECHO_C" >&6
18242 ac_res=`eval echo '${'$as_ac_Header'}'`
18243 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18244 echo "${ECHO_T}$ac_res" >&6; }
18246 # Is the header compilable?
18247 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18248 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 $ac_includes_default
18256 #include <$ac_header>
18258 rm -f conftest.$ac_objext
18259 if { (ac_try="$ac_compile"
18260 case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_compile") 2>conftest.er1
18267 grep -v '^ *+' conftest.er1 >conftest.err
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18271 (exit $ac_status); } && {
18272 test -z "$ac_c_werror_flag" ||
18273 test ! -s conftest.err
18274 } && test -s conftest.$ac_objext; then
18275 ac_header_compiler=yes
18277 echo "$as_me: failed program was
:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18280 ac_header_compiler=no
18283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18284 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18285 echo "${ECHO_T}$ac_header_compiler" >&6; }
18287 # Is the header present?
18288 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18289 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18290 cat >conftest.$ac_ext <<_ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 #include <$ac_header>
18298 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18299 case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18306 grep -v '^ *+' conftest.er1 >conftest.err
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18310 (exit $ac_status); } >/dev/null && {
18311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18312 test ! -s conftest.err
18314 ac_header_preproc=yes
18316 echo "$as_me: failed program was
:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_header_preproc=no
18322 rm -f conftest.err conftest.$ac_ext
18323 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18324 echo "${ECHO_T}$ac_header_preproc" >&6; }
18326 # So? What about this header?
18327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18329 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18330 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18331 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18333 ac_header_preproc=yes
18336 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18337 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18338 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18339 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18340 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18341 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18342 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18343 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18344 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18346 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18347 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18351 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18352 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18354 echo $ECHO_N "(cached
) $ECHO_C" >&6
18356 eval "$as_ac_Header=\
$ac_header_preproc"
18358 ac_res=`eval echo '${'$as_ac_Header'}'`
18359 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18360 echo "${ECHO_T}$ac_res" >&6; }
18363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18364 cat >>confdefs.h <<_ACEOF
18365 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18374 if test -z "$GETOPT_H"; then
18376 for ac_func in getopt_long_only
18378 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18379 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18380 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18381 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18382 echo $ECHO_N "(cached
) $ECHO_C" >&6
18384 cat >conftest.$ac_ext <<_ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18392 #define $ac_func innocuous_$ac_func
18394 /* System header to define __stub macros and hopefully few prototypes,
18395 which can conflict with char $ac_func (); below.
18396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18397 <limits.h> exists even on freestanding compilers. */
18400 # include <limits.h>
18402 # include <assert.h>
18407 /* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
18414 /* The GNU C library defines this for functions which it implements
18415 to always fail with ENOSYS. Some functions are actually named
18416 something starting with __ and the normal name is an alias. */
18417 #if defined __stub_$ac_func || defined __stub___$ac_func
18424 return $ac_func ();
18429 rm -f conftest.$ac_objext conftest$ac_exeext
18430 if { (ac_try="$ac_link"
18431 case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_link") 2>conftest.er1
18438 grep -v '^ *+' conftest.er1 >conftest.err
18440 cat conftest.err >&5
18441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18442 (exit $ac_status); } && {
18443 test -z "$ac_c_werror_flag" ||
18444 test ! -s conftest.err
18445 } && test -s conftest$ac_exeext &&
18446 $as_test_x conftest$ac_exeext; then
18447 eval "$as_ac_var=yes"
18449 echo "$as_me: failed program was
:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 eval "$as_ac_var=no
"
18455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18456 conftest$ac_exeext conftest.$ac_ext
18458 ac_res=`eval echo '${'$as_ac_var'}'`
18459 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18460 echo "${ECHO_T}$ac_res" >&6; }
18461 if test `eval echo '${'$as_ac_var'}'` = yes; then
18462 cat >>confdefs.h <<_ACEOF
18463 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18473 if test -z "$GETOPT_H"; then
18474 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18475 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18476 if test "${ac_cv_have_decl_optreset+set}" = set; then
18477 echo $ECHO_N "(cached
) $ECHO_C" >&6
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18485 #include <getopt.h>
18498 rm -f conftest.$ac_objext
18499 if { (ac_try="$ac_compile"
18500 case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18505 (eval "$ac_compile") 2>conftest.er1
18507 grep -v '^ *+' conftest.er1 >conftest.err
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18511 (exit $ac_status); } && {
18512 test -z "$ac_c_werror_flag" ||
18513 test ! -s conftest.err
18514 } && test -s conftest.$ac_objext; then
18515 ac_cv_have_decl_optreset=yes
18517 echo "$as_me: failed program was
:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18520 ac_cv_have_decl_optreset=no
18523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18526 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18527 if test $ac_cv_have_decl_optreset = yes; then
18533 if test -z "$GETOPT_H"; then
18534 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18535 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18536 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18537 echo $ECHO_N "(cached
) $ECHO_C" >&6
18539 if test "$cross_compiling" = yes; then
18540 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18541 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18542 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18543 echo $ECHO_N "(cached
) $ECHO_C" >&6
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 #include <getopt.h>
18556 #ifndef getopt_clip
18557 (void) getopt_clip;
18564 rm -f conftest.$ac_objext
18565 if { (ac_try="$ac_compile"
18566 case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18571 (eval "$ac_compile") 2>conftest.er1
18573 grep -v '^ *+' conftest.er1 >conftest.err
18575 cat conftest.err >&5
18576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18577 (exit $ac_status); } && {
18578 test -z "$ac_c_werror_flag" ||
18579 test ! -s conftest.err
18580 } && test -s conftest.$ac_objext; then
18581 ac_cv_have_decl_getopt_clip=yes
18583 echo "$as_me: failed program was
:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 ac_cv_have_decl_getopt_clip=no
18589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18592 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18593 if test $ac_cv_have_decl_getopt_clip = yes; then
18594 gl_cv_func_gnu_getopt=no
18596 gl_cv_func_gnu_getopt=yes
18600 cat >conftest.$ac_ext <<_ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 #include <getopt.h>
18612 myargv[0] = "conftest
";
18615 return getopt (2, myargv, "+a
") != '?';
18621 rm -f conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_link") 2>&5
18630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18632 { (case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_try") 2>&5
18639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 gl_cv_func_gnu_getopt=yes
18643 echo "$as_me: program exited with status
$ac_status" >&5
18644 echo "$as_me: failed program was
:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ( exit $ac_status )
18648 gl_cv_func_gnu_getopt=no
18650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18655 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18656 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18657 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18664 if test -n "$GETOPT_H"; then
18669 cat >>confdefs.h <<\_ACEOF
18670 #define __GETOPT_PREFIX rpl_
18676 GETOPTOBJS='getopt.o getopt1.o'
18683 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18684 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18685 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18686 echo $ECHO_N "(cached
) $ECHO_C" >&6
18688 # Use it with a single arg.
18689 cat >conftest.$ac_ext <<_ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695 $ac_includes_default
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_compile") 2>conftest.er1
18713 grep -v '^ *+' conftest.er1 >conftest.err
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18717 (exit $ac_status); } && {
18718 test -z "$ac_c_werror_flag" ||
18719 test ! -s conftest.err
18720 } && test -s conftest.$ac_objext; then
18721 ac_cv_func_getpgrp_void=no
18723 echo "$as_me: failed program was
:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 ac_cv_func_getpgrp_void=yes
18729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18733 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18734 if test $ac_cv_func_getpgrp_void = yes; then
18736 cat >>confdefs.h <<\_ACEOF
18737 #define GETPGRP_VOID 1
18744 for ac_func in strftime
18746 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18747 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18748 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18749 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18750 echo $ECHO_N "(cached
) $ECHO_C" >&6
18752 cat >conftest.$ac_ext <<_ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18760 #define $ac_func innocuous_$ac_func
18762 /* System header to define __stub macros and hopefully few prototypes,
18763 which can conflict with char $ac_func (); below.
18764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18765 <limits.h> exists even on freestanding compilers. */
18768 # include <limits.h>
18770 # include <assert.h>
18775 /* Override any GCC internal prototype to avoid an error.
18776 Use char because int might match the return type of a GCC
18777 builtin and then its argument prototype would still apply. */
18782 /* The GNU C library defines this for functions which it implements
18783 to always fail with ENOSYS. Some functions are actually named
18784 something starting with __ and the normal name is an alias. */
18785 #if defined __stub_$ac_func || defined __stub___$ac_func
18792 return $ac_func ();
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (ac_try="$ac_link"
18799 case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_link") 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18810 (exit $ac_status); } && {
18811 test -z "$ac_c_werror_flag" ||
18812 test ! -s conftest.err
18813 } && test -s conftest$ac_exeext &&
18814 $as_test_x conftest$ac_exeext; then
18815 eval "$as_ac_var=yes"
18817 echo "$as_me: failed program was
:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 eval "$as_ac_var=no
"
18823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18824 conftest$ac_exeext conftest.$ac_ext
18826 ac_res=`eval echo '${'$as_ac_var'}'`
18827 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18828 echo "${ECHO_T}$ac_res" >&6; }
18829 if test `eval echo '${'$as_ac_var'}'` = yes; then
18830 cat >>confdefs.h <<_ACEOF
18831 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18835 # strftime is in -lintl on SCO UNIX.
18836 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18837 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18838 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18839 echo $ECHO_N "(cached
) $ECHO_C" >&6
18841 ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lintl $LIBS"
18843 cat >conftest.$ac_ext <<_ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h. */
18850 /* Override any GCC internal prototype to avoid an error.
18851 Use char because int might match the return type of a GCC
18852 builtin and then its argument prototype would still apply. */
18860 return strftime ();
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_link") 2>conftest.er1
18874 grep -v '^ *+' conftest.er1 >conftest.err
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18878 (exit $ac_status); } && {
18879 test -z "$ac_c_werror_flag" ||
18880 test ! -s conftest.err
18881 } && test -s conftest$ac_exeext &&
18882 $as_test_x conftest$ac_exeext; then
18883 ac_cv_lib_intl_strftime=yes
18885 echo "$as_me: failed program was
:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_cv_lib_intl_strftime=no
18891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18892 conftest$ac_exeext conftest.$ac_ext
18893 LIBS=$ac_check_lib_save_LIBS
18895 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18896 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18897 if test $ac_cv_lib_intl_strftime = yes; then
18898 cat >>confdefs.h <<\_ACEOF
18899 #define HAVE_STRFTIME 1
18902 LIBS="-lintl $LIBS"
18911 for ac_func in grantpt
18913 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18914 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18915 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18916 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18917 echo $ECHO_N "(cached
) $ECHO_C" >&6
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18927 #define $ac_func innocuous_$ac_func
18929 /* System header to define __stub macros and hopefully few prototypes,
18930 which can conflict with char $ac_func (); below.
18931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18932 <limits.h> exists even on freestanding compilers. */
18935 # include <limits.h>
18937 # include <assert.h>
18942 /* Override any GCC internal prototype to avoid an error.
18943 Use char because int might match the return type of a GCC
18944 builtin and then its argument prototype would still apply. */
18949 /* The GNU C library defines this for functions which it implements
18950 to always fail with ENOSYS. Some functions are actually named
18951 something starting with __ and the normal name is an alias. */
18952 #if defined __stub_$ac_func || defined __stub___$ac_func
18959 return $ac_func ();
18964 rm -f conftest.$ac_objext conftest$ac_exeext
18965 if { (ac_try="$ac_link"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_link") 2>conftest.er1
18973 grep -v '^ *+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest$ac_exeext &&
18981 $as_test_x conftest$ac_exeext; then
18982 eval "$as_ac_var=yes"
18984 echo "$as_me: failed program was
:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 eval "$as_ac_var=no
"
18990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18991 conftest$ac_exeext conftest.$ac_ext
18993 ac_res=`eval echo '${'$as_ac_var'}'`
18994 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18995 echo "${ECHO_T}$ac_res" >&6; }
18996 if test `eval echo '${'$as_ac_var'}'` = yes; then
18997 cat >>confdefs.h <<_ACEOF
18998 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19005 # PTY-related GNU extensions.
19007 for ac_func in getpt
19009 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19010 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19011 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19012 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19013 echo $ECHO_N "(cached
) $ECHO_C" >&6
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19023 #define $ac_func innocuous_$ac_func
19025 /* System header to define __stub macros and hopefully few prototypes,
19026 which can conflict with char $ac_func (); below.
19027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19028 <limits.h> exists even on freestanding compilers. */
19031 # include <limits.h>
19033 # include <assert.h>
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19045 /* The GNU C library defines this for functions which it implements
19046 to always fail with ENOSYS. Some functions are actually named
19047 something starting with __ and the normal name is an alias. */
19048 #if defined __stub_$ac_func || defined __stub___$ac_func
19055 return $ac_func ();
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>conftest.er1
19069 grep -v '^ *+' conftest.er1 >conftest.err
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19073 (exit $ac_status); } && {
19074 test -z "$ac_c_werror_flag" ||
19075 test ! -s conftest.err
19076 } && test -s conftest$ac_exeext &&
19077 $as_test_x conftest$ac_exeext; then
19078 eval "$as_ac_var=yes"
19080 echo "$as_me: failed program was
:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 eval "$as_ac_var=no
"
19086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19087 conftest$ac_exeext conftest.$ac_ext
19089 ac_res=`eval echo '${'$as_ac_var'}'`
19090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19091 echo "${ECHO_T}$ac_res" >&6; }
19092 if test `eval echo '${'$as_ac_var'}'` = yes; then
19093 cat >>confdefs.h <<_ACEOF
19094 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19101 # Check this now, so that we will NOT find the above functions in ncurses.
19102 # That is because we have not set up to link ncurses in lib-src.
19103 # It's better to believe a function is not available
19104 # than to expect to find it in ncurses.
19106 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19107 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19108 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19109 echo $ECHO_N "(cached
) $ECHO_C" >&6
19111 ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-lncurses $LIBS"
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19120 /* Override any GCC internal prototype to avoid an error.
19121 Use char because int might match the return type of a GCC
19122 builtin and then its argument prototype would still apply. */
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (ac_try="$ac_link"
19137 case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19142 (eval "$ac_link") 2>conftest.er1
19144 grep -v '^ *+' conftest.er1 >conftest.err
19146 cat conftest.err >&5
19147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19148 (exit $ac_status); } && {
19149 test -z "$ac_c_werror_flag" ||
19150 test ! -s conftest.err
19151 } && test -s conftest$ac_exeext &&
19152 $as_test_x conftest$ac_exeext; then
19153 ac_cv_lib_ncurses_tparm=yes
19155 echo "$as_me: failed program was
:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ac_cv_lib_ncurses_tparm=no
19161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS=$ac_check_lib_save_LIBS
19165 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19166 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19167 if test $ac_cv_lib_ncurses_tparm = yes; then
19168 cat >>confdefs.h <<_ACEOF
19169 #define HAVE_LIBNCURSES 1
19172 LIBS="-lncurses $LIBS"
19177 # Do we need the Hesiod library to provide the support routines?
19178 if test "$with_hesiod" = yes ; then
19179 # Don't set $LIBS here -- see comments above.
19181 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19182 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19183 if test "${ac_cv_func_res_send+set}" = set; then
19184 echo $ECHO_N "(cached
) $ECHO_C" >&6
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19194 #define res_send innocuous_res_send
19196 /* System header to define __stub macros and hopefully few prototypes,
19197 which can conflict with char res_send (); below.
19198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199 <limits.h> exists even on freestanding compilers. */
19202 # include <limits.h>
19204 # include <assert.h>
19209 /* Override any GCC internal prototype to avoid an error.
19210 Use char because int might match the return type of a GCC
19211 builtin and then its argument prototype would still apply. */
19216 /* The GNU C library defines this for functions which it implements
19217 to always fail with ENOSYS. Some functions are actually named
19218 something starting with __ and the normal name is an alias. */
19219 #if defined __stub_res_send || defined __stub___res_send
19226 return res_send ();
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (ac_try="$ac_link"
19233 case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_link") 2>conftest.er1
19240 grep -v '^ *+' conftest.er1 >conftest.err
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19244 (exit $ac_status); } && {
19245 test -z "$ac_c_werror_flag" ||
19246 test ! -s conftest.err
19247 } && test -s conftest$ac_exeext &&
19248 $as_test_x conftest$ac_exeext; then
19249 ac_cv_func_res_send=yes
19251 echo "$as_me: failed program was
:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 ac_cv_func_res_send=no
19257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19258 conftest$ac_exeext conftest.$ac_ext
19260 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19261 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19262 if test $ac_cv_func_res_send = yes; then
19265 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19266 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19267 if test "${ac_cv_func___res_send+set}" = set; then
19268 echo $ECHO_N "(cached
) $ECHO_C" >&6
19270 cat >conftest.$ac_ext <<_ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19276 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19278 #define __res_send innocuous___res_send
19280 /* System header to define __stub macros and hopefully few prototypes,
19281 which can conflict with char __res_send (); below.
19282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19283 <limits.h> exists even on freestanding compilers. */
19286 # include <limits.h>
19288 # include <assert.h>
19293 /* Override any GCC internal prototype to avoid an error.
19294 Use char because int might match the return type of a GCC
19295 builtin and then its argument prototype would still apply. */
19299 char __res_send ();
19300 /* The GNU C library defines this for functions which it implements
19301 to always fail with ENOSYS. Some functions are actually named
19302 something starting with __ and the normal name is an alias. */
19303 #if defined __stub___res_send || defined __stub_____res_send
19310 return __res_send ();
19315 rm -f conftest.$ac_objext conftest$ac_exeext
19316 if { (ac_try="$ac_link"
19317 case "(($ac_try" in
19318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19319 *) ac_try_echo=$ac_try;;
19321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_link") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19328 (exit $ac_status); } && {
19329 test -z "$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 } && test -s conftest$ac_exeext &&
19332 $as_test_x conftest$ac_exeext; then
19333 ac_cv_func___res_send=yes
19335 echo "$as_me: failed program was
:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 ac_cv_func___res_send=no
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19342 conftest$ac_exeext conftest.$ac_ext
19344 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19345 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19346 if test $ac_cv_func___res_send = yes; then
19349 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19350 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19351 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19352 echo $ECHO_N "(cached
) $ECHO_C" >&6
19354 ac_check_lib_save_LIBS=$LIBS
19355 LIBS="-lresolv $LIBS"
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19363 /* Override any GCC internal prototype to avoid an error.
19364 Use char because int might match the return type of a GCC
19365 builtin and then its argument prototype would still apply. */
19373 return res_send ();
19378 rm -f conftest.$ac_objext conftest$ac_exeext
19379 if { (ac_try="$ac_link"
19380 case "(($ac_try" in
19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382 *) ac_try_echo=$ac_try;;
19384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19385 (eval "$ac_link") 2>conftest.er1
19387 grep -v '^ *+' conftest.er1 >conftest.err
19389 cat conftest.err >&5
19390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19391 (exit $ac_status); } && {
19392 test -z "$ac_c_werror_flag" ||
19393 test ! -s conftest.err
19394 } && test -s conftest$ac_exeext &&
19395 $as_test_x conftest$ac_exeext; then
19396 ac_cv_lib_resolv_res_send=yes
19398 echo "$as_me: failed program was
:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_cv_lib_resolv_res_send=no
19404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19405 conftest$ac_exeext conftest.$ac_ext
19406 LIBS=$ac_check_lib_save_LIBS
19408 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19409 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19410 if test $ac_cv_lib_resolv_res_send = yes; then
19413 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19414 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19415 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19416 echo $ECHO_N "(cached
) $ECHO_C" >&6
19418 ac_check_lib_save_LIBS=$LIBS
19419 LIBS="-lresolv $LIBS"
19420 cat >conftest.$ac_ext <<_ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19427 /* Override any GCC internal prototype to avoid an error.
19428 Use char because int might match the return type of a GCC
19429 builtin and then its argument prototype would still apply. */
19433 char __res_send ();
19437 return __res_send ();
19442 rm -f conftest.$ac_objext conftest$ac_exeext
19443 if { (ac_try="$ac_link"
19444 case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_link") 2>conftest.er1
19451 grep -v '^ *+' conftest.er1 >conftest.err
19453 cat conftest.err >&5
19454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19455 (exit $ac_status); } && {
19456 test -z "$ac_c_werror_flag" ||
19457 test ! -s conftest.err
19458 } && test -s conftest$ac_exeext &&
19459 $as_test_x conftest$ac_exeext; then
19460 ac_cv_lib_resolv___res_send=yes
19462 echo "$as_me: failed program was
:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19465 ac_cv_lib_resolv___res_send=no
19468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19469 conftest$ac_exeext conftest.$ac_ext
19470 LIBS=$ac_check_lib_save_LIBS
19472 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19473 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19474 if test $ac_cv_lib_resolv___res_send = yes; then
19484 if test "$resolv" = yes ; then
19487 cat >>confdefs.h <<\_ACEOF
19488 #define HAVE_LIBRESOLV 1
19494 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19495 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19496 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19497 echo $ECHO_N "(cached
) $ECHO_C" >&6
19499 cat >conftest.$ac_ext <<_ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19507 #define hes_getmailhost innocuous_hes_getmailhost
19509 /* System header to define __stub macros and hopefully few prototypes,
19510 which can conflict with char hes_getmailhost (); below.
19511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19512 <limits.h> exists even on freestanding compilers. */
19515 # include <limits.h>
19517 # include <assert.h>
19520 #undef hes_getmailhost
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19528 char hes_getmailhost ();
19529 /* The GNU C library defines this for functions which it implements
19530 to always fail with ENOSYS. Some functions are actually named
19531 something starting with __ and the normal name is an alias. */
19532 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19539 return hes_getmailhost ();
19544 rm -f conftest.$ac_objext conftest$ac_exeext
19545 if { (ac_try="$ac_link"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_link") 2>conftest.er1
19553 grep -v '^ *+' conftest.er1 >conftest.err
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest$ac_exeext &&
19561 $as_test_x conftest$ac_exeext; then
19562 ac_cv_func_hes_getmailhost=yes
19564 echo "$as_me: failed program was
:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 ac_cv_func_hes_getmailhost=no
19570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19571 conftest$ac_exeext conftest.$ac_ext
19573 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19574 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19575 if test $ac_cv_func_hes_getmailhost = yes; then
19578 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19579 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19580 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19581 echo $ECHO_N "(cached
) $ECHO_C" >&6
19583 ac_check_lib_save_LIBS=$LIBS
19584 LIBS="-lhesiod $RESOLVLIB $LIBS"
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19592 /* Override any GCC internal prototype to avoid an error.
19593 Use char because int might match the return type of a GCC
19594 builtin and then its argument prototype would still apply. */
19598 char hes_getmailhost ();
19602 return hes_getmailhost ();
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_link") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest$ac_exeext &&
19624 $as_test_x conftest$ac_exeext; then
19625 ac_cv_lib_hesiod_hes_getmailhost=yes
19627 echo "$as_me: failed program was
:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_lib_hesiod_hes_getmailhost=no
19633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634 conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19637 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19638 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19639 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19641 cat >>confdefs.h <<\_ACEOF
19642 #define HAVE_LIBHESIOD 1
19653 # These tell us which Kerberos-related libraries to use.
19654 if test "${with_kerberos+set}" = set; then
19656 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19657 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19658 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19659 echo $ECHO_N "(cached
) $ECHO_C" >&6
19661 ac_check_lib_save_LIBS=$LIBS
19662 LIBS="-lcom_err $LIBS"
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19685 rm -f conftest.$ac_objext conftest$ac_exeext
19686 if { (ac_try="$ac_link"
19687 case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_link") 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext &&
19702 $as_test_x conftest$ac_exeext; then
19703 ac_cv_lib_com_err_com_err=yes
19705 echo "$as_me: failed program was
:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_lib_com_err_com_err=no
19711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19712 conftest$ac_exeext conftest.$ac_ext
19713 LIBS=$ac_check_lib_save_LIBS
19715 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19716 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19717 if test $ac_cv_lib_com_err_com_err = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_LIBCOM_ERR 1
19722 LIBS="-lcom_err $LIBS"
19727 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19728 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19729 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19730 echo $ECHO_N "(cached
) $ECHO_C" >&6
19732 ac_check_lib_save_LIBS=$LIBS
19733 LIBS="-lk5crypto $LIBS"
19734 cat >conftest.$ac_ext <<_ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19741 /* Override any GCC internal prototype to avoid an error.
19742 Use char because int might match the return type of a GCC
19743 builtin and then its argument prototype would still apply. */
19747 char mit_des_cbc_encrypt ();
19751 return mit_des_cbc_encrypt ();
19756 rm -f conftest.$ac_objext conftest$ac_exeext
19757 if { (ac_try="$ac_link"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_link") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest$ac_exeext &&
19773 $as_test_x conftest$ac_exeext; then
19774 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19776 echo "$as_me: failed program was
:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19779 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19783 conftest$ac_exeext conftest.$ac_ext
19784 LIBS=$ac_check_lib_save_LIBS
19786 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19787 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19788 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19789 cat >>confdefs.h <<_ACEOF
19790 #define HAVE_LIBK5CRYPTO 1
19793 LIBS="-lk5crypto $LIBS"
19798 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19799 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19800 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19801 echo $ECHO_N "(cached
) $ECHO_C" >&6
19803 ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lcrypto $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19818 char mit_des_cbc_encrypt ();
19822 return mit_des_cbc_encrypt ();
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831 *) ac_try_echo=$ac_try;;
19833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19834 (eval "$ac_link") 2>conftest.er1
19836 grep -v '^ *+' conftest.er1 >conftest.err
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19840 (exit $ac_status); } && {
19841 test -z "$ac_c_werror_flag" ||
19842 test ! -s conftest.err
19843 } && test -s conftest$ac_exeext &&
19844 $as_test_x conftest$ac_exeext; then
19845 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19847 echo "$as_me: failed program was
:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19850 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854 conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19857 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19858 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19859 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define HAVE_LIBCRYPTO 1
19864 LIBS="-lcrypto $LIBS"
19869 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19870 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19871 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19872 echo $ECHO_N "(cached
) $ECHO_C" >&6
19874 ac_check_lib_save_LIBS=$LIBS
19875 LIBS="-lkrb5 $LIBS"
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19883 /* Override any GCC internal prototype to avoid an error.
19884 Use char because int might match the return type of a GCC
19885 builtin and then its argument prototype would still apply. */
19889 char krb5_init_context ();
19893 return krb5_init_context ();
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (ac_try="$ac_link"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_link") 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19911 (exit $ac_status); } && {
19912 test -z "$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19914 } && test -s conftest$ac_exeext &&
19915 $as_test_x conftest$ac_exeext; then
19916 ac_cv_lib_krb5_krb5_init_context=yes
19918 echo "$as_me: failed program was
:" >&5
19919 sed 's/^/| /' conftest.$ac_ext >&5
19921 ac_cv_lib_krb5_krb5_init_context=no
19924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19925 conftest$ac_exeext conftest.$ac_ext
19926 LIBS=$ac_check_lib_save_LIBS
19928 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19929 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19930 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_LIBKRB5 1
19935 LIBS="-lkrb5 $LIBS"
19939 if test "${with_kerberos5+set}" != set; then
19941 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19942 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19943 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19944 echo $ECHO_N "(cached
) $ECHO_C" >&6
19946 ac_check_lib_save_LIBS=$LIBS
19947 LIBS="-ldes425 $LIBS"
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19955 /* Override any GCC internal prototype to avoid an error.
19956 Use char because int might match the return type of a GCC
19957 builtin and then its argument prototype would still apply. */
19961 char des_cbc_encrypt ();
19965 return des_cbc_encrypt ();
19970 rm -f conftest.$ac_objext conftest$ac_exeext
19971 if { (ac_try="$ac_link"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_link") 2>conftest.er1
19979 grep -v '^ *+' conftest.er1 >conftest.err
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest$ac_exeext &&
19987 $as_test_x conftest$ac_exeext; then
19988 ac_cv_lib_des425_des_cbc_encrypt=yes
19990 echo "$as_me: failed program was
:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19993 ac_cv_lib_des425_des_cbc_encrypt=no
19996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19997 conftest$ac_exeext conftest.$ac_ext
19998 LIBS=$ac_check_lib_save_LIBS
20000 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20001 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20002 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define HAVE_LIBDES425 1
20007 LIBS="-ldes425 $LIBS"
20011 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20012 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20013 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20014 echo $ECHO_N "(cached
) $ECHO_C" >&6
20016 ac_check_lib_save_LIBS=$LIBS
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20031 char des_cbc_encrypt ();
20035 return des_cbc_encrypt ();
20040 rm -f conftest.$ac_objext conftest$ac_exeext
20041 if { (ac_try="$ac_link"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1 >conftest.err
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 ac_cv_lib_des_des_cbc_encrypt=yes
20060 echo "$as_me: failed program was
:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_cv_lib_des_des_cbc_encrypt=no
20066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20067 conftest$ac_exeext conftest.$ac_ext
20068 LIBS=$ac_check_lib_save_LIBS
20070 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20071 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20072 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20073 cat >>confdefs.h <<_ACEOF
20074 #define HAVE_LIBDES 1
20084 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20085 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20086 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20087 echo $ECHO_N "(cached
) $ECHO_C" >&6
20089 ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-lkrb4 $LIBS"
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20104 char krb_get_cred ();
20108 return krb_get_cred ();
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (ac_try="$ac_link"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest$ac_exeext &&
20130 $as_test_x conftest$ac_exeext; then
20131 ac_cv_lib_krb4_krb_get_cred=yes
20133 echo "$as_me: failed program was
:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_cv_lib_krb4_krb_get_cred=no
20139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20140 conftest$ac_exeext conftest.$ac_ext
20141 LIBS=$ac_check_lib_save_LIBS
20143 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20144 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20145 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_LIBKRB4 1
20150 LIBS="-lkrb4 $LIBS"
20154 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20155 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20156 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20157 echo $ECHO_N "(cached
) $ECHO_C" >&6
20159 ac_check_lib_save_LIBS=$LIBS
20161 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20168 /* Override any GCC internal prototype to avoid an error.
20169 Use char because int might match the return type of a GCC
20170 builtin and then its argument prototype would still apply. */
20174 char krb_get_cred ();
20178 return krb_get_cred ();
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (ac_try="$ac_link"
20185 case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_link") 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20196 (exit $ac_status); } && {
20197 test -z "$ac_c_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest$ac_exeext &&
20200 $as_test_x conftest$ac_exeext; then
20201 ac_cv_lib_krb_krb_get_cred=yes
20203 echo "$as_me: failed program was
:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_cv_lib_krb_krb_get_cred=no
20209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20210 conftest$ac_exeext conftest.$ac_ext
20211 LIBS=$ac_check_lib_save_LIBS
20213 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20214 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20215 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_LIBKRB 1
20228 if test "${with_kerberos5+set}" = set; then
20230 for ac_header in krb5.h
20232 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20237 echo $ECHO_N "(cached
) $ECHO_C" >&6
20239 ac_res=`eval echo '${'$as_ac_Header'}'`
20240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20241 echo "${ECHO_T}$ac_res" >&6; }
20243 # Is the header compilable?
20244 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20245 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20246 cat >conftest.$ac_ext <<_ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 $ac_includes_default
20253 #include <$ac_header>
20255 rm -f conftest.$ac_objext
20256 if { (ac_try="$ac_compile"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_compile") 2>conftest.er1
20264 grep -v '^ *+' conftest.er1 >conftest.err
20266 cat conftest.err >&5
20267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest.$ac_objext; then
20272 ac_header_compiler=yes
20274 echo "$as_me: failed program was
:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_header_compiler=no
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20281 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20282 echo "${ECHO_T}$ac_header_compiler" >&6; }
20284 # Is the header present?
20285 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20286 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20287 cat >conftest.$ac_ext <<_ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h. */
20293 #include <$ac_header>
20295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20307 (exit $ac_status); } >/dev/null && {
20308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20311 ac_header_preproc=yes
20313 echo "$as_me: failed program was
:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ac_header_preproc=no
20319 rm -f conftest.err conftest.$ac_ext
20320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20321 echo "${ECHO_T}$ac_header_preproc" >&6; }
20323 # So? What about this header?
20324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20326 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20327 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20330 ac_header_preproc=yes
20333 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20334 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20335 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20336 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20337 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20338 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20339 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20340 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20343 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20344 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20348 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20349 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20351 echo $ECHO_N "(cached
) $ECHO_C" >&6
20353 eval "$as_ac_Header=\
$ac_header_preproc"
20355 ac_res=`eval echo '${'$as_ac_Header'}'`
20356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20357 echo "${ECHO_T}$ac_res" >&6; }
20360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20361 cat >>confdefs.h <<_ACEOF
20362 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20364 { echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
20365 echo $ECHO_N "checking
for krb5_error.text...
$ECHO_C" >&6; }
20366 if test "${ac_cv_member_krb5_error_text+set}" = set; then
20367 echo $ECHO_N "(cached
) $ECHO_C" >&6
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20380 static krb5_error ac_aggr;
20387 rm -f conftest.$ac_objext
20388 if { (ac_try="$ac_compile"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_compile") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest.$ac_objext; then
20404 ac_cv_member_krb5_error_text=yes
20406 echo "$as_me: failed program was
:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20420 static krb5_error ac_aggr;
20421 if (sizeof ac_aggr.text)
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 ac_cv_member_krb5_error_text=yes
20446 echo "$as_me: failed program was
:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_cv_member_krb5_error_text=no
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
20458 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
20459 if test $ac_cv_member_krb5_error_text = yes; then
20461 cat >>confdefs.h <<_ACEOF
20462 #define HAVE_KRB5_ERROR_TEXT 1
20467 { echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
20468 echo $ECHO_N "checking
for krb5_error.e_text...
$ECHO_C" >&6; }
20469 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
20470 echo $ECHO_N "(cached
) $ECHO_C" >&6
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20483 static krb5_error ac_aggr;
20484 if (ac_aggr.e_text)
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_compile") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest.$ac_objext; then
20507 ac_cv_member_krb5_error_e_text=yes
20509 echo "$as_me: failed program was
:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20523 static krb5_error ac_aggr;
20524 if (sizeof ac_aggr.e_text)
20530 rm -f conftest.$ac_objext
20531 if { (ac_try="$ac_compile"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_compile") 2>conftest.er1
20539 grep -v '^ *+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest.$ac_objext; then
20547 ac_cv_member_krb5_error_e_text=yes
20549 echo "$as_me: failed program was
:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_member_krb5_error_e_text=no
20555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
20561 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
20562 if test $ac_cv_member_krb5_error_e_text = yes; then
20564 cat >>confdefs.h <<_ACEOF
20565 #define HAVE_KRB5_ERROR_E_TEXT 1
20577 for ac_header in des.h
20579 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20580 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20581 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20582 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20583 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20584 echo $ECHO_N "(cached
) $ECHO_C" >&6
20586 ac_res=`eval echo '${'$as_ac_Header'}'`
20587 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20588 echo "${ECHO_T}$ac_res" >&6; }
20590 # Is the header compilable?
20591 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20592 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20593 cat >conftest.$ac_ext <<_ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 $ac_includes_default
20600 #include <$ac_header>
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_compile") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1 >conftest.err
20613 cat conftest.err >&5
20614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest.$ac_objext; then
20619 ac_header_compiler=yes
20621 echo "$as_me: failed program was
:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_header_compiler=no
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20629 echo "${ECHO_T}$ac_header_compiler" >&6; }
20631 # Is the header present?
20632 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20633 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 #include <$ac_header>
20642 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20654 (exit $ac_status); } >/dev/null && {
20655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20658 ac_header_preproc=yes
20660 echo "$as_me: failed program was
:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_header_preproc=no
20666 rm -f conftest.err conftest.$ac_ext
20667 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20668 echo "${ECHO_T}$ac_header_preproc" >&6; }
20670 # So? What about this header?
20671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20673 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20674 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20675 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20677 ac_header_preproc=yes
20680 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20681 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20682 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20683 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20684 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20685 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20686 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20687 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20688 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20690 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20691 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20695 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20696 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20697 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20698 echo $ECHO_N "(cached
) $ECHO_C" >&6
20700 eval "$as_ac_Header=\
$ac_header_preproc"
20702 ac_res=`eval echo '${'$as_ac_Header'}'`
20703 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20704 echo "${ECHO_T}$ac_res" >&6; }
20707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20708 cat >>confdefs.h <<_ACEOF
20709 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20714 for ac_header in kerberosIV/des.h
20716 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20717 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20718 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20719 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20720 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20721 echo $ECHO_N "(cached
) $ECHO_C" >&6
20723 ac_res=`eval echo '${'$as_ac_Header'}'`
20724 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20725 echo "${ECHO_T}$ac_res" >&6; }
20727 # Is the header compilable?
20728 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20729 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 $ac_includes_default
20737 #include <$ac_header>
20739 rm -f conftest.$ac_objext
20740 if { (ac_try="$ac_compile"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_compile") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest.$ac_objext; then
20756 ac_header_compiler=yes
20758 echo "$as_me: failed program was
:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_header_compiler=no
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20766 echo "${ECHO_T}$ac_header_compiler" >&6; }
20768 # Is the header present?
20769 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20770 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20777 #include <$ac_header>
20779 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20780 case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20791 (exit $ac_status); } >/dev/null && {
20792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20795 ac_header_preproc=yes
20797 echo "$as_me: failed program was
:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 ac_header_preproc=no
20803 rm -f conftest.err conftest.$ac_ext
20804 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20805 echo "${ECHO_T}$ac_header_preproc" >&6; }
20807 # So? What about this header?
20808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20810 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20811 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20812 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20814 ac_header_preproc=yes
20817 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20818 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20819 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20820 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20821 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20822 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20823 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20824 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20825 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20827 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20828 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20832 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20833 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20834 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20835 echo $ECHO_N "(cached
) $ECHO_C" >&6
20837 eval "$as_ac_Header=\
$ac_header_preproc"
20839 ac_res=`eval echo '${'$as_ac_Header'}'`
20840 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20841 echo "${ECHO_T}$ac_res" >&6; }
20844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20851 for ac_header in kerberos/des.h
20853 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20854 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20855 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20856 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20857 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20858 echo $ECHO_N "(cached
) $ECHO_C" >&6
20860 ac_res=`eval echo '${'$as_ac_Header'}'`
20861 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20862 echo "${ECHO_T}$ac_res" >&6; }
20864 # Is the header compilable?
20865 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20866 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 #include <$ac_header>
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20885 grep -v '^ *+' conftest.er1 >conftest.err
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_c_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest.$ac_objext; then
20893 ac_header_compiler=yes
20895 echo "$as_me: failed program was
:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 ac_header_compiler=no
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20903 echo "${ECHO_T}$ac_header_compiler" >&6; }
20905 # Is the header present?
20906 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20907 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <$ac_header>
20916 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20924 grep -v '^ *+' conftest.er1 >conftest.err
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20928 (exit $ac_status); } >/dev/null && {
20929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20932 ac_header_preproc=yes
20934 echo "$as_me: failed program was
:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20937 ac_header_preproc=no
20940 rm -f conftest.err conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20942 echo "${ECHO_T}$ac_header_preproc" >&6; }
20944 # So? What about this header?
20945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20947 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20948 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20949 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20951 ac_header_preproc=yes
20954 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20955 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20956 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20957 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20958 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20959 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20960 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20961 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20962 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20964 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20965 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20969 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20970 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20972 echo $ECHO_N "(cached
) $ECHO_C" >&6
20974 eval "$as_ac_Header=\
$ac_header_preproc"
20976 ac_res=`eval echo '${'$as_ac_Header'}'`
20977 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20978 echo "${ECHO_T}$ac_res" >&6; }
20981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20982 cat >>confdefs.h <<_ACEOF
20983 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20999 for ac_header in krb.h
21001 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21002 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21003 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21004 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21005 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21006 echo $ECHO_N "(cached
) $ECHO_C" >&6
21008 ac_res=`eval echo '${'$as_ac_Header'}'`
21009 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21010 echo "${ECHO_T}$ac_res" >&6; }
21012 # Is the header compilable?
21013 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21014 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 $ac_includes_default
21022 #include <$ac_header>
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_compile") 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21037 (exit $ac_status); } && {
21038 test -z "$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21040 } && test -s conftest.$ac_objext; then
21041 ac_header_compiler=yes
21043 echo "$as_me: failed program was
:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 ac_header_compiler=no
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21051 echo "${ECHO_T}$ac_header_compiler" >&6; }
21053 # Is the header present?
21054 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21055 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 #include <$ac_header>
21064 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21076 (exit $ac_status); } >/dev/null && {
21077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21080 ac_header_preproc=yes
21082 echo "$as_me: failed program was
:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 ac_header_preproc=no
21088 rm -f conftest.err conftest.$ac_ext
21089 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21090 echo "${ECHO_T}$ac_header_preproc" >&6; }
21092 # So? What about this header?
21093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21095 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21096 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21097 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21099 ac_header_preproc=yes
21102 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21103 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21104 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21105 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21106 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21107 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21108 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21109 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21110 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21112 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21113 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21117 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21118 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21119 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21120 echo $ECHO_N "(cached
) $ECHO_C" >&6
21122 eval "$as_ac_Header=\
$ac_header_preproc"
21124 ac_res=`eval echo '${'$as_ac_Header'}'`
21125 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21130 cat >>confdefs.h <<_ACEOF
21131 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21136 for ac_header in kerberosIV/krb.h
21138 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21139 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21140 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21141 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21142 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21143 echo $ECHO_N "(cached
) $ECHO_C" >&6
21145 ac_res=`eval echo '${'$as_ac_Header'}'`
21146 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21147 echo "${ECHO_T}$ac_res" >&6; }
21149 # Is the header compilable?
21150 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21151 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 $ac_includes_default
21159 #include <$ac_header>
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21178 ac_header_compiler=yes
21180 echo "$as_me: failed program was
:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_header_compiler=no
21186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21188 echo "${ECHO_T}$ac_header_compiler" >&6; }
21190 # Is the header present?
21191 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21192 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <$ac_header>
21201 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21209 grep -v '^ *+' conftest.er1 >conftest.err
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21213 (exit $ac_status); } >/dev/null && {
21214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21217 ac_header_preproc=yes
21219 echo "$as_me: failed program was
:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_header_preproc=no
21225 rm -f conftest.err conftest.$ac_ext
21226 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21227 echo "${ECHO_T}$ac_header_preproc" >&6; }
21229 # So? What about this header?
21230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21232 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21233 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21234 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21236 ac_header_preproc=yes
21239 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21240 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21241 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21242 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21243 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21244 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21245 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21246 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21247 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21249 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21250 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21254 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21255 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21256 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21257 echo $ECHO_N "(cached
) $ECHO_C" >&6
21259 eval "$as_ac_Header=\
$ac_header_preproc"
21261 ac_res=`eval echo '${'$as_ac_Header'}'`
21262 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21267 cat >>confdefs.h <<_ACEOF
21268 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21273 for ac_header in kerberos/krb.h
21275 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21276 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21277 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21278 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21279 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21280 echo $ECHO_N "(cached
) $ECHO_C" >&6
21282 ac_res=`eval echo '${'$as_ac_Header'}'`
21283 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21284 echo "${ECHO_T}$ac_res" >&6; }
21286 # Is the header compilable?
21287 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21288 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 $ac_includes_default
21296 #include <$ac_header>
21298 rm -f conftest.$ac_objext
21299 if { (ac_try="$ac_compile"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_compile") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21311 (exit $ac_status); } && {
21312 test -z "$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21314 } && test -s conftest.$ac_objext; then
21315 ac_header_compiler=yes
21317 echo "$as_me: failed program was
:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_compiler=no
21323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21325 echo "${ECHO_T}$ac_header_compiler" >&6; }
21327 # Is the header present?
21328 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21329 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21336 #include <$ac_header>
21338 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21346 grep -v '^ *+' conftest.er1 >conftest.err
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21350 (exit $ac_status); } >/dev/null && {
21351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21354 ac_header_preproc=yes
21356 echo "$as_me: failed program was
:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_header_preproc=no
21362 rm -f conftest.err conftest.$ac_ext
21363 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21364 echo "${ECHO_T}$ac_header_preproc" >&6; }
21366 # So? What about this header?
21367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21369 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21370 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21371 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21373 ac_header_preproc=yes
21376 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21377 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21378 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21379 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21380 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21381 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21382 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21383 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21384 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21386 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21387 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21391 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21392 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21393 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21394 echo $ECHO_N "(cached
) $ECHO_C" >&6
21396 eval "$as_ac_Header=\
$ac_header_preproc"
21398 ac_res=`eval echo '${'$as_ac_Header'}'`
21399 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21400 echo "${ECHO_T}$ac_res" >&6; }
21403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21404 cat >>confdefs.h <<_ACEOF
21405 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21422 for ac_header in com_err.h
21424 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21425 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21426 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21427 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21428 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21429 echo $ECHO_N "(cached
) $ECHO_C" >&6
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21435 # Is the header compilable?
21436 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21437 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 $ac_includes_default
21445 #include <$ac_header>
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_compile") 2>conftest.er1
21456 grep -v '^ *+' conftest.er1 >conftest.err
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest.$ac_objext; then
21464 ac_header_compiler=yes
21466 echo "$as_me: failed program was
:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21469 ac_header_compiler=no
21472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21474 echo "${ECHO_T}$ac_header_compiler" >&6; }
21476 # Is the header present?
21477 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21478 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 #include <$ac_header>
21487 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21495 grep -v '^ *+' conftest.er1 >conftest.err
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21499 (exit $ac_status); } >/dev/null && {
21500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21503 ac_header_preproc=yes
21505 echo "$as_me: failed program was
:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_header_preproc=no
21511 rm -f conftest.err conftest.$ac_ext
21512 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21513 echo "${ECHO_T}$ac_header_preproc" >&6; }
21515 # So? What about this header?
21516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21518 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21519 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21520 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21522 ac_header_preproc=yes
21525 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21526 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21527 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21528 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21529 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21530 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21531 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21532 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21533 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21535 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21536 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21540 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21541 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21542 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21543 echo $ECHO_N "(cached
) $ECHO_C" >&6
21545 eval "$as_ac_Header=\
$ac_header_preproc"
21547 ac_res=`eval echo '${'$as_ac_Header'}'`
21548 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21549 echo "${ECHO_T}$ac_res" >&6; }
21552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21553 cat >>confdefs.h <<_ACEOF
21554 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21563 # Solaris requires -lintl if you want strerror (which calls dgettext)
21564 # to return localized messages.
21566 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21567 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21568 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21569 echo $ECHO_N "(cached
) $ECHO_C" >&6
21571 ac_check_lib_save_LIBS=$LIBS
21572 LIBS="-lintl $LIBS"
21573 cat >conftest.$ac_ext <<_ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h. */
21580 /* Override any GCC internal prototype to avoid an error.
21581 Use char because int might match the return type of a GCC
21582 builtin and then its argument prototype would still apply. */
21590 return dgettext ();
21595 rm -f conftest.$ac_objext conftest$ac_exeext
21596 if { (ac_try="$ac_link"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_link") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest$ac_exeext &&
21612 $as_test_x conftest$ac_exeext; then
21613 ac_cv_lib_intl_dgettext=yes
21615 echo "$as_me: failed program was
:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_cv_lib_intl_dgettext=no
21621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21622 conftest$ac_exeext conftest.$ac_ext
21623 LIBS=$ac_check_lib_save_LIBS
21625 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21626 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21627 if test $ac_cv_lib_intl_dgettext = yes; then
21628 cat >>confdefs.h <<_ACEOF
21629 #define HAVE_LIBINTL 1
21632 LIBS="-lintl $LIBS"
21637 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21638 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21639 if test "${emacs_cv_localtime_cache+set}" = set; then
21640 echo $ECHO_N "(cached
) $ECHO_C" >&6
21642 if test x$ac_cv_func_tzset = xyes; then
21643 if test "$cross_compiling" = yes; then
21644 # If we have tzset, assume the worst when cross-compiling.
21645 emacs_cv_localtime_cache=yes
21647 cat >conftest.$ac_ext <<_ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21654 extern char **environ;
21658 for (to = from = environ; (*to = *from); from++)
21659 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21662 char TZ_GMT0[] = "TZ
=GMT0
";
21663 char TZ_PST8[] = "TZ
=PST8
";
21666 time_t now = time ((time_t *) 0);
21667 int hour_GMT0, hour_unset;
21668 if (putenv (TZ_GMT0) != 0)
21670 hour_GMT0 = localtime (&now)->tm_hour;
21672 hour_unset = localtime (&now)->tm_hour;
21673 if (putenv (TZ_PST8) != 0)
21675 if (localtime (&now)->tm_hour == hour_GMT0)
21678 if (localtime (&now)->tm_hour != hour_unset)
21683 rm -f conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_link") 2>&5
21692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21694 { (case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_try") 2>&5
21701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 emacs_cv_localtime_cache=no
21705 echo "$as_me: program exited with status
$ac_status" >&5
21706 echo "$as_me: failed program was
:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 ( exit $ac_status )
21710 emacs_cv_localtime_cache=yes
21712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717 # If we lack tzset, report that localtime does not cache TZ,
21718 # since we can't invalidate the cache if we don't have tzset.
21719 emacs_cv_localtime_cache=no
21722 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21723 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21724 if test $emacs_cv_localtime_cache = yes; then
21726 cat >>confdefs.h <<\_ACEOF
21727 #define LOCALTIME_CACHE 1
21732 if test "x
$HAVE_TIMEVAL" = xyes; then
21734 for ac_func in gettimeofday
21736 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21737 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21738 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21739 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21740 echo $ECHO_N "(cached
) $ECHO_C" >&6
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21750 #define $ac_func innocuous_$ac_func
21752 /* System header to define __stub macros and hopefully few prototypes,
21753 which can conflict with char $ac_func (); below.
21754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21755 <limits.h> exists even on freestanding compilers. */
21758 # include <limits.h>
21760 # include <assert.h>
21765 /* Override any GCC internal prototype to avoid an error.
21766 Use char because int might match the return type of a GCC
21767 builtin and then its argument prototype would still apply. */
21772 /* The GNU C library defines this for functions which it implements
21773 to always fail with ENOSYS. Some functions are actually named
21774 something starting with __ and the normal name is an alias. */
21775 #if defined __stub_$ac_func || defined __stub___$ac_func
21782 return $ac_func ();
21787 rm -f conftest.$ac_objext conftest$ac_exeext
21788 if { (ac_try="$ac_link"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21794 (eval "$ac_link") 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21800 (exit $ac_status); } && {
21801 test -z "$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 } && test -s conftest$ac_exeext &&
21804 $as_test_x conftest$ac_exeext; then
21805 eval "$as_ac_var=yes"
21807 echo "$as_me: failed program was
:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21810 eval "$as_ac_var=no
"
21813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21814 conftest$ac_exeext conftest.$ac_ext
21816 ac_res=`eval echo '${'$as_ac_var'}'`
21817 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21818 echo "${ECHO_T}$ac_res" >&6; }
21819 if test `eval echo '${'$as_ac_var'}'` = yes; then
21820 cat >>confdefs.h <<_ACEOF
21821 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21827 if test $ac_cv_func_gettimeofday = yes; then
21828 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21829 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21830 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21831 echo $ECHO_N "(cached
) $ECHO_C" >&6
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21840 #ifdef TIME_WITH_SYS_TIME
21841 #include <sys/time.h>
21844 #ifdef HAVE_SYS_TIME_H
21845 #include <sys/time.h>
21853 struct timeval time;
21854 gettimeofday (&time, 0);
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 emacs_cv_gettimeofday_two_arguments=yes
21878 echo "$as_me: failed program was
:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 emacs_cv_gettimeofday_two_arguments=no
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21887 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21888 if test $emacs_cv_gettimeofday_two_arguments = no; then
21890 cat >>confdefs.h <<\_ACEOF
21891 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21899 { echo "$as_me:$LINENO: checking
for socket
" >&5
21900 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21901 if test "${ac_cv_func_socket+set}" = set; then
21902 echo $ECHO_N "(cached
) $ECHO_C" >&6
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21912 #define socket innocuous_socket
21914 /* System header to define __stub macros and hopefully few prototypes,
21915 which can conflict with char socket (); below.
21916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21917 <limits.h> exists even on freestanding compilers. */
21920 # include <limits.h>
21922 # include <assert.h>
21927 /* Override any GCC internal prototype to avoid an error.
21928 Use char because int might match the return type of a GCC
21929 builtin and then its argument prototype would still apply. */
21934 /* The GNU C library defines this for functions which it implements
21935 to always fail with ENOSYS. Some functions are actually named
21936 something starting with __ and the normal name is an alias. */
21937 #if defined __stub_socket || defined __stub___socket
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_link") 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest$ac_exeext &&
21966 $as_test_x conftest$ac_exeext; then
21967 ac_cv_func_socket=yes
21969 echo "$as_me: failed program was
:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21972 ac_cv_func_socket=no
21975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21976 conftest$ac_exeext conftest.$ac_ext
21978 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21979 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21980 if test $ac_cv_func_socket = yes; then
21986 if test $ok_so_far = yes; then
21987 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21988 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21989 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21990 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21991 echo $ECHO_N "(cached
) $ECHO_C" >&6
21993 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21994 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21996 # Is the header compilable?
21997 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21998 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21999 cat >conftest.$ac_ext <<_ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22005 $ac_includes_default
22006 #include <netinet/in.h>
22008 rm -f conftest.$ac_objext
22009 if { (ac_try="$ac_compile"
22010 case "(($ac_try" in
22011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012 *) ac_try_echo=$ac_try;;
22014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22015 (eval "$ac_compile") 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest.$ac_objext; then
22025 ac_header_compiler=yes
22027 echo "$as_me: failed program was
:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22030 ac_header_compiler=no
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22035 echo "${ECHO_T}$ac_header_compiler" >&6; }
22037 # Is the header present?
22038 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22039 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 #include <netinet/in.h>
22048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22056 grep -v '^ *+' conftest.er1 >conftest.err
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22060 (exit $ac_status); } >/dev/null && {
22061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22064 ac_header_preproc=yes
22066 echo "$as_me: failed program was
:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_header_preproc=no
22072 rm -f conftest.err conftest.$ac_ext
22073 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22074 echo "${ECHO_T}$ac_header_preproc" >&6; }
22076 # So? What about this header?
22077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22079 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22080 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22081 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22082 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22083 ac_header_preproc=yes
22086 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22087 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22088 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22089 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22090 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22091 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22092 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22093 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22094 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22095 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22096 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22097 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22101 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22102 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22103 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22104 echo $ECHO_N "(cached
) $ECHO_C" >&6
22106 ac_cv_header_netinet_in_h=$ac_header_preproc
22108 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22109 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22112 if test $ac_cv_header_netinet_in_h = yes; then
22120 if test $ok_so_far = yes; then
22121 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22122 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22123 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22124 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22125 echo $ECHO_N "(cached
) $ECHO_C" >&6
22127 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22128 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22130 # Is the header compilable?
22131 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22132 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22133 cat >conftest.$ac_ext <<_ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 $ac_includes_default
22140 #include <arpa/inet.h>
22142 rm -f conftest.$ac_objext
22143 if { (ac_try="$ac_compile"
22144 case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22149 (eval "$ac_compile") 2>conftest.er1
22151 grep -v '^ *+' conftest.er1 >conftest.err
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22155 (exit $ac_status); } && {
22156 test -z "$ac_c_werror_flag" ||
22157 test ! -s conftest.err
22158 } && test -s conftest.$ac_objext; then
22159 ac_header_compiler=yes
22161 echo "$as_me: failed program was
:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22164 ac_header_compiler=no
22167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22168 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22169 echo "${ECHO_T}$ac_header_compiler" >&6; }
22171 # Is the header present?
22172 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22173 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22174 cat >conftest.$ac_ext <<_ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 #include <arpa/inet.h>
22182 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22183 case "(($ac_try" in
22184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185 *) ac_try_echo=$ac_try;;
22187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22188 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22190 grep -v '^ *+' conftest.er1 >conftest.err
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22194 (exit $ac_status); } >/dev/null && {
22195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22196 test ! -s conftest.err
22198 ac_header_preproc=yes
22200 echo "$as_me: failed program was
:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22203 ac_header_preproc=no
22206 rm -f conftest.err conftest.$ac_ext
22207 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22208 echo "${ECHO_T}$ac_header_preproc" >&6; }
22210 # So? What about this header?
22211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22213 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22214 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22215 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22216 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22217 ac_header_preproc=yes
22220 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22221 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22222 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22223 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22224 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22225 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22226 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22227 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22228 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22229 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22230 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22231 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22235 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22236 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22237 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22238 echo $ECHO_N "(cached
) $ECHO_C" >&6
22240 ac_cv_header_arpa_inet_h=$ac_header_preproc
22242 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22243 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22246 if test $ac_cv_header_arpa_inet_h = yes; then
22254 if test $ok_so_far = yes; then
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_INET_SOCKETS 1
22263 for ac_header in sys/ioctl.h
22265 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22266 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22267 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22268 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22270 echo $ECHO_N "(cached
) $ECHO_C" >&6
22272 ac_res=`eval echo '${'$as_ac_Header'}'`
22273 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22274 echo "${ECHO_T}$ac_res" >&6; }
22276 # Is the header compilable?
22277 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22278 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22285 $ac_includes_default
22286 #include <$ac_header>
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_compile") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest.$ac_objext; then
22305 ac_header_compiler=yes
22307 echo "$as_me: failed program was
:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 ac_header_compiler=no
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22315 echo "${ECHO_T}$ac_header_compiler" >&6; }
22317 # Is the header present?
22318 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22319 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22320 cat >conftest.$ac_ext <<_ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h. */
22326 #include <$ac_header>
22328 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22329 case "(($ac_try" in
22330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331 *) ac_try_echo=$ac_try;;
22333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22334 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22336 grep -v '^ *+' conftest.er1 >conftest.err
22338 cat conftest.err >&5
22339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22340 (exit $ac_status); } >/dev/null && {
22341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22342 test ! -s conftest.err
22344 ac_header_preproc=yes
22346 echo "$as_me: failed program was
:" >&5
22347 sed 's/^/| /' conftest.$ac_ext >&5
22349 ac_header_preproc=no
22352 rm -f conftest.err conftest.$ac_ext
22353 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22354 echo "${ECHO_T}$ac_header_preproc" >&6; }
22356 # So? What about this header?
22357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22359 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22360 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22361 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22363 ac_header_preproc=yes
22366 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22367 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22368 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22369 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22370 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22371 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22372 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22373 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22374 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22376 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22377 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22381 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22382 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22384 echo $ECHO_N "(cached
) $ECHO_C" >&6
22386 eval "$as_ac_Header=\
$ac_header_preproc"
22388 ac_res=`eval echo '${'$as_ac_Header'}'`
22389 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22390 echo "${ECHO_T}$ac_res" >&6; }
22393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22394 cat >>confdefs.h <<_ACEOF
22395 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22403 if test -f /usr/lpp/X11/bin/smt.exp; then
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_AIX_SMT_EXP 1
22411 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22412 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22413 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22414 { echo "$as_me:$LINENO: result
: yes" >&5
22415 echo "${ECHO_T}yes" >&6; }
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_DEV_PTMX 1
22422 { echo "$as_me:$LINENO: result
: no
" >&5
22423 echo "${ECHO_T}no
" >&6; }
22426 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22427 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22428 if test "${ac_cv_type_pid_t+set}" = set; then
22429 echo $ECHO_N "(cached
) $ECHO_C" >&6
22431 cat >conftest.$ac_ext <<_ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437 $ac_includes_default
22438 typedef pid_t ac__type_new_;
22442 if ((ac__type_new_ *) 0)
22444 if (sizeof (ac__type_new_))
22450 rm -f conftest.$ac_objext
22451 if { (ac_try="$ac_compile"
22452 case "(($ac_try" in
22453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454 *) ac_try_echo=$ac_try;;
22456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22457 (eval "$ac_compile") 2>conftest.er1
22459 grep -v '^ *+' conftest.er1 >conftest.err
22461 cat conftest.err >&5
22462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22463 (exit $ac_status); } && {
22464 test -z "$ac_c_werror_flag" ||
22465 test ! -s conftest.err
22466 } && test -s conftest.$ac_objext; then
22467 ac_cv_type_pid_t=yes
22469 echo "$as_me: failed program was
:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22472 ac_cv_type_pid_t=no
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22477 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22478 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22479 if test $ac_cv_type_pid_t = yes; then
22483 cat >>confdefs.h <<_ACEOF
22490 for ac_header in vfork.h
22492 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22493 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22494 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22495 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22496 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22497 echo $ECHO_N "(cached
) $ECHO_C" >&6
22499 ac_res=`eval echo '${'$as_ac_Header'}'`
22500 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22501 echo "${ECHO_T}$ac_res" >&6; }
22503 # Is the header compilable?
22504 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22505 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22506 cat >conftest.$ac_ext <<_ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h. */
22512 $ac_includes_default
22513 #include <$ac_header>
22515 rm -f conftest.$ac_objext
22516 if { (ac_try="$ac_compile"
22517 case "(($ac_try" in
22518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22519 *) ac_try_echo=$ac_try;;
22521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22522 (eval "$ac_compile") 2>conftest.er1
22524 grep -v '^ *+' conftest.er1 >conftest.err
22526 cat conftest.err >&5
22527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22528 (exit $ac_status); } && {
22529 test -z "$ac_c_werror_flag" ||
22530 test ! -s conftest.err
22531 } && test -s conftest.$ac_objext; then
22532 ac_header_compiler=yes
22534 echo "$as_me: failed program was
:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22537 ac_header_compiler=no
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22541 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22542 echo "${ECHO_T}$ac_header_compiler" >&6; }
22544 # Is the header present?
22545 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22546 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22547 cat >conftest.$ac_ext <<_ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22553 #include <$ac_header>
22555 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22556 case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22561 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22563 grep -v '^ *+' conftest.er1 >conftest.err
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22567 (exit $ac_status); } >/dev/null && {
22568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22569 test ! -s conftest.err
22571 ac_header_preproc=yes
22573 echo "$as_me: failed program was
:" >&5
22574 sed 's/^/| /' conftest.$ac_ext >&5
22576 ac_header_preproc=no
22579 rm -f conftest.err conftest.$ac_ext
22580 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22581 echo "${ECHO_T}$ac_header_preproc" >&6; }
22583 # So? What about this header?
22584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22586 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22587 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22588 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22590 ac_header_preproc=yes
22593 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22594 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22595 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22596 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22597 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22598 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22599 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22600 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22601 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22603 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22604 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22608 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22609 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22610 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22611 echo $ECHO_N "(cached
) $ECHO_C" >&6
22613 eval "$as_ac_Header=\
$ac_header_preproc"
22615 ac_res=`eval echo '${'$as_ac_Header'}'`
22616 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22617 echo "${ECHO_T}$ac_res" >&6; }
22620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22621 cat >>confdefs.h <<_ACEOF
22622 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22631 for ac_func in fork vfork
22633 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22634 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22635 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22636 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22637 echo $ECHO_N "(cached
) $ECHO_C" >&6
22639 cat >conftest.$ac_ext <<_ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22647 #define $ac_func innocuous_$ac_func
22649 /* System header to define __stub macros and hopefully few prototypes,
22650 which can conflict with char $ac_func (); below.
22651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22652 <limits.h> exists even on freestanding compilers. */
22655 # include <limits.h>
22657 # include <assert.h>
22662 /* Override any GCC internal prototype to avoid an error.
22663 Use char because int might match the return type of a GCC
22664 builtin and then its argument prototype would still apply. */
22669 /* The GNU C library defines this for functions which it implements
22670 to always fail with ENOSYS. Some functions are actually named
22671 something starting with __ and the normal name is an alias. */
22672 #if defined __stub_$ac_func || defined __stub___$ac_func
22679 return $ac_func ();
22684 rm -f conftest.$ac_objext conftest$ac_exeext
22685 if { (ac_try="$ac_link"
22686 case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_link") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1 >conftest.err
22695 cat conftest.err >&5
22696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest$ac_exeext &&
22701 $as_test_x conftest$ac_exeext; then
22702 eval "$as_ac_var=yes"
22704 echo "$as_me: failed program was
:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 eval "$as_ac_var=no
"
22710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22711 conftest$ac_exeext conftest.$ac_ext
22713 ac_res=`eval echo '${'$as_ac_var'}'`
22714 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22715 echo "${ECHO_T}$ac_res" >&6; }
22716 if test `eval echo '${'$as_ac_var'}'` = yes; then
22717 cat >>confdefs.h <<_ACEOF
22718 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22724 if test "x
$ac_cv_func_fork" = xyes; then
22725 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22726 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22727 if test "${ac_cv_func_fork_works+set}" = set; then
22728 echo $ECHO_N "(cached
) $ECHO_C" >&6
22730 if test "$cross_compiling" = yes; then
22731 ac_cv_func_fork_works=cross
22733 cat >conftest.$ac_ext <<_ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22739 $ac_includes_default
22744 /* By Ruediger Kuhlmann. */
22745 return fork () < 0;
22751 rm -f conftest$ac_exeext
22752 if { (ac_try="$ac_link"
22753 case "(($ac_try" in
22754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22755 *) ac_try_echo=$ac_try;;
22757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22758 (eval "$ac_link") 2>&5
22760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22762 { (case "(($ac_try" in
22763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764 *) ac_try_echo=$ac_try;;
22766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22767 (eval "$ac_try") 2>&5
22769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22770 (exit $ac_status); }; }; then
22771 ac_cv_func_fork_works=yes
22773 echo "$as_me: program exited with status
$ac_status" >&5
22774 echo "$as_me: failed program was
:" >&5
22775 sed 's/^/| /' conftest.$ac_ext >&5
22777 ( exit $ac_status )
22778 ac_cv_func_fork_works=no
22780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22785 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22786 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22789 ac_cv_func_fork_works=$ac_cv_func_fork
22791 if test "x
$ac_cv_func_fork_works" = xcross; then
22793 *-*-amigaos* | *-*-msdosdjgpp*)
22794 # Override, as these systems have only a dummy fork() stub
22795 ac_cv_func_fork_works=no
22798 ac_cv_func_fork_works=yes
22801 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22802 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22804 ac_cv_func_vfork_works=$ac_cv_func_vfork
22805 if test "x
$ac_cv_func_vfork" = xyes; then
22806 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22807 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22808 if test "${ac_cv_func_vfork_works+set}" = set; then
22809 echo $ECHO_N "(cached
) $ECHO_C" >&6
22811 if test "$cross_compiling" = yes; then
22812 ac_cv_func_vfork_works=cross
22814 cat >conftest.$ac_ext <<_ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22820 /* Thanks to Paul Eggert for this test. */
22821 $ac_includes_default
22822 #include <sys/wait.h>
22823 #ifdef HAVE_VFORK_H
22824 # include <vfork.h>
22826 /* On some sparc systems, changes by the child to local and incoming
22827 argument registers are propagated back to the parent. The compiler
22828 is told about this with #include <vfork.h>, but some compilers
22829 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22830 static variable whose address is put into a register that is
22831 clobbered by the vfork. */
22834 sparc_address_test (int arg)
22836 sparc_address_test (arg) int arg;
22839 static pid_t child;
22857 pid_t parent = getpid ();
22860 sparc_address_test (0);
22865 /* Here is another test for sparc vfork register problems. This
22866 test uses lots of local variables, at least as many local
22867 variables as main has allocated so far including compiler
22868 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22869 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22870 reuse the register of parent for one of the local variables,
22871 since it will think that parent can't possibly be used any more
22872 in this routine. Assigning to the local variable will thus
22873 munge parent in the parent process. */
22875 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22876 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22877 /* Convince the compiler that p..p7 are live; otherwise, it might
22878 use the same hardware register for all 8 local variables. */
22879 if (p != p1 || p != p2 || p != p3 || p != p4
22880 || p != p5 || p != p6 || p != p7)
22883 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22884 from child file descriptors. If the child closes a descriptor
22885 before it execs or exits, this munges the parent's descriptor
22886 as well. Test for this by closing stdout in the child. */
22887 _exit(close(fileno(stdout)) != 0);
22892 while (wait(&status) != child)
22895 /* Was there some problem with vforking? */
22898 /* Did the child fail? (This shouldn't happen.) */
22901 /* Did the vfork/compiler bug occur? */
22902 || parent != getpid()
22904 /* Did the file descriptor bug occur? */
22905 || fstat(fileno(stdout), &st) != 0
22910 rm -f conftest$ac_exeext
22911 if { (ac_try="$ac_link"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_link") 2>&5
22919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921 { (case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_try") 2>&5
22928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22929 (exit $ac_status); }; }; then
22930 ac_cv_func_vfork_works=yes
22932 echo "$as_me: program exited with status
$ac_status" >&5
22933 echo "$as_me: failed program was
:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22936 ( exit $ac_status )
22937 ac_cv_func_vfork_works=no
22939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22944 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22945 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22948 if test "x
$ac_cv_func_fork_works" = xcross; then
22949 ac_cv_func_vfork_works=$ac_cv_func_vfork
22950 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22951 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22954 if test "x
$ac_cv_func_vfork_works" = xyes; then
22956 cat >>confdefs.h <<\_ACEOF
22957 #define HAVE_WORKING_VFORK 1
22962 cat >>confdefs.h <<\_ACEOF
22967 if test "x
$ac_cv_func_fork_works" = xyes; then
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_WORKING_FORK 1
22976 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22977 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22978 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22979 echo $ECHO_N "(cached
) $ECHO_C" >&6
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include <langinfo.h>
22991 char* cs = nl_langinfo(CODESET);
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext &&
23013 $as_test_x conftest$ac_exeext; then
23014 emacs_cv_langinfo_codeset=yes
23016 echo "$as_me: failed program was
:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 emacs_cv_langinfo_codeset=no
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23026 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23027 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23028 if test $emacs_cv_langinfo_codeset = yes; then
23030 cat >>confdefs.h <<\_ACEOF
23031 #define HAVE_LANGINFO_CODESET 1
23036 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23037 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23038 if test "${ac_cv_type_size_t+set}" = set; then
23039 echo $ECHO_N "(cached
) $ECHO_C" >&6
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 $ac_includes_default
23048 typedef size_t ac__type_new_;
23052 if ((ac__type_new_ *) 0)
23054 if (sizeof (ac__type_new_))
23060 rm -f conftest.$ac_objext
23061 if { (ac_try="$ac_compile"
23062 case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23067 (eval "$ac_compile") 2>conftest.er1
23069 grep -v '^ *+' conftest.er1 >conftest.err
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23073 (exit $ac_status); } && {
23074 test -z "$ac_c_werror_flag" ||
23075 test ! -s conftest.err
23076 } && test -s conftest.$ac_objext; then
23077 ac_cv_type_size_t=yes
23079 echo "$as_me: failed program was
:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23082 ac_cv_type_size_t=no
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23088 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23089 if test $ac_cv_type_size_t = yes; then
23091 cat >>confdefs.h <<_ACEOF
23092 #define HAVE_SIZE_T 1
23099 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23100 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23101 if test "${ac_cv_type_mbstate_t+set}" = set; then
23102 echo $ECHO_N "(cached
) $ECHO_C" >&6
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23110 $ac_includes_default
23111 # include <wchar.h>
23115 mbstate_t x; return sizeof x;
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23129 grep -v '^ *+' conftest.er1 >conftest.err
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.$ac_objext; then
23137 ac_cv_type_mbstate_t=yes
23139 echo "$as_me: failed program was
:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 ac_cv_type_mbstate_t=no
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23148 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23149 if test $ac_cv_type_mbstate_t = yes; then
23151 cat >>confdefs.h <<\_ACEOF
23152 #define HAVE_MBSTATE_T 1
23157 cat >>confdefs.h <<\_ACEOF
23158 #define mbstate_t int
23163 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23164 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23165 if test "${emacs_cv_c_restrict+set}" = set; then
23166 echo $ECHO_N "(cached
) $ECHO_C" >&6
23168 cat >conftest.$ac_ext <<_ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23174 void fred (int *restrict x);
23183 rm -f conftest.$ac_objext
23184 if { (ac_try="$ac_compile"
23185 case "(($ac_try" in
23186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23190 (eval "$ac_compile") 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23196 (exit $ac_status); } && {
23197 test -z "$ac_c_werror_flag" ||
23198 test ! -s conftest.err
23199 } && test -s conftest.$ac_objext; then
23200 emacs_cv_c_restrict=yes
23202 echo "$as_me: failed program was
:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 void fred (int *__restrict x);
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23227 (eval "$ac_compile") 2>conftest.er1
23229 grep -v '^ *+' conftest.er1 >conftest.err
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23233 (exit $ac_status); } && {
23234 test -z "$ac_c_werror_flag" ||
23235 test ! -s conftest.err
23236 } && test -s conftest.$ac_objext; then
23237 emacs_cv_c_restrict=__restrict
23239 echo "$as_me: failed program was
:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23242 emacs_cv_c_restrict=no
23245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23251 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23252 case "$emacs_cv_c_restrict" in
23253 yes) emacs_restrict=restrict;;
23254 no) emacs_restrict="";;
23255 *) emacs_restrict="$emacs_cv_c_restrict";;
23257 if test "$emacs_restrict" != __restrict; then
23259 cat >>confdefs.h <<_ACEOF
23260 #define __restrict $emacs_restrict
23265 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23266 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23267 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23268 echo $ECHO_N "(cached
) $ECHO_C" >&6
23270 cat >conftest.$ac_ext <<_ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 void fred (int x[__restrict]);
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23292 (eval "$ac_compile") 2>conftest.er1
23294 grep -v '^ *+' conftest.er1 >conftest.err
23296 cat conftest.err >&5
23297 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23298 (exit $ac_status); } && {
23299 test -z "$ac_c_werror_flag" ||
23300 test ! -s conftest.err
23301 } && test -s conftest.$ac_objext; then
23302 emacs_cv_c_restrict_arr=yes
23304 echo "$as_me: failed program was
:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 emacs_cv_c_restrict_arr=no
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23313 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23314 if test "$emacs_cv_c_restrict_arr" = yes; then
23316 cat >>confdefs.h <<\_ACEOF
23317 #define __restrict_arr __restrict
23324 # Set up the CFLAGS for real compilation, so we can substitute it.
23325 CFLAGS="$REAL_CFLAGS"
23326 CPPFLAGS="$REAL_CPPFLAGS"
23328 #### Find out which version of Emacs this is.
23329 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23330 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23331 if test x"${version}" = x; then
23332 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23333 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23334 { (exit 1); exit 1; }; }
23337 ### Specify what sort of things we'll be editing into Makefile and config.h.
23338 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23374 cat >>confdefs.h <<_ACEOF
23375 #define EMACS_CONFIGURATION "${canonical}"
23379 cat >>confdefs.h <<_ACEOF
23380 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23384 cat >>confdefs.h <<_ACEOF
23385 #define config_machfile "${machfile}"
23389 cat >>confdefs.h <<_ACEOF
23390 #define config_opsysfile "${opsysfile}"
23394 cat >>confdefs.h <<_ACEOF
23395 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23399 cat >>confdefs.h <<_ACEOF
23400 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23404 cat >>confdefs.h <<_ACEOF
23405 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23409 cat >>confdefs.h <<_ACEOF
23410 #define UNEXEC_SRC ${UNEXEC_SRC}
23414 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23416 cat >>confdefs.h <<\_ACEOF
23417 #define HAVE_X_WINDOWS 1
23421 if test "${USE_X_TOOLKIT}" != "none
" ; then
23423 cat >>confdefs.h <<\_ACEOF
23424 #define USE_X_TOOLKIT 1
23428 if test "${HAVE_X11}" = "yes" ; then
23430 cat >>confdefs.h <<\_ACEOF
23435 if test "${HAVE_XFREE386}" = "yes" ; then
23437 cat >>confdefs.h <<\_ACEOF
23438 #define HAVE_XFREE386 1
23442 if test "${HAVE_MENUS}" = "yes" ; then
23444 cat >>confdefs.h <<\_ACEOF
23445 #define HAVE_MENUS 1
23449 if test "${GNU_MALLOC}" = "yes" ; then
23451 cat >>confdefs.h <<\_ACEOF
23452 #define GNU_MALLOC 1
23456 if test "${REL_ALLOC}" = "yes" ; then
23458 cat >>confdefs.h <<\_ACEOF
23459 #define REL_ALLOC 1
23468 #### Report on what we decided to do.
23469 #### Report GTK as a toolkit, even if it doesn't use Xt.
23470 #### It makes printing result more understandable as using GTK sets
23471 #### toolkit_scroll_bars to yes by default.
23472 if test "${HAVE_GTK}" = "yes"; then
23477 Configured
for \
`${canonical}'.
23479 Where should the build process find the source code? ${srcdir}
23480 What operating system and machine description files should Emacs use?
23481 \`${opsysfile}' and \`${machfile}'
23482 What compiler should emacs be built with?
${CC} ${CFLAGS}
23483 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23484 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23485 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23486 What window system should Emacs use?
${window_system}
23487 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23489 if test -n "${x_includes}"; then
23490 echo " Where
do we
find X Windows header files?
${x_includes}"
23492 echo " Where
do we
find X Windows header files? Standard
dirs"
23494 if test -n "${x_libraries}"; then
23495 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23497 echo " Where
do we
find X Windows libraries? Standard
dirs"
23500 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23501 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23502 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23503 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23504 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23505 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23506 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23509 if test $USE_XASSERTS = yes; then
23510 echo " Compiling with asserts turned on.
"
23511 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23515 if test "$USE_X_TOOLKIT" = GTK; then
23516 case "$canonical" in
23518 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23519 will probably get a crash on startup. If this happens
, please use another
23520 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23527 # Remove any trailing slashes in these variables.
23528 test "${prefix}" != NONE &&
23529 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23530 test "${exec_prefix}" != NONE &&
23531 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23533 # Now get this: Some word that is part of the ${srcdir} directory name
23534 # or the ${configuration} value might, just might, happen to be an
23535 # identifier like `sun4' or `i386' or something, and be predefined by
23536 # the C preprocessor to some helpful value like 1, or maybe the empty
23537 # string. Needless to say consequent macro substitutions are less
23538 # than conducive to the makefile finding the correct directory.
23539 cpp_undefs="`echo $srcdir $configuration $canonical |
23540 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
23541 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
23543 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23544 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23545 ## from Makefile.c can correctly provide the arg `-traditional' to the
23548 cat >conftest.$ac_ext <<_ACEOF
23551 cat confdefs.h >>conftest.$ac_ext
23552 cat >>conftest.$ac_ext <<_ACEOF
23553 /* end confdefs.h. */
23556 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23557 $EGREP "yes..
yes" >/dev/null 2>&1; then
23558 CPP_NEED_TRADITIONAL=no
23560 CPP_NEED_TRADITIONAL=yes
23565 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
"
23567 ac_config_commands="$ac_config_commands default
"
23569 cat >confcache <<\_ACEOF
23570 # This file is a shell script that caches the results of configure
23571 # tests run on this system so they can be shared between configure
23572 # scripts and configure runs, see configure's option --config-cache.
23573 # It is not useful on other systems. If it contains results you don't
23574 # want to keep, you may remove or edit it.
23576 # config.status only pays attention to the cache file if you give it
23577 # the --recheck option to rerun configure.
23579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23581 # following values.
23585 # The following way of writing the cache mishandles newlines in values,
23586 # but we know of no workaround that is simple, portable, and efficient.
23587 # So, we kill variables containing newlines.
23588 # Ultrix sh set writes to stderr and can't be redirected directly,
23589 # and sets the high bit in the cache file unless we assign to the vars.
23591 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23592 eval ac_val=\$$ac_var
23596 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23597 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23600 _ | IFS | as_nl) ;; #(
23601 *) $as_unset $ac_var ;;
23607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23608 *${as_nl}ac_space=\ *)
23609 # `set' does not quote correctly, so add quotes (double-quote
23610 # substitution turns \\\\ into \\, and sed turns \\ into \).
23613 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23616 # `set' quotes correctly as required by POSIX, so do not add quotes.
23617 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23631 if test -w "$cache_file"; then
23632 test "x
$cache_file" != "x
/dev
/null
" &&
23633 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23634 echo "$as_me: updating cache
$cache_file" >&6;}
23635 cat confcache >$cache_file
23637 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23638 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23643 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23644 # Let make expand exec_prefix.
23645 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23647 DEFS=-DHAVE_CONFIG_H
23651 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23652 # 1. Remove the extension, and $U if already installed.
23653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23654 ac_i=`echo "$ac_i" | sed "$ac_script"`
23655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23656 # will be set to the directory where LIBOBJS objects are built.
23657 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23658 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23660 LIBOBJS=$ac_libobjs
23662 LTLIBOBJS=$ac_ltlibobjs
23666 : ${CONFIG_STATUS=./config.status}
23667 ac_clean_files_save=$ac_clean_files
23668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23669 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23670 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23671 cat >$CONFIG_STATUS <<_ACEOF
23673 # Generated by $as_me.
23674 # Run this file to recreate the current configuration.
23675 # Compiler output produced by configure, useful for debugging
23676 # configure, is in config.log if it exists.
23679 ac_cs_recheck=false
23681 SHELL=\${CONFIG_SHELL-$SHELL}
23684 cat >>$CONFIG_STATUS <<\_ACEOF
23685 ## --------------------- ##
23686 ## M4sh Initialization. ##
23687 ## --------------------- ##
23689 # Be more Bourne compatible
23690 DUALCASE=1; export DUALCASE # for MKS sh
23691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23695 # is contrary to our usage. Disable this feature.
23696 alias -g '${1+"$@"}'='"$@
"'
23697 setopt NO_GLOB_SUBST
23699 case `(set -o) 2>/dev/null` in
23700 *posix*) set -o posix ;;
23709 # Avoid depending upon Character Ranges.
23710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23713 as_cr_digits='0123456789'
23714 as_cr_alnum=$as_cr_Letters$as_cr_digits
23716 # The user is always right.
23717 if test "${PATH_SEPARATOR+set}" != set; then
23718 echo "#! /bin/sh" >conf$$.sh
23719 echo "exit 0" >>conf$$.sh
23721 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23729 # Support unset when possible.
23730 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23738 # We need space, tab and new line, in precisely that order. Quoting is
23739 # there to prevent editors from complaining about space-tab.
23740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23741 # splitting by setting IFS to empty value.)
23746 # Find who we are. Look in the path if we contain no directory separator.
23748 *[\\/]* ) as_myself
=$0 ;;
23749 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23750 for as_dir
in $PATH
23753 test -z "$as_dir" && as_dir
=.
23754 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23760 # We did not find ourselves, most probably we were run as `sh COMMAND'
23761 # in which case we are not to be found in the path.
23762 if test "x$as_myself" = x
; then
23765 if test ! -f "$as_myself"; then
23766 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23767 { (exit 1); exit 1; }
23770 # Work around bugs in pre-3.0 UWIN ksh.
23771 for as_var
in ENV MAIL MAILPATH
23772 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23780 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23781 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23782 LC_TELEPHONE LC_TIME
23784 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23785 eval $as_var=C
; export $as_var
23787 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23791 # Required to use basename.
23792 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23793 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23799 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23800 as_basename
=basename
23806 # Name of the executable.
23807 as_me
=`$as_basename -- "$0" ||
23808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23809 X"$0" : 'X\(//\)$' \| \
23810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23812 sed '/^.*\/\([^/][^/]*\)\/*$/{
23831 as_lineno_1
=$LINENO
23832 as_lineno_2
=$LINENO
23833 test "x$as_lineno_1" != "x$as_lineno_2" &&
23834 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23836 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23837 # uniformly replaced by the line number. The first 'sed' inserts a
23838 # line-number line after each line using $LINENO; the second 'sed'
23839 # does the real work. The second script uses 'N' to pair each
23840 # line-number line with the line containing $LINENO, and appends
23841 # trailing '-' during substitution so that $LINENO is not a special
23842 # case at line end.
23843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23844 # scripts with optimization help from Paolo Bonzini. Blame Lee
23845 # E. McMahon (1931-1989) for sed's syntax. :-)
23857 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23860 ' >$as_me.lineno
&&
23861 chmod +x
"$as_me.lineno" ||
23862 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23863 { (exit 1); exit 1; }; }
23865 # Don't try to exec as it changes $[0], causing all sort of problems
23866 # (the dirname of $[0] is not the place where we might find the
23867 # original and so on. Autoconf is especially sensitive to this).
23868 .
"./$as_me.lineno"
23869 # Exit status is that of the last command.
23874 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23880 ECHO_C
= ECHO_N
= ECHO_T
=
23881 case `echo -n x` in
23883 case `echo 'x\c'` in
23884 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23891 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23892 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23898 rm -f conf$$ conf$$.exe conf$$.
file
23899 if test -d conf$$.dir
; then
23900 rm -f conf$$.dir
/conf$$.
file
23906 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23908 # ... but there are two gotchas:
23909 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23910 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23911 # In both cases, we have to default to `cp -p'.
23912 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23914 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23919 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23920 rmdir conf$$.dir
2>/dev
/null
23922 if mkdir
-p .
2>/dev
/null
; then
23925 test -d .
/-p && rmdir .
/-p
23929 if test -x / >/dev
/null
2>&1; then
23930 as_test_x
='test -x'
23932 if ls -dL / >/dev
/null
2>&1; then
23939 if test -d "$1"; then
23945 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23946 ???[sx]*):;;*)false;;esac;fi
23950 as_executable_p
=$as_test_x
23952 # Sed expression to map a string onto a valid CPP name.
23953 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23955 # Sed expression to map a string onto a valid variable name.
23956 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23961 # Save the log message, to keep $[0] and so on meaningful, and to
23962 # report actual input values of CONFIG_FILES etc. instead of their
23963 # values after options handling.
23965 This file was extended by $as_me, which was
23966 generated by GNU Autoconf 2.61. Invocation command line was
23968 CONFIG_FILES = $CONFIG_FILES
23969 CONFIG_HEADERS = $CONFIG_HEADERS
23970 CONFIG_LINKS = $CONFIG_LINKS
23971 CONFIG_COMMANDS = $CONFIG_COMMANDS
23974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23979 cat >>$CONFIG_STATUS <<_ACEOF
23980 # Files that config.status was made for.
23981 config_files="$ac_config_files"
23982 config_headers="$ac_config_headers"
23983 config_commands="$ac_config_commands"
23987 cat >>$CONFIG_STATUS <<\_ACEOF
23989 \`$as_me' instantiates files from templates according to the
23990 current configuration.
23992 Usage: $0 [OPTIONS] [FILE]...
23994 -h, --help print this help, then exit
23995 -V, --version print version number and configuration settings, then exit
23996 -q, --quiet do not print progress messages
23997 -d, --debug don't remove temporary files
23998 --recheck update $as_me by reconfiguring in the same conditions
23999 --file=FILE[:TEMPLATE]
24000 instantiate the configuration file FILE
24001 --header=FILE[:TEMPLATE]
24002 instantiate the configuration header FILE
24004 Configuration files:
24007 Configuration headers:
24010 Configuration commands:
24013 Report bugs to <bug-autoconf@gnu.org>."
24016 cat >>$CONFIG_STATUS <<_ACEOF
24019 configured by $0, generated by GNU Autoconf 2.61,
24020 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24022 Copyright (C) 2006 Free Software Foundation, Inc.
24023 This config.status script is free software; the Free Software Foundation
24024 gives unlimited permission to copy, distribute and modify it."
24031 cat >>$CONFIG_STATUS <<\_ACEOF
24032 # If no file are specified by the user, then we need to provide default
24033 # value. By we need to know if files were specified by the user.
24039 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24040 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24051 # Handling of the options.
24052 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24054 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24055 echo "$ac_cs_version"; exit ;;
24056 --debug |
--debu |
--deb |
--de |
--d |
-d )
24058 --file |
--fil |
--fi |
--f )
24060 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24061 ac_need_defaults
=false
;;
24062 --header |
--heade |
--head |
--hea )
24064 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24065 ac_need_defaults
=false
;;
24067 # Conflict between --help and --header
24068 { echo "$as_me: error: ambiguous option: $1
24069 Try \`$0 --help' for more information." >&2
24070 { (exit 1); exit 1; }; };;
24071 --help |
--hel |
-h )
24072 echo "$ac_cs_usage"; exit ;;
24073 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24074 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24077 # This is an error.
24078 -*) { echo "$as_me: error: unrecognized option: $1
24079 Try \`$0 --help' for more information." >&2
24080 { (exit 1); exit 1; }; } ;;
24082 *) ac_config_targets
="$ac_config_targets $1"
24083 ac_need_defaults
=false
;;
24089 ac_configure_extra_args
=
24091 if $ac_cs_silent; then
24093 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24097 cat >>$CONFIG_STATUS <<_ACEOF
24098 if \$ac_cs_recheck; then
24099 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24100 CONFIG_SHELL=$SHELL
24101 export CONFIG_SHELL
24102 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24106 cat >>$CONFIG_STATUS <<\_ACEOF
24110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24111 ## Running $as_me. ##
24117 cat >>$CONFIG_STATUS <<_ACEOF
24121 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24125 cat >>$CONFIG_STATUS <<\_ACEOF
24127 # Handling of arguments.
24128 for ac_config_target
in $ac_config_targets
24130 case $ac_config_target in
24131 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24132 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24133 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24134 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24135 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24136 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24137 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24138 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24139 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24140 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24141 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24142 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24144 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24145 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24146 { (exit 1); exit 1; }; };;
24151 # If the user did not use the arguments to specify the items to instantiate,
24152 # then the envvar interface is used. Set only those that are not.
24153 # We use the long form for the default assignment because of an extremely
24154 # bizarre bug on SunOS 4.1.3.
24155 if $ac_need_defaults; then
24156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24161 # Have a temporary directory for convenience. Make it in the build tree
24162 # simply because there is no reason against having it here, and in addition,
24163 # creating and moving files from /tmp can sometimes cause problems.
24164 # Hook for its removal unless debugging.
24165 # Note that there is a small window in which the directory will not be cleaned:
24166 # after its creation but before its name has been assigned to `$tmp'.
24170 trap 'exit_status=$?
24171 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24173 trap '{ (exit 1); exit 1; }' 1 2 13 15
24175 # Create a (secure) tmp directory for tmp files.
24178 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24179 test -n "$tmp" && test -d "$tmp"
24182 tmp
=.
/conf$$
-$RANDOM
24183 (umask 077 && mkdir
"$tmp")
24186 echo "$me: cannot create a temporary directory in ." >&2
24187 { (exit 1); exit 1; }
24191 # Set up the sed scripts for CONFIG_FILES section.
24194 # No need to generate the scripts if there are no CONFIG_FILES.
24195 # This happens for instance when ./config.status config.h
24196 if test -n "$CONFIG_FILES"; then
24203 for ac_last_try
in false false false false false
:; do
24204 cat >conf$
$subs.
sed <<_ACEOF
24205 SHELL!$SHELL$ac_delim
24206 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24207 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24208 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24209 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24210 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24211 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24212 exec_prefix!$exec_prefix$ac_delim
24213 prefix!$prefix$ac_delim
24214 program_transform_name!$program_transform_name$ac_delim
24215 bindir!$bindir$ac_delim
24216 sbindir!$sbindir$ac_delim
24217 libexecdir!$libexecdir$ac_delim
24218 datarootdir!$datarootdir$ac_delim
24219 datadir!$datadir$ac_delim
24220 sysconfdir!$sysconfdir$ac_delim
24221 sharedstatedir!$sharedstatedir$ac_delim
24222 localstatedir!$localstatedir$ac_delim
24223 includedir!$includedir$ac_delim
24224 oldincludedir!$oldincludedir$ac_delim
24225 docdir!$docdir$ac_delim
24226 infodir!$infodir$ac_delim
24227 htmldir!$htmldir$ac_delim
24228 dvidir!$dvidir$ac_delim
24229 pdfdir!$pdfdir$ac_delim
24230 psdir!$psdir$ac_delim
24231 libdir!$libdir$ac_delim
24232 localedir!$localedir$ac_delim
24233 mandir!$mandir$ac_delim
24234 DEFS!$DEFS$ac_delim
24235 ECHO_C!$ECHO_C$ac_delim
24236 ECHO_N!$ECHO_N$ac_delim
24237 ECHO_T!$ECHO_T$ac_delim
24238 LIBS!$LIBS$ac_delim
24239 build_alias!$build_alias$ac_delim
24240 host_alias!$host_alias$ac_delim
24241 target_alias!$target_alias$ac_delim
24242 MAINT!$MAINT$ac_delim
24243 build!$build$ac_delim
24244 build_cpu!$build_cpu$ac_delim
24245 build_vendor!$build_vendor$ac_delim
24246 build_os!$build_os$ac_delim
24247 host!$host$ac_delim
24248 host_cpu!$host_cpu$ac_delim
24249 host_vendor!$host_vendor$ac_delim
24250 host_os!$host_os$ac_delim
24252 CFLAGS!$CFLAGS$ac_delim
24253 LDFLAGS!$LDFLAGS$ac_delim
24254 CPPFLAGS!$CPPFLAGS$ac_delim
24255 ac_ct_CC!$ac_ct_CC$ac_delim
24256 EXEEXT!$EXEEXT$ac_delim
24257 OBJEXT!$OBJEXT$ac_delim
24259 GREP!$GREP$ac_delim
24260 EGREP!$EGREP$ac_delim
24261 LN_S!$LN_S$ac_delim
24262 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24263 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24264 INSTALL_DATA!$INSTALL_DATA$ac_delim
24265 RANLIB!$RANLIB$ac_delim
24266 INSTALL_INFO!$INSTALL_INFO$ac_delim
24267 GZIP_PROG!$GZIP_PROG$ac_delim
24268 LIBSOUND!$LIBSOUND$ac_delim
24269 PKG_CONFIG!$PKG_CONFIG$ac_delim
24270 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24271 ALSA_LIBS!$ALSA_LIBS$ac_delim
24272 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24273 SET_MAKE!$SET_MAKE$ac_delim
24274 XMKMF!$XMKMF$ac_delim
24275 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24276 GTK_LIBS!$GTK_LIBS$ac_delim
24277 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24278 XFT_LIBS!$XFT_LIBS$ac_delim
24279 ALLOCA!$ALLOCA$ac_delim
24280 liblockfile!$liblockfile$ac_delim
24281 LIBOBJS!$LIBOBJS$ac_delim
24282 NEED_SETGID!$NEED_SETGID$ac_delim
24283 KMEM_GROUP!$KMEM_GROUP$ac_delim
24284 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24285 GETOPT_H!$GETOPT_H$ac_delim
24286 GETOPTOBJS!$GETOPTOBJS$ac_delim
24287 version!$version$ac_delim
24288 configuration!$configuration$ac_delim
24289 canonical!$canonical$ac_delim
24290 srcdir!$srcdir$ac_delim
24291 lispdir!$lispdir$ac_delim
24292 locallisppath!$locallisppath$ac_delim
24293 lisppath!$lisppath$ac_delim
24294 x_default_search_path!$x_default_search_path$ac_delim
24295 etcdir!$etcdir$ac_delim
24296 archlibdir!$archlibdir$ac_delim
24297 bitmapdir!$bitmapdir$ac_delim
24298 gamedir!$gamedir$ac_delim
24299 gameuser!$gameuser$ac_delim
24300 c_switch_system!$c_switch_system$ac_delim
24301 c_switch_machine!$c_switch_machine$ac_delim
24304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24306 elif $ac_last_try; then
24307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24309 { (exit 1); exit 1; }; }
24311 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24315 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24316 if test -n "$ac_eof"; then
24317 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24318 ac_eof
=`expr $ac_eof + 1`
24321 cat >>$CONFIG_STATUS <<_ACEOF
24322 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24327 s/^/s,@/; s/!/@,|#_!!_#|/
24330 s/'"$ac_delim"'$/,g/; t
24332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24333 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24334 rm -f conf$
$subs.
sed
24335 cat >>$CONFIG_STATUS <<_ACEOF
24341 for ac_last_try
in false false false false false
:; do
24342 cat >conf$
$subs.
sed <<_ACEOF
24343 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24344 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24345 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24346 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24347 machfile!$machfile$ac_delim
24348 opsysfile!$opsysfile$ac_delim
24349 carbon_appdir!$carbon_appdir$ac_delim
24350 LTLIBOBJS!$LTLIBOBJS$ac_delim
24353 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24355 elif $ac_last_try; then
24356 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24357 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24358 { (exit 1); exit 1; }; }
24360 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24364 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24365 if test -n "$ac_eof"; then
24366 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24367 ac_eof
=`expr $ac_eof + 1`
24370 cat >>$CONFIG_STATUS <<_ACEOF
24371 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24372 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24375 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24376 s/^/s,@/; s/!/@,|#_!!_#|/
24379 s/'"$ac_delim"'$/,g/; t
24381 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24382 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24383 rm -f conf$
$subs.
sed
24384 cat >>$CONFIG_STATUS <<_ACEOF
24391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24393 # trailing colons and then remove the whole line if VPATH becomes empty
24394 # (actually we leave an empty line to preserve line numbers).
24395 if test "x$srcdir" = x.
; then
24396 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24397 s/:*\$(srcdir):*/:/
24398 s/:*\${srcdir}:*/:/
24400 s/^\([^=]*=[ ]*\):*/\1/
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 fi # test -n "$CONFIG_FILES"
24410 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24413 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24415 case $ac_mode$ac_tag in
24417 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24418 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24419 { (exit 1); exit 1; }; };;
24420 :[FH
]-) ac_tag
=-:-;;
24421 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24438 -) ac_f
="$tmp/stdin";;
24439 *) # Look for the file first in the build tree, then in the source tree
24440 # (if the path is not absolute). The absolute path cannot be DOS-style,
24441 # because $ac_f cannot contain `:'.
24445 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24447 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24448 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24449 { (exit 1); exit 1; }; };;
24451 ac_file_inputs
="$ac_file_inputs $ac_f"
24454 # Let's still pretend it is `configure' which instantiates (i.e., don't
24455 # use $as_me), people would be surprised to read:
24456 # /* config.h. Generated by config.status. */
24457 configure_input
="Generated from "`IFS=:
24458 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24459 if test x
"$ac_file" != x-
; then
24460 configure_input
="$ac_file. $configure_input"
24461 { echo "$as_me:$LINENO: creating $ac_file" >&5
24462 echo "$as_me: creating $ac_file" >&6;}
24466 *:-:* |
*:-) cat >"$tmp/stdin";;
24471 ac_dir
=`$as_dirname -- "$ac_file" ||
24472 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24473 X"$ac_file" : 'X\(//\)[^/]' \| \
24474 X"$ac_file" : 'X\(//\)$' \| \
24475 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24481 /^X\(\/\/\)[^/].*/{
24496 -*) as_dir
=.
/$as_dir;;
24498 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24502 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24503 *) as_qdir
=$as_dir;;
24505 as_dirs
="'$as_qdir' $as_dirs"
24506 as_dir
=`$as_dirname -- "$as_dir" ||
24507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24508 X"$as_dir" : 'X\(//\)[^/]' \| \
24509 X"$as_dir" : 'X\(//\)$' \| \
24510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24516 /^X\(\/\/\)[^/].*/{
24529 test -d "$as_dir" && break
24531 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24532 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24533 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24534 { (exit 1); exit 1; }; }; }
24538 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24540 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24541 # A ".." for each directory in $ac_dir_suffix.
24542 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24543 case $ac_top_builddir_sub in
24544 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24545 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24548 ac_abs_top_builddir
=$ac_pwd
24549 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24550 # for backward compatibility:
24551 ac_top_builddir
=$ac_top_build_prefix
24554 .
) # We are building in place.
24556 ac_top_srcdir
=$ac_top_builddir_sub
24557 ac_abs_top_srcdir
=$ac_pwd ;;
24558 [\\/]* | ?
:[\\/]* ) # Absolute name.
24559 ac_srcdir
=$srcdir$ac_dir_suffix;
24560 ac_top_srcdir
=$srcdir
24561 ac_abs_top_srcdir
=$srcdir ;;
24562 *) # Relative name.
24563 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24564 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24565 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24567 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24577 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24578 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24582 cat >>$CONFIG_STATUS <<\_ACEOF
24583 # If the template does not know about datarootdir, expand it.
24584 # FIXME: This hack should be removed a few years after 2.60.
24585 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24587 case `sed -n '/datarootdir/ {
24596 ' $ac_file_inputs` in
24597 *datarootdir
*) ac_datarootdir_seen
=yes;;
24598 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24599 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24600 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24602 cat >>$CONFIG_STATUS <<_ACEOF
24603 ac_datarootdir_hack='
24604 s&@datadir@&$datadir&g
24605 s&@docdir@&$docdir&g
24606 s&@infodir@&$infodir&g
24607 s&@localedir@&$localedir&g
24608 s&@mandir@&$mandir&g
24609 s&\\\${datarootdir}&$datarootdir&g' ;;
24613 # Neutralize VPATH when `$srcdir' = `.'.
24614 # Shell code in configure.ac might set extrasub.
24615 # FIXME: do we really want to maintain this feature?
24616 cat >>$CONFIG_STATUS <<_ACEOF
24620 cat >>$CONFIG_STATUS <<\_ACEOF
24622 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24623 s
&@configure_input@
&$configure_input&;t t
24624 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24625 s
&@srcdir@
&$ac_srcdir&;t t
24626 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24627 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24628 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24629 s
&@builddir@
&$ac_builddir&;t t
24630 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24631 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24632 s
&@INSTALL@
&$ac_INSTALL&;t t
24633 $ac_datarootdir_hack
24634 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24636 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24637 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24638 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24639 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24640 which seems to be undefined. Please make sure it is defined." >&5
24641 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24642 which seems to be undefined. Please make sure it is defined." >&2;}
24646 -) cat "$tmp/out"; rm -f "$tmp/out";;
24647 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24656 # Transform confdefs.h into a sed script `conftest.defines', that
24657 # substitutes the proper values into config.h.in to produce config.h.
24658 rm -f conftest.defines conftest.
tail
24659 # First, append a space to every undef/define line, to ease matching.
24660 echo 's/$/ /' >conftest.defines
24661 # Then, protect against being on the right side of a sed subst, or in
24662 # an unquoted here document, in config.status. If some macros were
24663 # called several times there might be several #defines for the same
24664 # symbol, which is useless. But do not sort them, since the last
24665 # AC_DEFINE must be honored.
24666 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24667 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24668 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24669 # PARAMS is the parameter list in the macro definition--in most cases, it's
24670 # just an empty string.
24671 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24672 ac_dB
='\\)[ (].*,\\1define\\2'
24680 s/^[ ]*#[ ]*define[ ][ ]*//
24685 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24686 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24687 ' >>conftest.defines
24689 # Remove the space that was appended to ease matching.
24690 # Then replace #undef with comments. This is necessary, for
24691 # example, in the case of _POSIX_SOURCE, which is predefined and required
24692 # on some systems where configure will not decide to define it.
24693 # (The regexp can be short, since the line contains either #define or #undef.)
24695 s,^[ #]*u.*,/* & */,' >>conftest.defines
24697 # Break up conftest.defines:
24698 ac_max_sed_lines
=50
24700 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24701 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24702 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24704 ac_in
='$ac_file_inputs'
24705 ac_out
='"$tmp/out1"'
24706 ac_nxt
='"$tmp/out2"'
24710 # Write a here document:
24711 cat >>$CONFIG_STATUS <<_ACEOF
24712 # First, check the format of the line:
24713 cat >"\$tmp/defines.sed" <<\\CEOF
24714 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24715 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24719 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24721 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24722 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24723 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24724 grep . conftest.
tail >/dev
/null ||
break
24725 rm -f conftest.defines
24726 mv conftest.
tail conftest.defines
24728 rm -f conftest.defines conftest.
tail
24730 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24731 cat >>$CONFIG_STATUS <<\_ACEOF
24732 if test x
"$ac_file" != x-
; then
24733 echo "/* $configure_input */" >"$tmp/config.h"
24734 cat "$ac_result" >>"$tmp/config.h"
24735 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24736 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24737 echo "$as_me: $ac_file is unchanged" >&6;}
24740 mv "$tmp/config.h" $ac_file
24743 echo "/* $configure_input */"
24749 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24750 echo "$as_me: executing $ac_file commands" >&6;}
24755 case $ac_file$ac_mode in
24758 ### Make the necessary directories, if they don't exist.
24759 for dir
in etc lisp
; do
24760 test -d ${dir} || mkdir
${dir}
24763 # Build src/Makefile from ${srcdir}/src/Makefile.c
24764 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24765 # This must be done after src/config.h is built, since we rely on that file.
24767 echo creating src
/epaths.h
24768 ${MAKE-make} epaths-force
24770 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24771 # `..' to `. .' unless invoked with -traditional
24773 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24774 CPPFLAGS
="$CPPFLAGS -traditional"
24777 echo creating lib-src
/Makefile
24779 rm -f junk.c junk1.c junk2.c
24780 sed -e '/start of cpp stuff/q' \
24781 < Makefile.c
> junk1.c
24782 sed -e '1,/start of cpp stuff/d'\
24783 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24784 < Makefile.c
> junk.c
24785 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24786 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24787 cat junk1.c junk2.c
> Makefile.new
24788 rm -f junk.c junk1.c junk2.c
24789 chmod 444 Makefile.new
24790 mv -f Makefile.new Makefile
24793 echo creating src
/Makefile
24795 rm -f junk.c junk1.c junk2.c
24796 sed -e '/start of cpp stuff/q' \
24797 < Makefile.c
> junk1.c
24798 sed -e '1,/start of cpp stuff/d'\
24799 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24800 < Makefile.c
> junk.c
24801 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24802 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24803 cat junk1.c junk2.c
> Makefile.new
24804 rm -f junk.c junk1.c junk2.c
24805 chmod 444 Makefile.new
24806 mv -f Makefile.new Makefile
24809 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24810 echo creating src
/.gdbinit
24811 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24814 # This is how we know whether to re-run configure in certain cases.
24815 touch src
/config.stamp
24823 { (exit 0); exit 0; }
24825 chmod +x
$CONFIG_STATUS
24826 ac_clean_files
=$ac_clean_files_save
24829 # configure is writing to config.log, and then calls config.status.
24830 # config.status does its own redirection, appending to config.log.
24831 # Unfortunately, on DOS this fails, as config.log is still kept open
24832 # by configure, so config.status won't be able to write to it; its
24833 # output is simply discarded. So we exec the FD to /dev/null,
24834 # effectively closing config.log, so it can be properly (re)opened and
24835 # appended to by config.status. When coming back to configure, we
24836 # need to make the FD available again.
24837 if test "$no_create" != yes; then
24839 ac_config_status_args
=
24840 test "$silent" = yes &&
24841 ac_config_status_args
="$ac_config_status_args --quiet"
24843 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24845 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24846 # would make configure fail if this is the last instruction.
24847 $ac_cs_success ||
{ (exit 1); exit 1; }