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
;;
3227 if test $unported = yes; then
3228 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3229 Check \`etc/MACHINES' for recognized configuration names." >&5
3230 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3231 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3232 { (exit 1); exit 1; }; }
3235 machfile
="m/${machine}.h"
3236 opsysfile
="s/${opsys}.h"
3239 #### Choose a compiler.
3240 test -n "$CC" && cc_specified
=yes
3242 # Save the value of CFLAGS that the user specified.
3243 SPECIFIED_CFLAGS
="$CFLAGS"
3246 "yes" ) CC
="gcc" GCC
=yes ;;
3247 "no" ) : ${CC=cc} ;;
3251 ac_cpp
='$CPP $CPPFLAGS'
3252 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_CC+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC
="$CC" # Let the user override the test.
3266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir
=.
3271 for ac_exec_ext
in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 if test -n "$CC"; then
3285 { echo "$as_me:$LINENO: result: $CC" >&5
3286 echo "${ECHO_T}$CC" >&6; }
3288 { echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6; }
3294 if test -z "$ac_cv_prog_CC"; then
3296 # Extract the first word of "gcc", so it can be a program name with args.
3297 set dummy gcc
; ac_word
=$2
3298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 if test -n "$ac_ct_CC"; then
3304 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir
=.
3311 for ac_exec_ext
in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_ac_ct_CC
="gcc"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3326 echo "${ECHO_T}$ac_ct_CC" >&6; }
3328 { echo "$as_me:$LINENO: result: no" >&5
3329 echo "${ECHO_T}no" >&6; }
3332 if test "x$ac_ct_CC" = x
; then
3335 case $cross_compiling:$ac_tool_warned in
3337 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3338 whose name does not start with the host triplet. If you think this
3339 configuration is useful to you, please write to autoconf@gnu.org." >&5
3340 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3341 whose name does not start with the host triplet. If you think this
3342 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3343 ac_tool_warned
=yes ;;
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3354 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_CC+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC
="$CC" # Let the user override the test.
3363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir
=.
3368 for ac_exec_ext
in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 if test -n "$CC"; then
3382 { echo "$as_me:$LINENO: result: $CC" >&5
3383 echo "${ECHO_T}$CC" >&6; }
3385 { echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6; }
3392 if test -z "$CC"; then
3393 # Extract the first word of "cc", so it can be a program name with args.
3394 set dummy cc
; ac_word
=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC
="$CC" # Let the user override the test.
3404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir
=.
3409 for ac_exec_ext
in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3412 ac_prog_rejected
=yes
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 if test $ac_prog_rejected = yes; then
3424 # We found a bogon in the path, so make sure we never use it.
3425 set dummy
$ac_cv_prog_CC
3427 if test $# != 0; then
3428 # We chose a different compiler from the bogus one.
3429 # However, it has the same basename, so the bogon will be chosen
3430 # first if we set CC to just the basename; use the full file name.
3432 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3438 if test -n "$CC"; then
3439 { echo "$as_me:$LINENO: result: $CC" >&5
3440 echo "${ECHO_T}$CC" >&6; }
3442 { echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6; }
3448 if test -z "$CC"; then
3449 if test -n "$ac_tool_prefix"; then
3450 for ac_prog
in cl.exe
3452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC
="$CC" # Let the user override the test.
3462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir
=.
3467 for ac_exec_ext
in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6; }
3484 { echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6; }
3489 test -n "$CC" && break
3492 if test -z "$CC"; then
3494 for ac_prog
in cl.exe
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497 set dummy
$ac_prog; ac_word
=$2
3498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CC
="$ac_prog"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3526 echo "${ECHO_T}$ac_ct_CC" >&6; }
3528 { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3533 test -n "$ac_ct_CC" && break
3536 if test "x$ac_ct_CC" = x
; then
3539 case $cross_compiling:$ac_tool_warned in
3541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3542 whose name does not start with the host triplet. If you think this
3543 configuration is useful to you, please write to autoconf@gnu.org." >&5
3544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3545 whose name does not start with the host triplet. If you think this
3546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3547 ac_tool_warned
=yes ;;
3556 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3557 See \`config.log' for more details." >&5
3558 echo "$as_me: error: no acceptable C compiler found in \$PATH
3559 See \`config.log' for more details." >&2;}
3560 { (exit 1); exit 1; }; }
3562 # Provide some information about the compiler.
3563 echo "$as_me:$LINENO: checking for C compiler version" >&5
3564 ac_compiler
=`set X $ac_compile; echo $2`
3565 { (ac_try
="$ac_compiler --version >&5"
3567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compiler --version >&5") 2>&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }
3575 { (ac_try="$ac_compiler -v >&5"
3577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3578 *) ac_try_echo
=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compiler -v >&5") 2>&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }
3585 { (ac_try
="$ac_compiler -V >&5"
3587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compiler -V >&5") 2>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3611 ac_clean_files_save=$ac_clean_files
3612 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3613 # Try to create an executable without -o first, disregard a.out.
3614 # It will help us diagnose broken compilers, and finding out an intuition
3616 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3617 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3618 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3620 # List of possible output files, starting from the most likely.
3621 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3622 # only as a last resort. b.out is created by i960 compilers.
3623 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3625 # The IRIX 6 linker writes into existing files which may not be
3626 # executable, retaining their permissions. Remove them first so a
3627 # subsequent execution test works.
3629 for ac_file in $ac_files
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3633 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3638 if { (ac_try="$ac_link_default"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_link_default") 2>&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; then
3648 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3649 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3650 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3651 # so that the user can short-circuit this test for compilers unknown to
3653 for ac_file
in $ac_files ''
3655 test -f "$ac_file" ||
continue
3657 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3660 # We found the default executable, but exeext='' is most
3664 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3666 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3668 # We set ac_cv_exeext here because the later test for it is not
3669 # safe: cross compilers may not add the suffix if given an `-o'
3670 # argument, so we may need to know it at that point already.
3671 # Even if this section looks crufty: it has the advantage of
3678 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3684 { echo "$as_me:$LINENO: result: $ac_file" >&5
3685 echo "${ECHO_T}$ac_file" >&6; }
3686 if test -z "$ac_file"; then
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.
$ac_ext >&5
3690 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: C compiler cannot create executables
3693 See \`config.log' for more details." >&2;}
3694 { (exit 77); exit 77; }; }
3697 ac_exeext
=$ac_cv_exeext
3699 # Check that the compiler produces executables we can run. If not, either
3700 # the compiler is broken, or we cross compile.
3701 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3702 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3703 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3704 # If not cross compiling, check that we can run a simple program.
3705 if test "$cross_compiling" != yes; then
3706 if { ac_try
='./$ac_file'
3707 { (case "(($ac_try" in
3708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712 (eval "$ac_try") 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3718 if test "$cross_compiling" = maybe; then
3721 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3722 If you meant to cross compile, use \`--host'.
3723 See \`config.log' for more details.
" >&5
3724 echo "$as_me: error
: cannot run C compiled programs.
3725 If you meant to cross compile
, use \
`--host'.
3726 See \`config.log
' for more details." >&2;}
3727 { (exit 1); exit 1; }; }
3731 { echo "$as_me:$LINENO: result: yes" >&5
3732 echo "${ECHO_T}yes" >&6; }
3734 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3735 ac_clean_files=$ac_clean_files_save
3736 # Check that the compiler produces executables we can run. If not, either
3737 # the compiler is broken, or we cross compile.
3738 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3739 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3740 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3741 echo "${ECHO_T}$cross_compiling" >&6; }
3743 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3744 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3745 if { (ac_try="$ac_link"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_link") 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; then
3755 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3756 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3757 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3759 for ac_file
in conftest.exe conftest conftest.
*; do
3760 test -f "$ac_file" ||
continue
3762 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3763 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3770 See \`config.log' for more details." >&5
3771 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3772 See \`config.log' for more details." >&2;}
3773 { (exit 1); exit 1; }; }
3776 rm -f conftest
$ac_cv_exeext
3777 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3778 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3780 rm -f conftest.
$ac_ext
3781 EXEEXT
=$ac_cv_exeext
3783 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3784 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3785 if test "${ac_cv_objext+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 cat >conftest.
$ac_ext <<_ACEOF
3791 cat confdefs.h
>>conftest.
$ac_ext
3792 cat >>conftest.
$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3803 rm -f conftest.o conftest.obj
3804 if { (ac_try
="$ac_compile"
3806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compile") 2>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; then
3814 for ac_file in conftest.o conftest.obj conftest.*; do
3815 test -f "$ac_file" || continue;
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3818 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3827 See \`config.log
' for more details." >&5
3828 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3829 See \`config.log' for more details.
" >&2;}
3830 { (exit 1); exit 1; }; }
3833 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3835 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3836 echo "${ECHO_T}$ac_cv_objext" >&6; }
3837 OBJEXT=$ac_cv_objext
3839 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3840 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3841 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3842 echo $ECHO_N "(cached
) $ECHO_C" >&6
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3862 rm -f conftest.$ac_objext
3863 if { (ac_try="$ac_compile"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3881 echo "$as_me: failed program was
:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3891 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3892 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3893 GCC=`test $ac_compiler_gnu = yes && echo yes`
3894 ac_test_CFLAGS=${CFLAGS+set}
3895 ac_save_CFLAGS=$CFLAGS
3896 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3897 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3898 if test "${ac_cv_prog_cc_g+set}" = set; then
3899 echo $ECHO_N "(cached
) $ECHO_C" >&6
3901 ac_save_c_werror_flag=$ac_c_werror_flag
3902 ac_c_werror_flag=yes
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3933 (exit $ac_status); } && {
3934 test -z "$ac_c_werror_flag" ||
3935 test ! -s conftest.err
3936 } && test -s conftest.$ac_objext; then
3939 echo "$as_me: failed program was
:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_c_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest.$ac_objext; then
3977 echo "$as_me: failed program was
:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_compile") 2>conftest.er1
4006 grep -v '^ *+' conftest.er1 >conftest.err
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4010 (exit $ac_status); } && {
4011 test -z "$ac_c_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest.$ac_objext; then
4016 echo "$as_me: failed program was
:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_c_werror_flag=$ac_save_c_werror_flag
4031 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4032 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4033 if test "$ac_test_CFLAGS" = set; then
4034 CFLAGS=$ac_save_CFLAGS
4035 elif test $ac_cv_prog_cc_g = yes; then
4036 if test "$GCC" = yes; then
4042 if test "$GCC" = yes; then
4048 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4049 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4050 if test "${ac_cv_prog_cc_c89+set}" = set; then
4051 echo $ECHO_N "(cached
) $ECHO_C" >&6
4053 ac_cv_prog_cc_c89=no
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4063 #include <sys/types.h>
4064 #include <sys/stat.h>
4065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4066 struct buf { int x; };
4067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4068 static char *e (p, i)
4074 static char *f (char * (*g) (char **, int), char **p, ...)
4079 s = g (p, va_arg (v,int));
4084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4085 function prototypes and stuff, but not '\xHH' hex character constants.
4086 These don't provoke an error unfortunately, instead are silently treated
4087 as 'x'. The following induces an error, until -std is added to get
4088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4089 array size at least. It's necessary to write '\x00'==0 to get something
4090 that's true only with -std. */
4091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4094 inside strings and character constants. */
4096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4098 int test (int i, double x);
4099 struct s1 {int (*f) (int a);};
4100 struct s2 {int (*f) (double a);};
4101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4115 CC="$ac_save_CC $ac_arg"
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4129 (exit $ac_status); } && {
4130 test -z "$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4132 } && test -s conftest.$ac_objext; then
4133 ac_cv_prog_cc_c89=$ac_arg
4135 echo "$as_me: failed program was
:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4141 rm -f core conftest.err conftest.$ac_objext
4142 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4144 rm -f conftest.$ac_ext
4149 case "x
$ac_cv_prog_cc_c89" in
4151 { echo "$as_me:$LINENO: result
: none needed
" >&5
4152 echo "${ECHO_T}none needed
" >&6; } ;;
4154 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4155 echo "${ECHO_T}unsupported
" >&6; } ;;
4157 CC="$CC $ac_cv_prog_cc_c89"
4158 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4159 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4170 # On Suns, sometimes $CPP names a directory.
4171 if test -n "$CPP" && test -d "$CPP"; then
4175 #### Some systems specify a CPP to use unless we are using GCC.
4176 #### Now that we know whether we are using GCC, we can decide whether
4177 #### to use that one.
4178 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4183 #### Some systems specify a CC to use unless we are using GCC.
4184 #### Now that we know whether we are using GCC, we can decide whether
4185 #### to use that one.
4186 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4187 test x$cc_specified != xyes
4192 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4194 CC="$CC $GCC_TEST_OPTIONS"
4197 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4199 CC="$CC $NON_GCC_TEST_OPTIONS"
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4209 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4210 # On Suns, sometimes $CPP names a directory.
4211 if test -n "$CPP" && test -d "$CPP"; then
4214 if test -z "$CPP"; then
4215 if test "${ac_cv_prog_CPP+set}" = set; then
4216 echo $ECHO_N "(cached
) $ECHO_C" >&6
4218 # Double quotes because CPP needs to be expanded
4219 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4222 for ac_c_preproc_warn_flag in '' yes
4224 # Use a header file that comes with gcc, so configuring glibc
4225 # with a fresh cross-compiler works.
4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 # <limits.h> exists even on freestanding compilers.
4228 # On the NeXT, cc -E runs the code through the compiler's parser,
4229 # not just through cpp. "Syntax error
" is here to catch this case.
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4237 # include <limits.h>
4239 # include <assert.h>
4243 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4255 (exit $ac_status); } >/dev/null && {
4256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4261 echo "$as_me: failed program was
:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4264 # Broken: fails on valid input.
4268 rm -f conftest.err conftest.$ac_ext
4270 # OK, works on sane cases. Now check whether nonexistent headers
4271 # can be detected and how.
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <ac_nonexistent.h>
4280 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4288 grep -v '^ *+' conftest.er1 >conftest.err
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4292 (exit $ac_status); } >/dev/null && {
4293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4294 test ! -s conftest.err
4296 # Broken: success on invalid input.
4299 echo "$as_me: failed program was
:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 # Passes both tests.
4307 rm -f conftest.err conftest.$ac_ext
4310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4311 rm -f conftest.err conftest.$ac_ext
4312 if $ac_preproc_ok; then
4324 { echo "$as_me:$LINENO: result
: $CPP" >&5
4325 echo "${ECHO_T}$CPP" >&6; }
4327 for ac_c_preproc_warn_flag in '' yes
4329 # Use a header file that comes with gcc, so configuring glibc
4330 # with a fresh cross-compiler works.
4331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4332 # <limits.h> exists even on freestanding compilers.
4333 # On the NeXT, cc -E runs the code through the compiler's parser,
4334 # not just through cpp. "Syntax error
" is here to catch this case.
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4342 # include <limits.h>
4344 # include <assert.h>
4348 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4356 grep -v '^ *+' conftest.er1 >conftest.err
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4360 (exit $ac_status); } >/dev/null && {
4361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4366 echo "$as_me: failed program was
:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 # Broken: fails on valid input.
4373 rm -f conftest.err conftest.$ac_ext
4375 # OK, works on sane cases. Now check whether nonexistent headers
4376 # can be detected and how.
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <ac_nonexistent.h>
4385 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4393 grep -v '^ *+' conftest.er1 >conftest.err
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4397 (exit $ac_status); } >/dev/null && {
4398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4401 # Broken: success on invalid input.
4404 echo "$as_me: failed program was
:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 # Passes both tests.
4412 rm -f conftest.err conftest.$ac_ext
4415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4416 rm -f conftest.err conftest.$ac_ext
4417 if $ac_preproc_ok; then
4420 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4421 See \
`config.log' for more details." >&5
4422 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4423 See \`config.log
' for more details." >&2;}
4424 { (exit 1); exit 1; }; }
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4430 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4435 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_GREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 # Extract the first word of "grep ggrep" to use in msg output
4440 if test -z "$GREP"; then
4441 set dummy grep ggrep; ac_prog_name=$2
4442 if test "${ac_cv_path_GREP+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 ac_path_GREP_found=false
4446 # Loop through the user's path and
test for each of PROGNAME-LIST
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4448 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_prog
in grep ggrep
; do
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4455 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4456 # Check for GNU ac_path_GREP and select it if it is found.
4457 # Check for GNU $ac_path_GREP
4458 case `"$ac_path_GREP" --version 2>&1` in
4460 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4463 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4466 cat "conftest.in" "conftest.in" >"conftest.tmp"
4467 mv "conftest.tmp" "conftest.in"
4468 cp "conftest.in" "conftest.nl"
4469 echo 'GREP' >> "conftest.nl"
4470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4471 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4472 ac_count
=`expr $ac_count + 1`
4473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_GREP
="$ac_path_GREP"
4476 ac_path_GREP_max
=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4481 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4485 $ac_path_GREP_found && break 3
4495 GREP
="$ac_cv_path_GREP"
4496 if test -z "$GREP"; then
4497 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4498 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4499 { (exit 1); exit 1; }; }
4503 ac_cv_path_GREP
=$GREP
4508 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4509 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4510 GREP
="$ac_cv_path_GREP"
4513 { echo "$as_me:$LINENO: checking for egrep" >&5
4514 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4515 if test "${ac_cv_path_EGREP+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4519 then ac_cv_path_EGREP
="$GREP -E"
4521 # Extract the first word of "egrep" to use in msg output
4522 if test -z "$EGREP"; then
4523 set dummy
egrep; ac_prog_name
=$2
4524 if test "${ac_cv_path_EGREP+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 ac_path_EGREP_found
=false
4528 # Loop through the user's path and test for each of PROGNAME-LIST
4529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4530 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4533 test -z "$as_dir" && as_dir
=.
4534 for ac_prog
in egrep; do
4535 for ac_exec_ext
in '' $ac_executable_extensions; do
4536 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4537 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4538 # Check for GNU ac_path_EGREP and select it if it is found.
4539 # Check for GNU $ac_path_EGREP
4540 case `"$ac_path_EGREP" --version 2>&1` in
4542 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4545 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4548 cat "conftest.in" "conftest.in" >"conftest.tmp"
4549 mv "conftest.tmp" "conftest.in"
4550 cp "conftest.in" "conftest.nl"
4551 echo 'EGREP' >> "conftest.nl"
4552 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4553 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4554 ac_count
=`expr $ac_count + 1`
4555 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4556 # Best one so far, save it but keep looking for a better one
4557 ac_cv_path_EGREP
="$ac_path_EGREP"
4558 ac_path_EGREP_max
=$ac_count
4560 # 10*(2^10) chars as input seems more than enough
4561 test $ac_count -gt 10 && break
4563 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4567 $ac_path_EGREP_found && break 3
4577 EGREP
="$ac_cv_path_EGREP"
4578 if test -z "$EGREP"; then
4579 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4580 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4581 { (exit 1); exit 1; }; }
4585 ac_cv_path_EGREP
=$EGREP
4591 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4592 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4593 EGREP
="$ac_cv_path_EGREP"
4597 { echo "$as_me:$LINENO: checking for AIX" >&5
4598 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4599 cat >conftest.
$ac_ext <<_ACEOF
4602 cat confdefs.h
>>conftest.
$ac_ext
4603 cat >>conftest.
$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "yes" >/dev
/null
2>&1; then
4612 { echo "$as_me:$LINENO: result: yes" >&5
4613 echo "${ECHO_T}yes" >&6; }
4614 cat >>confdefs.h
<<\_ACEOF
4615 #define _ALL_SOURCE 1
4619 { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4626 cat >>confdefs.h
<<\_ACEOF
4627 #define _GNU_SOURCE 1
4632 ### Use -Wno-pointer-sign if the compiler supports it
4633 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4634 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4635 SAVE_CFLAGS
="$CFLAGS"
4636 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 cat confdefs.h
>>conftest.
$ac_ext
4641 cat >>conftest.
$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4652 rm -f conftest.
$ac_objext
4653 if { (ac_try
="$ac_compile"
4655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest.$ac_objext; then
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 if test $has_option = yes; then
4679 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4681 { echo "$as_me:$LINENO: result: $has_option" >&5
4682 echo "${ECHO_T}$has_option" >&6; }
4683 CFLAGS="$SAVE_CFLAGS"
4687 #### Some other nice autoconf tests.
4689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4692 if test "$LN_S" = "ln -s"; then
4693 { echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6; }
4696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4697 echo "${ECHO_T}no, using $LN_S" >&6; }
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4706 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4707 # On Suns, sometimes $CPP names a directory.
4708 if test -n "$CPP" && test -d "$CPP"; then
4711 if test -z "$CPP"; then
4712 if test "${ac_cv_prog_CPP+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 # Double quotes because CPP needs to be expanded
4716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4719 for ac_c_preproc_warn_flag in '' yes
4721 # Use a header file that comes with gcc, so configuring glibc
4722 # with a fresh cross-compiler works.
4723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 # <limits.h> exists even on freestanding compilers.
4725 # On the NeXT, cc -E runs the code through the compiler's parser,
4726 # not just through cpp. "Syntax error" is here to catch this case.
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 # include <limits.h>
4736 # include <assert.h>
4740 if { (ac_try="$ac_cpp conftest.$ac_ext"
4742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4743 *) ac_try_echo
=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1
>conftest.err
4750 cat conftest.err
>&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev
/null
&& {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.
$ac_ext >&5
4761 # Broken: fails on valid input.
4765 rm -f conftest.err conftest.
$ac_ext
4767 # OK, works on sane cases. Now check whether nonexistent headers
4768 # can be detected and how.
4769 cat >conftest.
$ac_ext <<_ACEOF
4772 cat confdefs.h
>>conftest.
$ac_ext
4773 cat >>conftest.
$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4777 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4780 *) ac_try_echo=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev/null && {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4793 # Broken: success on invalid input.
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 # Passes both tests.
4804 rm -f conftest.err conftest.$ac_ext
4807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.err conftest.
$ac_ext
4809 if $ac_preproc_ok; then
4821 { echo "$as_me:$LINENO: result: $CPP" >&5
4822 echo "${ECHO_T}$CPP" >&6; }
4824 for ac_c_preproc_warn_flag
in '' yes
4826 # Use a header file that comes with gcc, so configuring glibc
4827 # with a fresh cross-compiler works.
4828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4829 # <limits.h> exists even on freestanding compilers.
4830 # On the NeXT, cc -E runs the code through the compiler's parser,
4831 # not just through cpp. "Syntax error" is here to catch this case.
4832 cat >conftest.
$ac_ext <<_ACEOF
4835 cat confdefs.h
>>conftest.
$ac_ext
4836 cat >>conftest.
$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 # include <limits.h>
4841 # include <assert.h>
4845 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4853 grep -v '^ *+' conftest.er1 >conftest.err
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null && {
4858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4859 test ! -s conftest.err
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Broken: fails on valid input.
4870 rm -f conftest.err conftest.$ac_ext
4872 # OK, works on sane cases. Now check whether nonexistent headers
4873 # can be detected and how.
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4885 *) ac_try_echo
=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1
>conftest.err
4892 cat conftest.err
>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev
/null
&& {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4898 # Broken: success on invalid input.
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.
$ac_ext >&5
4904 # Passes both tests.
4909 rm -f conftest.err conftest.
$ac_ext
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.
$ac_ext
4914 if $ac_preproc_ok; then
4917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4918 See \`config.log' for more details." >&5
4919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4920 See \`config.log' for more details." >&2;}
4921 { (exit 1); exit 1; }; }
4925 ac_cpp
='$CPP $CPPFLAGS'
4926 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4930 # Find a good install program. We prefer a C program (faster),
4931 # so one script is as good as another. But avoid the broken or
4932 # incompatible versions:
4933 # SysV /etc/install, /usr/sbin/install
4934 # SunOS /usr/etc/install
4935 # IRIX /sbin/install
4937 # AmigaOS /C/install, which installs bootblocks on floppy discs
4938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4941 # OS/2's system install, which has a completely different semantic
4942 # ./install, which can be erroneously created by make from ./install.sh.
4943 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4944 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4945 if test -z "$INSTALL"; then
4946 if test "${ac_cv_path_install+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 # Account for people who put trailing slashes in PATH elements.
4956 .
/ | .
// |
/cC
/* | \
4957 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4958 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4961 # OSF1 and SCO ODT 3.0 have their own names for install.
4962 # Don't use installbsd from OSF since it installs stuff as root
4964 for ac_prog
in ginstall scoinst
install; do
4965 for ac_exec_ext
in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4967 if test $ac_prog = install &&
4968 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4969 # AIX install. It has an incompatible calling convention.
4971 elif test $ac_prog = install &&
4972 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4973 # program-specific install script used by HP pwplus--don't use.
4976 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4989 if test "${ac_cv_path_install+set}" = set; then
4990 INSTALL
=$ac_cv_path_install
4992 # As a last resort, use the slow shell script. Don't cache a
4993 # value for INSTALL within a source directory, because that will
4994 # break other packages using the cache if that directory is
4995 # removed, or if the value is a relative name.
4996 INSTALL
=$ac_install_sh
4999 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6; }
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5008 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5010 if test "x$RANLIB" = x
; then
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5013 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_RANLIB+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 if test -n "$RANLIB"; then
5020 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir
=.
5027 for ac_exec_ext
in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 RANLIB
=$ac_cv_prog_RANLIB
5040 if test -n "$RANLIB"; then
5041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5042 echo "${ECHO_T}$RANLIB" >&6; }
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5050 if test -z "$ac_cv_prog_RANLIB"; then
5051 ac_ct_RANLIB
=$RANLIB
5052 # Extract the first word of "ranlib", so it can be a program name with args.
5053 set dummy ranlib
; ac_word
=$2
5054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 if test -n "$ac_ct_RANLIB"; then
5060 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir
=.
5067 for ac_exec_ext
in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5080 if test -n "$ac_ct_RANLIB"; then
5081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5088 if test "x$ac_ct_RANLIB" = x
; then
5091 case $cross_compiling:$ac_tool_warned in
5093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&5
5096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5097 whose name does not start with the host triplet. If you think this
5098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5099 ac_tool_warned
=yes ;;
5101 RANLIB
=$ac_ct_RANLIB
5104 RANLIB
="$ac_cv_prog_RANLIB"
5108 # Extract the first word of "install-info", so it can be a program name with args.
5109 set dummy install-info
; ac_word
=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 case $INSTALL_INFO in
5117 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir
=.
5125 for ac_exec_ext
in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5139 if test -n "$INSTALL_INFO"; then
5140 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5141 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5143 { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5148 # Extract the first word of "install-info", so it can be a program name with args.
5149 set dummy install-info
; ac_word
=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 case $INSTALL_INFO in
5157 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5161 for as_dir
in /usr
/sbin
5164 test -z "$as_dir" && as_dir
=.
5165 for ac_exec_ext
in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5179 if test -n "$INSTALL_INFO"; then
5180 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5181 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5183 { echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6; }
5188 # Extract the first word of "install-info", so it can be a program name with args.
5189 set dummy install-info
; ac_word
=$2
5190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5192 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 case $INSTALL_INFO in
5197 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5204 test -z "$as_dir" && as_dir
=.
5205 for ac_exec_ext
in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5219 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5220 if test -n "$INSTALL_INFO"; then
5221 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5222 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 # Extract the first word of "gzip", so it can be a program name with args.
5230 set dummy
gzip; ac_word
=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5245 test -z "$as_dir" && as_dir
=.
5246 for ac_exec_ext
in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5260 if test -n "$GZIP_PROG"; then
5261 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5262 echo "${ECHO_T}$GZIP_PROG" >&6; }
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5271 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5273 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5276 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5278 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5282 late_LDFLAGS
=$LDFLAGS
5283 if test "$GCC" = yes; then
5284 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5286 LDFLAGS
="$LDFLAGS -znocombreloc"
5289 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5290 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5291 cat >conftest.
$ac_ext <<_ACEOF
5294 rm -f conftest.
$ac_objext conftest
$ac_exeext
5295 if { (ac_try
="$ac_link"
5297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_link") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1 >conftest.err
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && {
5308 test -z "$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 } && test -s conftest$ac_exeext &&
5311 $as_test_x conftest$ac_exeext; then
5312 { echo "$as_me:$LINENO: result: yes" >&5
5313 echo "${ECHO_T}yes" >&6; }
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 LDFLAGS=$late_LDFLAGS
5319 { echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6; }
5323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5324 conftest$ac_exeext conftest.$ac_ext
5326 #### Extract some information from the operating system and machine files.
5328 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5329 - which libraries the lib-src programs will want, and
5330 - whether the GNU malloc routines are usable..." >&5
5331 echo "$as_me: checking the machine- and system-dependent files to find out
5332 - which libraries the lib-src programs will want, and
5333 - whether the GNU malloc routines are usable..." >&6;}
5335 ### First figure out CFLAGS (which we use for running the compiler here)
5336 ### and REAL_CFLAGS (which we use for real compilation).
5337 ### The two are the same except on a few systems, where they are made
5338 ### different to work around various lossages. For example,
5339 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5340 ### as implying static linking.
5342 ### If the CFLAGS env var is specified, we use that value
5343 ### instead of the default.
5345 ### It's not important that this name contain the PID; you can't run
5346 ### two configures in the same directory and have anything work
5348 tempcname="conftest.c"
5351 #include "'${srcdir}'/src/'${opsysfile}'"
5352 #include "'${srcdir}'/src/'${machfile}'"
5353 #ifndef LIBS_MACHINE
5354 #define LIBS_MACHINE
5359 #ifndef C_SWITCH_SYSTEM
5360 #define C_SWITCH_SYSTEM
5362 #ifndef C_SWITCH_MACHINE
5363 #define C_SWITCH_MACHINE
5365 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5366 configure___ c_switch_system=C_SWITCH_SYSTEM
5367 configure___ c_switch_machine=C_SWITCH_MACHINE
5370 #define LIB_X11_LIB -lX11
5373 #ifndef LIBX11_MACHINE
5374 #define LIBX11_MACHINE
5377 #ifndef LIBX11_SYSTEM
5378 #define LIBX11_SYSTEM
5380 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5383 configure___ unexec=UNEXEC
5385 configure___ unexec=unexec.o
5388 #ifdef SYSTEM_MALLOC
5389 configure___ system_malloc=yes
5391 configure___ system_malloc=no
5394 #ifdef USE_MMAP_FOR_BUFFERS
5395 configure___ use_mmap_for_buffers=yes
5397 configure___ use_mmap_for_buffers=no
5400 #ifndef C_DEBUG_SWITCH
5401 #define C_DEBUG_SWITCH -g
5404 #ifndef C_OPTIMIZE_SWITCH
5406 #define C_OPTIMIZE_SWITCH -O2
5408 #define C_OPTIMIZE_SWITCH -O
5412 #ifndef C_WARNINGS_SWITCH
5413 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5416 #ifndef LD_SWITCH_MACHINE
5417 #define LD_SWITCH_MACHINE
5420 #ifndef LD_SWITCH_SYSTEM
5421 #define LD_SWITCH_SYSTEM
5424 #ifndef LD_SWITCH_X_SITE_AUX
5425 #define LD_SWITCH_X_SITE_AUX
5428 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5429 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5431 #ifdef THIS_IS_CONFIGURE
5433 /* Get the CFLAGS for tests in configure. */
5435 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5437 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5440 #else /* not THIS_IS_CONFIGURE */
5442 /* Get the CFLAGS for real compilation. */
5444 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5446 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5449 #endif /* not THIS_IS_CONFIGURE */
5452 # The value of CPP is a quoted variable reference, so we need to do this
5453 # to get its actual value...
5454 CPP=`eval "echo $CPP"`
5455 eval `${CPP} -Isrc ${tempcname} \
5456 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5457 if test "x$SPECIFIED_CFLAGS" = x; then
5458 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5459 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5461 REAL_CFLAGS="$CFLAGS"
5465 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5467 ### Make sure subsequent tests use flags consistent with the build flags.
5469 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5470 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5472 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5477 # Check whether --enable-largefile was given.
5478 if test "${enable_largefile+set}" = set; then
5479 enableval=$enable_largefile;
5482 if test "$enable_largefile" != no; then
5484 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5485 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5486 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 ac_cv_sys_largefile_CC=no
5490 if test "$GCC" != yes; then
5493 # IRIX 6.2 and later do not support large files by default,
5494 # so use the C compiler's -n32 option if that helps.
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <sys/types.h>
5502 /* Check that off_t can represent 2**63 - 1 correctly.
5503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5504 since some C++ compilers masquerading as C compilers
5505 incorrectly reject 9223372036854775807. */
5506 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5508 && LARGE_OFF_T % 2147483647 == 1)
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5522 *) ac_try_echo
=$ac_try;;
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5527 grep -v '^ *+' conftest.er1
>conftest.err
5529 cat conftest.err
>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.
$ac_objext; then
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.
$ac_ext >&5
5543 rm -f core conftest.err conftest.
$ac_objext
5545 rm -f conftest.
$ac_objext
5546 if { (ac_try
="$ac_compile"
5548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_c_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5562 ac_cv_sys_largefile_CC=' -n32'; break
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5570 rm -f core conftest.err conftest.$ac_objext
5574 rm -f conftest.$ac_ext
5577 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5578 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5579 if test "$ac_cv_sys_largefile_CC" != no; then
5580 CC=$CC$ac_cv_sys_largefile_CC
5583 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5584 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5585 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <sys/types.h>
5596 /* Check that off_t can represent 2**63 - 1 correctly.
5597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5598 since some C++ compilers masquerading as C compilers
5599 incorrectly reject 9223372036854775807. */
5600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5602 && LARGE_OFF_T % 2147483647 == 1)
5612 rm -f conftest.$ac_objext
5613 if { (ac_try="$ac_compile"
5615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5616 *) ac_try_echo
=$ac_try;;
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_compile") 2>conftest.er1
5621 grep -v '^ *+' conftest.er1
>conftest.err
5623 cat conftest.err
>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && {
5626 test -z "$ac_c_werror_flag" ||
5627 test ! -s conftest.err
5628 } && test -s conftest.
$ac_objext; then
5629 ac_cv_sys_file_offset_bits
=no
; break
5631 echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.
$ac_ext >&5
5637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5638 cat >conftest.
$ac_ext <<_ACEOF
5641 cat confdefs.h
>>conftest.
$ac_ext
5642 cat >>conftest.
$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #define _FILE_OFFSET_BITS 64
5645 #include <sys/types.h>
5646 /* Check that off_t can represent 2**63 - 1 correctly.
5647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5648 since some C++ compilers masquerading as C compilers
5649 incorrectly reject 9223372036854775807. */
5650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5652 && LARGE_OFF_T % 2147483647 == 1)
5662 rm -f conftest.
$ac_objext
5663 if { (ac_try
="$ac_compile"
5665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 ac_cv_sys_file_offset_bits=64; break
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_cv_sys_file_offset_bits=unknown
5692 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5693 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5694 case $ac_cv_sys_file_offset_bits in #(
5697 cat >>confdefs.h <<_ACEOF
5698 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5703 if test $ac_cv_sys_file_offset_bits = unknown; then
5704 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5705 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5706 if test "${ac_cv_sys_large_files+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <sys/types.h>
5717 /* Check that off_t can represent 2**63 - 1 correctly.
5718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5719 since some C++ compilers masquerading as C compilers
5720 incorrectly reject 9223372036854775807. */
5721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5723 && LARGE_OFF_T % 2147483647 == 1)
5733 rm -f conftest.$ac_objext
5734 if { (ac_try="$ac_compile"
5736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5737 *) ac_try_echo
=$ac_try;;
5739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compile") 2>conftest.er1
5742 grep -v '^ *+' conftest.er1
>conftest.err
5744 cat conftest.err
>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } && {
5747 test -z "$ac_c_werror_flag" ||
5748 test ! -s conftest.err
5749 } && test -s conftest.
$ac_objext; then
5750 ac_cv_sys_large_files
=no
; break
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.
$ac_ext >&5
5758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5759 cat >conftest.
$ac_ext <<_ACEOF
5762 cat confdefs.h
>>conftest.
$ac_ext
5763 cat >>conftest.
$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 #define _LARGE_FILES 1
5766 #include <sys/types.h>
5767 /* Check that off_t can represent 2**63 - 1 correctly.
5768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5769 since some C++ compilers masquerading as C compilers
5770 incorrectly reject 9223372036854775807. */
5771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5773 && LARGE_OFF_T % 2147483647 == 1)
5783 rm -f conftest.
$ac_objext
5784 if { (ac_try
="$ac_compile"
5786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_cv_sys_large_files=1; break
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_cv_sys_large_files=unknown
5813 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5814 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5815 case $ac_cv_sys_large_files in #(
5818 cat >>confdefs.h <<_ACEOF
5819 #define _LARGE_FILES $ac_cv_sys_large_files
5829 ### The standard library on x86-64 GNU/Linux distributions can
5830 ### be located in either /usr/lib64 or /usr/lib.
5831 case "${canonical}" in
5832 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5833 if test -d /usr/lib64; then
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_X86_64_LIB64_DIR 1
5845 if test "${with_sound}" != "no"; then
5846 # Sound support for GNU/Linux and the free BSDs.
5847 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5849 if test "${ac_cv_header_stdc+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5875 *) ac_try_echo
=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1
>conftest.err
5882 cat conftest.err
>&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest.
$ac_objext; then
5888 ac_cv_header_stdc
=yes
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.
$ac_ext >&5
5893 ac_cv_header_stdc
=no
5896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 if test $ac_cv_header_stdc = yes; then
5899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "memchr" >/dev
/null
2>&1; then
5913 ac_cv_header_stdc
=no
5919 if test $ac_cv_header_stdc = yes; then
5920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5921 cat >conftest.
$ac_ext <<_ACEOF
5924 cat confdefs.h
>>conftest.
$ac_ext
5925 cat >>conftest.
$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5931 $EGREP "free" >/dev
/null
2>&1; then
5934 ac_cv_header_stdc
=no
5940 if test $ac_cv_header_stdc = yes; then
5941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5942 if test "$cross_compiling" = yes; then
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5953 #if ((' ' & 0x0FF) == 0x020)
5954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5957 # define ISLOWER(c) \
5958 (('a' <= (c) && (c) <= 'i') \
5959 || ('j' <= (c) && (c) <= 'r') \
5960 || ('s' <= (c) && (c) <= 'z'))
5961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5969 for (i = 0; i < 256; i++)
5970 if (XOR (islower (i), ISLOWER (i))
5971 || toupper (i) != TOUPPER (i))
5976 rm -f conftest
$ac_exeext
5977 if { (ac_try
="$ac_link"
5979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_link") 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5987 { (case "(($ac_try" in
5988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5989 *) ac_try_echo
=$ac_try;;
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_try") 2>&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5998 echo "$as_me: program exited with status $ac_status" >&5
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.
$ac_ext >&5
6003 ac_cv_header_stdc
=no
6005 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6011 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6012 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6013 if test $ac_cv_header_stdc = yes; then
6015 cat >>confdefs.h
<<\_ACEOF
6016 #define STDC_HEADERS 1
6021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6031 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6032 inttypes.h stdint.h unistd.h
6034 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6037 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 cat >conftest.
$ac_ext <<_ACEOF
6043 cat confdefs.h
>>conftest.
$ac_ext
6044 cat >>conftest.
$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 #include <$ac_header>
6050 rm -f conftest.
$ac_objext
6051 if { (ac_try
="$ac_compile"
6053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compile") 2>conftest.er1
6059 grep -v '^ *+' conftest.er1 >conftest.err
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
6067 eval "$as_ac_Header=yes"
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 eval "$as_ac_Header=no"
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 ac_res=`eval echo '${'$as_ac_Header'}'`
6078 { echo "$as_me:$LINENO: result: $ac_res" >&5
6079 echo "${ECHO_T}$ac_res" >&6; }
6080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6081 cat >>confdefs.h <<_ACEOF
6082 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6093 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6095 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 ac_res=`eval echo '${'$as_ac_Header'}'`
6103 { echo "$as_me:$LINENO: result: $ac_res" >&5
6104 echo "${ECHO_T}$ac_res" >&6; }
6106 # Is the header compilable?
6107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6116 #include <$ac_header>
6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6122 *) ac_try_echo
=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6127 grep -v '^ *+' conftest.er1
>conftest.err
6129 cat conftest.err
>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_c_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.
$ac_objext; then
6135 ac_header_compiler
=yes
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.
$ac_ext >&5
6140 ac_header_compiler
=no
6143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6145 echo "${ECHO_T}$ac_header_compiler" >&6; }
6147 # Is the header present?
6148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6150 cat >conftest.
$ac_ext <<_ACEOF
6153 cat confdefs.h
>>conftest.
$ac_ext
6154 cat >>conftest.
$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <$ac_header>
6158 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6166 grep -v '^ *+' conftest.er1 >conftest.err
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev/null && {
6171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6174 ac_header_preproc=yes
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6179 ac_header_preproc=no
6182 rm -f conftest.err conftest.$ac_ext
6183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6184 echo "${ECHO_T}$ac_header_preproc" >&6; }
6186 # So? What about this header?
6187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6193 ac_header_preproc=yes
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 eval "$as_ac_Header=\$ac_header_preproc"
6218 ac_res=`eval echo '${'$as_ac_Header'}'`
6219 { echo "$as_me:$LINENO: result: $ac_res" >&5
6220 echo "${ECHO_T}$ac_res" >&6; }
6223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6224 cat >>confdefs.h <<_ACEOF
6225 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6232 # Emulation library used on NetBSD.
6233 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6234 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6235 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_check_lib_save_LIBS=$LIBS
6239 LIBS="-lossaudio $LIBS"
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6247 /* Override any GCC internal prototype to avoid an error.
6248 Use char because int might match the return type of a GCC
6249 builtin and then its argument prototype would still apply. */
6257 return _oss_ioctl ();
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (ac_try="$ac_link"
6265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6266 *) ac_try_echo
=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_link") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1
>conftest.err
6273 cat conftest.err
>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest
$ac_exeext &&
6279 $as_test_x conftest
$ac_exeext; then
6280 ac_cv_lib_ossaudio__oss_ioctl
=yes
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.
$ac_ext >&5
6285 ac_cv_lib_ossaudio__oss_ioctl
=no
6288 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6289 conftest
$ac_exeext conftest.
$ac_ext
6290 LIBS
=$ac_check_lib_save_LIBS
6292 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6293 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6294 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6303 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6304 if test "X${with_pkg_config_prog}" != X
; then
6305 PKG_CONFIG
="${with_pkg_config_prog}"
6310 if test -z "$PKG_CONFIG"; then
6311 # Extract the first word of "pkg-config", so it can be a program name with args.
6312 set dummy pkg-config
; ac_word
=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir
=.
6328 for ac_exec_ext
in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6342 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6343 if test -n "$PKG_CONFIG"; then
6344 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6345 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6354 if test "$PKG_CONFIG" = "no" ; then
6357 PKG_CONFIG_MIN_VERSION
=0.9.0
6358 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6359 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6360 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6362 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6363 { echo "$as_me:$LINENO: result: yes" >&5
6364 echo "${ECHO_T}yes" >&6; }
6367 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6368 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6369 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6370 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6371 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6373 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6374 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6375 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6376 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6377 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6383 ## If we have a custom action on failure, don't print errors, but
6384 ## do set a variable so people can do so.
6385 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6397 if test $succeeded = yes; then
6403 if test $HAVE_ALSA = yes; then
6404 SAVE_CFLAGS
="$CFLAGS"
6405 SAVE_LDFLAGS
="$LDFLAGS"
6406 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6407 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6408 cat >conftest.
$ac_ext <<_ACEOF
6411 cat confdefs.h
>>conftest.
$ac_ext
6412 cat >>conftest.
$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <asoundlib.h>
6418 snd_lib_error_set_handler (0);
6423 rm -f conftest.
$ac_objext
6424 if { (ac_try
="$ac_compile"
6426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 emacs_alsa_normal=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 emacs_alsa_normal=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 if test "$emacs_alsa_normal" != yes; then
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 #include <alsa/asoundlib.h>
6460 snd_lib_error_set_handler (0);
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6469 *) ac_try_echo
=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1
>conftest.err
6476 cat conftest.err
>&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.
$ac_objext; then
6482 emacs_alsa_subdir
=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.
$ac_ext >&5
6487 emacs_alsa_subdir
=no
6490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6491 if test "$emacs_alsa_subdir" != yes; then
6492 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6493 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6494 { (exit 1); exit 1; }; }
6496 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6499 CFLAGS
="$SAVE_CFLAGS"
6500 LDFLAGS
="$SAVE_LDFLAGS"
6501 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6502 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6504 cat >>confdefs.h
<<\_ACEOF
6537 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6538 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6539 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6540 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6543 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 ac_res
=`eval echo '${'$as_ac_Header'}'`
6551 { echo "$as_me:$LINENO: result: $ac_res" >&5
6552 echo "${ECHO_T}$ac_res" >&6; }
6554 # Is the header compilable?
6555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6557 cat >conftest.
$ac_ext <<_ACEOF
6560 cat confdefs.h
>>conftest.
$ac_ext
6561 cat >>conftest.
$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6564 #include <$ac_header>
6566 rm -f conftest.
$ac_objext
6567 if { (ac_try
="$ac_compile"
6569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6583 ac_header_compiler=yes
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6588 ac_header_compiler=no
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 echo "${ECHO_T}$ac_header_compiler" >&6; }
6595 # Is the header present?
6596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6598 cat >conftest.$ac_ext <<_ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 #include <$ac_header>
6606 if { (ac_try="$ac_cpp conftest.$ac_ext"
6608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6609 *) ac_try_echo
=$ac_try;;
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6614 grep -v '^ *+' conftest.er1
>conftest.err
6616 cat conftest.err
>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } >/dev
/null
&& {
6619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6622 ac_header_preproc
=yes
6624 echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.
$ac_ext >&5
6627 ac_header_preproc
=no
6630 rm -f conftest.err conftest.
$ac_ext
6631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6632 echo "${ECHO_T}$ac_header_preproc" >&6; }
6634 # So? What about this header?
6635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6641 ac_header_preproc
=yes
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6662 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 eval "$as_ac_Header=\$ac_header_preproc"
6666 ac_res
=`eval echo '${'$as_ac_Header'}'`
6667 { echo "$as_me:$LINENO: result: $ac_res" >&5
6668 echo "${ECHO_T}$ac_res" >&6; }
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672 cat >>confdefs.h
<<_ACEOF
6673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6682 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6683 cat >conftest.
$ac_ext <<_ACEOF
6686 cat confdefs.h
>>conftest.
$ac_ext
6687 cat >>conftest.
$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <sys/personality.h>
6693 personality (PER_LINUX32)
6698 rm -f conftest.
$ac_objext
6699 if { (ac_try
="$ac_compile"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 emacs_cv_personality_linux32=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 emacs_cv_personality_linux32=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6725 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6727 if test $emacs_cv_personality_linux32 = yes; then
6729 cat >>confdefs.h <<\_ACEOF
6730 #define HAVE_PERSONALITY_LINUX32 1
6736 for ac_header in term.h
6738 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <$ac_header>
6752 if { (ac_try="$ac_cpp conftest.$ac_ext"
6754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6755 *) ac_try_echo
=$ac_try;;
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } >/dev
/null
&& {
6765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6768 eval "$as_ac_Header=yes"
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.
$ac_ext >&5
6773 eval "$as_ac_Header=no"
6776 rm -f conftest.err conftest.
$ac_ext
6778 ac_res
=`eval echo '${'$as_ac_Header'}'`
6779 { echo "$as_me:$LINENO: result: $ac_res" >&5
6780 echo "${ECHO_T}$ac_res" >&6; }
6781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6782 cat >>confdefs.h
<<_ACEOF
6783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6790 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6791 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6792 if test "${ac_cv_header_stdc+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 cat >conftest.
$ac_ext <<_ACEOF
6798 cat confdefs.h
>>conftest.
$ac_ext
6799 cat >>conftest.
$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6814 rm -f conftest.
$ac_objext
6815 if { (ac_try
="$ac_compile"
6817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 ac_cv_header_stdc=yes
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6836 ac_cv_header_stdc=no
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 if test $ac_cv_header_stdc = yes; then
6842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6843 cat >conftest.$ac_ext <<_ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "memchr" >/dev/null 2>&1; then
6856 ac_cv_header_stdc=no
6862 if test $ac_cv_header_stdc = yes; then
6863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6874 $EGREP "free" >/dev/null 2>&1; then
6877 ac_cv_header_stdc=no
6883 if test $ac_cv_header_stdc = yes; then
6884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6885 if test "$cross_compiling" = yes; then
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6896 #if ((' ' & 0x0FF) == 0x020)
6897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6900 # define ISLOWER(c) \
6901 (('a' <= (c) && (c) <= 'i') \
6902 || ('j' <= (c) && (c) <= 'r') \
6903 || ('s' <= (c) && (c) <= 'z'))
6904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6912 for (i = 0; i < 256; i++)
6913 if (XOR (islower (i), ISLOWER (i))
6914 || toupper (i) != TOUPPER (i))
6919 rm -f conftest$ac_exeext
6920 if { (ac_try="$ac_link"
6922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6923 *) ac_try_echo
=$ac_try;;
6925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6926 (eval "$ac_link") 2>&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6930 { (case "(($ac_try" in
6931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_try") 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; }; then
6941 echo "$as_me: program exited with status $ac_status" >&5
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_cv_header_stdc=no
6948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6954 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6955 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6956 if test $ac_cv_header_stdc = yes; then
6958 cat >>confdefs.h <<\_ACEOF
6959 #define STDC_HEADERS 1
6964 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6965 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6966 if test "${ac_cv_header_time+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 cat >conftest.$ac_ext <<_ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <sys/time.h>
6982 if ((struct tm *) 0)
6988 rm -f conftest.$ac_objext
6989 if { (ac_try="$ac_compile"
6991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6992 *) ac_try_echo
=$ac_try;;
6994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6995 (eval "$ac_compile") 2>conftest.er1
6997 grep -v '^ *+' conftest.er1
>conftest.err
6999 cat conftest.err
>&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } && {
7002 test -z "$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 } && test -s conftest.
$ac_objext; then
7005 ac_cv_header_time
=yes
7007 echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.
$ac_ext >&5
7010 ac_cv_header_time
=no
7013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7015 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7016 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7017 if test $ac_cv_header_time = yes; then
7019 cat >>confdefs.h
<<\_ACEOF
7020 #define TIME_WITH_SYS_TIME 1
7025 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7026 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7027 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cat >conftest.
$ac_ext <<_ACEOF
7033 cat confdefs.h
>>conftest.
$ac_ext
7034 cat >>conftest.
$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036 $ac_includes_default
7048 rm -f conftest.
$ac_objext
7049 if { (ac_try
="$ac_compile"
7051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_compile") 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && {
7062 test -z "$ac_c_werror_flag" ||
7063 test ! -s conftest.err
7064 } && test -s conftest.$ac_objext; then
7065 ac_cv_have_decl_sys_siglist=yes
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_cv_have_decl_sys_siglist=no
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7076 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7077 if test $ac_cv_have_decl_sys_siglist = yes; then
7079 cat >>confdefs.h <<_ACEOF
7080 #define HAVE_DECL_SYS_SIGLIST 1
7085 cat >>confdefs.h <<_ACEOF
7086 #define HAVE_DECL_SYS_SIGLIST 0
7093 if test $ac_cv_have_decl_sys_siglist != yes; then
7094 # For Tru64, at least:
7095 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7096 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7097 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7110 #ifndef __sys_siglist
7111 (void) __sys_siglist;
7118 rm -f conftest.$ac_objext
7119 if { (ac_try="$ac_compile"
7121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7122 *) ac_try_echo
=$ac_try;;
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_compile") 2>conftest.er1
7127 grep -v '^ *+' conftest.er1
>conftest.err
7129 cat conftest.err
>&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest.
$ac_objext; then
7135 ac_cv_have_decl___sys_siglist
=yes
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.
$ac_ext >&5
7140 ac_cv_have_decl___sys_siglist
=no
7143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7145 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7146 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7147 if test $ac_cv_have_decl___sys_siglist = yes; then
7149 cat >>confdefs.h
<<_ACEOF
7150 #define HAVE_DECL___SYS_SIGLIST 1
7155 cat >>confdefs.h
<<_ACEOF
7156 #define HAVE_DECL___SYS_SIGLIST 0
7163 if test $ac_cv_have_decl___sys_siglist = yes; then
7165 cat >>confdefs.h
<<\_ACEOF
7166 #define sys_siglist __sys_siglist
7171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 cat >conftest.
$ac_ext <<_ACEOF
7179 cat confdefs.h
>>conftest.
$ac_ext
7180 cat >>conftest.
$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 #include <sys/types.h>
7183 #include <sys/wait.h>
7185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7201 rm -f conftest.
$ac_objext
7202 if { (ac_try
="$ac_compile"
7204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7210 grep -v '^ *+' conftest.er1 >conftest.err
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.$ac_objext; then
7218 ac_cv_header_sys_wait_h=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_header_sys_wait_h=no
7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7230 if test $ac_cv_header_sys_wait_h = yes; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_SYS_WAIT_H 1
7239 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7240 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7241 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 #ifdef TIME_WITH_SYS_TIME
7251 #include <sys/time.h>
7254 #ifdef HAVE_SYS_TIME_H
7255 #include <sys/time.h>
7266 static struct utimbuf x; x.actime = x.modtime;
7271 rm -f conftest.$ac_objext
7272 if { (ac_try="$ac_compile"
7274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7275 *) ac_try_echo
=$ac_try;;
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_compile") 2>conftest.er1
7280 grep -v '^ *+' conftest.er1
>conftest.err
7282 cat conftest.err
>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && {
7285 test -z "$ac_c_werror_flag" ||
7286 test ! -s conftest.err
7287 } && test -s conftest.
$ac_objext; then
7288 emacs_cv_struct_utimbuf
=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.
$ac_ext >&5
7293 emacs_cv_struct_utimbuf
=no
7296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7298 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7299 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7300 if test $emacs_cv_struct_utimbuf = yes; then
7302 cat >>confdefs.h
<<\_ACEOF
7303 #define HAVE_STRUCT_UTIMBUF 1
7308 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7309 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7310 if test "${ac_cv_type_signal+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 cat >conftest.
$ac_ext <<_ACEOF
7316 cat confdefs.h
>>conftest.
$ac_ext
7317 cat >>conftest.
$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <sys/types.h>
7325 return *(signal (0, 0)) (0) == 1;
7330 rm -f conftest.
$ac_objext
7331 if { (ac_try
="$ac_compile"
7333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_compile") 2>conftest.er1
7339 grep -v '^ *+' conftest.er1 >conftest.err
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
7347 ac_cv_type_signal=int
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7352 ac_cv_type_signal=void
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7358 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7360 cat >>confdefs.h <<_ACEOF
7361 #define RETSIGTYPE $ac_cv_type_signal
7366 { echo "$as_me:$LINENO: checking for speed_t" >&5
7367 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7368 if test "${emacs_cv_speed_t+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 cat >conftest.$ac_ext <<_ACEOF
7374 cat confdefs.h >>conftest.$ac_ext
7375 cat >>conftest.$ac_ext <<_ACEOF
7376 /* end confdefs.h. */
7377 #include <termios.h>
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7390 *) ac_try_echo
=$ac_try;;
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_compile") 2>conftest.er1
7395 grep -v '^ *+' conftest.er1
>conftest.err
7397 cat conftest.err
>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest.
$ac_objext; then
7403 emacs_cv_speed_t
=yes
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.
$ac_ext >&5
7411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7413 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7414 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7415 if test $emacs_cv_speed_t = yes; then
7417 cat >>confdefs.h
<<\_ACEOF
7418 #define HAVE_SPEED_T 1
7423 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7424 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7425 if test "${emacs_cv_struct_timeval+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 cat >conftest.
$ac_ext <<_ACEOF
7431 cat confdefs.h
>>conftest.
$ac_ext
7432 cat >>conftest.
$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 #ifdef TIME_WITH_SYS_TIME
7435 #include <sys/time.h>
7438 #ifdef HAVE_SYS_TIME_H
7439 #include <sys/time.h>
7447 static struct timeval x; x.tv_sec = x.tv_usec;
7452 rm -f conftest.
$ac_objext
7453 if { (ac_try
="$ac_compile"
7455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 emacs_cv_struct_timeval=yes
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 emacs_cv_struct_timeval=no
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7480 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7481 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7482 if test $emacs_cv_struct_timeval = yes; then
7484 cat >>confdefs.h <<\_ACEOF
7485 #define HAVE_TIMEVAL 1
7490 { echo "$as_me:$LINENO: checking for struct exception" >&5
7491 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7492 if test "${emacs_cv_struct_exception+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7505 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7514 *) ac_try_echo
=$ac_try;;
7516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7519 grep -v '^ *+' conftest.er1
>conftest.err
7521 cat conftest.err
>&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.
$ac_objext; then
7527 emacs_cv_struct_exception
=yes
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.
$ac_ext >&5
7532 emacs_cv_struct_exception
=no
7535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7537 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7538 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7539 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7540 if test $emacs_cv_struct_exception != yes; then
7542 cat >>confdefs.h
<<\_ACEOF
7543 #define NO_MATHERR 1
7549 for ac_header
in sys
/socket.h
7551 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7552 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7555 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7558 ac_res
=`eval echo '${'$as_ac_Header'}'`
7559 { echo "$as_me:$LINENO: result: $ac_res" >&5
7560 echo "${ECHO_T}$ac_res" >&6; }
7562 # Is the header compilable?
7563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7565 cat >conftest.
$ac_ext <<_ACEOF
7568 cat confdefs.h
>>conftest.
$ac_ext
7569 cat >>conftest.
$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7572 #include <$ac_header>
7574 rm -f conftest.
$ac_objext
7575 if { (ac_try
="$ac_compile"
7577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_header_compiler=yes
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 ac_header_compiler=no
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7601 echo "${ECHO_T}$ac_header_compiler" >&6; }
7603 # Is the header present?
7604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #include <$ac_header>
7614 if { (ac_try="$ac_cpp conftest.$ac_ext"
7616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7617 *) ac_try_echo
=$ac_try;;
7619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7622 grep -v '^ *+' conftest.er1
>conftest.err
7624 cat conftest.err
>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } >/dev
/null
&& {
7627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7630 ac_header_preproc
=yes
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.
$ac_ext >&5
7635 ac_header_preproc
=no
7638 rm -f conftest.err conftest.
$ac_ext
7639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6; }
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7649 ac_header_preproc
=yes
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7669 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 eval "$as_ac_Header=\$ac_header_preproc"
7674 ac_res
=`eval echo '${'$as_ac_Header'}'`
7675 { echo "$as_me:$LINENO: result: $ac_res" >&5
7676 echo "${ECHO_T}$ac_res" >&6; }
7679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680 cat >>confdefs.h
<<_ACEOF
7681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7689 for ac_header
in net
/if.h
7691 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7694 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 cat >conftest.
$ac_ext <<_ACEOF
7700 cat confdefs.h
>>conftest.
$ac_ext
7701 cat >>conftest.
$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 $ac_includes_default
7704 #if HAVE_SYS_SOCKET_H
7705 #include <sys/socket.h>
7708 #include <$ac_header>
7710 rm -f conftest.
$ac_objext
7711 if { (ac_try
="$ac_compile"
7713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7727 eval "$as_ac_Header=yes"
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 eval "$as_ac_Header=no"
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 ac_res=`eval echo '${'$as_ac_Header'}'`
7738 { echo "$as_me:$LINENO: result: $ac_res" >&5
7739 echo "${ECHO_T}$ac_res" >&6; }
7740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7741 cat >>confdefs.h <<_ACEOF
7742 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7750 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7752 if test "${ac_cv_struct_tm+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <sys/types.h>
7768 int *p = &tm.tm_sec;
7774 rm -f conftest.$ac_objext
7775 if { (ac_try="$ac_compile"
7777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7778 *) ac_try_echo
=$ac_try;;
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7783 grep -v '^ *+' conftest.er1
>conftest.err
7785 cat conftest.err
>&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.
$ac_objext; then
7791 ac_cv_struct_tm
=time.h
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.
$ac_ext >&5
7796 ac_cv_struct_tm
=sys
/time.h
7799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7801 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7802 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7803 if test $ac_cv_struct_tm = sys
/time.h
; then
7805 cat >>confdefs.h
<<\_ACEOF
7806 #define TM_IN_SYS_TIME 1
7811 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7812 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7813 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 cat >conftest.
$ac_ext <<_ACEOF
7819 cat confdefs.h
>>conftest.
$ac_ext
7820 cat >>conftest.
$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 #include <sys/types.h>
7823 #include <$ac_cv_struct_tm>
7829 static struct tm ac_aggr;
7830 if (ac_aggr.tm_zone)
7836 rm -f conftest.
$ac_objext
7837 if { (ac_try
="$ac_compile"
7839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7845 grep -v '^ *+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.$ac_objext; then
7853 ac_cv_member_struct_tm_tm_zone=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7858 cat >conftest.$ac_ext <<_ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 #include <sys/types.h>
7865 #include <$ac_cv_struct_tm>
7871 static struct tm ac_aggr;
7872 if (sizeof ac_aggr.tm_zone)
7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7882 *) ac_try_echo
=$ac_try;;
7884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_compile") 2>conftest.er1
7887 grep -v '^ *+' conftest.er1
>conftest.err
7889 cat conftest.err
>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest.
$ac_objext; then
7895 ac_cv_member_struct_tm_tm_zone
=yes
7897 echo "$as_me: failed program was:" >&5
7898 sed 's/^/| /' conftest.
$ac_ext >&5
7900 ac_cv_member_struct_tm_tm_zone
=no
7903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7909 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7910 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7912 cat >>confdefs.h
<<_ACEOF
7913 #define HAVE_STRUCT_TM_TM_ZONE 1
7919 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7921 cat >>confdefs.h
<<\_ACEOF
7922 #define HAVE_TM_ZONE 1
7926 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7927 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7928 if test "${ac_cv_have_decl_tzname+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 cat >conftest.
$ac_ext <<_ACEOF
7934 cat confdefs.h
>>conftest.
$ac_ext
7935 cat >>conftest.
$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7950 rm -f conftest.
$ac_objext
7951 if { (ac_try
="$ac_compile"
7953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.$ac_objext; then
7967 ac_cv_have_decl_tzname=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_cv_have_decl_tzname=no
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7978 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7979 if test $ac_cv_have_decl_tzname = yes; then
7981 cat >>confdefs.h <<_ACEOF
7982 #define HAVE_DECL_TZNAME 1
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DECL_TZNAME 0
7995 { echo "$as_me:$LINENO: checking for tzname" >&5
7996 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7997 if test "${ac_cv_var_tzname+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
8000 cat >conftest.$ac_ext <<_ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8007 #if !HAVE_DECL_TZNAME
8008 extern char *tzname[];
8014 return tzname[0][0];
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (ac_try="$ac_link"
8022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8023 *) ac_try_echo
=$ac_try;;
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_link") 2>conftest.er1
8028 grep -v '^ *+' conftest.er1
>conftest.err
8030 cat conftest.err
>&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest
$ac_exeext &&
8036 $as_test_x conftest
$ac_exeext; then
8037 ac_cv_var_tzname
=yes
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.
$ac_ext >&5
8045 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8046 conftest
$ac_exeext conftest.
$ac_ext
8048 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8049 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8050 if test $ac_cv_var_tzname = yes; then
8052 cat >>confdefs.h
<<\_ACEOF
8053 #define HAVE_TZNAME 1
8059 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8060 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8061 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 cat >conftest.
$ac_ext <<_ACEOF
8067 cat confdefs.h
>>conftest.
$ac_ext
8068 cat >>conftest.
$ac_ext <<_ACEOF
8069 /* end confdefs.h. */
8075 static struct tm ac_aggr;
8076 if (ac_aggr.tm_gmtoff)
8082 rm -f conftest.
$ac_objext
8083 if { (ac_try
="$ac_compile"
8085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
8091 grep -v '^ *+' conftest.er1 >conftest.err
8093 cat conftest.err >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); } && {
8096 test -z "$ac_c_werror_flag" ||
8097 test ! -s conftest.err
8098 } && test -s conftest.$ac_objext; then
8099 ac_cv_member_struct_tm_tm_gmtoff=yes
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8104 cat >conftest.$ac_ext <<_ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h. */
8115 static struct tm ac_aggr;
8116 if (sizeof ac_aggr.tm_gmtoff)
8122 rm -f conftest.$ac_objext
8123 if { (ac_try="$ac_compile"
8125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8126 *) ac_try_echo
=$ac_try;;
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129 (eval "$ac_compile") 2>conftest.er1
8131 grep -v '^ *+' conftest.er1
>conftest.err
8133 cat conftest.err
>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } && {
8136 test -z "$ac_c_werror_flag" ||
8137 test ! -s conftest.err
8138 } && test -s conftest.
$ac_objext; then
8139 ac_cv_member_struct_tm_tm_gmtoff
=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.
$ac_ext >&5
8144 ac_cv_member_struct_tm_tm_gmtoff
=no
8147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8152 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8153 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8154 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8156 cat >>confdefs.h
<<\_ACEOF
8157 #define HAVE_TM_GMTOFF 1
8162 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8163 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8164 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.
$ac_ext <<_ACEOF
8170 cat confdefs.h
>>conftest.
$ac_ext
8171 cat >>conftest.
$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173 $ac_includes_default
8174 #if HAVE_SYS_SOCKET_H
8175 #include <sys/socket.h>
8184 static struct ifreq ac_aggr;
8185 if (ac_aggr.ifr_flags)
8191 rm -f conftest.
$ac_objext
8192 if { (ac_try
="$ac_compile"
8194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_compile") 2>conftest.er1
8200 grep -v '^ *+' conftest.er1 >conftest.err
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } && {
8205 test -z "$ac_c_werror_flag" ||
8206 test ! -s conftest.err
8207 } && test -s conftest.$ac_objext; then
8208 ac_cv_member_struct_ifreq_ifr_flags=yes
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 cat >conftest.$ac_ext <<_ACEOF
8216 cat confdefs.h >>conftest.$ac_ext
8217 cat >>conftest.$ac_ext <<_ACEOF
8218 /* end confdefs.h. */
8219 $ac_includes_default
8220 #if HAVE_SYS_SOCKET_H
8221 #include <sys/socket.h>
8230 static struct ifreq ac_aggr;
8231 if (sizeof ac_aggr.ifr_flags)
8237 rm -f conftest.$ac_objext
8238 if { (ac_try="$ac_compile"
8240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8241 *) ac_try_echo
=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8246 grep -v '^ *+' conftest.er1
>conftest.err
8248 cat conftest.err
>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_c_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.
$ac_objext; then
8254 ac_cv_member_struct_ifreq_ifr_flags
=yes
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.
$ac_ext >&5
8259 ac_cv_member_struct_ifreq_ifr_flags
=no
8262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8267 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8268 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8269 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8271 cat >>confdefs.h
<<_ACEOF
8272 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8277 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8278 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8279 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.
$ac_ext <<_ACEOF
8285 cat confdefs.h
>>conftest.
$ac_ext
8286 cat >>conftest.
$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 #if HAVE_SYS_SOCKET_H
8290 #include <sys/socket.h>
8299 static struct ifreq ac_aggr;
8300 if (ac_aggr.ifr_hwaddr)
8306 rm -f conftest.
$ac_objext
8307 if { (ac_try
="$ac_compile"
8309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_compile") 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && {
8320 test -z "$ac_c_werror_flag" ||
8321 test ! -s conftest.err
8322 } && test -s conftest.$ac_objext; then
8323 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 #if HAVE_SYS_SOCKET_H
8336 #include <sys/socket.h>
8345 static struct ifreq ac_aggr;
8346 if (sizeof ac_aggr.ifr_hwaddr)
8352 rm -f conftest.$ac_objext
8353 if { (ac_try="$ac_compile"
8355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8356 *) ac_try_echo
=$ac_try;;
8358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8361 grep -v '^ *+' conftest.er1
>conftest.err
8363 cat conftest.err
>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && {
8366 test -z "$ac_c_werror_flag" ||
8367 test ! -s conftest.err
8368 } && test -s conftest.
$ac_objext; then
8369 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.
$ac_ext >&5
8374 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8382 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8383 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8384 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8386 cat >>confdefs.h
<<_ACEOF
8387 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8392 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8393 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8394 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 cat >conftest.
$ac_ext <<_ACEOF
8400 cat confdefs.h
>>conftest.
$ac_ext
8401 cat >>conftest.
$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 $ac_includes_default
8404 #if HAVE_SYS_SOCKET_H
8405 #include <sys/socket.h>
8414 static struct ifreq ac_aggr;
8415 if (ac_aggr.ifr_netmask)
8421 rm -f conftest.
$ac_objext
8422 if { (ac_try
="$ac_compile"
8424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8438 ac_cv_member_struct_ifreq_ifr_netmask=yes
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #if HAVE_SYS_SOCKET_H
8451 #include <sys/socket.h>
8460 static struct ifreq ac_aggr;
8461 if (sizeof ac_aggr.ifr_netmask)
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8471 *) ac_try_echo
=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8476 grep -v '^ *+' conftest.er1
>conftest.err
8478 cat conftest.err
>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_c_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.
$ac_objext; then
8484 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.
$ac_ext >&5
8489 ac_cv_member_struct_ifreq_ifr_netmask
=no
8492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8498 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8499 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8501 cat >>confdefs.h
<<_ACEOF
8502 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8507 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8508 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8509 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.
$ac_ext <<_ACEOF
8515 cat confdefs.h
>>conftest.
$ac_ext
8516 cat >>conftest.
$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 $ac_includes_default
8519 #if HAVE_SYS_SOCKET_H
8520 #include <sys/socket.h>
8529 static struct ifreq ac_aggr;
8530 if (ac_aggr.ifr_broadaddr)
8536 rm -f conftest.
$ac_objext
8537 if { (ac_try
="$ac_compile"
8539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_compile") 2>conftest.er1
8545 grep -v '^ *+' conftest.er1 >conftest.err
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } && {
8550 test -z "$ac_c_werror_flag" ||
8551 test ! -s conftest.err
8552 } && test -s conftest.$ac_objext; then
8553 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8565 #if HAVE_SYS_SOCKET_H
8566 #include <sys/socket.h>
8575 static struct ifreq ac_aggr;
8576 if (sizeof ac_aggr.ifr_broadaddr)
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8586 *) ac_try_echo
=$ac_try;;
8588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_compile") 2>conftest.er1
8591 grep -v '^ *+' conftest.er1
>conftest.err
8593 cat conftest.err
>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } && {
8596 test -z "$ac_c_werror_flag" ||
8597 test ! -s conftest.err
8598 } && test -s conftest.
$ac_objext; then
8599 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.
$ac_ext >&5
8604 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8613 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8614 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8616 cat >>confdefs.h
<<_ACEOF
8617 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8622 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8623 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8624 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 cat >conftest.
$ac_ext <<_ACEOF
8630 cat confdefs.h
>>conftest.
$ac_ext
8631 cat >>conftest.
$ac_ext <<_ACEOF
8632 /* end confdefs.h. */
8633 $ac_includes_default
8634 #if HAVE_SYS_SOCKET_H
8635 #include <sys/socket.h>
8644 static struct ifreq ac_aggr;
8645 if (ac_aggr.ifr_addr)
8651 rm -f conftest.
$ac_objext
8652 if { (ac_try
="$ac_compile"
8654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
8660 grep -v '^ *+' conftest.er1 >conftest.err
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest.$ac_objext; then
8668 ac_cv_member_struct_ifreq_ifr_addr=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 cat >conftest.$ac_ext <<_ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 $ac_includes_default
8680 #if HAVE_SYS_SOCKET_H
8681 #include <sys/socket.h>
8690 static struct ifreq ac_aggr;
8691 if (sizeof ac_aggr.ifr_addr)
8697 rm -f conftest.$ac_objext
8698 if { (ac_try="$ac_compile"
8700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8701 *) ac_try_echo
=$ac_try;;
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1
>conftest.err
8708 cat conftest.err
>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.
$ac_objext; then
8714 ac_cv_member_struct_ifreq_ifr_addr
=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.
$ac_ext >&5
8719 ac_cv_member_struct_ifreq_ifr_addr
=no
8722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8728 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8729 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8731 cat >>confdefs.h
<<_ACEOF
8732 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8740 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8741 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8742 if test "$ac_cv_prog_cc_c89" != no
; then
8743 { echo "$as_me:$LINENO: result: yes" >&5
8744 echo "${ECHO_T}yes" >&6; }
8746 cat >>confdefs.h
<<\_ACEOF
8747 #define PROTOTYPES 1
8751 cat >>confdefs.h
<<\_ACEOF
8752 #define __PROTOTYPES 1
8756 { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8760 { echo "$as_me:$LINENO: checking for working volatile" >&5
8761 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8762 if test "${ac_cv_c_volatile+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 cat >conftest.
$ac_ext <<_ACEOF
8768 cat confdefs.h
>>conftest.
$ac_ext
8769 cat >>conftest.
$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8777 int * volatile y = (int *) 0;
8783 rm -f conftest.
$ac_objext
8784 if { (ac_try
="$ac_compile"
8786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_compile") 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } && {
8797 test -z "$ac_c_werror_flag" ||
8798 test ! -s conftest.err
8799 } && test -s conftest.$ac_objext; then
8800 ac_cv_c_volatile=yes
8802 echo "$as_me: failed program was:" >&5
8803 sed 's/^/| /' conftest.$ac_ext >&5
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8811 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8812 if test $ac_cv_c_volatile = no; then
8814 cat >>confdefs.h <<\_ACEOF
8820 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8821 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8822 if test "${ac_cv_c_const+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8835 /* FIXME: Include the comments suggested by Paul. */
8837 /* Ultrix mips cc rejects this. */
8838 typedef int charset[2];
8840 /* SunOS 4.1.1 cc rejects this. */
8841 char const *const *pcpcc;
8843 /* NEC SVR4.0.2 mips cc rejects this. */
8844 struct point {int x, y;};
8845 static struct point const zero = {0,0};
8846 /* AIX XL C 1.02.0.0 rejects this.
8847 It does not let you subtract one const X* pointer from another in
8848 an arm of an if-expression whose if-part is not a constant
8850 const char *g = "string";
8851 pcpcc = &g + (g ? g-g : 0);
8852 /* HPUX 7.0 cc rejects these. */
8854 ppc = (char**) pcpcc;
8855 pcpcc = (char const *const *) ppc;
8856 { /* SCO 3.2v4 cc rejects this. */
8858 char const *s = 0 ? (char *) 0 : (char const *) 0;
8863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8865 const int *foo = &x[0];
8868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8869 typedef const int *iptr;
8873 { /* AIX XL C 1.02.0.0 rejects this saying
8874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8875 struct s { int j; const int *ap[3]; };
8876 struct s *b; b->j = 5;
8878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8882 return !cs[0] && !zero.x;
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8893 *) ac_try_echo
=$ac_try;;
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8898 grep -v '^ *+' conftest.er1
>conftest.err
8900 cat conftest.err
>&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.
$ac_objext; then
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.
$ac_ext >&5
8914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8916 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8917 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8918 if test $ac_cv_c_const = no
; then
8920 cat >>confdefs.h
<<\_ACEOF
8926 { echo "$as_me:$LINENO: checking for void * support" >&5
8927 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8928 if test "${emacs_cv_void_star+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 cat >conftest.
$ac_ext <<_ACEOF
8934 cat confdefs.h
>>conftest.
$ac_ext
8935 cat >>conftest.
$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8946 rm -f conftest.
$ac_objext
8947 if { (ac_try
="$ac_compile"
8949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_compile") 2>conftest.er1
8955 grep -v '^ *+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } && {
8960 test -z "$ac_c_werror_flag" ||
8961 test ! -s conftest.err
8962 } && test -s conftest.$ac_objext; then
8963 emacs_cv_void_star=yes
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 emacs_cv_void_star=no
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8974 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8975 if test $emacs_cv_void_star = yes; then
8976 cat >>confdefs.h <<\_ACEOF
8977 #define POINTER_TYPE void
8981 cat >>confdefs.h <<\_ACEOF
8982 #define POINTER_TYPE char
8991 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8992 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8993 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8994 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 cat >conftest.make <<\_ACEOF
9000 @echo '@@@%%%=$(MAKE)=@@@%%%'
9002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9003 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9005 eval ac_cv_prog_make_${ac_make}_set=yes;;
9007 eval ac_cv_prog_make_${ac_make}_set=no;;
9011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9012 { echo "$as_me:$LINENO: result: yes" >&5
9013 echo "${ECHO_T}yes" >&6; }
9016 { echo "$as_me:$LINENO: result: no" >&5
9017 echo "${ECHO_T}no" >&6; }
9018 SET_MAKE="MAKE=${MAKE-make}"
9022 { echo "$as_me:$LINENO: checking for long file names" >&5
9023 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9024 if test "${ac_cv_sys_long_file_names+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 ac_cv_sys_long_file_names=yes
9028 # Test for long file names in all the places we know might matter:
9029 # . the current directory, where building will happen
9030 # $prefix/lib where we will be installing things
9031 # $exec_prefix/lib likewise
9032 # $TMPDIR if set, where it might want to write temporary files
9033 # /tmp where it might want to write temporary files
9036 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9037 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9038 # in the usual case where exec_prefix is '${prefix}'.
9040 . | /* | ?:[\\/]*) ;; #(
9043 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9044 ac_xdir=$ac_dir/cf$$
9045 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9046 ac_tf1=$ac_xdir/conftest9012345
9047 ac_tf2=$ac_xdir/conftest9012346
9048 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9049 ac_cv_sys_long_file_names=no
9050 rm -f -r "$ac_xdir" 2>/dev/null
9051 test $ac_cv_sys_long_file_names = no && break
9054 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9055 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9056 if test $ac_cv_sys_long_file_names = yes; then
9058 cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_LONG_FILE_NAMES 1
9065 #### Choose a window system.
9067 { echo "$as_me:$LINENO: checking for X" >&5
9068 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9071 # Check whether --with-x was given.
9072 if test "${with_x+set}" = set; then
9076 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9077 if test "x$with_x" = xno; then
9078 # The user explicitly disabled X.
9081 case $x_includes,$x_libraries in #(
9082 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9083 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9084 { (exit 1); exit 1; }; };; #(
9085 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 # One or both of the vars are not set, and there is no cached value.
9089 ac_x_includes=no ac_x_libraries=no
9090 rm -f -r conftest.dir
9091 if mkdir conftest.dir; then
9093 cat >Imakefile <<'_ACEOF'
9095 @echo incroot='${INCROOT}'
9097 @echo usrlibdir='${USRLIBDIR}'
9099 @echo libdir='${LIBDIR}'
9101 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9103 for ac_var in incroot usrlibdir libdir; do
9104 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9106 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9107 for ac_extension in a so sl; do
9108 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9109 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9110 ac_im_usrlibdir=$ac_im_libdir; break
9113 # Screen out bogus values from the imake configuration. They are
9114 # bogus both because they are the default anyway, and because
9115 # using them would break gcc on systems where it needs fixed includes.
9116 case $ac_im_incroot in
9117 /usr/include) ac_x_includes= ;;
9118 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9120 case $ac_im_usrlibdir in
9122 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9126 rm -f -r conftest.dir
9129 # Standard set of common directories for X headers.
9130 # Check X11 before X11Rn because it is often a symlink to the current release.
9142 /usr/local/X11/include
9143 /usr/local/X11R6/include
9144 /usr/local/X11R5/include
9145 /usr/local/X11R4/include
9147 /usr/local/include/X11
9148 /usr/local/include/X11R6
9149 /usr/local/include/X11R5
9150 /usr/local/include/X11R4
9154 /usr/XFree86/include/X11
9158 /usr/unsupported/include
9160 /usr/local/x11r5/include
9161 /usr/lpp/Xamples/include
9163 /usr/openwin/include
9164 /usr/openwin/share/include'
9166 if test "$ac_x_includes" = no; then
9167 # Guess where to find include files, by looking for Xlib.h.
9168 # First, try using that file with no special directory specified.
9169 cat >conftest.$ac_ext <<_ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 #include <X11/Xlib.h>
9177 if { (ac_try="$ac_cpp conftest.$ac_ext"
9179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9180 *) ac_try_echo
=$ac_try;;
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9185 grep -v '^ *+' conftest.er1
>conftest.err
9187 cat conftest.err
>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } >/dev
/null
&& {
9190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9193 # We can compile using X headers with no special include directory.
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9199 for ac_dir
in $ac_x_header_dirs; do
9200 if test -r "$ac_dir/X11/Xlib.h"; then
9201 ac_x_includes
=$ac_dir
9207 rm -f conftest.err conftest.
$ac_ext
9208 fi # $ac_x_includes = no
9210 if test "$ac_x_libraries" = no
; then
9211 # Check for the libraries.
9212 # See if we find them without any special options.
9213 # Don't add to $LIBS permanently.
9216 cat >conftest.
$ac_ext <<_ACEOF
9219 cat confdefs.h
>>conftest.
$ac_ext
9220 cat >>conftest.
$ac_ext <<_ACEOF
9221 /* end confdefs.h. */
9222 #include <X11/Xlib.h>
9231 rm -f conftest.
$ac_objext conftest
$ac_exeext
9232 if { (ac_try
="$ac_link"
9234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_link") 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && {
9245 test -z "$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 } && test -s conftest$ac_exeext &&
9248 $as_test_x conftest$ac_exeext; then
9250 # We can link X programs with no special library path.
9253 echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9257 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9259 # Don't even attempt the hair of trying to link an X program!
9260 for ac_extension in a so sl; do
9261 if test -r "$ac_dir/libX11.$ac_extension"; then
9262 ac_x_libraries=$ac_dir
9269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9270 conftest$ac_exeext conftest.$ac_ext
9271 fi # $ac_x_libraries = no
9273 case $ac_x_includes,$ac_x_libraries in #(
9275 # Didn't find X, or a directory has "'" in its name.
9276 ac_cv_have_x="have_x=no";; #(
9278 # Record where we found X for the cache.
9279 ac_cv_have_x="have_x=yes\
9280 ac_x_includes='$ac_x_includes'\
9281 ac_x_libraries='$ac_x_libraries'"
9287 eval "$ac_cv_have_x"
9290 if test "$have_x" != yes; then
9291 { echo "$as_me:$LINENO: result: $have_x" >&5
9292 echo "${ECHO_T}$have_x" >&6; }
9295 # If each of the values was on the command line, it overrides each guess.
9296 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9297 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9298 # Update the cache value to reflect the command line values.
9299 ac_cv_have_x="have_x=yes\
9300 ac_x_includes='$x_includes'\
9301 ac_x_libraries='$x_libraries'"
9302 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9303 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9306 if test "$no_x" = yes; then
9312 if test "${x_libraries}" != NONE; then
9313 if test -n "${x_libraries}"; then
9314 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9315 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9317 x_default_search_path=""
9318 x_search_path=${x_libraries}
9319 if test -z "${x_search_path}"; then
9320 x_search_path=/usr/lib
9322 for x_library in `echo ${x_search_path}: | \
9323 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9325 ${x_library}/X11/%L/%T/%N%C%S:\
9326 ${x_library}/X11/%l/%T/%N%C%S:\
9327 ${x_library}/X11/%T/%N%C%S:\
9328 ${x_library}/X11/%L/%T/%N%S:\
9329 ${x_library}/X11/%l/%T/%N%S:\
9330 ${x_library}/X11/%T/%N%S"
9331 if test x"${x_default_search_path}" = x; then
9332 x_default_search_path=${x_search_path}
9334 x_default_search_path="${x_search_path}:${x_default_search_path}"
9338 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9339 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9342 if test x"${x_includes}" = x; then
9343 bitmapdir=/usr/include/X11/bitmaps
9345 # accumulate include directories that have X11 bitmap subdirectories
9347 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9348 if test -d "${bmd}/X11/bitmaps"; then
9349 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9351 if test -d "${bmd}/bitmaps"; then
9352 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9355 if test ${bmd_acc} != "dummyval"; then
9356 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9361 if test "${with_carbon}" != no; then
9362 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9363 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9364 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9365 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9369 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9371 # Is the header compilable?
9372 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9373 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9374 cat >conftest.$ac_ext <<_ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 $ac_includes_default
9381 #include <Carbon/Carbon.h>
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9387 *) ac_try_echo
=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_compile") 2>conftest.er1
9392 grep -v '^ *+' conftest.er1
>conftest.err
9394 cat conftest.err
>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest.
$ac_objext; then
9400 ac_header_compiler
=yes
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.
$ac_ext >&5
9405 ac_header_compiler
=no
9408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9410 echo "${ECHO_T}$ac_header_compiler" >&6; }
9412 # Is the header present?
9413 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9414 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9415 cat >conftest.
$ac_ext <<_ACEOF
9418 cat confdefs.h
>>conftest.
$ac_ext
9419 cat >>conftest.
$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421 #include <Carbon/Carbon.h>
9423 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } >/dev/null && {
9436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9439 ac_header_preproc=yes
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_header_preproc=no
9447 rm -f conftest.err conftest.$ac_ext
9448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9449 echo "${ECHO_T}$ac_header_preproc" >&6; }
9451 # So? What about this header?
9452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9454 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9455 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9458 ac_header_preproc=yes
9461 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9462 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9463 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9464 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9465 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9466 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9467 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9468 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9469 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9470 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9472 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9476 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9477 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9478 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9483 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9484 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9487 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9493 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9494 if test "${with_carbon+set}" != set \
9495 && test "${carbon_appdir_x+set}" != set; then
9496 for var in with_x with_x_toolkit with_gtk with_xim \
9497 with_xpm with_jpeg with_tiff with_gif with_png; do
9498 if eval test \"\${$var+set}\" = set; then
9505 if test "${HAVE_CARBON}" = yes; then
9509 case "${window_system}" in
9513 case "${with_x_toolkit}" in
9514 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9515 motif ) USE_X_TOOLKIT=MOTIF ;;
9517 USE_X_TOOLKIT=none ;;
9518 no ) USE_X_TOOLKIT=none ;;
9519 * ) USE_X_TOOLKIT=maybe ;;
9529 ### If we're using X11, we should use the X menu package.
9532 yes ) HAVE_MENUS=yes ;;
9535 if test "${opsys}" = "hpux9"; then
9536 case "${x_libraries}" in
9538 opsysfile="s/hpux9-x11r4.h"
9543 if test "${opsys}" = "hpux9shr"; then
9544 case "${x_libraries}" in
9546 opsysfile="s/hpux9shxr4.h"
9551 ### Compute the unexec source name from the object name.
9552 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9554 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9555 # Assume not, until told otherwise.
9558 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9559 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9560 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 cat >conftest.$ac_ext <<_ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define malloc_get_state innocuous_malloc_get_state
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char malloc_get_state (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9579 # include <limits.h>
9581 # include <assert.h>
9584 #undef malloc_get_state
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9592 char malloc_get_state ();
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9603 return malloc_get_state ();
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9612 *) ac_try_echo
=$ac_try;;
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9617 grep -v '^ *+' conftest.er1
>conftest.err
9619 cat conftest.err
>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest
$ac_exeext &&
9625 $as_test_x conftest
$ac_exeext; then
9626 ac_cv_func_malloc_get_state
=yes
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.
$ac_ext >&5
9631 ac_cv_func_malloc_get_state
=no
9634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9635 conftest
$ac_exeext conftest.
$ac_ext
9637 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9638 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9639 if test $ac_cv_func_malloc_get_state = yes; then
9645 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9646 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9647 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 cat >conftest.
$ac_ext <<_ACEOF
9653 cat confdefs.h
>>conftest.
$ac_ext
9654 cat >>conftest.
$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9658 #define malloc_set_state innocuous_malloc_set_state
9660 /* System header to define __stub macros and hopefully few prototypes,
9661 which can conflict with char malloc_set_state (); below.
9662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9663 <limits.h> exists even on freestanding compilers. */
9666 # include <limits.h>
9668 # include <assert.h>
9671 #undef malloc_set_state
9673 /* Override any GCC internal prototype to avoid an error.
9674 Use char because int might match the return type of a GCC
9675 builtin and then its argument prototype would still apply. */
9679 char malloc_set_state ();
9680 /* The GNU C library defines this for functions which it implements
9681 to always fail with ENOSYS. Some functions are actually named
9682 something starting with __ and the normal name is an alias. */
9683 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9690 return malloc_set_state ();
9695 rm -f conftest.
$ac_objext conftest
$ac_exeext
9696 if { (ac_try
="$ac_link"
9698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9699 *) ac_try_echo=$ac_try;;
9701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9702 (eval "$ac_link") 2>conftest.er1
9704 grep -v '^ *+' conftest.er1 >conftest.err
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } && {
9709 test -z "$ac_c_werror_flag" ||
9710 test ! -s conftest.err
9711 } && test -s conftest$ac_exeext &&
9712 $as_test_x conftest$ac_exeext; then
9713 ac_cv_func_malloc_set_state=yes
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9718 ac_cv_func_malloc_set_state=no
9721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9722 conftest$ac_exeext conftest.$ac_ext
9724 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9725 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9726 if test $ac_cv_func_malloc_set_state = yes; then
9732 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9733 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9734 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 extern void (* __after_morecore_hook)();
9747 __after_morecore_hook = 0
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9756 *) ac_try_echo
=$ac_try;;
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759 (eval "$ac_link") 2>conftest.er1
9761 grep -v '^ *+' conftest.er1
>conftest.err
9763 cat conftest.err
>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } && {
9766 test -z "$ac_c_werror_flag" ||
9767 test ! -s conftest.err
9768 } && test -s conftest
$ac_exeext &&
9769 $as_test_x conftest
$ac_exeext; then
9770 emacs_cv_var___after_morecore_hook
=yes
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.
$ac_ext >&5
9775 emacs_cv_var___after_morecore_hook
=no
9778 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9779 conftest
$ac_exeext conftest.
$ac_ext
9781 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9782 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9783 if test $emacs_cv_var___after_morecore_hook = no
; then
9786 if test "${system_malloc}" = "yes"; then
9789 (The GNU allocators don't work with this system configuration.)"
9791 if test "$doug_lea_malloc" = "yes" ; then
9792 if test "$GNU_MALLOC" = yes ; then
9794 (Using Doug Lea's new malloc from the GNU C Library.)"
9797 cat >>confdefs.h
<<\_ACEOF
9798 #define DOUG_LEA_MALLOC 1
9803 if test x
"${REL_ALLOC}" = x
; then
9804 REL_ALLOC
=${GNU_MALLOC}
9810 for ac_header
in stdlib.h unistd.h
9812 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9813 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9816 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 ac_res
=`eval echo '${'$as_ac_Header'}'`
9820 { echo "$as_me:$LINENO: result: $ac_res" >&5
9821 echo "${ECHO_T}$ac_res" >&6; }
9823 # Is the header compilable?
9824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9826 cat >conftest.
$ac_ext <<_ACEOF
9829 cat confdefs.h
>>conftest.
$ac_ext
9830 cat >>conftest.
$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 #include <$ac_header>
9835 rm -f conftest.
$ac_objext
9836 if { (ac_try
="$ac_compile"
9838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest.$ac_objext; then
9852 ac_header_compiler=yes
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_header_compiler=no
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6; }
9864 # Is the header present?
9865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 #include <$ac_header>
9875 if { (ac_try="$ac_cpp conftest.$ac_ext"
9877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9878 *) ac_try_echo
=$ac_try;;
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9883 grep -v '^ *+' conftest.er1
>conftest.err
9885 cat conftest.err
>&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } >/dev
/null
&& {
9888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9891 ac_header_preproc
=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.
$ac_ext >&5
9896 ac_header_preproc
=no
9899 rm -f conftest.err conftest.
$ac_ext
9900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9901 echo "${ECHO_T}$ac_header_preproc" >&6; }
9903 # So? What about this header?
9904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9910 ac_header_preproc
=yes
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 eval "$as_ac_Header=\$ac_header_preproc"
9935 ac_res
=`eval echo '${'$as_ac_Header'}'`
9936 { echo "$as_me:$LINENO: result: $ac_res" >&5
9937 echo "${ECHO_T}$ac_res" >&6; }
9940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9941 cat >>confdefs.h
<<_ACEOF
9942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9950 for ac_func
in getpagesize
9952 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9955 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 cat >conftest.
$ac_ext <<_ACEOF
9961 cat confdefs.h
>>conftest.
$ac_ext
9962 cat >>conftest.
$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9966 #define $ac_func innocuous_$ac_func
9968 /* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char $ac_func (); below.
9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9971 <limits.h> exists even on freestanding compilers. */
9974 # include <limits.h>
9976 # include <assert.h>
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9988 /* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991 #if defined __stub_$ac_func || defined __stub___$ac_func
10003 rm -f conftest.
$ac_objext conftest
$ac_exeext
10004 if { (ac_try
="$ac_link"
10005 case "(($ac_try" in
10006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext &&
10020 $as_test_x conftest$ac_exeext; then
10021 eval "$as_ac_var=yes"
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 eval "$as_ac_var=no"
10029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10032 ac_res=`eval echo '${'$as_ac_var'}'`
10033 { echo "$as_me:$LINENO: result: $ac_res" >&5
10034 echo "${ECHO_T}$ac_res" >&6; }
10035 if test `eval echo '${'$as_ac_var'}'` = yes; then
10036 cat >>confdefs.h <<_ACEOF
10037 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10043 { echo "$as_me:$LINENO: checking for working mmap" >&5
10044 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10045 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 if test "$cross_compiling" = yes; then
10049 ac_cv_func_mmap_fixed_mapped=no
10051 cat >conftest.$ac_ext <<_ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 $ac_includes_default
10058 /* malloc might have been renamed as rpl_malloc. */
10061 /* Thanks to Mike Haertel and Jim Avera for this test.
10062 Here is a matrix of mmap possibilities:
10063 mmap private not fixed
10064 mmap private fixed at somewhere currently unmapped
10065 mmap private fixed at somewhere already mapped
10066 mmap shared not fixed
10067 mmap shared fixed at somewhere currently unmapped
10068 mmap shared fixed at somewhere already mapped
10069 For private mappings, we should verify that changes cannot be read()
10070 back from the file, nor mmap's back from the file at a different
10071 address. (There have been systems where private was not correctly
10072 implemented like the infamous i386 svr4.0, and systems where the
10073 VM page cache was not coherent with the file system buffer cache
10074 like early versions of FreeBSD and possibly contemporary NetBSD.)
10075 For shared mappings, we should conversely verify that changes get
10076 propagated back to all the places they're supposed to be.
10078 Grep wants private fixed already mapped.
10079 The main things grep needs to know about mmap are:
10080 * does it exist and is it safe to write into the mmap'd area
10081 * how to use it (BSD variants) */
10084 #include <sys/mman.h>
10086 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10090 /* This mess was copied from the GNU getpagesize.h. */
10091 #ifndef HAVE_GETPAGESIZE
10092 /* Assume that all systems that can run configure have sys/param.h. */
10093 # ifndef HAVE_SYS_PARAM_H
10094 # define HAVE_SYS_PARAM_H 1
10097 # ifdef _SC_PAGESIZE
10098 # define getpagesize() sysconf(_SC_PAGESIZE)
10099 # else /* no _SC_PAGESIZE */
10100 # ifdef HAVE_SYS_PARAM_H
10101 # include <sys/param.h>
10102 # ifdef EXEC_PAGESIZE
10103 # define getpagesize() EXEC_PAGESIZE
10104 # else /* no EXEC_PAGESIZE */
10106 # define getpagesize() NBPG * CLSIZE
10109 # endif /* no CLSIZE */
10110 # else /* no NBPG */
10112 # define getpagesize() NBPC
10113 # else /* no NBPC */
10115 # define getpagesize() PAGESIZE
10116 # endif /* PAGESIZE */
10117 # endif /* no NBPC */
10118 # endif /* no NBPG */
10119 # endif /* no EXEC_PAGESIZE */
10120 # else /* no HAVE_SYS_PARAM_H */
10121 # define getpagesize() 8192 /* punt totally */
10122 # endif /* no HAVE_SYS_PARAM_H */
10123 # endif /* no _SC_PAGESIZE */
10125 #endif /* no HAVE_GETPAGESIZE */
10130 char *data, *data2, *data3;
10134 pagesize = getpagesize ();
10136 /* First, make a file with some known garbage in it. */
10137 data = (char *) malloc (pagesize);
10140 for (i = 0; i < pagesize; ++i)
10141 *(data + i) = rand ();
10143 fd = creat ("conftest.mmap", 0600);
10146 if (write (fd, data, pagesize) != pagesize)
10150 /* Next, try to mmap the file at a fixed address which already has
10151 something else allocated at it. If we can, also make sure that
10152 we see the same garbage. */
10153 fd = open ("conftest.mmap", O_RDWR);
10156 data2 = (char *) malloc (2 * pagesize);
10159 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10160 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10161 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10163 for (i = 0; i < pagesize; ++i)
10164 if (*(data + i) != *(data2 + i))
10167 /* Finally, make sure that changes to the mapped area do not
10168 percolate back to the file as seen by read(). (This is a bug on
10169 some variants of i386 svr4.0.) */
10170 for (i = 0; i < pagesize; ++i)
10171 *(data2 + i) = *(data2 + i) + 1;
10172 data3 = (char *) malloc (pagesize);
10175 if (read (fd, data3, pagesize) != pagesize)
10177 for (i = 0; i < pagesize; ++i)
10178 if (*(data + i) != *(data3 + i))
10184 rm -f conftest$ac_exeext
10185 if { (ac_try="$ac_link"
10186 case "(($ac_try" in
10187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10188 *) ac_try_echo
=$ac_try;;
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191 (eval "$ac_link") 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10195 { (case "(($ac_try" in
10196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 ac_cv_func_mmap_fixed_mapped=yes
10206 echo "$as_me: program exited with status $ac_status" >&5
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ( exit $ac_status )
10211 ac_cv_func_mmap_fixed_mapped=no
10213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10218 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10219 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10220 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_MMAP 1
10227 rm -f conftest.mmap
10229 if test $use_mmap_for_buffers = yes; then
10233 LIBS="$libsrc_libs $LIBS"
10236 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10237 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-ldnet $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10250 /* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
10260 return dnet_ntoa ();
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10269 *) ac_try_echo
=$ac_try;;
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10274 grep -v '^ *+' conftest.er1
>conftest.err
10276 cat conftest.err
>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest
$ac_exeext &&
10282 $as_test_x conftest
$ac_exeext; then
10283 ac_cv_lib_dnet_dnet_ntoa
=yes
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.
$ac_ext >&5
10288 ac_cv_lib_dnet_dnet_ntoa
=no
10291 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10292 conftest
$ac_exeext conftest.
$ac_ext
10293 LIBS
=$ac_check_lib_save_LIBS
10295 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10296 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10297 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10298 cat >>confdefs.h
<<_ACEOF
10299 #define HAVE_LIBDNET 1
10302 LIBS
="-ldnet $LIBS"
10307 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10308 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10309 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 ac_check_lib_save_LIBS
=$LIBS
10313 LIBS
="-lXbsd $LIBS"
10314 cat >conftest.
$ac_ext <<_ACEOF
10317 cat confdefs.h
>>conftest.
$ac_ext
10318 cat >>conftest.
$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10330 rm -f conftest.
$ac_objext conftest
$ac_exeext
10331 if { (ac_try
="$ac_link"
10332 case "(($ac_try" in
10333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
10348 ac_cv_lib_Xbsd_main=yes
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_lib_Xbsd_main=no
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10361 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10362 if test $ac_cv_lib_Xbsd_main = yes; then
10363 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10368 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10369 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10370 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 ac_check_lib_save_LIBS=$LIBS
10374 LIBS="-lpthreads $LIBS"
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10382 /* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10392 return cma_open ();
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (ac_try="$ac_link"
10399 case "(($ac_try" in
10400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10401 *) ac_try_echo
=$ac_try;;
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_link") 2>conftest.er1
10406 grep -v '^ *+' conftest.er1
>conftest.err
10408 cat conftest.err
>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && {
10411 test -z "$ac_c_werror_flag" ||
10412 test ! -s conftest.err
10413 } && test -s conftest
$ac_exeext &&
10414 $as_test_x conftest
$ac_exeext; then
10415 ac_cv_lib_pthreads_cma_open
=yes
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.
$ac_ext >&5
10420 ac_cv_lib_pthreads_cma_open
=no
10423 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10424 conftest
$ac_exeext conftest.
$ac_ext
10425 LIBS
=$ac_check_lib_save_LIBS
10427 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10428 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10429 if test $ac_cv_lib_pthreads_cma_open = yes; then
10430 cat >>confdefs.h
<<_ACEOF
10431 #define HAVE_LIBPTHREADS 1
10434 LIBS
="-lpthreads $LIBS"
10439 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10440 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10441 if test -d /usr
/X386
/include
; then
10443 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10447 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10448 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10453 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10454 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10455 if test "${gdb_cv_bigtoc+set}" = set; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10461 *) gdb_cv_bigtoc
=-bbigtoc ;;
10464 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10465 cat >conftest.
$ac_ext <<_ACEOF
10468 cat confdefs.h
>>conftest.
$ac_ext
10469 cat >>conftest.
$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10480 rm -f conftest.
$ac_objext conftest
$ac_exeext
10481 if { (ac_try
="$ac_link"
10482 case "(($ac_try" in
10483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10510 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10511 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10515 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10516 # used for the tests that follow. We set them back to REAL_CFLAGS and
10517 # REAL_CPPFLAGS later on.
10519 REAL_CPPFLAGS="$CPPFLAGS"
10521 if test "${HAVE_X11}" = "yes"; then
10522 DEFS="$C_SWITCH_X_SITE $DEFS"
10523 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10525 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10526 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10528 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10529 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10530 # but it's more convenient here to set LD_RUN_PATH
10531 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10532 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10533 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10537 if test "${opsys}" = "gnu-linux"; then
10538 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10539 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10540 cat >conftest.$ac_ext <<_ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h. */
10550 XOpenDisplay ("foo");
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10559 *) ac_try_echo
=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1
>conftest.err
10566 cat conftest.err
>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest
$ac_exeext &&
10572 $as_test_x conftest
$ac_exeext; then
10573 xlinux_first_failure
=no
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.
$ac_ext >&5
10578 xlinux_first_failure
=yes
10581 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10582 conftest
$ac_exeext conftest.
$ac_ext
10583 if test "${xlinux_first_failure}" = "yes"; then
10584 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10585 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10586 OLD_CPPFLAGS
="$CPPFLAGS"
10588 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10589 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10590 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10591 LIBS
="$LIBS -b i486-linuxaout"
10592 cat >conftest.
$ac_ext <<_ACEOF
10595 cat confdefs.h
>>conftest.
$ac_ext
10596 cat >>conftest.
$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10602 XOpenDisplay ("foo");
10607 rm -f conftest.
$ac_objext conftest
$ac_exeext
10608 if { (ac_try
="$ac_link"
10609 case "(($ac_try" in
10610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10616 grep -v '^ *+' conftest.er1 >conftest.err
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext &&
10624 $as_test_x conftest$ac_exeext; then
10625 xlinux_second_failure=no
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 xlinux_second_failure=yes
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10635 if test "${xlinux_second_failure}" = "yes"; then
10636 # If we get the same failure with -b, there is no use adding -b.
10637 # So take it out. This plays safe.
10638 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10639 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10640 CPPFLAGS="$OLD_CPPFLAGS"
10642 { echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6; }
10645 { echo "$as_me:$LINENO: result: yes" >&5
10646 echo "${ECHO_T}yes" >&6; }
10649 { echo "$as_me:$LINENO: result: no" >&5
10650 echo "${ECHO_T}no" >&6; }
10654 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10655 # header files included from there.
10656 { echo "$as_me:$LINENO: checking for Xkb" >&5
10657 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 #include <X11/Xlib.h>
10665 #include <X11/XKBlib.h>
10669 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10678 *) ac_try_echo
=$ac_try;;
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_link") 2>conftest.er1
10683 grep -v '^ *+' conftest.er1
>conftest.err
10685 cat conftest.err
>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest
$ac_exeext &&
10691 $as_test_x conftest
$ac_exeext; then
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.
$ac_ext >&5
10700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10701 conftest
$ac_exeext conftest.
$ac_ext
10702 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10703 echo "${ECHO_T}$emacs_xkb" >&6; }
10704 if test $emacs_xkb = yes; then
10706 cat >>confdefs.h
<<\_ACEOF
10707 #define HAVE_XKBGETKEYBOARD 1
10716 for ac_func
in XrmSetDatabase XScreenResourceString \
10717 XScreenNumberOfScreen XSetWMProtocols
10719 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10722 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.
$ac_ext <<_ACEOF
10728 cat confdefs.h
>>conftest.
$ac_ext
10729 cat >>conftest.
$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10733 #define $ac_func innocuous_$ac_func
10735 /* System header to define __stub macros and hopefully few prototypes,
10736 which can conflict with char $ac_func (); below.
10737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10738 <limits.h> exists even on freestanding compilers. */
10741 # include <limits.h>
10743 # include <assert.h>
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10755 /* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758 #if defined __stub_$ac_func || defined __stub___$ac_func
10765 return $ac_func ();
10770 rm -f conftest.
$ac_objext conftest
$ac_exeext
10771 if { (ac_try
="$ac_link"
10772 case "(($ac_try" in
10773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext &&
10787 $as_test_x conftest$ac_exeext; then
10788 eval "$as_ac_var=yes"
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 eval "$as_ac_var=no"
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10799 ac_res=`eval echo '${'$as_ac_var'}'`
10800 { echo "$as_me:$LINENO: result: $ac_res" >&5
10801 echo "${ECHO_T}$ac_res" >&6; }
10802 if test `eval echo '${'$as_ac_var'}'` = yes; then
10803 cat >>confdefs.h <<_ACEOF
10804 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10812 if test "${window_system}" = "x11"; then
10813 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10814 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10815 if test "${emacs_cv_x11_version_6+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 #include <X11/Xlib.h>
10828 #if XlibSpecificationRelease < 6
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10840 *) ac_try_echo
=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_link") 2>conftest.er1
10845 grep -v '^ *+' conftest.er1
>conftest.err
10847 cat conftest.err
>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && {
10850 test -z "$ac_c_werror_flag" ||
10851 test ! -s conftest.err
10852 } && test -s conftest
$ac_exeext &&
10853 $as_test_x conftest
$ac_exeext; then
10854 emacs_cv_x11_version_6
=yes
10856 echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.
$ac_ext >&5
10859 emacs_cv_x11_version_6
=no
10862 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10863 conftest
$ac_exeext conftest.
$ac_ext
10866 if test $emacs_cv_x11_version_6 = yes; then
10867 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10868 echo "${ECHO_T}6 or newer" >&6; }
10870 cat >>confdefs.h
<<\_ACEOF
10871 #define HAVE_X11R6 1
10875 { echo "$as_me:$LINENO: result: before 6" >&5
10876 echo "${ECHO_T}before 6" >&6; }
10880 if test "${window_system}" = "x11"; then
10881 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10882 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10883 if test "${emacs_cv_x11_version_5+set}" = set; then
10884 echo $ECHO_N "(cached) $ECHO_C" >&6
10886 cat >conftest.
$ac_ext <<_ACEOF
10889 cat confdefs.h
>>conftest.
$ac_ext
10890 cat >>conftest.
$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 #include <X11/Xlib.h>
10896 #if XlibSpecificationRelease < 5
10904 rm -f conftest.
$ac_objext conftest
$ac_exeext
10905 if { (ac_try
="$ac_link"
10906 case "(($ac_try" in
10907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_link") 2>conftest.er1
10913 grep -v '^ *+' conftest.er1 >conftest.err
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } && {
10918 test -z "$ac_c_werror_flag" ||
10919 test ! -s conftest.err
10920 } && test -s conftest$ac_exeext &&
10921 $as_test_x conftest$ac_exeext; then
10922 emacs_cv_x11_version_5=yes
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 emacs_cv_x11_version_5=no
10930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10931 conftest$ac_exeext conftest.$ac_ext
10934 if test $emacs_cv_x11_version_5 = yes; then
10935 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10936 echo "${ECHO_T}5 or newer" >&6; }
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_X11R5 1
10945 { echo "$as_me:$LINENO: result: before 5" >&5
10946 echo "${ECHO_T}before 5" >&6; }
10951 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10954 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10955 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10956 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10957 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10958 { (exit 1); exit 1; }; };
10962 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10964 if test "X${with_pkg_config_prog}" != X; then
10965 PKG_CONFIG="${with_pkg_config_prog}"
10970 if test -z "$PKG_CONFIG"; then
10971 # Extract the first word of "pkg-config", so it can be a program name with args.
10972 set dummy pkg-config; ac_word=$2
10973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10978 case $PKG_CONFIG in
10980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11003 if test -n "$PKG_CONFIG"; then
11004 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11005 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11007 { echo "$as_me:$LINENO: result: no" >&5
11008 echo "${ECHO_T}no" >&6; }
11014 if test "$PKG_CONFIG" = "no" ; then
11015 { { echo "$as_me:$LINENO: error:
11016 *** 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
11017 echo "$as_me: error:
11018 *** 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;}
11019 { (exit 1); exit 1; }; }
11021 PKG_CONFIG_MIN_VERSION=0.9.0
11022 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11023 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11024 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11026 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11027 { echo "$as_me:$LINENO: result: yes" >&5
11028 echo "${ECHO_T}yes" >&6; }
11031 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11032 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11033 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11034 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11035 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11037 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11038 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11039 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11040 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11041 echo "${ECHO_T}$GTK_LIBS" >&6; }
11043 { echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6; }
11047 ## If we have a custom action on failure, don't print errors, but
11048 ## do set a variable so people can do so.
11049 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11050 echo $GTK_PKG_ERRORS
11056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11057 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11061 if test $succeeded = yes; then
11064 { { 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
11065 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;}
11066 { (exit 1); exit 1; }; }
11071 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11072 CFLAGS="$CFLAGS $GTK_CFLAGS"
11073 LIBS="$GTK_LIBS $LIBS"
11076 for ac_func in gtk_main
11078 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define $ac_func innocuous_$ac_func
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char $ac_func (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11100 # include <limits.h>
11102 # include <assert.h>
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub_$ac_func || defined __stub___$ac_func
11124 return $ac_func ();
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11133 *) ac_try_echo
=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1
>conftest.err
11140 cat conftest.err
>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest
$ac_exeext &&
11146 $as_test_x conftest
$ac_exeext; then
11147 eval "$as_ac_var=yes"
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.
$ac_ext >&5
11152 eval "$as_ac_var=no"
11155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11156 conftest
$ac_exeext conftest.
$ac_ext
11158 ac_res
=`eval echo '${'$as_ac_var'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 if test `eval echo '${'$as_ac_var'}'` = yes; then
11162 cat >>confdefs.h
<<_ACEOF
11163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11169 if test "${GTK_COMPILES}" != "yes"; then
11170 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11171 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11172 { (exit 1); exit 1; }; };
11177 cat >>confdefs.h
<<\_ACEOF
11183 if test "$with_toolkit_scroll_bars" != no
; then
11184 with_toolkit_scroll_bars
=yes
11187 HAVE_GTK_MULTIDISPLAY
=no
11189 for ac_func
in gdk_display_open
11191 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11194 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 cat >conftest.
$ac_ext <<_ACEOF
11200 cat confdefs.h
>>conftest.
$ac_ext
11201 cat >>conftest.
$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11205 #define $ac_func innocuous_$ac_func
11207 /* System header to define __stub macros and hopefully few prototypes,
11208 which can conflict with char $ac_func (); below.
11209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11210 <limits.h> exists even on freestanding compilers. */
11213 # include <limits.h>
11215 # include <assert.h>
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11227 /* The GNU C library defines this for functions which it implements
11228 to always fail with ENOSYS. Some functions are actually named
11229 something starting with __ and the normal name is an alias. */
11230 #if defined __stub_$ac_func || defined __stub___$ac_func
11237 return $ac_func ();
11242 rm -f conftest.
$ac_objext conftest
$ac_exeext
11243 if { (ac_try
="$ac_link"
11244 case "(($ac_try" in
11245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_link") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext &&
11259 $as_test_x conftest$ac_exeext; then
11260 eval "$as_ac_var=yes"
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269 conftest$ac_exeext conftest.$ac_ext
11271 ac_res=`eval echo '${'$as_ac_var'}'`
11272 { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11278 HAVE_GTK_MULTIDISPLAY=yes
11282 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11284 cat >>confdefs.h <<\_ACEOF
11285 #define HAVE_GTK_MULTIDISPLAY 1
11289 HAVE_GTK_FILE_SELECTION=no
11291 for ac_func in gtk_file_selection_new
11293 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 cat >conftest.$ac_ext <<_ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11307 #define $ac_func innocuous_$ac_func
11309 /* System header to define __stub macros and hopefully few prototypes,
11310 which can conflict with char $ac_func (); below.
11311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11312 <limits.h> exists even on freestanding compilers. */
11315 # include <limits.h>
11317 # include <assert.h>
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11329 /* The GNU C library defines this for functions which it implements
11330 to always fail with ENOSYS. Some functions are actually named
11331 something starting with __ and the normal name is an alias. */
11332 #if defined __stub_$ac_func || defined __stub___$ac_func
11339 return $ac_func ();
11344 rm -f conftest.$ac_objext conftest$ac_exeext
11345 if { (ac_try="$ac_link"
11346 case "(($ac_try" in
11347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11348 *) ac_try_echo
=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_link") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1
>conftest.err
11355 cat conftest.err
>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest
$ac_exeext &&
11361 $as_test_x conftest
$ac_exeext; then
11362 eval "$as_ac_var=yes"
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.
$ac_ext >&5
11367 eval "$as_ac_var=no"
11370 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11371 conftest
$ac_exeext conftest.
$ac_ext
11373 ac_res
=`eval echo '${'$as_ac_var'}'`
11374 { echo "$as_me:$LINENO: result: $ac_res" >&5
11375 echo "${ECHO_T}$ac_res" >&6; }
11376 if test `eval echo '${'$as_ac_var'}'` = yes; then
11377 cat >>confdefs.h
<<_ACEOF
11378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 HAVE_GTK_FILE_SELECTION
=yes
11385 HAVE_GTK_FILE_CHOOSER
=no
11387 for ac_func
in gtk_file_chooser_dialog_new
11389 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11392 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 cat >conftest.
$ac_ext <<_ACEOF
11398 cat confdefs.h
>>conftest.
$ac_ext
11399 cat >>conftest.
$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11403 #define $ac_func innocuous_$ac_func
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below.
11407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11408 <limits.h> exists even on freestanding compilers. */
11411 # include <limits.h>
11413 # include <assert.h>
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined __stub_$ac_func || defined __stub___$ac_func
11435 return $ac_func ();
11440 rm -f conftest.
$ac_objext conftest
$ac_exeext
11441 if { (ac_try
="$ac_link"
11442 case "(($ac_try" in
11443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11444 *) ac_try_echo=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_link") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest$ac_exeext &&
11457 $as_test_x conftest$ac_exeext; then
11458 eval "$as_ac_var=yes"
11460 echo "$as_me: failed program was:" >&5
11461 sed 's/^/| /' conftest.$ac_ext >&5
11463 eval "$as_ac_var=no"
11466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11467 conftest$ac_exeext conftest.$ac_ext
11469 ac_res=`eval echo '${'$as_ac_var'}'`
11470 { echo "$as_me:$LINENO: result: $ac_res" >&5
11471 echo "${ECHO_T}$ac_res" >&6; }
11472 if test `eval echo '${'$as_ac_var'}'` = yes; then
11473 cat >>confdefs.h <<_ACEOF
11474 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11476 HAVE_GTK_FILE_CHOOSER=yes
11481 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11482 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define HAVE_GTK_FILE_BOTH 1
11490 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11491 HAVE_GTK_AND_PTHREAD=no
11493 for ac_header in pthread.h
11495 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 ac_res=`eval echo '${'$as_ac_Header'}'`
11503 { echo "$as_me:$LINENO: result: $ac_res" >&5
11504 echo "${ECHO_T}$ac_res" >&6; }
11506 # Is the header compilable?
11507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11516 #include <$ac_header>
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11522 *) ac_try_echo
=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^ *+' conftest.er1
>conftest.err
11529 cat conftest.err
>&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.
$ac_objext; then
11535 ac_header_compiler
=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.
$ac_ext >&5
11540 ac_header_compiler
=no
11543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6; }
11547 # Is the header present?
11548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11550 cat >conftest.
$ac_ext <<_ACEOF
11553 cat confdefs.h
>>conftest.
$ac_ext
11554 cat >>conftest.
$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include <$ac_header>
11558 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11559 case "(($ac_try" in
11560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11561 *) ac_try_echo=$ac_try;;
11563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11566 grep -v '^ *+' conftest.er1 >conftest.err
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } >/dev/null && {
11571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11572 test ! -s conftest.err
11574 ac_header_preproc=yes
11576 echo "$as_me: failed program was:" >&5
11577 sed 's/^/| /' conftest.$ac_ext >&5
11579 ac_header_preproc=no
11582 rm -f conftest.err conftest.$ac_ext
11583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11584 echo "${ECHO_T}$ac_header_preproc" >&6; }
11586 # So? What about this header?
11587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11593 ac_header_preproc=yes
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 eval "$as_ac_Header=\$ac_header_preproc"
11618 ac_res=`eval echo '${'$as_ac_Header'}'`
11619 { echo "$as_me:$LINENO: result: $ac_res" >&5
11620 echo "${ECHO_T}$ac_res" >&6; }
11623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11624 cat >>confdefs.h <<_ACEOF
11625 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11632 if test "$ac_cv_header_pthread_h"; then
11633 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11634 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11635 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lpthread $LIBS"
11640 cat >conftest.$ac_ext <<_ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11653 char pthread_self ();
11657 return pthread_self ();
11662 rm -f conftest.$ac_objext conftest$ac_exeext
11663 if { (ac_try="$ac_link"
11664 case "(($ac_try" in
11665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11666 *) ac_try_echo
=$ac_try;;
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669 (eval "$ac_link") 2>conftest.er1
11671 grep -v '^ *+' conftest.er1
>conftest.err
11673 cat conftest.err
>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } && {
11676 test -z "$ac_c_werror_flag" ||
11677 test ! -s conftest.err
11678 } && test -s conftest
$ac_exeext &&
11679 $as_test_x conftest
$ac_exeext; then
11680 ac_cv_lib_pthread_pthread_self
=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.
$ac_ext >&5
11685 ac_cv_lib_pthread_pthread_self
=no
11688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11689 conftest
$ac_exeext conftest.
$ac_ext
11690 LIBS
=$ac_check_lib_save_LIBS
11692 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11693 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11694 if test $ac_cv_lib_pthread_pthread_self = yes; then
11695 HAVE_GTK_AND_PTHREAD
=yes
11699 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11700 case "${canonical}" in
11702 *) GTK_LIBS
="$GTK_LIBS -lpthread" ;;
11705 cat >>confdefs.h
<<\_ACEOF
11706 #define HAVE_GTK_AND_PTHREAD 1
11713 ### Link with -lXft if available to work around a bug.
11715 if test "${HAVE_GTK}" = "yes"; then
11716 if test "X${with_pkg_config_prog}" != X
; then
11717 PKG_CONFIG
="${with_pkg_config_prog}"
11723 if test -z "$PKG_CONFIG"; then
11724 # Extract the first word of "pkg-config", so it can be a program name with args.
11725 set dummy pkg-config
; ac_word
=$2
11726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11728 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 case $PKG_CONFIG in
11733 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11737 for as_dir
in $PATH
11740 test -z "$as_dir" && as_dir
=.
11741 for ac_exec_ext
in '' $ac_executable_extensions; do
11742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11755 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11756 if test -n "$PKG_CONFIG"; then
11757 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11758 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11760 { echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6; }
11767 if test "$PKG_CONFIG" = "no" ; then
11770 PKG_CONFIG_MIN_VERSION
=0.9.0
11771 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11772 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11773 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11775 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11776 { echo "$as_me:$LINENO: result: yes" >&5
11777 echo "${ECHO_T}yes" >&6; }
11780 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11781 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11782 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11783 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11784 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11786 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11787 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11788 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11789 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11790 echo "${ECHO_T}$XFT_LIBS" >&6; }
11792 { echo "$as_me:$LINENO: result: no" >&5
11793 echo "${ECHO_T}no" >&6; }
11796 ## If we have a custom action on failure, don't print errors, but
11797 ## do set a variable so people can do so.
11798 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11805 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11806 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11810 if test $succeeded = yes; then
11816 if test "$HAVE_XFT" != no
; then
11817 OLD_CFLAGS
="$CPPFLAGS"
11818 OLD_CPPFLAGS
="$CFLAGS"
11820 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11821 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11822 LIBS
="$XFT_LIBS $LIBS"
11823 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11824 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11825 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11826 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11830 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11832 # Is the header compilable?
11833 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11834 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11835 cat >conftest.
$ac_ext <<_ACEOF
11838 cat confdefs.h
>>conftest.
$ac_ext
11839 cat >>conftest.
$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 $ac_includes_default
11842 #include <X11/Xft/Xft.h>
11844 rm -f conftest.
$ac_objext
11845 if { (ac_try
="$ac_compile"
11846 case "(($ac_try" in
11847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_compile") 2>conftest.er1
11853 grep -v '^ *+' conftest.er1 >conftest.err
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 ac_header_compiler=yes
11863 echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11866 ac_header_compiler=no
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11871 echo "${ECHO_T}$ac_header_compiler" >&6; }
11873 # Is the header present?
11874 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11875 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 #include <X11/Xft/Xft.h>
11884 if { (ac_try="$ac_cpp conftest.$ac_ext"
11885 case "(($ac_try" in
11886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11887 *) ac_try_echo
=$ac_try;;
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11892 grep -v '^ *+' conftest.er1
>conftest.err
11894 cat conftest.err
>&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } >/dev
/null
&& {
11897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11900 ac_header_preproc
=yes
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.
$ac_ext >&5
11905 ac_header_preproc
=no
11908 rm -f conftest.err conftest.
$ac_ext
11909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11910 echo "${ECHO_T}$ac_header_preproc" >&6; }
11912 # So? What about this header?
11913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11918 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11919 ac_header_preproc
=yes
11922 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11923 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11924 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11925 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11927 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11929 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11931 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11933 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11937 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11938 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11939 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11944 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11945 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11948 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11949 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11950 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11951 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 ac_check_lib_save_LIBS
=$LIBS
11955 LIBS
="-lXft $XFT_LIBS $LIBS"
11956 cat >conftest.
$ac_ext <<_ACEOF
11959 cat confdefs.h
>>conftest.
$ac_ext
11960 cat >>conftest.
$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11969 char XftFontOpen ();
11973 return XftFontOpen ();
11978 rm -f conftest.
$ac_objext conftest
$ac_exeext
11979 if { (ac_try
="$ac_link"
11980 case "(($ac_try" in
11981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest$ac_exeext &&
11995 $as_test_x conftest$ac_exeext; then
11996 ac_cv_lib_Xft_XftFontOpen=yes
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_cv_lib_Xft_XftFontOpen=no
12004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12008 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12009 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12010 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12018 if test "${HAVE_XFT}" = "yes"; then
12020 cat >>confdefs.h <<\_ACEOF
12025 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12027 CFLAGS="$OLD_CPPFLAGS"
12028 CFLAGS="$OLD_CFLAGS"
12034 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12035 if test x"${HAVE_X11R5}" = xyes; then
12036 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12037 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12038 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12048 #include <X11/Intrinsic.h>
12049 #include <X11/Xaw/Simple.h>
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12062 *) ac_try_echo
=$ac_try;;
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_link") 2>conftest.er1
12067 grep -v '^ *+' conftest.er1
>conftest.err
12069 cat conftest.err
>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest
$ac_exeext &&
12075 $as_test_x conftest
$ac_exeext; then
12076 emacs_cv_x11_version_5_with_xaw
=yes
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.
$ac_ext >&5
12081 emacs_cv_x11_version_5_with_xaw
=no
12084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12085 conftest
$ac_exeext conftest.
$ac_ext
12088 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12089 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12090 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12091 USE_X_TOOLKIT
=LUCID
12093 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12094 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12095 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12096 { (exit 1); exit 1; }; }
12098 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12099 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12108 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12110 if test "${USE_X_TOOLKIT}" != "none"; then
12111 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12112 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12113 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 cat >conftest.
$ac_ext <<_ACEOF
12119 cat confdefs.h
>>conftest.
$ac_ext
12120 cat >>conftest.
$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12122 #include <X11/Intrinsic.h>
12126 #if XtSpecificationRelease < 6
12134 rm -f conftest.
$ac_objext conftest
$ac_exeext
12135 if { (ac_try
="$ac_link"
12136 case "(($ac_try" in
12137 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_link") 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } && {
12148 test -z "$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12150 } && test -s conftest$ac_exeext &&
12151 $as_test_x conftest$ac_exeext; then
12152 emacs_cv_x11_toolkit_version_6=yes
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 emacs_cv_x11_toolkit_version_6=no
12160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12161 conftest$ac_exeext conftest.$ac_ext
12164 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12165 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12166 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12167 echo "${ECHO_T}6 or newer" >&6; }
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_X11XTR6 1
12174 { echo "$as_me:$LINENO: result: before 6" >&5
12175 echo "${ECHO_T}before 6" >&6; }
12179 if test x$HAVE_X11XTR6 = xyes; then
12180 LIBS="-lXt -lSM -lICE $LIBS"
12185 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12186 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12187 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 ac_check_lib_save_LIBS=$LIBS
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12205 char XmuConvertStandardSelection ();
12209 return XmuConvertStandardSelection ();
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12218 *) ac_try_echo
=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1
>conftest.err
12225 cat conftest.err
>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest
$ac_exeext &&
12231 $as_test_x conftest
$ac_exeext; then
12232 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.
$ac_ext >&5
12237 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12240 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12241 conftest
$ac_exeext conftest.
$ac_ext
12242 LIBS
=$ac_check_lib_save_LIBS
12244 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12245 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12246 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12247 cat >>confdefs.h
<<_ACEOF
12248 #define HAVE_LIBXMU 1
12255 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12258 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12259 if test "${HAVE_X11}" = "yes"; then
12260 if test "${USE_X_TOOLKIT}" != "none"; then
12262 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12263 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 ac_check_lib_save_LIBS
=$LIBS
12268 LIBS
="-lXext $LIBS"
12269 cat >conftest.
$ac_ext <<_ACEOF
12272 cat confdefs.h
>>conftest.
$ac_ext
12273 cat >>conftest.
$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12282 char XShapeQueryExtension ();
12286 return XShapeQueryExtension ();
12291 rm -f conftest.
$ac_objext conftest
$ac_exeext
12292 if { (ac_try
="$ac_link"
12293 case "(($ac_try" in
12294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_link") 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } && {
12305 test -z "$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 } && test -s conftest$ac_exeext &&
12308 $as_test_x conftest$ac_exeext; then
12309 ac_cv_lib_Xext_XShapeQueryExtension=yes
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_lib_Xext_XShapeQueryExtension=no
12317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12322 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12323 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_LIBXEXT 1
12328 LIBS="-lXext $LIBS"
12335 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12336 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12337 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12338 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12351 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12354 Motif version prior to 2.1.
12360 rm -f conftest.$ac_objext
12361 if { (ac_try="$ac_compile"
12362 case "(($ac_try" in
12363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12364 *) ac_try_echo
=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_compile") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1
>conftest.err
12371 cat conftest.err
>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest.
$ac_objext; then
12377 emacs_cv_motif_version_2_1
=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.
$ac_ext >&5
12382 emacs_cv_motif_version_2_1
=no
12385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12387 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12388 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12389 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12390 if test $emacs_cv_motif_version_2_1 = yes; then
12393 cat >>confdefs.h
<<\_ACEOF
12394 #define HAVE_MOTIF_2_1 1
12397 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12398 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12399 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 ac_check_lib_save_LIBS
=$LIBS
12404 cat >conftest.
$ac_ext <<_ACEOF
12407 cat confdefs.h
>>conftest.
$ac_ext
12408 cat >>conftest.
$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12417 char XpCreateContext ();
12421 return XpCreateContext ();
12426 rm -f conftest.
$ac_objext conftest
$ac_exeext
12427 if { (ac_try
="$ac_link"
12428 case "(($ac_try" in
12429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_link") 2>conftest.er1
12435 grep -v '^ *+' conftest.er1 >conftest.err
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest$ac_exeext &&
12443 $as_test_x conftest$ac_exeext; then
12444 ac_cv_lib_Xp_XpCreateContext=yes
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_cv_lib_Xp_XpCreateContext=no
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453 conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12456 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12457 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12458 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12462 if test ${HAVE_LIBXP} = yes; then
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_LIBXP 1
12470 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12471 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12472 if test "${emacs_cv_lesstif+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 # We put this in CFLAGS temporarily to precede other -I options
12476 # that might be in CFLAGS temporarily.
12477 # We put this in CPPFLAGS where it precedes the other -I options.
12478 OLD_CPPFLAGS=$CPPFLAGS
12480 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12481 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12488 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12497 rm -f conftest.$ac_objext
12498 if { (ac_try="$ac_compile"
12499 case "(($ac_try" in
12500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12501 *) ac_try_echo
=$ac_try;;
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1
>conftest.err
12508 cat conftest.err
>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.
$ac_objext; then
12514 emacs_cv_lesstif
=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.
$ac_ext >&5
12519 emacs_cv_lesstif
=no
12522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12524 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12525 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12526 if test $emacs_cv_lesstif = yes; then
12527 # Make sure this -I option remains in CPPFLAGS after it is set
12528 # back to REAL_CPPFLAGS.
12529 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12530 # have those other -I options anyway. Ultimately, having this
12531 # directory ultimately in CPPFLAGS will be enough.
12532 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12533 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12536 CPPFLAGS
=$OLD_CPPFLAGS
12541 ### Is -lXaw3d available?
12543 if test "${HAVE_X11}" = "yes"; then
12544 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12545 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12546 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12547 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 cat >conftest.
$ac_ext <<_ACEOF
12553 cat confdefs.h
>>conftest.
$ac_ext
12554 cat >>conftest.
$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556 #include <X11/Xaw3d/Scrollbar.h>
12558 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12559 case "(($ac_try" in
12560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } >/dev/null && {
12571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12574 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12582 rm -f conftest.err conftest.$ac_ext
12584 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12585 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12586 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12587 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12588 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12589 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 ac_check_lib_save_LIBS=$LIBS
12593 LIBS="-lXaw3d $LIBS"
12594 cat >conftest.$ac_ext <<_ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 /* Override any GCC internal prototype to avoid an error.
12602 Use char because int might match the return type of a GCC
12603 builtin and then its argument prototype would still apply. */
12607 char XawScrollbarSetThumb ();
12611 return XawScrollbarSetThumb ();
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12620 *) ac_try_echo
=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12625 grep -v '^ *+' conftest.er1
>conftest.err
12627 cat conftest.err
>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } && {
12630 test -z "$ac_c_werror_flag" ||
12631 test ! -s conftest.err
12632 } && test -s conftest
$ac_exeext &&
12633 $as_test_x conftest
$ac_exeext; then
12634 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.
$ac_ext >&5
12639 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12642 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12643 conftest
$ac_exeext conftest.
$ac_ext
12644 LIBS
=$ac_check_lib_save_LIBS
12646 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12647 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12648 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12655 if test "${HAVE_XAW3D}" = "yes"; then
12657 cat >>confdefs.h
<<\_ACEOF
12658 #define HAVE_XAW3D 1
12667 USE_TOOLKIT_SCROLL_BARS
=no
12668 if test "${with_toolkit_scroll_bars}" != "no"; then
12669 if test "${USE_X_TOOLKIT}" != "none"; then
12670 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12671 cat >>confdefs.h
<<\_ACEOF
12672 #define USE_TOOLKIT_SCROLL_BARS 1
12676 USE_TOOLKIT_SCROLL_BARS
=yes
12677 elif test "${HAVE_XAW3D}" = "yes"; then
12678 cat >>confdefs.h
<<\_ACEOF
12679 #define USE_TOOLKIT_SCROLL_BARS 1
12682 USE_TOOLKIT_SCROLL_BARS
=yes
12684 elif test "${HAVE_GTK}" = "yes"; then
12685 cat >>confdefs.h
<<\_ACEOF
12686 #define USE_TOOLKIT_SCROLL_BARS 1
12689 USE_TOOLKIT_SCROLL_BARS
=yes
12690 elif test "${HAVE_CARBON}" = "yes"; then
12691 cat >>confdefs.h
<<\_ACEOF
12692 #define USE_TOOLKIT_SCROLL_BARS 1
12695 USE_TOOLKIT_SCROLL_BARS
=yes
12699 cat >conftest.
$ac_ext <<_ACEOF
12702 cat confdefs.h
>>conftest.
$ac_ext
12703 cat >>conftest.
$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12706 #include <X11/Xlib.h>
12707 #include <X11/Xresource.h>
12716 rm -f conftest.
$ac_objext
12717 if { (ac_try
="$ac_compile"
12718 case "(($ac_try" in
12719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_compile") 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_c_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest.$ac_objext; then
12735 cat >>confdefs.h <<\_ACEOF
12740 echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749 if test "${with_xim}" != "no"; then
12751 cat >>confdefs.h <<\_ACEOF
12758 if test "${HAVE_XIM}" != "no"; then
12759 late_CFLAGS=$CFLAGS
12760 if test "$GCC" = yes; then
12761 CFLAGS="$CFLAGS --pedantic-errors"
12763 cat >conftest.$ac_ext <<_ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12770 #include <X11/Xlib.h>
12771 #include <X11/Xresource.h>
12780 XPointer *client_data;
12782 /* If we're not using GCC, it's probably not XFree86, and this is
12783 probably right, but we can't use something like --pedantic-errors. */
12784 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12785 char*, XIMProc, XPointer*);
12787 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12793 rm -f conftest.$ac_objext
12794 if { (ac_try="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12797 *) ac_try_echo
=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1
>conftest.err
12804 cat conftest.err
>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.
$ac_objext; then
12810 emacs_cv_arg6_star
=yes
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.
$ac_ext >&5
12818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12820 if test "$emacs_cv_arg6_star" = yes; then
12821 cat >>confdefs.h
<<\_ACEOF
12822 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12826 cat >>confdefs.h
<<\_ACEOF
12827 #define XRegisterIMInstantiateCallback_arg6 XPointer
12831 CFLAGS
=$late_CFLAGS
12834 ### Use -lXpm if available, unless `--with-xpm=no'.
12836 if test "${HAVE_X11}" = "yes"; then
12837 if test "${with_xpm}" != "no"; then
12838 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12839 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12840 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12841 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12845 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12847 # Is the header compilable?
12848 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12849 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12850 cat >conftest.
$ac_ext <<_ACEOF
12853 cat confdefs.h
>>conftest.
$ac_ext
12854 cat >>conftest.
$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12857 #include <X11/xpm.h>
12859 rm -f conftest.
$ac_objext
12860 if { (ac_try
="$ac_compile"
12861 case "(($ac_try" in
12862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_compile") 2>conftest.er1
12868 grep -v '^ *+' conftest.er1 >conftest.err
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } && {
12873 test -z "$ac_c_werror_flag" ||
12874 test ! -s conftest.err
12875 } && test -s conftest.$ac_objext; then
12876 ac_header_compiler=yes
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_header_compiler=no
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12886 echo "${ECHO_T}$ac_header_compiler" >&6; }
12888 # Is the header present?
12889 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12890 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12891 cat >conftest.$ac_ext <<_ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <X11/xpm.h>
12899 if { (ac_try="$ac_cpp conftest.$ac_ext"
12900 case "(($ac_try" in
12901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12902 *) ac_try_echo
=$ac_try;;
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12907 grep -v '^ *+' conftest.er1
>conftest.err
12909 cat conftest.err
>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); } >/dev
/null
&& {
12912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12913 test ! -s conftest.err
12915 ac_header_preproc
=yes
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.
$ac_ext >&5
12920 ac_header_preproc
=no
12923 rm -f conftest.err conftest.
$ac_ext
12924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12925 echo "${ECHO_T}$ac_header_preproc" >&6; }
12927 # So? What about this header?
12928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12931 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12933 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12934 ac_header_preproc
=yes
12937 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12938 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12940 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12942 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12944 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12946 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12948 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12952 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12953 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12954 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12959 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12960 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12963 if test $ac_cv_header_X11_xpm_h = yes; then
12964 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12965 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12966 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 ac_check_lib_save_LIBS
=$LIBS
12970 LIBS
="-lXpm -lX11 $LIBS"
12971 cat >conftest.
$ac_ext <<_ACEOF
12974 cat confdefs.h
>>conftest.
$ac_ext
12975 cat >>conftest.
$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12984 char XpmReadFileToPixmap ();
12988 return XpmReadFileToPixmap ();
12993 rm -f conftest.
$ac_objext conftest
$ac_exeext
12994 if { (ac_try
="$ac_link"
12995 case "(($ac_try" in
12996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_link") 2>conftest.er1
13002 grep -v '^ *+' conftest.er1 >conftest.err
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest$ac_exeext &&
13010 $as_test_x conftest$ac_exeext; then
13011 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13020 conftest$ac_exeext conftest.$ac_ext
13021 LIBS=$ac_check_lib_save_LIBS
13023 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13024 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13025 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13032 if test "${HAVE_XPM}" = "yes"; then
13033 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13034 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13035 cat >conftest.$ac_ext <<_ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13041 #include "X11/xpm.h"
13042 #ifndef XpmReturnAllocPixels
13043 no_return_alloc_pixels
13047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13048 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13056 if test "${HAVE_XPM}" = "yes"; then
13057 { echo "$as_me:$LINENO: result: yes" >&5
13058 echo "${ECHO_T}yes" >&6; }
13060 { echo "$as_me:$LINENO: result: no" >&5
13061 echo "${ECHO_T}no" >&6; }
13066 if test "${HAVE_XPM}" = "yes"; then
13068 cat >>confdefs.h <<\_ACEOF
13075 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13077 if test "${HAVE_X11}" = "yes"; then
13078 if test "${with_jpeg}" != "no"; then
13079 if test "${ac_cv_header_jerror_h+set}" = set; then
13080 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13081 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13082 if test "${ac_cv_header_jerror_h+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13086 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13088 # Is the header compilable?
13089 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13090 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 $ac_includes_default
13098 #include <jerror.h>
13100 rm -f conftest.$ac_objext
13101 if { (ac_try="$ac_compile"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_compile") 2>conftest.er1
13109 grep -v '^
*+' conftest.er1 >conftest.err
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest.$ac_objext; then
13117 ac_header_compiler=yes
13119 echo "$as_me: failed program was:" >&5
13120 sed 's
/^
/|
/' conftest.$ac_ext >&5
13122 ac_header_compiler=no
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13127 echo "${ECHO_T}$ac_header_compiler" >&6; }
13129 # Is the header present?
13130 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13131 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13138 #include <jerror.h>
13140 if { (ac_try="$ac_cpp conftest.$ac_ext"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13148 grep -v '^
*+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } >/dev/null && {
13153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13156 ac_header_preproc=yes
13158 echo "$as_me: failed program was:" >&5
13159 sed 's
/^
/|
/' conftest.$ac_ext >&5
13161 ac_header_preproc=no
13164 rm -f conftest.err conftest.$ac_ext
13165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13166 echo "${ECHO_T}$ac_header_preproc" >&6; }
13168 # So? What about this header?
13169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13171 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13172 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13174 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13175 ac_header_preproc=yes
13178 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13179 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13181 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13183 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13184 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13185 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13186 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13187 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13188 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13189 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13193 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13194 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13195 if test "${ac_cv_header_jerror_h+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 ac_cv_header_jerror_h=$ac_header_preproc
13200 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13201 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13204 if test $ac_cv_header_jerror_h = yes; then
13205 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13206 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13207 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 ac_check_lib_save_LIBS=$LIBS
13211 LIBS="-ljpeg $LIBS"
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13219 /* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13225 char jpeg_destroy_compress ();
13229 return jpeg_destroy_compress ();
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_link") 2>conftest.er1
13243 grep -v '^
*+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest$ac_exeext &&
13251 $as_test_x conftest$ac_exeext; then
13252 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13254 echo "$as_me: failed program was:" >&5
13255 sed 's
/^
/|
/' conftest.$ac_ext >&5
13257 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13264 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13265 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13266 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13276 if test "${HAVE_JPEG}" = "yes"; then
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_JPEG 1
13281 cat >conftest.$ac_ext <<_ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 #include <jpeglib.h>
13288 version=JPEG_LIB_VERSION
13291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13292 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13293 cat >>confdefs.h <<\_ACEOF
13294 #define HAVE_JPEG 1
13298 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13299 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13307 ### Use -lpng if available, unless `--with-png=no'.
13309 if test "${HAVE_X11}" = "yes"; then
13310 if test "${with_png}" != "no"; then
13311 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13312 # in /usr/include/libpng.
13315 for ac_header
in png.h libpng
/png.h
13317 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13321 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 ac_res
=`eval echo '${'$as_ac_Header'}'`
13325 { echo "$as_me:$LINENO: result: $ac_res" >&5
13326 echo "${ECHO_T}$ac_res" >&6; }
13328 # Is the header compilable?
13329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13331 cat >conftest.
$ac_ext <<_ACEOF
13334 cat confdefs.h
>>conftest.
$ac_ext
13335 cat >>conftest.
$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13338 #include <$ac_header>
13340 rm -f conftest.
$ac_objext
13341 if { (ac_try
="$ac_compile"
13342 case "(($ac_try" in
13343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
13349 grep -v '^ *+' conftest.er1 >conftest.err
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } && {
13354 test -z "$ac_c_werror_flag" ||
13355 test ! -s conftest.err
13356 } && test -s conftest.$ac_objext; then
13357 ac_header_compiler=yes
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_header_compiler=no
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13367 echo "${ECHO_T}$ac_header_compiler" >&6; }
13369 # Is the header present?
13370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13372 cat >conftest.$ac_ext <<_ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 #include <$ac_header>
13380 if { (ac_try="$ac_cpp conftest.$ac_ext"
13381 case "(($ac_try" in
13382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13383 *) ac_try_echo
=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13388 grep -v '^ *+' conftest.er1
>conftest.err
13390 cat conftest.err
>&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } >/dev
/null
&& {
13393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13396 ac_header_preproc
=yes
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.
$ac_ext >&5
13401 ac_header_preproc
=no
13404 rm -f conftest.err conftest.
$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13406 echo "${ECHO_T}$ac_header_preproc" >&6; }
13408 # So? What about this header?
13409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13415 ac_header_preproc
=yes
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13435 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 eval "$as_ac_Header=\$ac_header_preproc"
13440 ac_res
=`eval echo '${'$as_ac_Header'}'`
13441 { echo "$as_me:$LINENO: result: $ac_res" >&5
13442 echo "${ECHO_T}$ac_res" >&6; }
13445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13446 cat >>confdefs.h
<<_ACEOF
13447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13454 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13455 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13456 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13457 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 ac_check_lib_save_LIBS
=$LIBS
13461 LIBS
="-lpng -lz -lm $LIBS"
13462 cat >conftest.
$ac_ext <<_ACEOF
13465 cat confdefs.h
>>conftest.
$ac_ext
13466 cat >>conftest.
$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13475 char png_get_channels ();
13479 return png_get_channels ();
13484 rm -f conftest.
$ac_objext conftest
$ac_exeext
13485 if { (ac_try
="$ac_link"
13486 case "(($ac_try" in
13487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_link") 2>conftest.er1
13493 grep -v '^ *+' conftest.er1 >conftest.err
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest$ac_exeext &&
13501 $as_test_x conftest$ac_exeext; then
13502 ac_cv_lib_png_png_get_channels=yes
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 ac_cv_lib_png_png_get_channels=no
13510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13511 conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13514 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13515 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13516 if test $ac_cv_lib_png_png_get_channels = yes; then
13523 if test "${HAVE_PNG}" = "yes"; then
13525 cat >>confdefs.h <<\_ACEOF
13532 ### Use -ltiff if available, unless `--with-tiff=no
'.
13534 if test "${HAVE_X11}" = "yes"; then
13535 if test "${with_tiff}" != "no"; then
13536 if test "${ac_cv_header_tiffio_h+set}" = set; then
13537 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13538 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13539 if test "${ac_cv_header_tiffio_h+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13545 # Is the header compilable?
13546 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13547 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13548 cat >conftest.$ac_ext <<_ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 $ac_includes_default
13555 #include <tiffio.h>
13557 rm -f conftest.$ac_objext
13558 if { (ac_try="$ac_compile"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compile") 2>conftest.er1
13566 grep -v '^
*+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } && {
13571 test -z "$ac_c_werror_flag" ||
13572 test ! -s conftest.err
13573 } && test -s conftest.$ac_objext; then
13574 ac_header_compiler=yes
13576 echo "$as_me: failed program was:" >&5
13577 sed 's
/^
/|
/' conftest.$ac_ext >&5
13579 ac_header_compiler=no
13582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13584 echo "${ECHO_T}$ac_header_compiler" >&6; }
13586 # Is the header present?
13587 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13588 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 #include <tiffio.h>
13597 if { (ac_try="$ac_cpp conftest.$ac_ext"
13598 case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13605 grep -v '^
*+' conftest.er1 >conftest.err
13607 cat conftest.err >&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } >/dev/null && {
13610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13611 test ! -s conftest.err
13613 ac_header_preproc=yes
13615 echo "$as_me: failed program was:" >&5
13616 sed 's
/^
/|
/' conftest.$ac_ext >&5
13618 ac_header_preproc=no
13621 rm -f conftest.err conftest.$ac_ext
13622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13623 echo "${ECHO_T}$ac_header_preproc" >&6; }
13625 # So? What about this header?
13626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13628 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13629 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13631 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13632 ac_header_preproc=yes
13635 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13636 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13638 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13640 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13642 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13644 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13646 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13650 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13651 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13652 if test "${ac_cv_header_tiffio_h+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 ac_cv_header_tiffio_h=$ac_header_preproc
13657 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13658 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13661 if test $ac_cv_header_tiffio_h = yes; then
13663 # At least one tiff package requires the jpeg library.
13664 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13665 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13666 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13667 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 ac_check_lib_save_LIBS=$LIBS
13671 LIBS="-ltiff $tifflibs $LIBS"
13672 cat >conftest.$ac_ext <<_ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13685 char TIFFGetVersion ();
13689 return TIFFGetVersion ();
13694 rm -f conftest.$ac_objext conftest$ac_exeext
13695 if { (ac_try="$ac_link"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_link") 2>conftest.er1
13703 grep -v '^
*+' conftest.er1 >conftest.err
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } && {
13708 test -z "$ac_c_werror_flag" ||
13709 test ! -s conftest.err
13710 } && test -s conftest$ac_exeext &&
13711 $as_test_x conftest$ac_exeext; then
13712 ac_cv_lib_tiff_TIFFGetVersion=yes
13714 echo "$as_me: failed program was:" >&5
13715 sed 's
/^
/|
/' conftest.$ac_ext >&5
13717 ac_cv_lib_tiff_TIFFGetVersion=no
13720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13724 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13725 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13726 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13735 if test "${HAVE_TIFF}" = "yes"; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define HAVE_TIFF 1
13744 ### Use -lgif if available, unless `--with-gif=no'.
13746 if test "${HAVE_X11}" = "yes"; then
13747 if test "${with_gif}" != "no"; then
13748 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13749 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13750 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13751 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13755 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13757 # Is the header compilable?
13758 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13759 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13760 cat >conftest.
$ac_ext <<_ACEOF
13763 cat confdefs.h
>>conftest.
$ac_ext
13764 cat >>conftest.
$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 $ac_includes_default
13767 #include <gif_lib.h>
13769 rm -f conftest.
$ac_objext
13770 if { (ac_try
="$ac_compile"
13771 case "(($ac_try" in
13772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13773 *) ac_try_echo=$ac_try;;
13775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13776 (eval "$ac_compile") 2>conftest.er1
13778 grep -v '^ *+' conftest.er1 >conftest.err
13780 cat conftest.err >&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && {
13783 test -z "$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13785 } && test -s conftest.$ac_objext; then
13786 ac_header_compiler=yes
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13791 ac_header_compiler=no
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13796 echo "${ECHO_T}$ac_header_compiler" >&6; }
13798 # Is the header present?
13799 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13800 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #include <gif_lib.h>
13809 if { (ac_try="$ac_cpp conftest.$ac_ext"
13810 case "(($ac_try" in
13811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13812 *) ac_try_echo
=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13817 grep -v '^ *+' conftest.er1
>conftest.err
13819 cat conftest.err
>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } >/dev
/null
&& {
13822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13823 test ! -s conftest.err
13825 ac_header_preproc
=yes
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.
$ac_ext >&5
13830 ac_header_preproc
=no
13833 rm -f conftest.err conftest.
$ac_ext
13834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13835 echo "${ECHO_T}$ac_header_preproc" >&6; }
13837 # So? What about this header?
13838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13841 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13843 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13844 ac_header_preproc
=yes
13847 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13848 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13850 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13851 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13852 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13854 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13856 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13858 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13862 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13863 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13864 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 ac_cv_header_gif_lib_h
=$ac_header_preproc
13869 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13870 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13873 if test $ac_cv_header_gif_lib_h = yes; then
13874 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13875 # Earlier versions can crash Emacs.
13876 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13877 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13878 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 ac_check_lib_save_LIBS
=$LIBS
13882 LIBS
="-lungif $LIBS"
13883 cat >conftest.
$ac_ext <<_ACEOF
13886 cat confdefs.h
>>conftest.
$ac_ext
13887 cat >>conftest.
$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13896 char EGifPutExtensionLast ();
13900 return EGifPutExtensionLast ();
13905 rm -f conftest.
$ac_objext conftest
$ac_exeext
13906 if { (ac_try
="$ac_link"
13907 case "(($ac_try" in
13908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_link") 2>conftest.er1
13914 grep -v '^ *+' conftest.er1 >conftest.err
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest$ac_exeext &&
13922 $as_test_x conftest$ac_exeext; then
13923 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_cv_lib_ungif_EGifPutExtensionLast=no
13931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13932 conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13935 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13936 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13937 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13946 if test "${HAVE_GIF}" = "yes"; then
13948 cat >>confdefs.h <<\_ACEOF
13955 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13956 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13957 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13958 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13962 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13964 # Is the header compilable?
13965 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13966 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 $ac_includes_default
13974 #include <malloc/malloc.h>
13976 rm -f conftest.$ac_objext
13977 if { (ac_try="$ac_compile"
13978 case "(($ac_try" in
13979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13980 *) ac_try_echo
=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_compile") 2>conftest.er1
13985 grep -v '^ *+' conftest.er1
>conftest.err
13987 cat conftest.err
>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest.
$ac_objext; then
13993 ac_header_compiler
=yes
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.
$ac_ext >&5
13998 ac_header_compiler
=no
14001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14003 echo "${ECHO_T}$ac_header_compiler" >&6; }
14005 # Is the header present?
14006 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14007 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14008 cat >conftest.
$ac_ext <<_ACEOF
14011 cat confdefs.h
>>conftest.
$ac_ext
14012 cat >>conftest.
$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 #include <malloc/malloc.h>
14016 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14017 case "(($ac_try" in
14018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14024 grep -v '^ *+' conftest.er1 >conftest.err
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } >/dev/null && {
14029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14032 ac_header_preproc=yes
14034 echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14037 ac_header_preproc=no
14040 rm -f conftest.err conftest.$ac_ext
14041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14042 echo "${ECHO_T}$ac_header_preproc" >&6; }
14044 # So? What about this header?
14045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14047 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14048 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14050 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14051 ac_header_preproc=yes
14054 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14055 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14057 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14059 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14061 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14062 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14063 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14064 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14065 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14069 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14070 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14071 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14074 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14076 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14077 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14080 if test $ac_cv_header_malloc_malloc_h = yes; then
14082 cat >>confdefs.h <<\_ACEOF
14083 #define HAVE_MALLOC_MALLOC_H 1
14090 ### Use Mac OS X Carbon API to implement GUI.
14091 if test "${HAVE_CARBON}" = "yes"; then
14093 cat >>confdefs.h <<\_ACEOF
14094 #define HAVE_CARBON 1
14097 ## Specify the install directory
14099 if test "${carbon_appdir_x}" != ""; then
14100 case ${carbon_appdir_x} in
14101 y | ye | yes) carbon_appdir=/Applications ;;
14102 * ) carbon_appdir=${carbon_appdir_x} ;;
14105 # We also have mouse menus.
14109 ### Use session management (-lSM -lICE) if available
14111 if test "${HAVE_X11}" = "yes"; then
14112 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14113 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14114 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14115 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14119 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14121 # Is the header compilable?
14122 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14123 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14124 cat >conftest.$ac_ext <<_ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14130 $ac_includes_default
14131 #include <X11/SM/SMlib.h>
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14137 *) ac_try_echo
=$ac_try;;
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1
>conftest.err
14144 cat conftest.err
>&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.
$ac_objext; then
14150 ac_header_compiler
=yes
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.
$ac_ext >&5
14155 ac_header_compiler
=no
14158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14160 echo "${ECHO_T}$ac_header_compiler" >&6; }
14162 # Is the header present?
14163 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14164 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14165 cat >conftest.
$ac_ext <<_ACEOF
14168 cat confdefs.h
>>conftest.
$ac_ext
14169 cat >>conftest.
$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #include <X11/SM/SMlib.h>
14173 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14174 case "(($ac_try" in
14175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14181 grep -v '^ *+' conftest.er1 >conftest.err
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } >/dev/null && {
14186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14187 test ! -s conftest.err
14189 ac_header_preproc=yes
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_header_preproc=no
14197 rm -f conftest.err conftest.$ac_ext
14198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14199 echo "${ECHO_T}$ac_header_preproc" >&6; }
14201 # So? What about this header?
14202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14205 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14207 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14208 ac_header_preproc=yes
14211 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14212 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14214 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14215 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14216 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14218 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14220 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14221 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14222 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14226 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14227 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14228 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14233 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14234 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14237 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14238 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14239 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14240 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 ac_check_lib_save_LIBS=$LIBS
14244 LIBS="-lSM -lICE $LIBS"
14245 cat >conftest.$ac_ext <<_ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14258 char SmcOpenConnection ();
14262 return SmcOpenConnection ();
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14271 *) ac_try_echo
=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_link") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1
>conftest.err
14278 cat conftest.err
>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest
$ac_exeext &&
14284 $as_test_x conftest
$ac_exeext; then
14285 ac_cv_lib_SM_SmcOpenConnection
=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.
$ac_ext >&5
14290 ac_cv_lib_SM_SmcOpenConnection
=no
14293 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14294 conftest
$ac_exeext conftest.
$ac_ext
14295 LIBS
=$ac_check_lib_save_LIBS
14297 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14298 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14299 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14307 if test "${HAVE_X_SM}" = "yes"; then
14309 cat >>confdefs.h
<<\_ACEOF
14310 #define HAVE_X_SM 1
14315 *) LIBS
="-lSM -lICE $LIBS" ;;
14320 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14321 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14322 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14323 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 cat >conftest.
$ac_ext <<_ACEOF
14329 cat confdefs.h
>>conftest.
$ac_ext
14330 cat >>conftest.
$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14341 rm -f conftest.
$ac_objext conftest
$ac_exeext
14342 if { (ac_try
="$ac_link"
14343 case "(($ac_try" in
14344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>conftest.er1
14350 grep -v '^ *+' conftest.er1 >conftest.err
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } && {
14355 test -z "$ac_c_werror_flag" ||
14356 test ! -s conftest.err
14357 } && test -s conftest$ac_exeext &&
14358 $as_test_x conftest$ac_exeext; then
14359 emacs_cv_netdb_declares_h_errno=yes
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 emacs_cv_netdb_declares_h_errno=no
14367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14368 conftest$ac_exeext conftest.$ac_ext
14370 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14371 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14372 if test $emacs_cv_netdb_declares_h_errno = yes; then
14374 cat >>confdefs.h <<\_ACEOF
14375 #define HAVE_H_ERRNO 1
14380 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14381 # for constant arguments. Useless!
14382 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14383 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14384 if test "${ac_cv_working_alloca_h+set}" = set; then
14385 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 #include <alloca.h>
14397 char *p = (char *) alloca (2 * sizeof (int));
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (ac_try="$ac_link"
14405 case "(($ac_try" in
14406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14407 *) ac_try_echo
=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_link") 2>conftest.er1
14412 grep -v '^ *+' conftest.er1
>conftest.err
14414 cat conftest.err
>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest
$ac_exeext &&
14420 $as_test_x conftest
$ac_exeext; then
14421 ac_cv_working_alloca_h
=yes
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.
$ac_ext >&5
14426 ac_cv_working_alloca_h
=no
14429 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14430 conftest
$ac_exeext conftest.
$ac_ext
14432 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14433 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14434 if test $ac_cv_working_alloca_h = yes; then
14436 cat >>confdefs.h
<<\_ACEOF
14437 #define HAVE_ALLOCA_H 1
14442 { echo "$as_me:$LINENO: checking for alloca" >&5
14443 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14444 if test "${ac_cv_func_alloca_works+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 cat >conftest.
$ac_ext <<_ACEOF
14450 cat confdefs.h
>>conftest.
$ac_ext
14451 cat >>conftest.
$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14454 # define alloca __builtin_alloca
14457 # include <malloc.h>
14458 # define alloca _alloca
14460 # ifdef HAVE_ALLOCA_H
14461 # include <alloca.h>
14466 # ifndef alloca /* predefined by HP cc +Olibcalls */
14477 char *p = (char *) alloca (1);
14483 rm -f conftest.
$ac_objext conftest
$ac_exeext
14484 if { (ac_try
="$ac_link"
14485 case "(($ac_try" in
14486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14487 *) ac_try_echo=$ac_try;;
14489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14490 (eval "$ac_link") 2>conftest.er1
14492 grep -v '^ *+' conftest.er1 >conftest.err
14494 cat conftest.err >&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } && {
14497 test -z "$ac_c_werror_flag" ||
14498 test ! -s conftest.err
14499 } && test -s conftest$ac_exeext &&
14500 $as_test_x conftest$ac_exeext; then
14501 ac_cv_func_alloca_works=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_cv_func_alloca_works=no
14509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14510 conftest$ac_exeext conftest.$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14513 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14515 if test $ac_cv_func_alloca_works = yes; then
14517 cat >>confdefs.h <<\_ACEOF
14518 #define HAVE_ALLOCA 1
14522 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14523 # that cause trouble. Some versions do not even contain alloca or
14524 # contain a buggy version. If you still want to use their alloca,
14525 # use ar to extract alloca.o from them instead of compiling alloca.c.
14527 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14529 cat >>confdefs.h <<\_ACEOF
14534 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14535 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14536 if test "${ac_cv_os_cray+set}" = set; then
14537 echo $ECHO_N "(cached
) $ECHO_C" >&6
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 #if defined CRAY && ! defined CRAY2
14552 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14553 $EGREP "webecray
" >/dev/null 2>&1; then
14561 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14562 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14563 if test $ac_cv_os_cray = yes; then
14564 for ac_func in _getb67 GETB67 getb67; do
14565 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14566 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14567 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14568 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14569 echo $ECHO_N "(cached
) $ECHO_C" >&6
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14579 #define $ac_func innocuous_$ac_func
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below.
14583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584 <limits.h> exists even on freestanding compilers. */
14587 # include <limits.h>
14589 # include <assert.h>
14594 /* Override any GCC internal prototype to avoid an error.
14595 Use char because int might match the return type of a GCC
14596 builtin and then its argument prototype would still apply. */
14601 /* The GNU C library defines this for functions which it implements
14602 to always fail with ENOSYS. Some functions are actually named
14603 something starting with __ and the normal name is an alias. */
14604 #if defined __stub_$ac_func || defined __stub___$ac_func
14611 return $ac_func ();
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (ac_try="$ac_link"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_link") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest$ac_exeext &&
14633 $as_test_x conftest$ac_exeext; then
14634 eval "$as_ac_var=yes"
14636 echo "$as_me: failed program was
:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 eval "$as_ac_var=no
"
14642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14643 conftest$ac_exeext conftest.$ac_ext
14645 ac_res=`eval echo '${'$as_ac_var'}'`
14646 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14647 echo "${ECHO_T}$ac_res" >&6; }
14648 if test `eval echo '${'$as_ac_var'}'` = yes; then
14650 cat >>confdefs.h <<_ACEOF
14651 #define CRAY_STACKSEG_END $ac_func
14660 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14661 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14662 if test "${ac_cv_c_stack_direction+set}" = set; then
14663 echo $ECHO_N "(cached
) $ECHO_C" >&6
14665 if test "$cross_compiling" = yes; then
14666 ac_cv_c_stack_direction=0
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 $ac_includes_default
14676 find_stack_direction ()
14678 static char *addr = 0;
14683 return find_stack_direction ();
14686 return (&dummy > addr) ? 1 : -1;
14692 return find_stack_direction () < 0;
14695 rm -f conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>&5
14704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_c_stack_direction=1
14717 echo "$as_me: program exited with status
$ac_status" >&5
14718 echo "$as_me: failed program was
:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ( exit $ac_status )
14722 ac_cv_c_stack_direction=-1
14724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14729 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14730 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14732 cat >>confdefs.h <<_ACEOF
14733 #define STACK_DIRECTION $ac_cv_c_stack_direction
14740 # fmod, logb, and frexp are found in -lm on most systems.
14741 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14743 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14744 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14745 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14746 echo $ECHO_N "(cached
) $ECHO_C" >&6
14748 ac_check_lib_save_LIBS=$LIBS
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (ac_try="$ac_link"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_link") 2>conftest.er1
14781 grep -v '^ *+' conftest.er1 >conftest.err
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14785 (exit $ac_status); } && {
14786 test -z "$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14788 } && test -s conftest$ac_exeext &&
14789 $as_test_x conftest$ac_exeext; then
14790 ac_cv_lib_m_sqrt=yes
14792 echo "$as_me: failed program was
:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_cv_lib_m_sqrt=no
14798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14799 conftest$ac_exeext conftest.$ac_ext
14800 LIBS=$ac_check_lib_save_LIBS
14802 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14803 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14804 if test $ac_cv_lib_m_sqrt = yes; then
14805 cat >>confdefs.h <<_ACEOF
14806 #define HAVE_LIBM 1
14814 # Check for mail-locking functions in a "mail" library. Probably this should
14815 # have the same check as for liblockfile below.
14817 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14818 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14819 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14820 echo $ECHO_N "(cached
) $ECHO_C" >&6
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-lmail $LIBS"
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14841 return maillock ();
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext &&
14863 $as_test_x conftest$ac_exeext; then
14864 ac_cv_lib_mail_maillock=yes
14866 echo "$as_me: failed program was
:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_cv_lib_mail_maillock=no
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14876 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14877 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14878 if test $ac_cv_lib_mail_maillock = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LIBMAIL 1
14883 LIBS="-lmail $LIBS"
14888 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14889 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14890 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14891 echo $ECHO_N "(cached
) $ECHO_C" >&6
14893 ac_check_lib_save_LIBS=$LIBS
14894 LIBS="-llockfile $LIBS"
14895 cat >conftest.$ac_ext <<_ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14902 /* Override any GCC internal prototype to avoid an error.
14903 Use char because int might match the return type of a GCC
14904 builtin and then its argument prototype would still apply. */
14912 return maillock ();
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (ac_try="$ac_link"
14919 case "(($ac_try" in
14920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921 *) ac_try_echo=$ac_try;;
14923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_link") 2>conftest.er1
14926 grep -v '^ *+' conftest.er1 >conftest.err
14928 cat conftest.err >&5
14929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14930 (exit $ac_status); } && {
14931 test -z "$ac_c_werror_flag" ||
14932 test ! -s conftest.err
14933 } && test -s conftest$ac_exeext &&
14934 $as_test_x conftest$ac_exeext; then
14935 ac_cv_lib_lockfile_maillock=yes
14937 echo "$as_me: failed program was
:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_cv_lib_lockfile_maillock=no
14943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14944 conftest$ac_exeext conftest.$ac_ext
14945 LIBS=$ac_check_lib_save_LIBS
14947 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14948 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14949 if test $ac_cv_lib_lockfile_maillock = yes; then
14950 cat >>confdefs.h <<_ACEOF
14951 #define HAVE_LIBLOCKFILE 1
14954 LIBS="-llockfile $LIBS"
14958 # If we have the shared liblockfile, assume we must use it for mail
14959 # locking (e.g. Debian). If we couldn't link against liblockfile
14960 # (no liblockfile.a installed), ensure that we don't need to.
14961 if test "$ac_cv_lib_lockfile_maillock" = no; then
14962 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14963 set dummy liblockfile.so; ac_word=$2
14964 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14965 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14966 if test "${ac_cv_prog_liblockfile+set}" = set; then
14967 echo $ECHO_N "(cached
) $ECHO_C" >&6
14969 if test -n "$liblockfile"; then
14970 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14973 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14974 for as_dir in $as_dummy
14977 test -z "$as_dir" && as_dir=.
14978 for ac_exec_ext in '' $ac_executable_extensions; do
14979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14980 ac_cv_prog_liblockfile="yes"
14981 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14991 liblockfile=$ac_cv_prog_liblockfile
14992 if test -n "$liblockfile"; then
14993 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14994 echo "${ECHO_T}$liblockfile" >&6; }
14996 { echo "$as_me:$LINENO: result
: no
" >&5
14997 echo "${ECHO_T}no
" >&6; }
15001 if test $ac_cv_prog_liblockfile = yes; then
15002 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15003 This probably means that movemail could lose mail.
15004 There may be a \`development' package to
install containing liblockfile.
" >&5
15005 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15006 This probably means that movemail could lose mail.
15007 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15008 { (exit 1); exit 1; }; }
15013 for ac_func in touchlock
15015 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15016 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15017 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15018 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15019 echo $ECHO_N "(cached
) $ECHO_C" >&6
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15029 #define $ac_func innocuous_$ac_func
15031 /* System header to define __stub macros and hopefully few prototypes,
15032 which can conflict with char $ac_func (); below.
15033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15034 <limits.h> exists even on freestanding compilers. */
15037 # include <limits.h>
15039 # include <assert.h>
15044 /* Override any GCC internal prototype to avoid an error.
15045 Use char because int might match the return type of a GCC
15046 builtin and then its argument prototype would still apply. */
15051 /* The GNU C library defines this for functions which it implements
15052 to always fail with ENOSYS. Some functions are actually named
15053 something starting with __ and the normal name is an alias. */
15054 #if defined __stub_$ac_func || defined __stub___$ac_func
15061 return $ac_func ();
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (ac_try="$ac_link"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15073 (eval "$ac_link") 2>conftest.er1
15075 grep -v '^ *+' conftest.er1 >conftest.err
15077 cat conftest.err >&5
15078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15079 (exit $ac_status); } && {
15080 test -z "$ac_c_werror_flag" ||
15081 test ! -s conftest.err
15082 } && test -s conftest$ac_exeext &&
15083 $as_test_x conftest$ac_exeext; then
15084 eval "$as_ac_var=yes"
15086 echo "$as_me: failed program was
:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15089 eval "$as_ac_var=no
"
15092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15093 conftest$ac_exeext conftest.$ac_ext
15095 ac_res=`eval echo '${'$as_ac_var'}'`
15096 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15097 echo "${ECHO_T}$ac_res" >&6; }
15098 if test `eval echo '${'$as_ac_var'}'` = yes; then
15099 cat >>confdefs.h <<_ACEOF
15100 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15107 for ac_header in maillock.h
15109 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15110 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15111 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15112 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15113 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15114 echo $ECHO_N "(cached
) $ECHO_C" >&6
15116 ac_res=`eval echo '${'$as_ac_Header'}'`
15117 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15118 echo "${ECHO_T}$ac_res" >&6; }
15120 # Is the header compilable?
15121 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15122 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 $ac_includes_default
15130 #include <$ac_header>
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 ac_header_compiler=yes
15151 echo "$as_me: failed program was
:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 ac_header_compiler=no
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15159 echo "${ECHO_T}$ac_header_compiler" >&6; }
15161 # Is the header present?
15162 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15163 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15164 cat >conftest.$ac_ext <<_ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <$ac_header>
15172 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15173 case "(($ac_try" in
15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15175 *) ac_try_echo=$ac_try;;
15177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15178 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15180 grep -v '^ *+' conftest.er1 >conftest.err
15182 cat conftest.err >&5
15183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15184 (exit $ac_status); } >/dev/null && {
15185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15186 test ! -s conftest.err
15188 ac_header_preproc=yes
15190 echo "$as_me: failed program was
:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_header_preproc=no
15196 rm -f conftest.err conftest.$ac_ext
15197 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15198 echo "${ECHO_T}$ac_header_preproc" >&6; }
15200 # So? What about this header?
15201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15203 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15204 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15205 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15207 ac_header_preproc=yes
15210 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15211 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15212 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15213 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15214 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15215 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15216 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15217 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15218 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15220 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15221 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15225 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15226 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15227 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15228 echo $ECHO_N "(cached
) $ECHO_C" >&6
15230 eval "$as_ac_Header=\
$ac_header_preproc"
15232 ac_res=`eval echo '${'$as_ac_Header'}'`
15233 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15238 cat >>confdefs.h <<_ACEOF
15239 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15316 for ac_func in gethostname getdomainname dup2 \
15317 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15318 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15319 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15320 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15321 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15322 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15323 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15324 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15326 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15327 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15328 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15329 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15330 echo $ECHO_N "(cached
) $ECHO_C" >&6
15332 cat >conftest.$ac_ext <<_ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15340 #define $ac_func innocuous_$ac_func
15342 /* System header to define __stub macros and hopefully few prototypes,
15343 which can conflict with char $ac_func (); below.
15344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15345 <limits.h> exists even on freestanding compilers. */
15348 # include <limits.h>
15350 # include <assert.h>
15355 /* Override any GCC internal prototype to avoid an error.
15356 Use char because int might match the return type of a GCC
15357 builtin and then its argument prototype would still apply. */
15362 /* The GNU C library defines this for functions which it implements
15363 to always fail with ENOSYS. Some functions are actually named
15364 something starting with __ and the normal name is an alias. */
15365 #if defined __stub_$ac_func || defined __stub___$ac_func
15372 return $ac_func ();
15377 rm -f conftest.$ac_objext conftest$ac_exeext
15378 if { (ac_try="$ac_link"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_link") 2>conftest.er1
15386 grep -v '^ *+' conftest.er1 >conftest.err
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15390 (exit $ac_status); } && {
15391 test -z "$ac_c_werror_flag" ||
15392 test ! -s conftest.err
15393 } && test -s conftest$ac_exeext &&
15394 $as_test_x conftest$ac_exeext; then
15395 eval "$as_ac_var=yes"
15397 echo "$as_me: failed program was
:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 eval "$as_ac_var=no
"
15403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15404 conftest$ac_exeext conftest.$ac_ext
15406 ac_res=`eval echo '${'$as_ac_var'}'`
15407 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15408 echo "${ECHO_T}$ac_res" >&6; }
15409 if test `eval echo '${'$as_ac_var'}'` = yes; then
15410 cat >>confdefs.h <<_ACEOF
15411 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15419 for ac_header in sys/un.h
15421 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15423 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15424 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached
) $ECHO_C" >&6
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15432 # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15434 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $ac_includes_default
15442 #include <$ac_header>
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15457 (exit $ac_status); } && {
15458 test -z "$ac_c_werror_flag" ||
15459 test ! -s conftest.err
15460 } && test -s conftest.$ac_objext; then
15461 ac_header_compiler=yes
15463 echo "$as_me: failed program was
:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 ac_header_compiler=no
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15471 echo "${ECHO_T}$ac_header_compiler" >&6; }
15473 # Is the header present?
15474 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15475 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15476 cat >conftest.$ac_ext <<_ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 #include <$ac_header>
15484 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15496 (exit $ac_status); } >/dev/null && {
15497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15500 ac_header_preproc=yes
15502 echo "$as_me: failed program was
:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_preproc=no
15508 rm -f conftest.err conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15510 echo "${ECHO_T}$ac_header_preproc" >&6; }
15512 # So? What about this header?
15513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15515 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15516 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15517 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15519 ac_header_preproc=yes
15522 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15523 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15524 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15525 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15526 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15527 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15528 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15529 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15530 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15532 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15533 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15537 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15538 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15540 echo $ECHO_N "(cached
) $ECHO_C" >&6
15542 eval "$as_ac_Header=\
$ac_header_preproc"
15544 ac_res=`eval echo '${'$as_ac_Header'}'`
15545 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15546 echo "${ECHO_T}$ac_res" >&6; }
15549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15550 cat >>confdefs.h <<_ACEOF
15551 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15563 for ac_header in $ac_header_list
15565 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15567 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15568 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15569 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15570 echo $ECHO_N "(cached
) $ECHO_C" >&6
15572 ac_res=`eval echo '${'$as_ac_Header'}'`
15573 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15574 echo "${ECHO_T}$ac_res" >&6; }
15576 # Is the header compilable?
15577 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15578 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15579 cat >conftest.$ac_ext <<_ACEOF
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15585 $ac_includes_default
15586 #include <$ac_header>
15588 rm -f conftest.$ac_objext
15589 if { (ac_try="$ac_compile"
15590 case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_compile") 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15601 (exit $ac_status); } && {
15602 test -z "$ac_c_werror_flag" ||
15603 test ! -s conftest.err
15604 } && test -s conftest.$ac_objext; then
15605 ac_header_compiler=yes
15607 echo "$as_me: failed program was
:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_header_compiler=no
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15615 echo "${ECHO_T}$ac_header_compiler" >&6; }
15617 # Is the header present?
15618 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15619 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #include <$ac_header>
15628 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15640 (exit $ac_status); } >/dev/null && {
15641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15644 ac_header_preproc=yes
15646 echo "$as_me: failed program was
:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_header_preproc=no
15652 rm -f conftest.err conftest.$ac_ext
15653 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15654 echo "${ECHO_T}$ac_header_preproc" >&6; }
15656 # So? What about this header?
15657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15659 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15660 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15661 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15663 ac_header_preproc=yes
15666 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15667 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15668 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15669 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15670 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15671 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15672 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15673 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15674 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15676 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15677 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15681 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15682 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15684 echo $ECHO_N "(cached
) $ECHO_C" >&6
15686 eval "$as_ac_Header=\
$ac_header_preproc"
15688 ac_res=`eval echo '${'$as_ac_Header'}'`
15689 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15690 echo "${ECHO_T}$ac_res" >&6; }
15693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15694 cat >>confdefs.h <<_ACEOF
15695 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15710 for ac_func in $ac_func_list
15712 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15713 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15714 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15715 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15716 echo $ECHO_N "(cached
) $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15726 #define $ac_func innocuous_$ac_func
15728 /* System header to define __stub macros and hopefully few prototypes,
15729 which can conflict with char $ac_func (); below.
15730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15731 <limits.h> exists even on freestanding compilers. */
15734 # include <limits.h>
15736 # include <assert.h>
15741 /* Override any GCC internal prototype to avoid an error.
15742 Use char because int might match the return type of a GCC
15743 builtin and then its argument prototype would still apply. */
15748 /* The GNU C library defines this for functions which it implements
15749 to always fail with ENOSYS. Some functions are actually named
15750 something starting with __ and the normal name is an alias. */
15751 #if defined __stub_$ac_func || defined __stub___$ac_func
15758 return $ac_func ();
15763 rm -f conftest.$ac_objext conftest$ac_exeext
15764 if { (ac_try="$ac_link"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15770 (eval "$ac_link") 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15776 (exit $ac_status); } && {
15777 test -z "$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 } && test -s conftest$ac_exeext &&
15780 $as_test_x conftest$ac_exeext; then
15781 eval "$as_ac_var=yes"
15783 echo "$as_me: failed program was
:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 eval "$as_ac_var=no
"
15789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15790 conftest$ac_exeext conftest.$ac_ext
15792 ac_res=`eval echo '${'$as_ac_var'}'`
15793 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15795 if test `eval echo '${'$as_ac_var'}'` = yes; then
15796 cat >>confdefs.h <<_ACEOF
15797 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15819 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15820 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15821 if test "${ac_cv_func_working_mktime+set}" = set; then
15822 echo $ECHO_N "(cached
) $ECHO_C" >&6
15824 if test "$cross_compiling" = yes; then
15825 ac_cv_func_working_mktime=no
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 /* Test program from Paul Eggert and Tony Leneis. */
15834 #ifdef TIME_WITH_SYS_TIME
15835 # include <sys/time.h>
15838 # ifdef HAVE_SYS_TIME_H
15839 # include <sys/time.h>
15845 #include <stdlib.h>
15847 #ifdef HAVE_UNISTD_H
15848 # include <unistd.h>
15852 # define alarm(X) /* empty */
15855 /* Work around redefinition to rpl_putenv by other config tests. */
15858 static time_t time_t_max;
15859 static time_t time_t_min;
15861 /* Values we'll use to set the TZ environment variable. */
15862 static char *tz_strings[] = {
15863 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15864 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15866 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15868 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15869 Based on a problem report from Andreas Jaeger. */
15871 spring_forward_gap ()
15873 /* glibc (up to about 1998-10-07) failed this test. */
15876 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15877 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15878 on systems that don't support the Olson extension, or don't have the
15879 full zoneinfo tables installed. */
15880 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15889 return mktime (&tm) != (time_t) -1;
15897 return ! (lt = localtime (&now)) || mktime (lt) == now;
15904 return (mktime_test1 (now)
15905 && mktime_test1 ((time_t) (time_t_max - now))
15906 && mktime_test1 ((time_t) (time_t_min + now)));
15912 /* Based on code from Ariel Faigon. */
15922 return tm.tm_mon == 2 && tm.tm_mday == 31;
15931 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15932 now = mktime (&tm);
15933 if (now != (time_t) -1)
15935 struct tm *lt = localtime (&now);
15937 && lt->tm_year == tm.tm_year
15938 && lt->tm_mon == tm.tm_mon
15939 && lt->tm_mday == tm.tm_mday
15940 && lt->tm_hour == tm.tm_hour
15941 && lt->tm_min == tm.tm_min
15942 && lt->tm_sec == tm.tm_sec
15943 && lt->tm_yday == tm.tm_yday
15944 && lt->tm_wday == tm.tm_wday
15945 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15946 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15955 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15956 ignoring leap seconds. */
15957 unsigned long int answer = 2527315200UL;
15961 tm.tm_year = 2050 - 1900;
15964 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15967 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15968 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15969 on systems that don't support the Olson extension, or don't have the
15970 full zoneinfo tables installed. */
15971 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15975 /* Check that the result is either a failure, or close enough
15976 to the correct answer that we can assume the discrepancy is
15977 due to leap seconds. */
15978 return (t == (time_t) -1
15979 || (0 < t && answer - 120 <= t && t <= answer + 120));
15988 /* This test makes some buggy mktime implementations loop.
15989 Give up after 60 seconds; a mktime slower than that
15990 isn't worth using anyway. */
15993 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15996 if ((time_t) -1 < 0)
15997 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15999 delta = time_t_max / 997; /* a suitable prime number */
16000 for (i = 0; i < N_STRINGS; i++)
16003 putenv (tz_strings[i]);
16005 for (t = 0; t <= time_t_max - delta; t += delta)
16006 if (! mktime_test (t))
16008 if (! (mktime_test ((time_t) 1)
16009 && mktime_test ((time_t) (60 * 60))
16010 && mktime_test ((time_t) (60 * 60 * 24))))
16013 for (j = 1; 0 < j; j *= 2)
16014 if (! bigtime_test (j))
16016 if (! bigtime_test (j - 1))
16019 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16022 rm -f conftest$ac_exeext
16023 if { (ac_try="$ac_link"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16029 (eval "$ac_link") 2>&5
16031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
16040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_cv_func_working_mktime=yes
16044 echo "$as_me: program exited with status
$ac_status" >&5
16045 echo "$as_me: failed program was
:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ( exit $ac_status )
16049 ac_cv_func_working_mktime=no
16051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16056 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16057 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16058 if test $ac_cv_func_working_mktime = no; then
16059 case " $LIBOBJS " in
16060 *" mktime.
$ac_objext "* ) ;;
16061 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16067 if test "$ac_cv_func_working_mktime" = no; then
16069 cat >>confdefs.h <<\_ACEOF
16070 #define BROKEN_MKTIME 1
16075 ac_have_func=no # yes means we've found a way to get the load average.
16077 # Make sure getloadavg.c is where it belongs, at configure-time.
16078 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16079 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16080 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16081 { (exit 1); exit 1; }; }
16085 # Check for getloadavg, but be sure not to touch the cache variable.
16086 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16087 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16088 if test "${ac_cv_func_getloadavg+set}" = set; then
16089 echo $ECHO_N "(cached
) $ECHO_C" >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16099 #define getloadavg innocuous_getloadavg
16101 /* System header to define __stub macros and hopefully few prototypes,
16102 which can conflict with char getloadavg (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16107 # include <limits.h>
16109 # include <assert.h>
16114 /* Override any GCC internal prototype to avoid an error.
16115 Use char because int might match the return type of a GCC
16116 builtin and then its argument prototype would still apply. */
16120 char getloadavg ();
16121 /* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124 #if defined __stub_getloadavg || defined __stub___getloadavg
16131 return getloadavg ();
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_link") 2>conftest.er1
16145 grep -v '^ *+' conftest.er1 >conftest.err
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16149 (exit $ac_status); } && {
16150 test -z "$ac_c_werror_flag" ||
16151 test ! -s conftest.err
16152 } && test -s conftest$ac_exeext &&
16153 $as_test_x conftest$ac_exeext; then
16154 ac_cv_func_getloadavg=yes
16156 echo "$as_me: failed program was
:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_cv_func_getloadavg=no
16162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16163 conftest$ac_exeext conftest.$ac_ext
16165 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16166 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16167 if test $ac_cv_func_getloadavg = yes; then
16172 ) && ac_have_func=yes
16174 # On HPUX9, an unprivileged user can get load averages through this function.
16176 for ac_func in pstat_getdynamic
16178 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16179 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16180 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16181 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16182 echo $ECHO_N "(cached
) $ECHO_C" >&6
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16192 #define $ac_func innocuous_$ac_func
16194 /* System header to define __stub macros and hopefully few prototypes,
16195 which can conflict with char $ac_func (); below.
16196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16197 <limits.h> exists even on freestanding compilers. */
16200 # include <limits.h>
16202 # include <assert.h>
16207 /* Override any GCC internal prototype to avoid an error.
16208 Use char because int might match the return type of a GCC
16209 builtin and then its argument prototype would still apply. */
16214 /* The GNU C library defines this for functions which it implements
16215 to always fail with ENOSYS. Some functions are actually named
16216 something starting with __ and the normal name is an alias. */
16217 #if defined __stub_$ac_func || defined __stub___$ac_func
16224 return $ac_func ();
16229 rm -f conftest.$ac_objext conftest$ac_exeext
16230 if { (ac_try="$ac_link"
16231 case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_link") 2>conftest.er1
16238 grep -v '^ *+' conftest.er1 >conftest.err
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest$ac_exeext &&
16246 $as_test_x conftest$ac_exeext; then
16247 eval "$as_ac_var=yes"
16249 echo "$as_me: failed program was
:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 eval "$as_ac_var=no
"
16255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16256 conftest$ac_exeext conftest.$ac_ext
16258 ac_res=`eval echo '${'$as_ac_var'}'`
16259 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16260 echo "${ECHO_T}$ac_res" >&6; }
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16262 cat >>confdefs.h <<_ACEOF
16263 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16270 # Solaris has libkstat which does not require root.
16272 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16273 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16274 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16275 echo $ECHO_N "(cached
) $ECHO_C" >&6
16277 ac_check_lib_save_LIBS=$LIBS
16278 LIBS="-lkstat $LIBS"
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16286 /* Override any GCC internal prototype to avoid an error.
16287 Use char because int might match the return type of a GCC
16288 builtin and then its argument prototype would still apply. */
16292 char kstat_open ();
16296 return kstat_open ();
16301 rm -f conftest.$ac_objext conftest$ac_exeext
16302 if { (ac_try="$ac_link"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_link") 2>conftest.er1
16310 grep -v '^ *+' conftest.er1 >conftest.err
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest$ac_exeext &&
16318 $as_test_x conftest$ac_exeext; then
16319 ac_cv_lib_kstat_kstat_open=yes
16321 echo "$as_me: failed program was
:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 ac_cv_lib_kstat_kstat_open=no
16327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16328 conftest$ac_exeext conftest.$ac_ext
16329 LIBS=$ac_check_lib_save_LIBS
16331 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16332 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16333 if test $ac_cv_lib_kstat_kstat_open = yes; then
16334 cat >>confdefs.h <<_ACEOF
16335 #define HAVE_LIBKSTAT 1
16338 LIBS="-lkstat $LIBS"
16342 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16344 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16345 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16346 # to get the right answer into the cache.
16347 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16348 if test $ac_have_func = no; then
16349 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16350 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16351 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16352 echo $ECHO_N "(cached
) $ECHO_C" >&6
16354 ac_check_lib_save_LIBS=$LIBS
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16363 /* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
16373 return elf_begin ();
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (ac_try="$ac_link"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_link") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest$ac_exeext &&
16395 $as_test_x conftest$ac_exeext; then
16396 ac_cv_lib_elf_elf_begin=yes
16398 echo "$as_me: failed program was
:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_cv_lib_elf_elf_begin=no
16404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16408 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16409 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16410 if test $ac_cv_lib_elf_elf_begin = yes; then
16415 if test $ac_have_func = no; then
16416 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16417 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16418 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16419 echo $ECHO_N "(cached
) $ECHO_C" >&6
16421 ac_check_lib_save_LIBS=$LIBS
16423 cat >conftest.$ac_ext <<_ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16430 /* Override any GCC internal prototype to avoid an error.
16431 Use char because int might match the return type of a GCC
16432 builtin and then its argument prototype would still apply. */
16440 return kvm_open ();
16445 rm -f conftest.$ac_objext conftest$ac_exeext
16446 if { (ac_try="$ac_link"
16447 case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_link") 2>conftest.er1
16454 grep -v '^ *+' conftest.er1 >conftest.err
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16458 (exit $ac_status); } && {
16459 test -z "$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 } && test -s conftest$ac_exeext &&
16462 $as_test_x conftest$ac_exeext; then
16463 ac_cv_lib_kvm_kvm_open=yes
16465 echo "$as_me: failed program was
:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16468 ac_cv_lib_kvm_kvm_open=no
16471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16472 conftest$ac_exeext conftest.$ac_ext
16473 LIBS=$ac_check_lib_save_LIBS
16475 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16476 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16477 if test $ac_cv_lib_kvm_kvm_open = yes; then
16481 # Check for the 4.4BSD definition of getloadavg.
16482 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16483 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16484 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16485 echo $ECHO_N "(cached
) $ECHO_C" >&6
16487 ac_check_lib_save_LIBS=$LIBS
16488 LIBS="-lutil $LIBS"
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16502 char getloadavg ();
16506 return getloadavg ();
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16524 (exit $ac_status); } && {
16525 test -z "$ac_c_werror_flag" ||
16526 test ! -s conftest.err
16527 } && test -s conftest$ac_exeext &&
16528 $as_test_x conftest$ac_exeext; then
16529 ac_cv_lib_util_getloadavg=yes
16531 echo "$as_me: failed program was
:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_lib_util_getloadavg=no
16537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16538 conftest$ac_exeext conftest.$ac_ext
16539 LIBS=$ac_check_lib_save_LIBS
16541 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16542 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16543 if test $ac_cv_lib_util_getloadavg = yes; then
16544 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16549 if test $ac_have_func = no; then
16550 # There is a commonly available library for RS/6000 AIX.
16551 # Since it is not a standard part of AIX, it might be installed locally.
16552 ac_getloadavg_LIBS=$LIBS
16553 LIBS="-L/usr
/local
/lib
$LIBS"
16554 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16555 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16556 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16557 echo $ECHO_N "(cached
) $ECHO_C" >&6
16559 ac_check_lib_save_LIBS=$LIBS
16560 LIBS="-lgetloadavg $LIBS"
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16574 char getloadavg ();
16578 return getloadavg ();
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_link") 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16596 (exit $ac_status); } && {
16597 test -z "$ac_c_werror_flag" ||
16598 test ! -s conftest.err
16599 } && test -s conftest$ac_exeext &&
16600 $as_test_x conftest$ac_exeext; then
16601 ac_cv_lib_getloadavg_getloadavg=yes
16603 echo "$as_me: failed program was
:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_cv_lib_getloadavg_getloadavg=no
16609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610 conftest$ac_exeext conftest.$ac_ext
16611 LIBS=$ac_check_lib_save_LIBS
16613 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16614 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16615 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16616 LIBS="-lgetloadavg $LIBS"
16618 LIBS=$ac_getloadavg_LIBS
16623 # Make sure it is really in the library, if we think we found it,
16624 # otherwise set up the replacement function.
16626 for ac_func in getloadavg
16628 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16629 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16630 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16631 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16632 echo $ECHO_N "(cached
) $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16642 #define $ac_func innocuous_$ac_func
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func (); below.
16646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647 <limits.h> exists even on freestanding compilers. */
16650 # include <limits.h>
16652 # include <assert.h>
16657 /* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
16664 /* The GNU C library defines this for functions which it implements
16665 to always fail with ENOSYS. Some functions are actually named
16666 something starting with __ and the normal name is an alias. */
16667 #if defined __stub_$ac_func || defined __stub___$ac_func
16674 return $ac_func ();
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_link") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest$ac_exeext &&
16696 $as_test_x conftest$ac_exeext; then
16697 eval "$as_ac_var=yes"
16699 echo "$as_me: failed program was
:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 eval "$as_ac_var=no
"
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706 conftest$ac_exeext conftest.$ac_ext
16708 ac_res=`eval echo '${'$as_ac_var'}'`
16709 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16710 echo "${ECHO_T}$ac_res" >&6; }
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16717 case " $LIBOBJS " in
16718 *" getloadavg.
$ac_objext "* ) ;;
16719 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16724 cat >>confdefs.h <<\_ACEOF
16725 #define C_GETLOADAVG 1
16728 # Figure out what our getloadavg.c needs.
16730 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16731 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16732 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16733 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16734 echo $ECHO_N "(cached
) $ECHO_C" >&6
16736 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16737 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16739 # Is the header compilable?
16740 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16741 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16742 cat >conftest.$ac_ext <<_ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16748 $ac_includes_default
16749 #include <sys/dg_sys_info.h>
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_compile") 2>conftest.er1
16760 grep -v '^ *+' conftest.er1 >conftest.err
16762 cat conftest.err >&5
16763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16764 (exit $ac_status); } && {
16765 test -z "$ac_c_werror_flag" ||
16766 test ! -s conftest.err
16767 } && test -s conftest.$ac_objext; then
16768 ac_header_compiler=yes
16770 echo "$as_me: failed program was
:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_header_compiler=no
16776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16778 echo "${ECHO_T}$ac_header_compiler" >&6; }
16780 # Is the header present?
16781 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16782 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16783 cat >conftest.$ac_ext <<_ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789 #include <sys/dg_sys_info.h>
16791 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16792 case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16797 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16799 grep -v '^ *+' conftest.er1 >conftest.err
16801 cat conftest.err >&5
16802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16803 (exit $ac_status); } >/dev/null && {
16804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16805 test ! -s conftest.err
16807 ac_header_preproc=yes
16809 echo "$as_me: failed program was
:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ac_header_preproc=no
16815 rm -f conftest.err conftest.$ac_ext
16816 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16817 echo "${ECHO_T}$ac_header_preproc" >&6; }
16819 # So? What about this header?
16820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16822 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16823 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16824 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16825 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16826 ac_header_preproc=yes
16829 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16830 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16831 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16832 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16833 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16834 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16835 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16836 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16837 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16838 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16839 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16840 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16844 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16845 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16846 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16847 echo $ECHO_N "(cached
) $ECHO_C" >&6
16849 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16851 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16852 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16855 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16858 cat >>confdefs.h <<\_ACEOF
16863 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16864 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16865 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16866 echo $ECHO_N "(cached
) $ECHO_C" >&6
16868 ac_check_lib_save_LIBS=$LIBS
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16877 /* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16883 char dg_sys_info ();
16887 return dg_sys_info ();
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest$ac_exeext &&
16909 $as_test_x conftest$ac_exeext; then
16910 ac_cv_lib_dgc_dg_sys_info=yes
16912 echo "$as_me: failed program was
:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 ac_cv_lib_dgc_dg_sys_info=no
16918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16919 conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16922 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16923 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16924 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16925 cat >>confdefs.h <<_ACEOF
16926 #define HAVE_LIBDGC 1
16937 if test "${ac_cv_header_locale_h+set}" = set; then
16938 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16939 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16940 if test "${ac_cv_header_locale_h+set}" = set; then
16941 echo $ECHO_N "(cached
) $ECHO_C" >&6
16943 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16944 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16946 # Is the header compilable?
16947 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16948 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16949 cat >conftest.$ac_ext <<_ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h. */
16955 $ac_includes_default
16956 #include <locale.h>
16958 rm -f conftest.$ac_objext
16959 if { (ac_try="$ac_compile"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_compile") 2>conftest.er1
16967 grep -v '^ *+' conftest.er1 >conftest.err
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest.$ac_objext; then
16975 ac_header_compiler=yes
16977 echo "$as_me: failed program was
:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_header_compiler=no
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16985 echo "${ECHO_T}$ac_header_compiler" >&6; }
16987 # Is the header present?
16988 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16989 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16990 cat >conftest.$ac_ext <<_ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <locale.h>
16998 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17006 grep -v '^ *+' conftest.er1 >conftest.err
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17010 (exit $ac_status); } >/dev/null && {
17011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17012 test ! -s conftest.err
17014 ac_header_preproc=yes
17016 echo "$as_me: failed program was
:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_header_preproc=no
17022 rm -f conftest.err conftest.$ac_ext
17023 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17024 echo "${ECHO_T}$ac_header_preproc" >&6; }
17026 # So? What about this header?
17027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17029 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17030 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17031 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17032 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17033 ac_header_preproc=yes
17036 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17037 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17038 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17039 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17040 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17041 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17042 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17043 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17044 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17045 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17046 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17047 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17051 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17052 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17053 if test "${ac_cv_header_locale_h+set}" = set; then
17054 echo $ECHO_N "(cached
) $ECHO_C" >&6
17056 ac_cv_header_locale_h=$ac_header_preproc
17058 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17059 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17065 for ac_func in setlocale
17067 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17068 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17069 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17070 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17071 echo $ECHO_N "(cached
) $ECHO_C" >&6
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17081 #define $ac_func innocuous_$ac_func
17083 /* System header to define __stub macros and hopefully few prototypes,
17084 which can conflict with char $ac_func (); below.
17085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17086 <limits.h> exists even on freestanding compilers. */
17089 # include <limits.h>
17091 # include <assert.h>
17096 /* Override any GCC internal prototype to avoid an error.
17097 Use char because int might match the return type of a GCC
17098 builtin and then its argument prototype would still apply. */
17103 /* The GNU C library defines this for functions which it implements
17104 to always fail with ENOSYS. Some functions are actually named
17105 something starting with __ and the normal name is an alias. */
17106 #if defined __stub_$ac_func || defined __stub___$ac_func
17113 return $ac_func ();
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_link") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1 >conftest.err
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest$ac_exeext &&
17135 $as_test_x conftest$ac_exeext; then
17136 eval "$as_ac_var=yes"
17138 echo "$as_me: failed program was
:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 eval "$as_ac_var=no
"
17144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17145 conftest$ac_exeext conftest.$ac_ext
17147 ac_res=`eval echo '${'$as_ac_var'}'`
17148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17149 echo "${ECHO_T}$ac_res" >&6; }
17150 if test `eval echo '${'$as_ac_var'}'` = yes; then
17151 cat >>confdefs.h <<_ACEOF
17152 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17159 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17160 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17161 # Irix 4.0.5F has the header but not the library.
17162 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17165 cat >>confdefs.h <<\_ACEOF
17171 if test $ac_have_func = no; then
17172 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17173 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17174 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17175 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17176 echo $ECHO_N "(cached
) $ECHO_C" >&6
17178 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17179 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17181 # Is the header compilable?
17182 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17183 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17191 #include <inq_stats/cpustats.h>
17193 rm -f conftest.$ac_objext
17194 if { (ac_try="$ac_compile"
17195 case "(($ac_try" in
17196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197 *) ac_try_echo=$ac_try;;
17199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17200 (eval "$ac_compile") 2>conftest.er1
17202 grep -v '^ *+' conftest.er1 >conftest.err
17204 cat conftest.err >&5
17205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17206 (exit $ac_status); } && {
17207 test -z "$ac_c_werror_flag" ||
17208 test ! -s conftest.err
17209 } && test -s conftest.$ac_objext; then
17210 ac_header_compiler=yes
17212 echo "$as_me: failed program was
:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 ac_header_compiler=no
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17219 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17220 echo "${ECHO_T}$ac_header_compiler" >&6; }
17222 # Is the header present?
17223 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17224 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17225 cat >conftest.$ac_ext <<_ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h. */
17231 #include <inq_stats/cpustats.h>
17233 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17241 grep -v '^ *+' conftest.er1 >conftest.err
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17245 (exit $ac_status); } >/dev/null && {
17246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17249 ac_header_preproc=yes
17251 echo "$as_me: failed program was
:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17254 ac_header_preproc=no
17257 rm -f conftest.err conftest.$ac_ext
17258 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17259 echo "${ECHO_T}$ac_header_preproc" >&6; }
17261 # So? What about this header?
17262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17264 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17265 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17266 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17267 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17268 ac_header_preproc=yes
17271 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17272 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17273 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17274 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17275 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17276 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17277 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17278 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17279 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17280 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17281 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17282 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17286 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17287 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17288 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17289 echo $ECHO_N "(cached
) $ECHO_C" >&6
17291 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17293 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17294 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17297 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17300 cat >>confdefs.h <<\_ACEOF
17305 cat >>confdefs.h <<\_ACEOF
17314 if test $ac_have_func = no; then
17315 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17316 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17317 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17318 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17319 echo $ECHO_N "(cached
) $ECHO_C" >&6
17321 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17322 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17324 # Is the header compilable?
17325 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17326 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17334 #include <sys/cpustats.h>
17336 rm -f conftest.$ac_objext
17337 if { (ac_try="$ac_compile"
17338 case "(($ac_try" in
17339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17340 *) ac_try_echo=$ac_try;;
17342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17343 (eval "$ac_compile") 2>conftest.er1
17345 grep -v '^ *+' conftest.er1 >conftest.err
17347 cat conftest.err >&5
17348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17349 (exit $ac_status); } && {
17350 test -z "$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17352 } && test -s conftest.$ac_objext; then
17353 ac_header_compiler=yes
17355 echo "$as_me: failed program was
:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 ac_header_compiler=no
17361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17363 echo "${ECHO_T}$ac_header_compiler" >&6; }
17365 # Is the header present?
17366 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17367 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 #include <sys/cpustats.h>
17376 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17384 grep -v '^ *+' conftest.er1 >conftest.err
17386 cat conftest.err >&5
17387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17388 (exit $ac_status); } >/dev/null && {
17389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17390 test ! -s conftest.err
17392 ac_header_preproc=yes
17394 echo "$as_me: failed program was
:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17397 ac_header_preproc=no
17400 rm -f conftest.err conftest.$ac_ext
17401 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17402 echo "${ECHO_T}$ac_header_preproc" >&6; }
17404 # So? What about this header?
17405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17407 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17408 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17409 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17410 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17411 ac_header_preproc=yes
17414 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17415 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17416 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17417 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17418 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17419 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17420 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17421 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17422 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17423 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17424 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17425 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17429 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17430 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17431 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17432 echo $ECHO_N "(cached
) $ECHO_C" >&6
17434 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17436 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17437 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17440 if test $ac_cv_header_sys_cpustats_h = yes; then
17441 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17450 if test $ac_have_func = no; then
17452 for ac_header in mach/mach.h
17454 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17455 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17456 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17457 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17459 echo $ECHO_N "(cached
) $ECHO_C" >&6
17461 ac_res=`eval echo '${'$as_ac_Header'}'`
17462 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17463 echo "${ECHO_T}$ac_res" >&6; }
17465 # Is the header compilable?
17466 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17467 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 $ac_includes_default
17475 #include <$ac_header>
17477 rm -f conftest.$ac_objext
17478 if { (ac_try="$ac_compile"
17479 case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_compile") 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17490 (exit $ac_status); } && {
17491 test -z "$ac_c_werror_flag" ||
17492 test ! -s conftest.err
17493 } && test -s conftest.$ac_objext; then
17494 ac_header_compiler=yes
17496 echo "$as_me: failed program was
:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 ac_header_compiler=no
17502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17504 echo "${ECHO_T}$ac_header_compiler" >&6; }
17506 # Is the header present?
17507 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17508 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17509 cat >conftest.$ac_ext <<_ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h. */
17515 #include <$ac_header>
17517 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17529 (exit $ac_status); } >/dev/null && {
17530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17533 ac_header_preproc=yes
17535 echo "$as_me: failed program was
:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_header_preproc=no
17541 rm -f conftest.err conftest.$ac_ext
17542 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17543 echo "${ECHO_T}$ac_header_preproc" >&6; }
17545 # So? What about this header?
17546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17548 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17549 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17550 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17552 ac_header_preproc=yes
17555 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17556 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17557 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17558 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17559 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17560 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17561 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17562 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17563 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17565 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17566 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17570 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17571 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17573 echo $ECHO_N "(cached
) $ECHO_C" >&6
17575 eval "$as_ac_Header=\
$ac_header_preproc"
17577 ac_res=`eval echo '${'$as_ac_Header'}'`
17578 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17579 echo "${ECHO_T}$ac_res" >&6; }
17582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17583 cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17594 for ac_header in nlist.h
17596 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17597 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17598 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17599 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17600 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17601 echo $ECHO_N "(cached
) $ECHO_C" >&6
17603 ac_res=`eval echo '${'$as_ac_Header'}'`
17604 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17605 echo "${ECHO_T}$ac_res" >&6; }
17607 # Is the header compilable?
17608 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17609 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17610 cat >conftest.$ac_ext <<_ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17617 #include <$ac_header>
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest.$ac_objext; then
17636 ac_header_compiler=yes
17638 echo "$as_me: failed program was
:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_header_compiler=no
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17646 echo "${ECHO_T}$ac_header_compiler" >&6; }
17648 # Is the header present?
17649 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17650 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 #include <$ac_header>
17659 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17671 (exit $ac_status); } >/dev/null && {
17672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17675 ac_header_preproc=yes
17677 echo "$as_me: failed program was
:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_header_preproc=no
17683 rm -f conftest.err conftest.$ac_ext
17684 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17685 echo "${ECHO_T}$ac_header_preproc" >&6; }
17687 # So? What about this header?
17688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17690 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17691 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17692 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17694 ac_header_preproc=yes
17697 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17698 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17699 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17700 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17701 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17702 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17703 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17704 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17705 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17707 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17708 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17712 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17713 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17714 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17715 echo $ECHO_N "(cached
) $ECHO_C" >&6
17717 eval "$as_ac_Header=\
$ac_header_preproc"
17719 ac_res=`eval echo '${'$as_ac_Header'}'`
17720 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17721 echo "${ECHO_T}$ac_res" >&6; }
17724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17725 cat >>confdefs.h <<_ACEOF
17726 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17728 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17729 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17730 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17731 echo $ECHO_N "(cached
) $ECHO_C" >&6
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17744 static struct nlist ac_aggr;
17745 if (ac_aggr.n_un.n_name)
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest.$ac_objext; then
17768 ac_cv_member_struct_nlist_n_un_n_name=yes
17770 echo "$as_me: failed program was
:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17784 static struct nlist ac_aggr;
17785 if (sizeof ac_aggr.n_un.n_name)
17791 rm -f conftest.$ac_objext
17792 if { (ac_try="$ac_compile"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17798 (eval "$ac_compile") 2>conftest.er1
17800 grep -v '^ *+' conftest.er1 >conftest.err
17802 cat conftest.err >&5
17803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest.$ac_objext; then
17808 ac_cv_member_struct_nlist_n_un_n_name=yes
17810 echo "$as_me: failed program was
:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 ac_cv_member_struct_nlist_n_un_n_name=no
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17822 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17823 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17830 cat >>confdefs.h <<\_ACEOF
17831 #define NLIST_NAME_UNION 1
17845 # Some definitions of getloadavg require that the program be installed setgid.
17846 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17847 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17848 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17849 echo $ECHO_N "(cached
) $ECHO_C" >&6
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17858 #ifdef LDAV_PRIVILEGED
17859 Yowza Am I SETGID yet
17862 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17863 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17864 ac_cv_func_getloadavg_setgid=yes
17866 ac_cv_func_getloadavg_setgid=no
17871 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17872 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17873 if test $ac_cv_func_getloadavg_setgid = yes; then
17876 cat >>confdefs.h <<\_ACEOF
17877 #define GETLOADAVG_PRIVILEGED 1
17884 if test $ac_cv_func_getloadavg_setgid = yes; then
17885 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17886 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17887 if test "${ac_cv_group_kmem+set}" = set; then
17888 echo $ECHO_N "(cached
) $ECHO_C" >&6
17890 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17891 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17892 # If we got an error (system does not support symlinks), try without -L.
17893 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17894 ac_cv_group_kmem=`echo $ac_ls_output \
17895 | sed -ne 's/[ ][ ]*/ /g;
17896 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17900 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17901 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17902 KMEM_GROUP=$ac_cv_group_kmem
17904 if test "x
$ac_save_LIBS" = x; then
17905 GETLOADAVG_LIBS=$LIBS
17907 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17913 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17914 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17915 if test "${ac_cv_sys_largefile_source+set}" = set; then
17916 echo $ECHO_N "(cached
) $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17929 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (ac_try="$ac_link"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest$ac_exeext &&
17951 $as_test_x conftest$ac_exeext; then
17952 ac_cv_sys_largefile_source=no; break
17954 echo "$as_me: failed program was
:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17961 conftest$ac_exeext conftest.$ac_ext
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 #define _LARGEFILE_SOURCE 1
17973 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (ac_try="$ac_link"
17980 case "(($ac_try" in
17981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982 *) ac_try_echo=$ac_try;;
17984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_link") 2>conftest.er1
17987 grep -v '^ *+' conftest.er1 >conftest.err
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17991 (exit $ac_status); } && {
17992 test -z "$ac_c_werror_flag" ||
17993 test ! -s conftest.err
17994 } && test -s conftest$ac_exeext &&
17995 $as_test_x conftest$ac_exeext; then
17996 ac_cv_sys_largefile_source=1; break
17998 echo "$as_me: failed program was
:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18005 conftest$ac_exeext conftest.$ac_ext
18006 ac_cv_sys_largefile_source=unknown
18010 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18011 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18012 case $ac_cv_sys_largefile_source in #(
18015 cat >>confdefs.h <<_ACEOF
18016 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18022 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18023 # in glibc 2.1.3, but that breaks too many other things.
18024 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18025 if test $ac_cv_sys_largefile_source != unknown; then
18027 cat >>confdefs.h <<\_ACEOF
18028 #define HAVE_FSEEKO 1
18034 # Configure getopt.
18035 # getopt.m4 serial 10
18037 # The getopt module assume you want GNU getopt, with getopt_long etc,
18038 # rather than vanilla POSIX getopt. This means your your code should
18039 # always include <getopt.h> for the getopt prototypes.
18051 # Prerequisites of lib/getopt*.
18058 for ac_header in getopt.h
18060 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18061 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18062 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18063 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18064 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18065 echo $ECHO_N "(cached
) $ECHO_C" >&6
18067 ac_res=`eval echo '${'$as_ac_Header'}'`
18068 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18069 echo "${ECHO_T}$ac_res" >&6; }
18071 # Is the header compilable?
18072 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18073 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18074 cat >conftest.$ac_ext <<_ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18080 $ac_includes_default
18081 #include <$ac_header>
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_compile") 2>conftest.er1
18092 grep -v '^ *+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18096 (exit $ac_status); } && {
18097 test -z "$ac_c_werror_flag" ||
18098 test ! -s conftest.err
18099 } && test -s conftest.$ac_objext; then
18100 ac_header_compiler=yes
18102 echo "$as_me: failed program was
:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_header_compiler=no
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18109 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18110 echo "${ECHO_T}$ac_header_compiler" >&6; }
18112 # Is the header present?
18113 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18114 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 #include <$ac_header>
18123 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18131 grep -v '^ *+' conftest.er1 >conftest.err
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18135 (exit $ac_status); } >/dev/null && {
18136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18137 test ! -s conftest.err
18139 ac_header_preproc=yes
18141 echo "$as_me: failed program was
:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 ac_header_preproc=no
18147 rm -f conftest.err conftest.$ac_ext
18148 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18149 echo "${ECHO_T}$ac_header_preproc" >&6; }
18151 # So? What about this header?
18152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18154 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18155 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18156 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18158 ac_header_preproc=yes
18161 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18162 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18163 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18164 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18165 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18166 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18167 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18168 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18169 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18171 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18172 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18176 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18177 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18178 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18179 echo $ECHO_N "(cached
) $ECHO_C" >&6
18181 eval "$as_ac_Header=\
$ac_header_preproc"
18183 ac_res=`eval echo '${'$as_ac_Header'}'`
18184 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18185 echo "${ECHO_T}$ac_res" >&6; }
18188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18189 cat >>confdefs.h <<_ACEOF
18190 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18199 if test -z "$GETOPT_H"; then
18201 for ac_func in getopt_long_only
18203 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18204 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18205 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18206 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18207 echo $ECHO_N "(cached
) $ECHO_C" >&6
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define $ac_func innocuous_$ac_func
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char $ac_func (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18225 # include <limits.h>
18227 # include <assert.h>
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18239 /* The GNU C library defines this for functions which it implements
18240 to always fail with ENOSYS. Some functions are actually named
18241 something starting with __ and the normal name is an alias. */
18242 #if defined __stub_$ac_func || defined __stub___$ac_func
18249 return $ac_func ();
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (ac_try="$ac_link"
18256 case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_link") 2>conftest.er1
18263 grep -v '^ *+' conftest.er1 >conftest.err
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18267 (exit $ac_status); } && {
18268 test -z "$ac_c_werror_flag" ||
18269 test ! -s conftest.err
18270 } && test -s conftest$ac_exeext &&
18271 $as_test_x conftest$ac_exeext; then
18272 eval "$as_ac_var=yes"
18274 echo "$as_me: failed program was
:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 eval "$as_ac_var=no
"
18280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18281 conftest$ac_exeext conftest.$ac_ext
18283 ac_res=`eval echo '${'$as_ac_var'}'`
18284 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18285 echo "${ECHO_T}$ac_res" >&6; }
18286 if test `eval echo '${'$as_ac_var'}'` = yes; then
18287 cat >>confdefs.h <<_ACEOF
18288 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18298 if test -z "$GETOPT_H"; then
18299 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18300 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18301 if test "${ac_cv_have_decl_optreset+set}" = set; then
18302 echo $ECHO_N "(cached
) $ECHO_C" >&6
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18310 #include <getopt.h>
18323 rm -f conftest.$ac_objext
18324 if { (ac_try="$ac_compile"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_compile") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18336 (exit $ac_status); } && {
18337 test -z "$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 } && test -s conftest.$ac_objext; then
18340 ac_cv_have_decl_optreset=yes
18342 echo "$as_me: failed program was
:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_cv_have_decl_optreset=no
18348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18350 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18351 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18352 if test $ac_cv_have_decl_optreset = yes; then
18358 if test -z "$GETOPT_H"; then
18359 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18360 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18361 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18362 echo $ECHO_N "(cached
) $ECHO_C" >&6
18364 if test "$cross_compiling" = yes; then
18365 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18366 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18367 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18368 echo $ECHO_N "(cached
) $ECHO_C" >&6
18370 cat >conftest.$ac_ext <<_ACEOF
18373 cat confdefs.h >>conftest.$ac_ext
18374 cat >>conftest.$ac_ext <<_ACEOF
18375 /* end confdefs.h. */
18376 #include <getopt.h>
18381 #ifndef getopt_clip
18382 (void) getopt_clip;
18389 rm -f conftest.$ac_objext
18390 if { (ac_try="$ac_compile"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_compile") 2>conftest.er1
18398 grep -v '^ *+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18402 (exit $ac_status); } && {
18403 test -z "$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 } && test -s conftest.$ac_objext; then
18406 ac_cv_have_decl_getopt_clip=yes
18408 echo "$as_me: failed program was
:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 ac_cv_have_decl_getopt_clip=no
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18416 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18417 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18418 if test $ac_cv_have_decl_getopt_clip = yes; then
18419 gl_cv_func_gnu_getopt=no
18421 gl_cv_func_gnu_getopt=yes
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <getopt.h>
18437 myargv[0] = "conftest
";
18440 return getopt (2, myargv, "+a
") != '?';
18446 rm -f conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>&5
18455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18457 { (case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_try") 2>&5
18464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 gl_cv_func_gnu_getopt=yes
18468 echo "$as_me: program exited with status
$ac_status" >&5
18469 echo "$as_me: failed program was
:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ( exit $ac_status )
18473 gl_cv_func_gnu_getopt=no
18475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18480 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18481 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18482 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18489 if test -n "$GETOPT_H"; then
18494 cat >>confdefs.h <<\_ACEOF
18495 #define __GETOPT_PREFIX rpl_
18501 GETOPTOBJS='getopt.o getopt1.o'
18508 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18509 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18510 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18511 echo $ECHO_N "(cached
) $ECHO_C" >&6
18513 # Use it with a single arg.
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520 $ac_includes_default
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_compile") 2>conftest.er1
18538 grep -v '^ *+' conftest.er1 >conftest.err
18540 cat conftest.err >&5
18541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18542 (exit $ac_status); } && {
18543 test -z "$ac_c_werror_flag" ||
18544 test ! -s conftest.err
18545 } && test -s conftest.$ac_objext; then
18546 ac_cv_func_getpgrp_void=no
18548 echo "$as_me: failed program was
:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_func_getpgrp_void=yes
18554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18558 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18559 if test $ac_cv_func_getpgrp_void = yes; then
18561 cat >>confdefs.h <<\_ACEOF
18562 #define GETPGRP_VOID 1
18569 for ac_func in strftime
18571 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18572 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18573 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached
) $ECHO_C" >&6
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18593 # include <limits.h>
18595 # include <assert.h>
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18617 return $ac_func ();
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1 >conftest.err
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest$ac_exeext &&
18639 $as_test_x conftest$ac_exeext; then
18640 eval "$as_ac_var=yes"
18642 echo "$as_me: failed program was
:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 eval "$as_ac_var=no
"
18648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18649 conftest$ac_exeext conftest.$ac_ext
18651 ac_res=`eval echo '${'$as_ac_var'}'`
18652 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18653 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_var'}'` = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18660 # strftime is in -lintl on SCO UNIX.
18661 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18662 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18663 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18664 echo $ECHO_N "(cached
) $ECHO_C" >&6
18666 ac_check_lib_save_LIBS=$LIBS
18667 LIBS="-lintl $LIBS"
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18675 /* Override any GCC internal prototype to avoid an error.
18676 Use char because int might match the return type of a GCC
18677 builtin and then its argument prototype would still apply. */
18685 return strftime ();
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest$ac_exeext &&
18707 $as_test_x conftest$ac_exeext; then
18708 ac_cv_lib_intl_strftime=yes
18710 echo "$as_me: failed program was
:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_lib_intl_strftime=no
18716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18717 conftest$ac_exeext conftest.$ac_ext
18718 LIBS=$ac_check_lib_save_LIBS
18720 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18721 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18722 if test $ac_cv_lib_intl_strftime = yes; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_STRFTIME 1
18727 LIBS="-lintl $LIBS"
18736 for ac_func in grantpt
18738 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18739 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18740 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18741 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18742 echo $ECHO_N "(cached
) $ECHO_C" >&6
18744 cat >conftest.$ac_ext <<_ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h. */
18750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18752 #define $ac_func innocuous_$ac_func
18754 /* System header to define __stub macros and hopefully few prototypes,
18755 which can conflict with char $ac_func (); below.
18756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18757 <limits.h> exists even on freestanding compilers. */
18760 # include <limits.h>
18762 # include <assert.h>
18767 /* Override any GCC internal prototype to avoid an error.
18768 Use char because int might match the return type of a GCC
18769 builtin and then its argument prototype would still apply. */
18774 /* The GNU C library defines this for functions which it implements
18775 to always fail with ENOSYS. Some functions are actually named
18776 something starting with __ and the normal name is an alias. */
18777 #if defined __stub_$ac_func || defined __stub___$ac_func
18784 return $ac_func ();
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (ac_try="$ac_link"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_link") 2>conftest.er1
18798 grep -v '^ *+' conftest.er1 >conftest.err
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest$ac_exeext &&
18806 $as_test_x conftest$ac_exeext; then
18807 eval "$as_ac_var=yes"
18809 echo "$as_me: failed program was
:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18812 eval "$as_ac_var=no
"
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18818 ac_res=`eval echo '${'$as_ac_var'}'`
18819 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18820 echo "${ECHO_T}$ac_res" >&6; }
18821 if test `eval echo '${'$as_ac_var'}'` = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18830 # PTY-related GNU extensions.
18832 for ac_func in getpt
18834 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18835 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18836 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18837 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18838 echo $ECHO_N "(cached
) $ECHO_C" >&6
18840 cat >conftest.$ac_ext <<_ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18848 #define $ac_func innocuous_$ac_func
18850 /* System header to define __stub macros and hopefully few prototypes,
18851 which can conflict with char $ac_func (); below.
18852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18853 <limits.h> exists even on freestanding compilers. */
18856 # include <limits.h>
18858 # include <assert.h>
18863 /* Override any GCC internal prototype to avoid an error.
18864 Use char because int might match the return type of a GCC
18865 builtin and then its argument prototype would still apply. */
18870 /* The GNU C library defines this for functions which it implements
18871 to always fail with ENOSYS. Some functions are actually named
18872 something starting with __ and the normal name is an alias. */
18873 #if defined __stub_$ac_func || defined __stub___$ac_func
18880 return $ac_func ();
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18894 grep -v '^ *+' conftest.er1 >conftest.err
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18898 (exit $ac_status); } && {
18899 test -z "$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 } && test -s conftest$ac_exeext &&
18902 $as_test_x conftest$ac_exeext; then
18903 eval "$as_ac_var=yes"
18905 echo "$as_me: failed program was
:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 eval "$as_ac_var=no
"
18911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18912 conftest$ac_exeext conftest.$ac_ext
18914 ac_res=`eval echo '${'$as_ac_var'}'`
18915 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18916 echo "${ECHO_T}$ac_res" >&6; }
18917 if test `eval echo '${'$as_ac_var'}'` = yes; then
18918 cat >>confdefs.h <<_ACEOF
18919 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18926 # Check this now, so that we will NOT find the above functions in ncurses.
18927 # That is because we have not set up to link ncurses in lib-src.
18928 # It's better to believe a function is not available
18929 # than to expect to find it in ncurses.
18931 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18932 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18933 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18934 echo $ECHO_N "(cached
) $ECHO_C" >&6
18936 ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-lncurses $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext &&
18977 $as_test_x conftest$ac_exeext; then
18978 ac_cv_lib_ncurses_tparm=yes
18980 echo "$as_me: failed program was
:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18983 ac_cv_lib_ncurses_tparm=no
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987 conftest$ac_exeext conftest.$ac_ext
18988 LIBS=$ac_check_lib_save_LIBS
18990 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18991 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18992 if test $ac_cv_lib_ncurses_tparm = yes; then
18993 cat >>confdefs.h <<_ACEOF
18994 #define HAVE_LIBNCURSES 1
18997 LIBS="-lncurses $LIBS"
19002 # Do we need the Hesiod library to provide the support routines?
19003 if test "$with_hesiod" = yes ; then
19004 # Don't set $LIBS here -- see comments above.
19006 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19007 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19008 if test "${ac_cv_func_res_send+set}" = set; then
19009 echo $ECHO_N "(cached
) $ECHO_C" >&6
19011 cat >conftest.$ac_ext <<_ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19017 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19019 #define res_send innocuous_res_send
19021 /* System header to define __stub macros and hopefully few prototypes,
19022 which can conflict with char res_send (); below.
19023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19024 <limits.h> exists even on freestanding compilers. */
19027 # include <limits.h>
19029 # include <assert.h>
19034 /* Override any GCC internal prototype to avoid an error.
19035 Use char because int might match the return type of a GCC
19036 builtin and then its argument prototype would still apply. */
19041 /* The GNU C library defines this for functions which it implements
19042 to always fail with ENOSYS. Some functions are actually named
19043 something starting with __ and the normal name is an alias. */
19044 #if defined __stub_res_send || defined __stub___res_send
19051 return res_send ();
19056 rm -f conftest.$ac_objext conftest$ac_exeext
19057 if { (ac_try="$ac_link"
19058 case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_link") 2>conftest.er1
19065 grep -v '^ *+' conftest.er1 >conftest.err
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19069 (exit $ac_status); } && {
19070 test -z "$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 } && test -s conftest$ac_exeext &&
19073 $as_test_x conftest$ac_exeext; then
19074 ac_cv_func_res_send=yes
19076 echo "$as_me: failed program was
:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19079 ac_cv_func_res_send=no
19082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19083 conftest$ac_exeext conftest.$ac_ext
19085 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19086 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19087 if test $ac_cv_func_res_send = yes; then
19090 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19091 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19092 if test "${ac_cv_func___res_send+set}" = set; then
19093 echo $ECHO_N "(cached
) $ECHO_C" >&6
19095 cat >conftest.$ac_ext <<_ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19103 #define __res_send innocuous___res_send
19105 /* System header to define __stub macros and hopefully few prototypes,
19106 which can conflict with char __res_send (); below.
19107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19108 <limits.h> exists even on freestanding compilers. */
19111 # include <limits.h>
19113 # include <assert.h>
19118 /* Override any GCC internal prototype to avoid an error.
19119 Use char because int might match the return type of a GCC
19120 builtin and then its argument prototype would still apply. */
19124 char __res_send ();
19125 /* The GNU C library defines this for functions which it implements
19126 to always fail with ENOSYS. Some functions are actually named
19127 something starting with __ and the normal name is an alias. */
19128 #if defined __stub___res_send || defined __stub_____res_send
19135 return __res_send ();
19140 rm -f conftest.$ac_objext conftest$ac_exeext
19141 if { (ac_try="$ac_link"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_link") 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest$ac_exeext &&
19157 $as_test_x conftest$ac_exeext; then
19158 ac_cv_func___res_send=yes
19160 echo "$as_me: failed program was
:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19163 ac_cv_func___res_send=no
19166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19167 conftest$ac_exeext conftest.$ac_ext
19169 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19170 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19171 if test $ac_cv_func___res_send = yes; then
19174 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19175 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19176 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19177 echo $ECHO_N "(cached
) $ECHO_C" >&6
19179 ac_check_lib_save_LIBS=$LIBS
19180 LIBS="-lresolv $LIBS"
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19188 /* Override any GCC internal prototype to avoid an error.
19189 Use char because int might match the return type of a GCC
19190 builtin and then its argument prototype would still apply. */
19198 return res_send ();
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest$ac_exeext &&
19220 $as_test_x conftest$ac_exeext; then
19221 ac_cv_lib_resolv_res_send=yes
19223 echo "$as_me: failed program was
:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_cv_lib_resolv_res_send=no
19229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19230 conftest$ac_exeext conftest.$ac_ext
19231 LIBS=$ac_check_lib_save_LIBS
19233 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19234 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19235 if test $ac_cv_lib_resolv_res_send = yes; then
19238 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19239 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19240 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19241 echo $ECHO_N "(cached
) $ECHO_C" >&6
19243 ac_check_lib_save_LIBS=$LIBS
19244 LIBS="-lresolv $LIBS"
19245 cat >conftest.$ac_ext <<_ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19252 /* Override any GCC internal prototype to avoid an error.
19253 Use char because int might match the return type of a GCC
19254 builtin and then its argument prototype would still apply. */
19258 char __res_send ();
19262 return __res_send ();
19267 rm -f conftest.$ac_objext conftest$ac_exeext
19268 if { (ac_try="$ac_link"
19269 case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_link") 2>conftest.er1
19276 grep -v '^ *+' conftest.er1 >conftest.err
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19280 (exit $ac_status); } && {
19281 test -z "$ac_c_werror_flag" ||
19282 test ! -s conftest.err
19283 } && test -s conftest$ac_exeext &&
19284 $as_test_x conftest$ac_exeext; then
19285 ac_cv_lib_resolv___res_send=yes
19287 echo "$as_me: failed program was
:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_cv_lib_resolv___res_send=no
19293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19294 conftest$ac_exeext conftest.$ac_ext
19295 LIBS=$ac_check_lib_save_LIBS
19297 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19298 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19299 if test $ac_cv_lib_resolv___res_send = yes; then
19309 if test "$resolv" = yes ; then
19312 cat >>confdefs.h <<\_ACEOF
19313 #define HAVE_LIBRESOLV 1
19319 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19320 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19321 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19322 echo $ECHO_N "(cached
) $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19332 #define hes_getmailhost innocuous_hes_getmailhost
19334 /* System header to define __stub macros and hopefully few prototypes,
19335 which can conflict with char hes_getmailhost (); below.
19336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19337 <limits.h> exists even on freestanding compilers. */
19340 # include <limits.h>
19342 # include <assert.h>
19345 #undef hes_getmailhost
19347 /* Override any GCC internal prototype to avoid an error.
19348 Use char because int might match the return type of a GCC
19349 builtin and then its argument prototype would still apply. */
19353 char hes_getmailhost ();
19354 /* The GNU C library defines this for functions which it implements
19355 to always fail with ENOSYS. Some functions are actually named
19356 something starting with __ and the normal name is an alias. */
19357 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19364 return hes_getmailhost ();
19369 rm -f conftest.$ac_objext conftest$ac_exeext
19370 if { (ac_try="$ac_link"
19371 case "(($ac_try" in
19372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19373 *) ac_try_echo=$ac_try;;
19375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19376 (eval "$ac_link") 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19382 (exit $ac_status); } && {
19383 test -z "$ac_c_werror_flag" ||
19384 test ! -s conftest.err
19385 } && test -s conftest$ac_exeext &&
19386 $as_test_x conftest$ac_exeext; then
19387 ac_cv_func_hes_getmailhost=yes
19389 echo "$as_me: failed program was
:" >&5
19390 sed 's/^/| /' conftest.$ac_ext >&5
19392 ac_cv_func_hes_getmailhost=no
19395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19396 conftest$ac_exeext conftest.$ac_ext
19398 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19399 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19400 if test $ac_cv_func_hes_getmailhost = yes; then
19403 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19404 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19405 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19406 echo $ECHO_N "(cached
) $ECHO_C" >&6
19408 ac_check_lib_save_LIBS=$LIBS
19409 LIBS="-lhesiod $RESOLVLIB $LIBS"
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19423 char hes_getmailhost ();
19427 return hes_getmailhost ();
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19450 ac_cv_lib_hesiod_hes_getmailhost=yes
19452 echo "$as_me: failed program was
:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_cv_lib_hesiod_hes_getmailhost=no
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19462 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19463 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19464 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19466 cat >>confdefs.h <<\_ACEOF
19467 #define HAVE_LIBHESIOD 1
19478 # These tell us which Kerberos-related libraries to use.
19479 if test "${with_kerberos+set}" = set; then
19481 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19482 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19483 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19484 echo $ECHO_N "(cached
) $ECHO_C" >&6
19486 ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-lcom_err $LIBS"
19488 cat >conftest.$ac_ext <<_ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest$ac_exeext &&
19527 $as_test_x conftest$ac_exeext; then
19528 ac_cv_lib_com_err_com_err=yes
19530 echo "$as_me: failed program was
:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_lib_com_err_com_err=no
19536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19540 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19541 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19542 if test $ac_cv_lib_com_err_com_err = yes; then
19543 cat >>confdefs.h <<_ACEOF
19544 #define HAVE_LIBCOM_ERR 1
19547 LIBS="-lcom_err $LIBS"
19552 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19553 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19554 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19555 echo $ECHO_N "(cached
) $ECHO_C" >&6
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lk5crypto $LIBS"
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19572 char mit_des_cbc_encrypt ();
19576 return mit_des_cbc_encrypt ();
19581 rm -f conftest.$ac_objext conftest$ac_exeext
19582 if { (ac_try="$ac_link"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_link") 2>conftest.er1
19590 grep -v '^ *+' conftest.er1 >conftest.err
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest$ac_exeext &&
19598 $as_test_x conftest$ac_exeext; then
19599 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19601 echo "$as_me: failed program was
:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19611 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19612 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19613 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_LIBK5CRYPTO 1
19618 LIBS="-lk5crypto $LIBS"
19623 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19624 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19625 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19626 echo $ECHO_N "(cached
) $ECHO_C" >&6
19628 ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lcrypto $LIBS"
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19643 char mit_des_cbc_encrypt ();
19647 return mit_des_cbc_encrypt ();
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (ac_try="$ac_link"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_link") 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest$ac_exeext &&
19669 $as_test_x conftest$ac_exeext; then
19670 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19672 echo "$as_me: failed program was
:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679 conftest$ac_exeext conftest.$ac_ext
19680 LIBS=$ac_check_lib_save_LIBS
19682 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19683 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19684 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_LIBCRYPTO 1
19689 LIBS="-lcrypto $LIBS"
19694 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19695 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19696 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19697 echo $ECHO_N "(cached
) $ECHO_C" >&6
19699 ac_check_lib_save_LIBS=$LIBS
19700 LIBS="-lkrb5 $LIBS"
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19714 char krb5_init_context ();
19718 return krb5_init_context ();
19723 rm -f conftest.$ac_objext conftest$ac_exeext
19724 if { (ac_try="$ac_link"
19725 case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_link") 2>conftest.er1
19732 grep -v '^ *+' conftest.er1 >conftest.err
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19736 (exit $ac_status); } && {
19737 test -z "$ac_c_werror_flag" ||
19738 test ! -s conftest.err
19739 } && test -s conftest$ac_exeext &&
19740 $as_test_x conftest$ac_exeext; then
19741 ac_cv_lib_krb5_krb5_init_context=yes
19743 echo "$as_me: failed program was
:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19746 ac_cv_lib_krb5_krb5_init_context=no
19749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19750 conftest$ac_exeext conftest.$ac_ext
19751 LIBS=$ac_check_lib_save_LIBS
19753 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19754 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19755 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19756 cat >>confdefs.h <<_ACEOF
19757 #define HAVE_LIBKRB5 1
19760 LIBS="-lkrb5 $LIBS"
19764 if test "${with_kerberos5+set}" != set; then
19766 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19767 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19768 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19769 echo $ECHO_N "(cached
) $ECHO_C" >&6
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-ldes425 $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19786 char des_cbc_encrypt ();
19790 return des_cbc_encrypt ();
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_lib_des425_des_cbc_encrypt=yes
19815 echo "$as_me: failed program was
:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_des425_des_cbc_encrypt=no
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19825 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19826 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19827 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19828 cat >>confdefs.h <<_ACEOF
19829 #define HAVE_LIBDES425 1
19832 LIBS="-ldes425 $LIBS"
19836 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19837 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19838 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19839 echo $ECHO_N "(cached
) $ECHO_C" >&6
19841 ac_check_lib_save_LIBS=$LIBS
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19856 char des_cbc_encrypt ();
19860 return des_cbc_encrypt ();
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19874 grep -v '^ *+' conftest.er1 >conftest.err
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest$ac_exeext &&
19882 $as_test_x conftest$ac_exeext; then
19883 ac_cv_lib_des_des_cbc_encrypt=yes
19885 echo "$as_me: failed program was
:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_cv_lib_des_des_cbc_encrypt=no
19891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19895 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19896 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19897 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19898 cat >>confdefs.h <<_ACEOF
19899 #define HAVE_LIBDES 1
19909 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19910 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19911 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19912 echo $ECHO_N "(cached
) $ECHO_C" >&6
19914 ac_check_lib_save_LIBS=$LIBS
19915 LIBS="-lkrb4 $LIBS"
19916 cat >conftest.$ac_ext <<_ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19923 /* Override any GCC internal prototype to avoid an error.
19924 Use char because int might match the return type of a GCC
19925 builtin and then its argument prototype would still apply. */
19929 char krb_get_cred ();
19933 return krb_get_cred ();
19938 rm -f conftest.$ac_objext conftest$ac_exeext
19939 if { (ac_try="$ac_link"
19940 case "(($ac_try" in
19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_link") 2>conftest.er1
19947 grep -v '^ *+' conftest.er1 >conftest.err
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest$ac_exeext &&
19955 $as_test_x conftest$ac_exeext; then
19956 ac_cv_lib_krb4_krb_get_cred=yes
19958 echo "$as_me: failed program was
:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19961 ac_cv_lib_krb4_krb_get_cred=no
19964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19965 conftest$ac_exeext conftest.$ac_ext
19966 LIBS=$ac_check_lib_save_LIBS
19968 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19969 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19970 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19971 cat >>confdefs.h <<_ACEOF
19972 #define HAVE_LIBKRB4 1
19975 LIBS="-lkrb4 $LIBS"
19979 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19980 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19981 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19982 echo $ECHO_N "(cached
) $ECHO_C" >&6
19984 ac_check_lib_save_LIBS=$LIBS
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 /* Override any GCC internal prototype to avoid an error.
19994 Use char because int might match the return type of a GCC
19995 builtin and then its argument prototype would still apply. */
19999 char krb_get_cred ();
20003 return krb_get_cred ();
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (ac_try="$ac_link"
20010 case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_link") 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20021 (exit $ac_status); } && {
20022 test -z "$ac_c_werror_flag" ||
20023 test ! -s conftest.err
20024 } && test -s conftest$ac_exeext &&
20025 $as_test_x conftest$ac_exeext; then
20026 ac_cv_lib_krb_krb_get_cred=yes
20028 echo "$as_me: failed program was
:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_lib_krb_krb_get_cred=no
20034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20035 conftest$ac_exeext conftest.$ac_ext
20036 LIBS=$ac_check_lib_save_LIBS
20038 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20039 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20040 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20041 cat >>confdefs.h <<_ACEOF
20042 #define HAVE_LIBKRB 1
20053 if test "${with_kerberos5+set}" = set; then
20055 for ac_header in krb5.h
20057 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20058 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20059 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20060 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20061 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20062 echo $ECHO_N "(cached
) $ECHO_C" >&6
20064 ac_res=`eval echo '${'$as_ac_Header'}'`
20065 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20066 echo "${ECHO_T}$ac_res" >&6; }
20068 # Is the header compilable?
20069 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20070 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077 $ac_includes_default
20078 #include <$ac_header>
20080 rm -f conftest.$ac_objext
20081 if { (ac_try="$ac_compile"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_compile") 2>conftest.er1
20089 grep -v '^ *+' conftest.er1 >conftest.err
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest.$ac_objext; then
20097 ac_header_compiler=yes
20099 echo "$as_me: failed program was
:" >&5
20100 sed 's/^/| /' conftest.$ac_ext >&5
20102 ac_header_compiler=no
20105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20106 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20107 echo "${ECHO_T}$ac_header_compiler" >&6; }
20109 # Is the header present?
20110 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20111 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20112 cat >conftest.$ac_ext <<_ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 #include <$ac_header>
20120 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20128 grep -v '^ *+' conftest.er1 >conftest.err
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20132 (exit $ac_status); } >/dev/null && {
20133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20134 test ! -s conftest.err
20136 ac_header_preproc=yes
20138 echo "$as_me: failed program was
:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20141 ac_header_preproc=no
20144 rm -f conftest.err conftest.$ac_ext
20145 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20146 echo "${ECHO_T}$ac_header_preproc" >&6; }
20148 # So? What about this header?
20149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20151 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20152 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20153 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20155 ac_header_preproc=yes
20158 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20159 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20160 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20161 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20162 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20163 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20164 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20165 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20166 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20168 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20169 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20173 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20174 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20175 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20176 echo $ECHO_N "(cached
) $ECHO_C" >&6
20178 eval "$as_ac_Header=\
$ac_header_preproc"
20180 ac_res=`eval echo '${'$as_ac_Header'}'`
20181 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20182 echo "${ECHO_T}$ac_res" >&6; }
20185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20186 cat >>confdefs.h <<_ACEOF
20187 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20196 for ac_header in des.h
20198 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20200 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20201 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20202 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20203 echo $ECHO_N "(cached
) $ECHO_C" >&6
20205 ac_res=`eval echo '${'$as_ac_Header'}'`
20206 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20207 echo "${ECHO_T}$ac_res" >&6; }
20209 # Is the header compilable?
20210 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20211 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20212 cat >conftest.$ac_ext <<_ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h. */
20218 $ac_includes_default
20219 #include <$ac_header>
20221 rm -f conftest.$ac_objext
20222 if { (ac_try="$ac_compile"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_compile") 2>conftest.er1
20230 grep -v '^ *+' conftest.er1 >conftest.err
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20234 (exit $ac_status); } && {
20235 test -z "$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20237 } && test -s conftest.$ac_objext; then
20238 ac_header_compiler=yes
20240 echo "$as_me: failed program was
:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_header_compiler=no
20246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20248 echo "${ECHO_T}$ac_header_compiler" >&6; }
20250 # Is the header present?
20251 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20252 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20253 cat >conftest.$ac_ext <<_ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h. */
20259 #include <$ac_header>
20261 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20273 (exit $ac_status); } >/dev/null && {
20274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20277 ac_header_preproc=yes
20279 echo "$as_me: failed program was
:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_preproc=no
20285 rm -f conftest.err conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20287 echo "${ECHO_T}$ac_header_preproc" >&6; }
20289 # So? What about this header?
20290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20292 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20293 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20294 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20296 ac_header_preproc=yes
20299 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20300 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20301 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20302 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20303 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20304 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20305 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20306 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20307 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20309 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20310 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20314 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20315 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20316 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20317 echo $ECHO_N "(cached
) $ECHO_C" >&6
20319 eval "$as_ac_Header=\
$ac_header_preproc"
20321 ac_res=`eval echo '${'$as_ac_Header'}'`
20322 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20323 echo "${ECHO_T}$ac_res" >&6; }
20326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20333 for ac_header in kerberosIV/des.h
20335 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20336 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20337 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20338 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20339 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20340 echo $ECHO_N "(cached
) $ECHO_C" >&6
20342 ac_res=`eval echo '${'$as_ac_Header'}'`
20343 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20344 echo "${ECHO_T}$ac_res" >&6; }
20346 # Is the header compilable?
20347 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20348 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 $ac_includes_default
20356 #include <$ac_header>
20358 rm -f conftest.$ac_objext
20359 if { (ac_try="$ac_compile"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_compile") 2>conftest.er1
20367 grep -v '^ *+' conftest.er1 >conftest.err
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20371 (exit $ac_status); } && {
20372 test -z "$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20374 } && test -s conftest.$ac_objext; then
20375 ac_header_compiler=yes
20377 echo "$as_me: failed program was
:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_header_compiler=no
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20384 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20385 echo "${ECHO_T}$ac_header_compiler" >&6; }
20387 # Is the header present?
20388 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20389 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 #include <$ac_header>
20398 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20399 case "(($ac_try" in
20400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20410 (exit $ac_status); } >/dev/null && {
20411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20414 ac_header_preproc=yes
20416 echo "$as_me: failed program was
:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_header_preproc=no
20422 rm -f conftest.err conftest.$ac_ext
20423 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20424 echo "${ECHO_T}$ac_header_preproc" >&6; }
20426 # So? What about this header?
20427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20429 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20430 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20431 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20433 ac_header_preproc=yes
20436 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20437 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20438 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20439 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20440 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20441 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20442 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20443 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20444 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20446 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20447 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20451 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20452 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20453 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20454 echo $ECHO_N "(cached
) $ECHO_C" >&6
20456 eval "$as_ac_Header=\
$ac_header_preproc"
20458 ac_res=`eval echo '${'$as_ac_Header'}'`
20459 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20460 echo "${ECHO_T}$ac_res" >&6; }
20463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20464 cat >>confdefs.h <<_ACEOF
20465 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20470 for ac_header in kerberos/des.h
20472 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20473 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20474 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20475 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20476 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20477 echo $ECHO_N "(cached
) $ECHO_C" >&6
20479 ac_res=`eval echo '${'$as_ac_Header'}'`
20480 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20481 echo "${ECHO_T}$ac_res" >&6; }
20483 # Is the header compilable?
20484 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20485 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 $ac_includes_default
20493 #include <$ac_header>
20495 rm -f conftest.$ac_objext
20496 if { (ac_try="$ac_compile"
20497 case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20502 (eval "$ac_compile") 2>conftest.er1
20504 grep -v '^ *+' conftest.er1 >conftest.err
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20508 (exit $ac_status); } && {
20509 test -z "$ac_c_werror_flag" ||
20510 test ! -s conftest.err
20511 } && test -s conftest.$ac_objext; then
20512 ac_header_compiler=yes
20514 echo "$as_me: failed program was
:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_header_compiler=no
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20522 echo "${ECHO_T}$ac_header_compiler" >&6; }
20524 # Is the header present?
20525 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20526 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <$ac_header>
20535 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20536 case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20547 (exit $ac_status); } >/dev/null && {
20548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20551 ac_header_preproc=yes
20553 echo "$as_me: failed program was
:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20556 ac_header_preproc=no
20559 rm -f conftest.err conftest.$ac_ext
20560 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20561 echo "${ECHO_T}$ac_header_preproc" >&6; }
20563 # So? What about this header?
20564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20566 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20567 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20568 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20570 ac_header_preproc=yes
20573 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20574 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20575 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20576 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20577 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20578 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20579 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20580 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20581 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20583 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20584 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20588 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20589 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20590 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20591 echo $ECHO_N "(cached
) $ECHO_C" >&6
20593 eval "$as_ac_Header=\
$ac_header_preproc"
20595 ac_res=`eval echo '${'$as_ac_Header'}'`
20596 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20597 echo "${ECHO_T}$ac_res" >&6; }
20600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20601 cat >>confdefs.h <<_ACEOF
20602 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20618 for ac_header in krb.h
20620 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20621 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20622 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20623 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20624 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20625 echo $ECHO_N "(cached
) $ECHO_C" >&6
20627 ac_res=`eval echo '${'$as_ac_Header'}'`
20628 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20629 echo "${ECHO_T}$ac_res" >&6; }
20631 # Is the header compilable?
20632 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20633 echo $ECHO_N "checking
$ac_header usability...
$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 $ac_includes_default
20641 #include <$ac_header>
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_compile") 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20656 (exit $ac_status); } && {
20657 test -z "$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 } && test -s conftest.$ac_objext; then
20660 ac_header_compiler=yes
20662 echo "$as_me: failed program was
:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20665 ac_header_compiler=no
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20670 echo "${ECHO_T}$ac_header_compiler" >&6; }
20672 # Is the header present?
20673 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20674 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20675 cat >conftest.$ac_ext <<_ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 #include <$ac_header>
20683 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20684 case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20689 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20691 grep -v '^ *+' conftest.er1 >conftest.err
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20695 (exit $ac_status); } >/dev/null && {
20696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20699 ac_header_preproc=yes
20701 echo "$as_me: failed program was
:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_header_preproc=no
20707 rm -f conftest.err conftest.$ac_ext
20708 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20709 echo "${ECHO_T}$ac_header_preproc" >&6; }
20711 # So? What about this header?
20712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20714 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20715 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20716 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20718 ac_header_preproc=yes
20721 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20722 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20723 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20724 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20725 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20726 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20727 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20728 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20729 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20731 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20732 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20736 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20737 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20739 echo $ECHO_N "(cached
) $ECHO_C" >&6
20741 eval "$as_ac_Header=\
$ac_header_preproc"
20743 ac_res=`eval echo '${'$as_ac_Header'}'`
20744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20745 echo "${ECHO_T}$ac_res" >&6; }
20748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20755 for ac_header in kerberosIV/krb.h
20757 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20758 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20759 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20760 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20761 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20762 echo $ECHO_N "(cached
) $ECHO_C" >&6
20764 ac_res=`eval echo '${'$as_ac_Header'}'`
20765 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20766 echo "${ECHO_T}$ac_res" >&6; }
20768 # Is the header compilable?
20769 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20770 echo $ECHO_N "checking
$ac_header usability...
$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 $ac_includes_default
20778 #include <$ac_header>
20780 rm -f conftest.$ac_objext
20781 if { (ac_try="$ac_compile"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20789 grep -v '^ *+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest.$ac_objext; then
20797 ac_header_compiler=yes
20799 echo "$as_me: failed program was
:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802 ac_header_compiler=no
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20807 echo "${ECHO_T}$ac_header_compiler" >&6; }
20809 # Is the header present?
20810 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20811 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20812 cat >conftest.$ac_ext <<_ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20818 #include <$ac_header>
20820 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20821 case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20828 grep -v '^ *+' conftest.er1 >conftest.err
20830 cat conftest.err >&5
20831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20832 (exit $ac_status); } >/dev/null && {
20833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20834 test ! -s conftest.err
20836 ac_header_preproc=yes
20838 echo "$as_me: failed program was
:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20841 ac_header_preproc=no
20844 rm -f conftest.err conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20846 echo "${ECHO_T}$ac_header_preproc" >&6; }
20848 # So? What about this header?
20849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20851 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20852 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20853 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20855 ac_header_preproc=yes
20858 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20859 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20860 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20861 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20862 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20863 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20864 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20865 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20866 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20868 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20869 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20873 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20874 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20875 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20876 echo $ECHO_N "(cached
) $ECHO_C" >&6
20878 eval "$as_ac_Header=\
$ac_header_preproc"
20880 ac_res=`eval echo '${'$as_ac_Header'}'`
20881 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20882 echo "${ECHO_T}$ac_res" >&6; }
20885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20886 cat >>confdefs.h <<_ACEOF
20887 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20892 for ac_header in kerberos/krb.h
20894 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20895 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20896 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20897 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20898 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20899 echo $ECHO_N "(cached
) $ECHO_C" >&6
20901 ac_res=`eval echo '${'$as_ac_Header'}'`
20902 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20903 echo "${ECHO_T}$ac_res" >&6; }
20905 # Is the header compilable?
20906 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20907 echo $ECHO_N "checking
$ac_header usability...
$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 $ac_includes_default
20915 #include <$ac_header>
20917 rm -f conftest.$ac_objext
20918 if { (ac_try="$ac_compile"
20919 case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20924 (eval "$ac_compile") 2>conftest.er1
20926 grep -v '^ *+' conftest.er1 >conftest.err
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20930 (exit $ac_status); } && {
20931 test -z "$ac_c_werror_flag" ||
20932 test ! -s conftest.err
20933 } && test -s conftest.$ac_objext; then
20934 ac_header_compiler=yes
20936 echo "$as_me: failed program was
:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 ac_header_compiler=no
20942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20943 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20944 echo "${ECHO_T}$ac_header_compiler" >&6; }
20946 # Is the header present?
20947 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20948 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 #include <$ac_header>
20957 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20965 grep -v '^ *+' conftest.er1 >conftest.err
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20969 (exit $ac_status); } >/dev/null && {
20970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20973 ac_header_preproc=yes
20975 echo "$as_me: failed program was
:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20978 ac_header_preproc=no
20981 rm -f conftest.err conftest.$ac_ext
20982 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20983 echo "${ECHO_T}$ac_header_preproc" >&6; }
20985 # So? What about this header?
20986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20988 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20989 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20990 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20992 ac_header_preproc=yes
20995 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20996 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20997 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20998 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20999 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21000 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21001 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21002 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21003 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21005 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21006 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21010 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21011 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21012 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21013 echo $ECHO_N "(cached
) $ECHO_C" >&6
21015 eval "$as_ac_Header=\
$ac_header_preproc"
21017 ac_res=`eval echo '${'$as_ac_Header'}'`
21018 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21019 echo "${ECHO_T}$ac_res" >&6; }
21022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21023 cat >>confdefs.h <<_ACEOF
21024 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21041 for ac_header in com_err.h
21043 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21045 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21046 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21047 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21048 echo $ECHO_N "(cached
) $ECHO_C" >&6
21050 ac_res=`eval echo '${'$as_ac_Header'}'`
21051 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21052 echo "${ECHO_T}$ac_res" >&6; }
21054 # Is the header compilable?
21055 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21056 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 $ac_includes_default
21064 #include <$ac_header>
21066 rm -f conftest.$ac_objext
21067 if { (ac_try="$ac_compile"
21068 case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_compile") 2>conftest.er1
21075 grep -v '^ *+' conftest.er1 >conftest.err
21077 cat conftest.err >&5
21078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21079 (exit $ac_status); } && {
21080 test -z "$ac_c_werror_flag" ||
21081 test ! -s conftest.err
21082 } && test -s conftest.$ac_objext; then
21083 ac_header_compiler=yes
21085 echo "$as_me: failed program was
:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21088 ac_header_compiler=no
21091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21092 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21093 echo "${ECHO_T}$ac_header_compiler" >&6; }
21095 # Is the header present?
21096 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21097 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21098 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 #include <$ac_header>
21106 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21118 (exit $ac_status); } >/dev/null && {
21119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21122 ac_header_preproc=yes
21124 echo "$as_me: failed program was
:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 ac_header_preproc=no
21130 rm -f conftest.err conftest.$ac_ext
21131 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21132 echo "${ECHO_T}$ac_header_preproc" >&6; }
21134 # So? What about this header?
21135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21138 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21139 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21141 ac_header_preproc=yes
21144 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21145 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21146 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21147 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21148 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21149 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21150 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21151 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21152 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21154 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21155 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21159 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21160 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21161 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21162 echo $ECHO_N "(cached
) $ECHO_C" >&6
21164 eval "$as_ac_Header=\
$ac_header_preproc"
21166 ac_res=`eval echo '${'$as_ac_Header'}'`
21167 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21168 echo "${ECHO_T}$ac_res" >&6; }
21171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21172 cat >>confdefs.h <<_ACEOF
21173 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21182 # Solaris requires -lintl if you want strerror (which calls dgettext)
21183 # to return localized messages.
21185 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21186 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21187 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21188 echo $ECHO_N "(cached
) $ECHO_C" >&6
21190 ac_check_lib_save_LIBS=$LIBS
21191 LIBS="-lintl $LIBS"
21192 cat >conftest.$ac_ext <<_ACEOF
21195 cat confdefs.h >>conftest.$ac_ext
21196 cat >>conftest.$ac_ext <<_ACEOF
21197 /* end confdefs.h. */
21199 /* Override any GCC internal prototype to avoid an error.
21200 Use char because int might match the return type of a GCC
21201 builtin and then its argument prototype would still apply. */
21209 return dgettext ();
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (ac_try="$ac_link"
21216 case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_link") 2>conftest.er1
21223 grep -v '^ *+' conftest.er1 >conftest.err
21225 cat conftest.err >&5
21226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21227 (exit $ac_status); } && {
21228 test -z "$ac_c_werror_flag" ||
21229 test ! -s conftest.err
21230 } && test -s conftest$ac_exeext &&
21231 $as_test_x conftest$ac_exeext; then
21232 ac_cv_lib_intl_dgettext=yes
21234 echo "$as_me: failed program was
:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21237 ac_cv_lib_intl_dgettext=no
21240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21241 conftest$ac_exeext conftest.$ac_ext
21242 LIBS=$ac_check_lib_save_LIBS
21244 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21245 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21246 if test $ac_cv_lib_intl_dgettext = yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define HAVE_LIBINTL 1
21251 LIBS="-lintl $LIBS"
21256 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21257 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21258 if test "${emacs_cv_localtime_cache+set}" = set; then
21259 echo $ECHO_N "(cached
) $ECHO_C" >&6
21261 if test x$ac_cv_func_tzset = xyes; then
21262 if test "$cross_compiling" = yes; then
21263 # If we have tzset, assume the worst when cross-compiling.
21264 emacs_cv_localtime_cache=yes
21266 cat >conftest.$ac_ext <<_ACEOF
21269 cat confdefs.h >>conftest.$ac_ext
21270 cat >>conftest.$ac_ext <<_ACEOF
21271 /* end confdefs.h. */
21273 extern char **environ;
21277 for (to = from = environ; (*to = *from); from++)
21278 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21281 char TZ_GMT0[] = "TZ
=GMT0
";
21282 char TZ_PST8[] = "TZ
=PST8
";
21285 time_t now = time ((time_t *) 0);
21286 int hour_GMT0, hour_unset;
21287 if (putenv (TZ_GMT0) != 0)
21289 hour_GMT0 = localtime (&now)->tm_hour;
21291 hour_unset = localtime (&now)->tm_hour;
21292 if (putenv (TZ_PST8) != 0)
21294 if (localtime (&now)->tm_hour == hour_GMT0)
21297 if (localtime (&now)->tm_hour != hour_unset)
21302 rm -f conftest$ac_exeext
21303 if { (ac_try="$ac_link"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_link") 2>&5
21311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21313 { (case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_try") 2>&5
21320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 emacs_cv_localtime_cache=no
21324 echo "$as_me: program exited with status
$ac_status" >&5
21325 echo "$as_me: failed program was
:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21328 ( exit $ac_status )
21329 emacs_cv_localtime_cache=yes
21331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21336 # If we lack tzset, report that localtime does not cache TZ,
21337 # since we can't invalidate the cache if we don't have tzset.
21338 emacs_cv_localtime_cache=no
21341 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21342 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21343 if test $emacs_cv_localtime_cache = yes; then
21345 cat >>confdefs.h <<\_ACEOF
21346 #define LOCALTIME_CACHE 1
21351 if test "x
$HAVE_TIMEVAL" = xyes; then
21353 for ac_func in gettimeofday
21355 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21356 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21357 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21358 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached
) $ECHO_C" >&6
21361 cat >conftest.$ac_ext <<_ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369 #define $ac_func innocuous_$ac_func
21371 /* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char $ac_func (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21377 # include <limits.h>
21379 # include <assert.h>
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined __stub_$ac_func || defined __stub___$ac_func
21401 return $ac_func ();
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_link") 2>conftest.er1
21415 grep -v '^ *+' conftest.er1 >conftest.err
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest$ac_exeext &&
21423 $as_test_x conftest$ac_exeext; then
21424 eval "$as_ac_var=yes"
21426 echo "$as_me: failed program was
:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 eval "$as_ac_var=no
"
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433 conftest$ac_exeext conftest.$ac_ext
21435 ac_res=`eval echo '${'$as_ac_var'}'`
21436 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21437 echo "${ECHO_T}$ac_res" >&6; }
21438 if test `eval echo '${'$as_ac_var'}'` = yes; then
21439 cat >>confdefs.h <<_ACEOF
21440 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21446 if test $ac_cv_func_gettimeofday = yes; then
21447 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21448 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21449 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21450 echo $ECHO_N "(cached
) $ECHO_C" >&6
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21459 #ifdef TIME_WITH_SYS_TIME
21460 #include <sys/time.h>
21463 #ifdef HAVE_SYS_TIME_H
21464 #include <sys/time.h>
21472 struct timeval time;
21473 gettimeofday (&time, 0);
21478 rm -f conftest.$ac_objext
21479 if { (ac_try="$ac_compile"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_compile") 2>conftest.er1
21487 grep -v '^ *+' conftest.er1 >conftest.err
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21491 (exit $ac_status); } && {
21492 test -z "$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 } && test -s conftest.$ac_objext; then
21495 emacs_cv_gettimeofday_two_arguments=yes
21497 echo "$as_me: failed program was
:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 emacs_cv_gettimeofday_two_arguments=no
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21505 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21506 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21507 if test $emacs_cv_gettimeofday_two_arguments = no; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21518 { echo "$as_me:$LINENO: checking
for socket
" >&5
21519 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21520 if test "${ac_cv_func_socket+set}" = set; then
21521 echo $ECHO_N "(cached
) $ECHO_C" >&6
21523 cat >conftest.$ac_ext <<_ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h. */
21529 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21531 #define socket innocuous_socket
21533 /* System header to define __stub macros and hopefully few prototypes,
21534 which can conflict with char socket (); below.
21535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21536 <limits.h> exists even on freestanding compilers. */
21539 # include <limits.h>
21541 # include <assert.h>
21546 /* Override any GCC internal prototype to avoid an error.
21547 Use char because int might match the return type of a GCC
21548 builtin and then its argument prototype would still apply. */
21553 /* The GNU C library defines this for functions which it implements
21554 to always fail with ENOSYS. Some functions are actually named
21555 something starting with __ and the normal name is an alias. */
21556 #if defined __stub_socket || defined __stub___socket
21568 rm -f conftest.$ac_objext conftest$ac_exeext
21569 if { (ac_try="$ac_link"
21570 case "(($ac_try" in
21571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_link") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest$ac_exeext &&
21585 $as_test_x conftest$ac_exeext; then
21586 ac_cv_func_socket=yes
21588 echo "$as_me: failed program was
:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21591 ac_cv_func_socket=no
21594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21595 conftest$ac_exeext conftest.$ac_ext
21597 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21598 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21599 if test $ac_cv_func_socket = yes; then
21605 if test $ok_so_far = yes; then
21606 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21607 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21608 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21609 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21610 echo $ECHO_N "(cached
) $ECHO_C" >&6
21612 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21613 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21615 # Is the header compilable?
21616 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21617 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21625 #include <netinet/in.h>
21627 rm -f conftest.$ac_objext
21628 if { (ac_try="$ac_compile"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_compile") 2>conftest.er1
21636 grep -v '^ *+' conftest.er1 >conftest.err
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest.$ac_objext; then
21644 ac_header_compiler=yes
21646 echo "$as_me: failed program was
:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_header_compiler=no
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21654 echo "${ECHO_T}$ac_header_compiler" >&6; }
21656 # Is the header present?
21657 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21658 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <netinet/in.h>
21667 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21675 grep -v '^ *+' conftest.er1 >conftest.err
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21679 (exit $ac_status); } >/dev/null && {
21680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21683 ac_header_preproc=yes
21685 echo "$as_me: failed program was
:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_header_preproc=no
21691 rm -f conftest.err conftest.$ac_ext
21692 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21693 echo "${ECHO_T}$ac_header_preproc" >&6; }
21695 # So? What about this header?
21696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21698 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21699 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21700 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21701 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21702 ac_header_preproc=yes
21705 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21706 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21707 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21708 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21709 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21710 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21711 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21712 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21713 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21714 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21715 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21716 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21720 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21721 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21722 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21723 echo $ECHO_N "(cached
) $ECHO_C" >&6
21725 ac_cv_header_netinet_in_h=$ac_header_preproc
21727 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21728 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21731 if test $ac_cv_header_netinet_in_h = yes; then
21739 if test $ok_so_far = yes; then
21740 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21741 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21742 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21743 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21744 echo $ECHO_N "(cached
) $ECHO_C" >&6
21746 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21747 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21749 # Is the header compilable?
21750 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21751 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 $ac_includes_default
21759 #include <arpa/inet.h>
21761 rm -f conftest.$ac_objext
21762 if { (ac_try="$ac_compile"
21763 case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_compile") 2>conftest.er1
21770 grep -v '^ *+' conftest.er1 >conftest.err
21772 cat conftest.err >&5
21773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21774 (exit $ac_status); } && {
21775 test -z "$ac_c_werror_flag" ||
21776 test ! -s conftest.err
21777 } && test -s conftest.$ac_objext; then
21778 ac_header_compiler=yes
21780 echo "$as_me: failed program was
:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21783 ac_header_compiler=no
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21788 echo "${ECHO_T}$ac_header_compiler" >&6; }
21790 # Is the header present?
21791 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21792 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21793 cat >conftest.$ac_ext <<_ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799 #include <arpa/inet.h>
21801 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21802 case "(($ac_try" in
21803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804 *) ac_try_echo=$ac_try;;
21806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21809 grep -v '^ *+' conftest.er1 >conftest.err
21811 cat conftest.err >&5
21812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21813 (exit $ac_status); } >/dev/null && {
21814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21815 test ! -s conftest.err
21817 ac_header_preproc=yes
21819 echo "$as_me: failed program was
:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21822 ac_header_preproc=no
21825 rm -f conftest.err conftest.$ac_ext
21826 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21827 echo "${ECHO_T}$ac_header_preproc" >&6; }
21829 # So? What about this header?
21830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21832 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21833 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21834 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21835 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21836 ac_header_preproc=yes
21839 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21840 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21841 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21842 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21843 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21844 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21845 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21846 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21847 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21848 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21849 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21850 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21854 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21855 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21856 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21857 echo $ECHO_N "(cached
) $ECHO_C" >&6
21859 ac_cv_header_arpa_inet_h=$ac_header_preproc
21861 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21862 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21865 if test $ac_cv_header_arpa_inet_h = yes; then
21873 if test $ok_so_far = yes; then
21875 cat >>confdefs.h <<\_ACEOF
21876 #define HAVE_INET_SOCKETS 1
21882 for ac_header in sys/ioctl.h
21884 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21885 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21886 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21887 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21889 echo $ECHO_N "(cached
) $ECHO_C" >&6
21891 ac_res=`eval echo '${'$as_ac_Header'}'`
21892 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21893 echo "${ECHO_T}$ac_res" >&6; }
21895 # Is the header compilable?
21896 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21897 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 $ac_includes_default
21905 #include <$ac_header>
21907 rm -f conftest.$ac_objext
21908 if { (ac_try="$ac_compile"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_compile") 2>conftest.er1
21916 grep -v '^ *+' conftest.er1 >conftest.err
21918 cat conftest.err >&5
21919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest.$ac_objext; then
21924 ac_header_compiler=yes
21926 echo "$as_me: failed program was
:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 ac_header_compiler=no
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21934 echo "${ECHO_T}$ac_header_compiler" >&6; }
21936 # Is the header present?
21937 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21938 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 #include <$ac_header>
21947 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21953 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21955 grep -v '^ *+' conftest.er1 >conftest.err
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21959 (exit $ac_status); } >/dev/null && {
21960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21961 test ! -s conftest.err
21963 ac_header_preproc=yes
21965 echo "$as_me: failed program was
:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21968 ac_header_preproc=no
21971 rm -f conftest.err conftest.$ac_ext
21972 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21973 echo "${ECHO_T}$ac_header_preproc" >&6; }
21975 # So? What about this header?
21976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21978 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21979 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21980 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21982 ac_header_preproc=yes
21985 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21986 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21987 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21988 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21989 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21990 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21991 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21992 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21993 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21995 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21996 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22000 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22001 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22002 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22003 echo $ECHO_N "(cached
) $ECHO_C" >&6
22005 eval "$as_ac_Header=\
$ac_header_preproc"
22007 ac_res=`eval echo '${'$as_ac_Header'}'`
22008 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22009 echo "${ECHO_T}$ac_res" >&6; }
22012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22013 cat >>confdefs.h <<_ACEOF
22014 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22022 if test -f /usr/lpp/X11/bin/smt.exp; then
22024 cat >>confdefs.h <<\_ACEOF
22025 #define HAVE_AIX_SMT_EXP 1
22030 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22031 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22032 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22033 { echo "$as_me:$LINENO: result
: yes" >&5
22034 echo "${ECHO_T}yes" >&6; }
22036 cat >>confdefs.h <<\_ACEOF
22037 #define HAVE_DEV_PTMX 1
22041 { echo "$as_me:$LINENO: result
: no
" >&5
22042 echo "${ECHO_T}no
" >&6; }
22045 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22046 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22047 if test "${ac_cv_type_pid_t+set}" = set; then
22048 echo $ECHO_N "(cached
) $ECHO_C" >&6
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 $ac_includes_default
22057 typedef pid_t ac__type_new_;
22061 if ((ac__type_new_ *) 0)
22063 if (sizeof (ac__type_new_))
22069 rm -f conftest.$ac_objext
22070 if { (ac_try="$ac_compile"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_compile") 2>conftest.er1
22078 grep -v '^ *+' conftest.er1 >conftest.err
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22082 (exit $ac_status); } && {
22083 test -z "$ac_c_werror_flag" ||
22084 test ! -s conftest.err
22085 } && test -s conftest.$ac_objext; then
22086 ac_cv_type_pid_t=yes
22088 echo "$as_me: failed program was
:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ac_cv_type_pid_t=no
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22097 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22098 if test $ac_cv_type_pid_t = yes; then
22102 cat >>confdefs.h <<_ACEOF
22109 for ac_header in vfork.h
22111 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22113 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22114 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22115 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22116 echo $ECHO_N "(cached
) $ECHO_C" >&6
22118 ac_res=`eval echo '${'$as_ac_Header'}'`
22119 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22120 echo "${ECHO_T}$ac_res" >&6; }
22122 # Is the header compilable?
22123 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22124 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 $ac_includes_default
22132 #include <$ac_header>
22134 rm -f conftest.$ac_objext
22135 if { (ac_try="$ac_compile"
22136 case "(($ac_try" in
22137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138 *) ac_try_echo=$ac_try;;
22140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22141 (eval "$ac_compile") 2>conftest.er1
22143 grep -v '^ *+' conftest.er1 >conftest.err
22145 cat conftest.err >&5
22146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22147 (exit $ac_status); } && {
22148 test -z "$ac_c_werror_flag" ||
22149 test ! -s conftest.err
22150 } && test -s conftest.$ac_objext; then
22151 ac_header_compiler=yes
22153 echo "$as_me: failed program was
:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22156 ac_header_compiler=no
22159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22160 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22161 echo "${ECHO_T}$ac_header_compiler" >&6; }
22163 # Is the header present?
22164 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22165 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22166 cat >conftest.$ac_ext <<_ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */
22172 #include <$ac_header>
22174 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22186 (exit $ac_status); } >/dev/null && {
22187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22188 test ! -s conftest.err
22190 ac_header_preproc=yes
22192 echo "$as_me: failed program was
:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22195 ac_header_preproc=no
22198 rm -f conftest.err conftest.$ac_ext
22199 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22200 echo "${ECHO_T}$ac_header_preproc" >&6; }
22202 # So? What about this header?
22203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22205 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22206 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22209 ac_header_preproc=yes
22212 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22213 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22214 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22215 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22216 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22217 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22218 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22219 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22220 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22222 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22223 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22227 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22228 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22229 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22230 echo $ECHO_N "(cached
) $ECHO_C" >&6
22232 eval "$as_ac_Header=\
$ac_header_preproc"
22234 ac_res=`eval echo '${'$as_ac_Header'}'`
22235 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22236 echo "${ECHO_T}$ac_res" >&6; }
22239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22240 cat >>confdefs.h <<_ACEOF
22241 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22250 for ac_func in fork vfork
22252 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22253 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22254 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22255 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22256 echo $ECHO_N "(cached
) $ECHO_C" >&6
22258 cat >conftest.$ac_ext <<_ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22266 #define $ac_func innocuous_$ac_func
22268 /* System header to define __stub macros and hopefully few prototypes,
22269 which can conflict with char $ac_func (); below.
22270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22271 <limits.h> exists even on freestanding compilers. */
22274 # include <limits.h>
22276 # include <assert.h>
22281 /* Override any GCC internal prototype to avoid an error.
22282 Use char because int might match the return type of a GCC
22283 builtin and then its argument prototype would still apply. */
22288 /* The GNU C library defines this for functions which it implements
22289 to always fail with ENOSYS. Some functions are actually named
22290 something starting with __ and the normal name is an alias. */
22291 #if defined __stub_$ac_func || defined __stub___$ac_func
22298 return $ac_func ();
22303 rm -f conftest.$ac_objext conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_link") 2>conftest.er1
22312 grep -v '^ *+' conftest.er1 >conftest.err
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22316 (exit $ac_status); } && {
22317 test -z "$ac_c_werror_flag" ||
22318 test ! -s conftest.err
22319 } && test -s conftest$ac_exeext &&
22320 $as_test_x conftest$ac_exeext; then
22321 eval "$as_ac_var=yes"
22323 echo "$as_me: failed program was
:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 eval "$as_ac_var=no
"
22329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22330 conftest$ac_exeext conftest.$ac_ext
22332 ac_res=`eval echo '${'$as_ac_var'}'`
22333 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22334 echo "${ECHO_T}$ac_res" >&6; }
22335 if test `eval echo '${'$as_ac_var'}'` = yes; then
22336 cat >>confdefs.h <<_ACEOF
22337 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22343 if test "x
$ac_cv_func_fork" = xyes; then
22344 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22345 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22346 if test "${ac_cv_func_fork_works+set}" = set; then
22347 echo $ECHO_N "(cached
) $ECHO_C" >&6
22349 if test "$cross_compiling" = yes; then
22350 ac_cv_func_fork_works=cross
22352 cat >conftest.$ac_ext <<_ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h. */
22358 $ac_includes_default
22363 /* By Ruediger Kuhlmann. */
22364 return fork () < 0;
22370 rm -f conftest$ac_exeext
22371 if { (ac_try="$ac_link"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_link") 2>&5
22379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22381 { (case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22386 (eval "$ac_try") 2>&5
22388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22389 (exit $ac_status); }; }; then
22390 ac_cv_func_fork_works=yes
22392 echo "$as_me: program exited with status
$ac_status" >&5
22393 echo "$as_me: failed program was
:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22396 ( exit $ac_status )
22397 ac_cv_func_fork_works=no
22399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22404 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22405 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22408 ac_cv_func_fork_works=$ac_cv_func_fork
22410 if test "x
$ac_cv_func_fork_works" = xcross; then
22412 *-*-amigaos* | *-*-msdosdjgpp*)
22413 # Override, as these systems have only a dummy fork() stub
22414 ac_cv_func_fork_works=no
22417 ac_cv_func_fork_works=yes
22420 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22421 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22423 ac_cv_func_vfork_works=$ac_cv_func_vfork
22424 if test "x
$ac_cv_func_vfork" = xyes; then
22425 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22426 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22427 if test "${ac_cv_func_vfork_works+set}" = set; then
22428 echo $ECHO_N "(cached
) $ECHO_C" >&6
22430 if test "$cross_compiling" = yes; then
22431 ac_cv_func_vfork_works=cross
22433 cat >conftest.$ac_ext <<_ACEOF
22436 cat confdefs.h >>conftest.$ac_ext
22437 cat >>conftest.$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22439 /* Thanks to Paul Eggert for this test. */
22440 $ac_includes_default
22441 #include <sys/wait.h>
22442 #ifdef HAVE_VFORK_H
22443 # include <vfork.h>
22445 /* On some sparc systems, changes by the child to local and incoming
22446 argument registers are propagated back to the parent. The compiler
22447 is told about this with #include <vfork.h>, but some compilers
22448 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22449 static variable whose address is put into a register that is
22450 clobbered by the vfork. */
22453 sparc_address_test (int arg)
22455 sparc_address_test (arg) int arg;
22458 static pid_t child;
22476 pid_t parent = getpid ();
22479 sparc_address_test (0);
22484 /* Here is another test for sparc vfork register problems. This
22485 test uses lots of local variables, at least as many local
22486 variables as main has allocated so far including compiler
22487 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22488 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22489 reuse the register of parent for one of the local variables,
22490 since it will think that parent can't possibly be used any more
22491 in this routine. Assigning to the local variable will thus
22492 munge parent in the parent process. */
22494 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22495 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22496 /* Convince the compiler that p..p7 are live; otherwise, it might
22497 use the same hardware register for all 8 local variables. */
22498 if (p != p1 || p != p2 || p != p3 || p != p4
22499 || p != p5 || p != p6 || p != p7)
22502 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22503 from child file descriptors. If the child closes a descriptor
22504 before it execs or exits, this munges the parent's descriptor
22505 as well. Test for this by closing stdout in the child. */
22506 _exit(close(fileno(stdout)) != 0);
22511 while (wait(&status) != child)
22514 /* Was there some problem with vforking? */
22517 /* Did the child fail? (This shouldn't happen.) */
22520 /* Did the vfork/compiler bug occur? */
22521 || parent != getpid()
22523 /* Did the file descriptor bug occur? */
22524 || fstat(fileno(stdout), &st) != 0
22529 rm -f conftest$ac_exeext
22530 if { (ac_try="$ac_link"
22531 case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_link") 2>&5
22538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22540 { (case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_try") 2>&5
22547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22548 (exit $ac_status); }; }; then
22549 ac_cv_func_vfork_works=yes
22551 echo "$as_me: program exited with status
$ac_status" >&5
22552 echo "$as_me: failed program was
:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ( exit $ac_status )
22556 ac_cv_func_vfork_works=no
22558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22563 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22564 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22567 if test "x
$ac_cv_func_fork_works" = xcross; then
22568 ac_cv_func_vfork_works=$ac_cv_func_vfork
22569 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22570 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22573 if test "x
$ac_cv_func_vfork_works" = xyes; then
22575 cat >>confdefs.h <<\_ACEOF
22576 #define HAVE_WORKING_VFORK 1
22581 cat >>confdefs.h <<\_ACEOF
22586 if test "x
$ac_cv_func_fork_works" = xyes; then
22588 cat >>confdefs.h <<\_ACEOF
22589 #define HAVE_WORKING_FORK 1
22595 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22596 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22597 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22598 echo $ECHO_N "(cached
) $ECHO_C" >&6
22600 cat >conftest.$ac_ext <<_ACEOF
22603 cat confdefs.h >>conftest.$ac_ext
22604 cat >>conftest.$ac_ext <<_ACEOF
22605 /* end confdefs.h. */
22606 #include <langinfo.h>
22610 char* cs = nl_langinfo(CODESET);
22615 rm -f conftest.$ac_objext conftest$ac_exeext
22616 if { (ac_try="$ac_link"
22617 case "(($ac_try" in
22618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22619 *) ac_try_echo=$ac_try;;
22621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22622 (eval "$ac_link") 2>conftest.er1
22624 grep -v '^ *+' conftest.er1 >conftest.err
22626 cat conftest.err >&5
22627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest$ac_exeext &&
22632 $as_test_x conftest$ac_exeext; then
22633 emacs_cv_langinfo_codeset=yes
22635 echo "$as_me: failed program was
:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22638 emacs_cv_langinfo_codeset=no
22641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22642 conftest$ac_exeext conftest.$ac_ext
22645 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22646 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22647 if test $emacs_cv_langinfo_codeset = yes; then
22649 cat >>confdefs.h <<\_ACEOF
22650 #define HAVE_LANGINFO_CODESET 1
22655 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22656 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22657 if test "${ac_cv_type_size_t+set}" = set; then
22658 echo $ECHO_N "(cached
) $ECHO_C" >&6
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22666 $ac_includes_default
22667 typedef size_t ac__type_new_;
22671 if ((ac__type_new_ *) 0)
22673 if (sizeof (ac__type_new_))
22679 rm -f conftest.$ac_objext
22680 if { (ac_try="$ac_compile"
22681 case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22686 (eval "$ac_compile") 2>conftest.er1
22688 grep -v '^ *+' conftest.er1 >conftest.err
22690 cat conftest.err >&5
22691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22692 (exit $ac_status); } && {
22693 test -z "$ac_c_werror_flag" ||
22694 test ! -s conftest.err
22695 } && test -s conftest.$ac_objext; then
22696 ac_cv_type_size_t=yes
22698 echo "$as_me: failed program was
:" >&5
22699 sed 's/^/| /' conftest.$ac_ext >&5
22701 ac_cv_type_size_t=no
22704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22707 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22708 if test $ac_cv_type_size_t = yes; then
22710 cat >>confdefs.h <<_ACEOF
22711 #define HAVE_SIZE_T 1
22718 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22719 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22720 if test "${ac_cv_type_mbstate_t+set}" = set; then
22721 echo $ECHO_N "(cached
) $ECHO_C" >&6
22723 cat >conftest.$ac_ext <<_ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22730 # include <wchar.h>
22734 mbstate_t x; return sizeof x;
22739 rm -f conftest.$ac_objext
22740 if { (ac_try="$ac_compile"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_type_mbstate_t=yes
22758 echo "$as_me: failed program was
:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_cv_type_mbstate_t=no
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22767 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22768 if test $ac_cv_type_mbstate_t = yes; then
22770 cat >>confdefs.h <<\_ACEOF
22771 #define HAVE_MBSTATE_T 1
22776 cat >>confdefs.h <<\_ACEOF
22777 #define mbstate_t int
22782 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22783 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22784 if test "${emacs_cv_c_restrict+set}" = set; then
22785 echo $ECHO_N "(cached
) $ECHO_C" >&6
22787 cat >conftest.$ac_ext <<_ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 void fred (int *restrict x);
22802 rm -f conftest.$ac_objext
22803 if { (ac_try="$ac_compile"
22804 case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_compile") 2>conftest.er1
22811 grep -v '^ *+' conftest.er1 >conftest.err
22813 cat conftest.err >&5
22814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest.$ac_objext; then
22819 emacs_cv_c_restrict=yes
22821 echo "$as_me: failed program was
:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 cat >conftest.$ac_ext <<_ACEOF
22827 cat confdefs.h >>conftest.$ac_ext
22828 cat >>conftest.$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22830 void fred (int *__restrict x);
22839 rm -f conftest.$ac_objext
22840 if { (ac_try="$ac_compile"
22841 case "(($ac_try" in
22842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22843 *) ac_try_echo=$ac_try;;
22845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22846 (eval "$ac_compile") 2>conftest.er1
22848 grep -v '^ *+' conftest.er1 >conftest.err
22850 cat conftest.err >&5
22851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22852 (exit $ac_status); } && {
22853 test -z "$ac_c_werror_flag" ||
22854 test ! -s conftest.err
22855 } && test -s conftest.$ac_objext; then
22856 emacs_cv_c_restrict=__restrict
22858 echo "$as_me: failed program was
:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 emacs_cv_c_restrict=no
22864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22870 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22871 case "$emacs_cv_c_restrict" in
22872 yes) emacs_restrict=restrict;;
22873 no) emacs_restrict="";;
22874 *) emacs_restrict="$emacs_cv_c_restrict";;
22876 if test "$emacs_restrict" != __restrict; then
22878 cat >>confdefs.h <<_ACEOF
22879 #define __restrict $emacs_restrict
22884 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22885 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22886 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22887 echo $ECHO_N "(cached
) $ECHO_C" >&6
22889 cat >conftest.$ac_ext <<_ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 void fred (int x[__restrict]);
22904 rm -f conftest.$ac_objext
22905 if { (ac_try="$ac_compile"
22906 case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22913 grep -v '^ *+' conftest.er1 >conftest.err
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
22921 emacs_cv_c_restrict_arr=yes
22923 echo "$as_me: failed program was
:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 emacs_cv_c_restrict_arr=no
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22932 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22933 if test "$emacs_cv_c_restrict_arr" = yes; then
22935 cat >>confdefs.h <<\_ACEOF
22936 #define __restrict_arr __restrict
22943 # Set up the CFLAGS for real compilation, so we can substitute it.
22944 CFLAGS="$REAL_CFLAGS"
22945 CPPFLAGS="$REAL_CPPFLAGS"
22947 #### Find out which version of Emacs this is.
22948 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22949 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22950 if test x"${version}" = x; then
22951 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22952 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22953 { (exit 1); exit 1; }; }
22956 ### Specify what sort of things we'll be editing into Makefile and config.h.
22957 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22993 cat >>confdefs.h <<_ACEOF
22994 #define EMACS_CONFIGURATION "${canonical}"
22998 cat >>confdefs.h <<_ACEOF
22999 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23003 cat >>confdefs.h <<_ACEOF
23004 #define config_machfile "${machfile}"
23008 cat >>confdefs.h <<_ACEOF
23009 #define config_opsysfile "${opsysfile}"
23013 cat >>confdefs.h <<_ACEOF
23014 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23018 cat >>confdefs.h <<_ACEOF
23019 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23023 cat >>confdefs.h <<_ACEOF
23024 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23028 cat >>confdefs.h <<_ACEOF
23029 #define UNEXEC_SRC ${UNEXEC_SRC}
23033 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23035 cat >>confdefs.h <<\_ACEOF
23036 #define HAVE_X_WINDOWS 1
23040 if test "${USE_X_TOOLKIT}" != "none
" ; then
23042 cat >>confdefs.h <<\_ACEOF
23043 #define USE_X_TOOLKIT 1
23047 if test "${HAVE_X11}" = "yes" ; then
23049 cat >>confdefs.h <<\_ACEOF
23054 if test "${HAVE_XFREE386}" = "yes" ; then
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_XFREE386 1
23061 if test "${HAVE_MENUS}" = "yes" ; then
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_MENUS 1
23068 if test "${GNU_MALLOC}" = "yes" ; then
23070 cat >>confdefs.h <<\_ACEOF
23071 #define GNU_MALLOC 1
23075 if test "${REL_ALLOC}" = "yes" ; then
23077 cat >>confdefs.h <<\_ACEOF
23078 #define REL_ALLOC 1
23087 #### Report on what we decided to do.
23088 #### Report GTK as a toolkit, even if it doesn't use Xt.
23089 #### It makes printing result more understandable as using GTK sets
23090 #### toolkit_scroll_bars to yes by default.
23091 if test "${HAVE_GTK}" = "yes"; then
23096 Configured
for \
`${canonical}'.
23098 Where should the build process find the source code? ${srcdir}
23099 What operating system and machine description files should Emacs use?
23100 \`${opsysfile}' and \`${machfile}'
23101 What compiler should emacs be built with?
${CC} ${CFLAGS}
23102 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23103 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23104 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23105 What window system should Emacs use?
${window_system}
23106 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23108 if test -n "${x_includes}"; then
23109 echo " Where
do we
find X Windows header files?
${x_includes}"
23111 echo " Where
do we
find X Windows header files? Standard
dirs"
23113 if test -n "${x_libraries}"; then
23114 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23116 echo " Where
do we
find X Windows libraries? Standard
dirs"
23119 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23120 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23121 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23122 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23123 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23124 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23125 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23128 if test $USE_XASSERTS = yes; then
23129 echo " Compiling with asserts turned on.
"
23130 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23134 if test "$USE_X_TOOLKIT" = GTK; then
23135 case "$canonical" in
23137 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23138 will probably get a crash on startup. If this happens
, please use another
23139 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23146 # Remove any trailing slashes in these variables.
23147 test "${prefix}" != NONE &&
23148 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23149 test "${exec_prefix}" != NONE &&
23150 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23152 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23153 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23154 ## from Makefile.c can correctly provide the arg `-traditional' to the
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23165 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23166 $EGREP "yes..
yes" >/dev/null 2>&1; then
23167 CPP_NEED_TRADITIONAL=no
23169 CPP_NEED_TRADITIONAL=yes
23174 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
"
23176 ac_config_commands="$ac_config_commands default
"
23178 cat >confcache <<\_ACEOF
23179 # This file is a shell script that caches the results of configure
23180 # tests run on this system so they can be shared between configure
23181 # scripts and configure runs, see configure's option --config-cache.
23182 # It is not useful on other systems. If it contains results you don't
23183 # want to keep, you may remove or edit it.
23185 # config.status only pays attention to the cache file if you give it
23186 # the --recheck option to rerun configure.
23188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23190 # following values.
23194 # The following way of writing the cache mishandles newlines in values,
23195 # but we know of no workaround that is simple, portable, and efficient.
23196 # So, we kill variables containing newlines.
23197 # Ultrix sh set writes to stderr and can't be redirected directly,
23198 # and sets the high bit in the cache file unless we assign to the vars.
23200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23201 eval ac_val=\$$ac_var
23205 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23206 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23209 _ | IFS | as_nl) ;; #(
23210 *) $as_unset $ac_var ;;
23216 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23217 *${as_nl}ac_space=\ *)
23218 # `set' does not quote correctly, so add quotes (double-quote
23219 # substitution turns \\\\ into \\, and sed turns \\ into \).
23222 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23225 # `set' quotes correctly as required by POSIX, so do not add quotes.
23226 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23235 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23237 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23239 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23240 if test -w "$cache_file"; then
23241 test "x
$cache_file" != "x
/dev
/null
" &&
23242 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23243 echo "$as_me: updating cache
$cache_file" >&6;}
23244 cat confcache >$cache_file
23246 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23247 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23252 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23253 # Let make expand exec_prefix.
23254 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23256 DEFS=-DHAVE_CONFIG_H
23260 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23261 # 1. Remove the extension, and $U if already installed.
23262 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23263 ac_i=`echo "$ac_i" | sed "$ac_script"`
23264 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23265 # will be set to the directory where LIBOBJS objects are built.
23266 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23267 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23269 LIBOBJS=$ac_libobjs
23271 LTLIBOBJS=$ac_ltlibobjs
23275 : ${CONFIG_STATUS=./config.status}
23276 ac_clean_files_save=$ac_clean_files
23277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23278 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23279 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23280 cat >$CONFIG_STATUS <<_ACEOF
23282 # Generated by $as_me.
23283 # Run this file to recreate the current configuration.
23284 # Compiler output produced by configure, useful for debugging
23285 # configure, is in config.log if it exists.
23288 ac_cs_recheck=false
23290 SHELL=\${CONFIG_SHELL-$SHELL}
23293 cat >>$CONFIG_STATUS <<\_ACEOF
23294 ## --------------------- ##
23295 ## M4sh Initialization. ##
23296 ## --------------------- ##
23298 # Be more Bourne compatible
23299 DUALCASE=1; export DUALCASE # for MKS sh
23300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23303 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23304 # is contrary to our usage. Disable this feature.
23305 alias -g '${1+"$@"}'='"$@
"'
23306 setopt NO_GLOB_SUBST
23308 case `(set -o) 2>/dev/null` in
23309 *posix*) set -o posix ;;
23318 # Avoid depending upon Character Ranges.
23319 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23320 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23321 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23322 as_cr_digits='0123456789'
23323 as_cr_alnum=$as_cr_Letters$as_cr_digits
23325 # The user is always right.
23326 if test "${PATH_SEPARATOR+set}" != set; then
23327 echo "#! /bin/sh" >conf$$.sh
23328 echo "exit 0" >>conf$$.sh
23330 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23338 # Support unset when possible.
23339 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23347 # We need space, tab and new line, in precisely that order. Quoting is
23348 # there to prevent editors from complaining about space-tab.
23349 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23350 # splitting by setting IFS to empty value.)
23355 # Find who we are. Look in the path if we contain no directory separator.
23357 *[\\/]* ) as_myself
=$0 ;;
23358 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23359 for as_dir
in $PATH
23362 test -z "$as_dir" && as_dir
=.
23363 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23369 # We did not find ourselves, most probably we were run as `sh COMMAND'
23370 # in which case we are not to be found in the path.
23371 if test "x$as_myself" = x
; then
23374 if test ! -f "$as_myself"; then
23375 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23376 { (exit 1); exit 1; }
23379 # Work around bugs in pre-3.0 UWIN ksh.
23380 for as_var
in ENV MAIL MAILPATH
23381 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23389 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23390 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23391 LC_TELEPHONE LC_TIME
23393 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23394 eval $as_var=C
; export $as_var
23396 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23400 # Required to use basename.
23401 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23402 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23408 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23409 as_basename
=basename
23415 # Name of the executable.
23416 as_me
=`$as_basename -- "$0" ||
23417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23418 X"$0" : 'X\(//\)$' \| \
23419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23421 sed '/^.*\/\([^/][^/]*\)\/*$/{
23440 as_lineno_1
=$LINENO
23441 as_lineno_2
=$LINENO
23442 test "x$as_lineno_1" != "x$as_lineno_2" &&
23443 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23445 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23446 # uniformly replaced by the line number. The first 'sed' inserts a
23447 # line-number line after each line using $LINENO; the second 'sed'
23448 # does the real work. The second script uses 'N' to pair each
23449 # line-number line with the line containing $LINENO, and appends
23450 # trailing '-' during substitution so that $LINENO is not a special
23451 # case at line end.
23452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23453 # scripts with optimization help from Paolo Bonzini. Blame Lee
23454 # E. McMahon (1931-1989) for sed's syntax. :-)
23466 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23469 ' >$as_me.lineno
&&
23470 chmod +x
"$as_me.lineno" ||
23471 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23472 { (exit 1); exit 1; }; }
23474 # Don't try to exec as it changes $[0], causing all sort of problems
23475 # (the dirname of $[0] is not the place where we might find the
23476 # original and so on. Autoconf is especially sensitive to this).
23477 .
"./$as_me.lineno"
23478 # Exit status is that of the last command.
23483 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23489 ECHO_C
= ECHO_N
= ECHO_T
=
23490 case `echo -n x` in
23492 case `echo 'x\c'` in
23493 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23500 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23501 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23507 rm -f conf$$ conf$$.exe conf$$.
file
23508 if test -d conf$$.dir
; then
23509 rm -f conf$$.dir
/conf$$.
file
23515 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23517 # ... but there are two gotchas:
23518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23520 # In both cases, we have to default to `cp -p'.
23521 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23523 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23528 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23529 rmdir conf$$.dir
2>/dev
/null
23531 if mkdir
-p .
2>/dev
/null
; then
23534 test -d .
/-p && rmdir .
/-p
23538 if test -x / >/dev
/null
2>&1; then
23539 as_test_x
='test -x'
23541 if ls -dL / >/dev
/null
2>&1; then
23548 if test -d "$1"; then
23554 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23555 ???[sx]*):;;*)false;;esac;fi
23559 as_executable_p
=$as_test_x
23561 # Sed expression to map a string onto a valid CPP name.
23562 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23564 # Sed expression to map a string onto a valid variable name.
23565 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23570 # Save the log message, to keep $[0] and so on meaningful, and to
23571 # report actual input values of CONFIG_FILES etc. instead of their
23572 # values after options handling.
23574 This file was extended by $as_me, which was
23575 generated by GNU Autoconf 2.61. Invocation command line was
23577 CONFIG_FILES = $CONFIG_FILES
23578 CONFIG_HEADERS = $CONFIG_HEADERS
23579 CONFIG_LINKS = $CONFIG_LINKS
23580 CONFIG_COMMANDS = $CONFIG_COMMANDS
23583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23588 cat >>$CONFIG_STATUS <<_ACEOF
23589 # Files that config.status was made for.
23590 config_files="$ac_config_files"
23591 config_headers="$ac_config_headers"
23592 config_commands="$ac_config_commands"
23596 cat >>$CONFIG_STATUS <<\_ACEOF
23598 \`$as_me' instantiates files from templates according to the
23599 current configuration.
23601 Usage: $0 [OPTIONS] [FILE]...
23603 -h, --help print this help, then exit
23604 -V, --version print version number and configuration settings, then exit
23605 -q, --quiet do not print progress messages
23606 -d, --debug don't remove temporary files
23607 --recheck update $as_me by reconfiguring in the same conditions
23608 --file=FILE[:TEMPLATE]
23609 instantiate the configuration file FILE
23610 --header=FILE[:TEMPLATE]
23611 instantiate the configuration header FILE
23613 Configuration files:
23616 Configuration headers:
23619 Configuration commands:
23622 Report bugs to <bug-autoconf@gnu.org>."
23625 cat >>$CONFIG_STATUS <<_ACEOF
23628 configured by $0, generated by GNU Autoconf 2.61,
23629 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23631 Copyright (C) 2006 Free Software Foundation, Inc.
23632 This config.status script is free software; the Free Software Foundation
23633 gives unlimited permission to copy, distribute and modify it."
23640 cat >>$CONFIG_STATUS <<\_ACEOF
23641 # If no file are specified by the user, then we need to provide default
23642 # value. By we need to know if files were specified by the user.
23648 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23649 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23660 # Handling of the options.
23661 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23663 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23664 echo "$ac_cs_version"; exit ;;
23665 --debug |
--debu |
--deb |
--de |
--d |
-d )
23667 --file |
--fil |
--fi |
--f )
23669 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23670 ac_need_defaults
=false
;;
23671 --header |
--heade |
--head |
--hea )
23673 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23674 ac_need_defaults
=false
;;
23676 # Conflict between --help and --header
23677 { echo "$as_me: error: ambiguous option: $1
23678 Try \`$0 --help' for more information." >&2
23679 { (exit 1); exit 1; }; };;
23680 --help |
--hel |
-h )
23681 echo "$ac_cs_usage"; exit ;;
23682 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23683 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23686 # This is an error.
23687 -*) { echo "$as_me: error: unrecognized option: $1
23688 Try \`$0 --help' for more information." >&2
23689 { (exit 1); exit 1; }; } ;;
23691 *) ac_config_targets
="$ac_config_targets $1"
23692 ac_need_defaults
=false
;;
23698 ac_configure_extra_args
=
23700 if $ac_cs_silent; then
23702 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23706 cat >>$CONFIG_STATUS <<_ACEOF
23707 if \$ac_cs_recheck; then
23708 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23709 CONFIG_SHELL=$SHELL
23710 export CONFIG_SHELL
23711 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23715 cat >>$CONFIG_STATUS <<\_ACEOF
23719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23720 ## Running $as_me. ##
23726 cat >>$CONFIG_STATUS <<_ACEOF
23730 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23734 cat >>$CONFIG_STATUS <<\_ACEOF
23736 # Handling of arguments.
23737 for ac_config_target
in $ac_config_targets
23739 case $ac_config_target in
23740 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23741 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23742 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23743 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23744 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23745 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23746 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23747 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23748 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23749 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23750 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23751 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23753 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23754 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23755 { (exit 1); exit 1; }; };;
23760 # If the user did not use the arguments to specify the items to instantiate,
23761 # then the envvar interface is used. Set only those that are not.
23762 # We use the long form for the default assignment because of an extremely
23763 # bizarre bug on SunOS 4.1.3.
23764 if $ac_need_defaults; then
23765 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23766 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23767 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23770 # Have a temporary directory for convenience. Make it in the build tree
23771 # simply because there is no reason against having it here, and in addition,
23772 # creating and moving files from /tmp can sometimes cause problems.
23773 # Hook for its removal unless debugging.
23774 # Note that there is a small window in which the directory will not be cleaned:
23775 # after its creation but before its name has been assigned to `$tmp'.
23779 trap 'exit_status=$?
23780 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23782 trap '{ (exit 1); exit 1; }' 1 2 13 15
23784 # Create a (secure) tmp directory for tmp files.
23787 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23788 test -n "$tmp" && test -d "$tmp"
23791 tmp
=.
/conf$$
-$RANDOM
23792 (umask 077 && mkdir
"$tmp")
23795 echo "$me: cannot create a temporary directory in ." >&2
23796 { (exit 1); exit 1; }
23800 # Set up the sed scripts for CONFIG_FILES section.
23803 # No need to generate the scripts if there are no CONFIG_FILES.
23804 # This happens for instance when ./config.status config.h
23805 if test -n "$CONFIG_FILES"; then
23812 for ac_last_try
in false false false false false
:; do
23813 cat >conf$
$subs.
sed <<_ACEOF
23814 SHELL!$SHELL$ac_delim
23815 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23816 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23817 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23818 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23819 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23820 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23821 exec_prefix!$exec_prefix$ac_delim
23822 prefix!$prefix$ac_delim
23823 program_transform_name!$program_transform_name$ac_delim
23824 bindir!$bindir$ac_delim
23825 sbindir!$sbindir$ac_delim
23826 libexecdir!$libexecdir$ac_delim
23827 datarootdir!$datarootdir$ac_delim
23828 datadir!$datadir$ac_delim
23829 sysconfdir!$sysconfdir$ac_delim
23830 sharedstatedir!$sharedstatedir$ac_delim
23831 localstatedir!$localstatedir$ac_delim
23832 includedir!$includedir$ac_delim
23833 oldincludedir!$oldincludedir$ac_delim
23834 docdir!$docdir$ac_delim
23835 infodir!$infodir$ac_delim
23836 htmldir!$htmldir$ac_delim
23837 dvidir!$dvidir$ac_delim
23838 pdfdir!$pdfdir$ac_delim
23839 psdir!$psdir$ac_delim
23840 libdir!$libdir$ac_delim
23841 localedir!$localedir$ac_delim
23842 mandir!$mandir$ac_delim
23843 DEFS!$DEFS$ac_delim
23844 ECHO_C!$ECHO_C$ac_delim
23845 ECHO_N!$ECHO_N$ac_delim
23846 ECHO_T!$ECHO_T$ac_delim
23847 LIBS!$LIBS$ac_delim
23848 build_alias!$build_alias$ac_delim
23849 host_alias!$host_alias$ac_delim
23850 target_alias!$target_alias$ac_delim
23851 MAINT!$MAINT$ac_delim
23852 build!$build$ac_delim
23853 build_cpu!$build_cpu$ac_delim
23854 build_vendor!$build_vendor$ac_delim
23855 build_os!$build_os$ac_delim
23856 host!$host$ac_delim
23857 host_cpu!$host_cpu$ac_delim
23858 host_vendor!$host_vendor$ac_delim
23859 host_os!$host_os$ac_delim
23861 CFLAGS!$CFLAGS$ac_delim
23862 LDFLAGS!$LDFLAGS$ac_delim
23863 CPPFLAGS!$CPPFLAGS$ac_delim
23864 ac_ct_CC!$ac_ct_CC$ac_delim
23865 EXEEXT!$EXEEXT$ac_delim
23866 OBJEXT!$OBJEXT$ac_delim
23868 GREP!$GREP$ac_delim
23869 EGREP!$EGREP$ac_delim
23870 LN_S!$LN_S$ac_delim
23871 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23872 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23873 INSTALL_DATA!$INSTALL_DATA$ac_delim
23874 RANLIB!$RANLIB$ac_delim
23875 INSTALL_INFO!$INSTALL_INFO$ac_delim
23876 GZIP_PROG!$GZIP_PROG$ac_delim
23877 LIBSOUND!$LIBSOUND$ac_delim
23878 PKG_CONFIG!$PKG_CONFIG$ac_delim
23879 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23880 ALSA_LIBS!$ALSA_LIBS$ac_delim
23881 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23882 SET_MAKE!$SET_MAKE$ac_delim
23883 XMKMF!$XMKMF$ac_delim
23884 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23885 GTK_LIBS!$GTK_LIBS$ac_delim
23886 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23887 XFT_LIBS!$XFT_LIBS$ac_delim
23888 ALLOCA!$ALLOCA$ac_delim
23889 liblockfile!$liblockfile$ac_delim
23890 LIBOBJS!$LIBOBJS$ac_delim
23891 NEED_SETGID!$NEED_SETGID$ac_delim
23892 KMEM_GROUP!$KMEM_GROUP$ac_delim
23893 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23894 GETOPT_H!$GETOPT_H$ac_delim
23895 GETOPTOBJS!$GETOPTOBJS$ac_delim
23896 version!$version$ac_delim
23897 configuration!$configuration$ac_delim
23898 canonical!$canonical$ac_delim
23899 srcdir!$srcdir$ac_delim
23900 lispdir!$lispdir$ac_delim
23901 locallisppath!$locallisppath$ac_delim
23902 lisppath!$lisppath$ac_delim
23903 x_default_search_path!$x_default_search_path$ac_delim
23904 etcdir!$etcdir$ac_delim
23905 archlibdir!$archlibdir$ac_delim
23906 bitmapdir!$bitmapdir$ac_delim
23907 gamedir!$gamedir$ac_delim
23908 gameuser!$gameuser$ac_delim
23909 c_switch_system!$c_switch_system$ac_delim
23910 c_switch_machine!$c_switch_machine$ac_delim
23913 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23915 elif $ac_last_try; then
23916 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23917 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23918 { (exit 1); exit 1; }; }
23920 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23924 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23925 if test -n "$ac_eof"; then
23926 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23927 ac_eof
=`expr $ac_eof + 1`
23930 cat >>$CONFIG_STATUS <<_ACEOF
23931 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23932 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23935 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23936 s/^/s,@/; s/!/@,|#_!!_#|/
23939 s/'"$ac_delim"'$/,g/; t
23941 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23942 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23943 rm -f conf$
$subs.
sed
23944 cat >>$CONFIG_STATUS <<_ACEOF
23950 for ac_last_try
in false false false false false
:; do
23951 cat >conf$
$subs.
sed <<_ACEOF
23952 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23953 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23954 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23955 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23956 machfile!$machfile$ac_delim
23957 opsysfile!$opsysfile$ac_delim
23958 carbon_appdir!$carbon_appdir$ac_delim
23959 LTLIBOBJS!$LTLIBOBJS$ac_delim
23962 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23964 elif $ac_last_try; then
23965 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23966 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23967 { (exit 1); exit 1; }; }
23969 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23973 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23974 if test -n "$ac_eof"; then
23975 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23976 ac_eof
=`expr $ac_eof + 1`
23979 cat >>$CONFIG_STATUS <<_ACEOF
23980 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23984 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23985 s/^/s,@/; s/!/@,|#_!!_#|/
23988 s/'"$ac_delim"'$/,g/; t
23990 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23991 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23992 rm -f conf$
$subs.
sed
23993 cat >>$CONFIG_STATUS <<_ACEOF
24000 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24001 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24002 # trailing colons and then remove the whole line if VPATH becomes empty
24003 # (actually we leave an empty line to preserve line numbers).
24004 if test "x$srcdir" = x.
; then
24005 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24006 s/:*\$(srcdir):*/:/
24007 s/:*\${srcdir}:*/:/
24009 s/^\([^=]*=[ ]*\):*/\1/
24015 cat >>$CONFIG_STATUS <<\_ACEOF
24016 fi # test -n "$CONFIG_FILES"
24019 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24022 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24024 case $ac_mode$ac_tag in
24026 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24027 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24028 { (exit 1); exit 1; }; };;
24029 :[FH
]-) ac_tag
=-:-;;
24030 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24047 -) ac_f
="$tmp/stdin";;
24048 *) # Look for the file first in the build tree, then in the source tree
24049 # (if the path is not absolute). The absolute path cannot be DOS-style,
24050 # because $ac_f cannot contain `:'.
24054 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24056 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24057 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24058 { (exit 1); exit 1; }; };;
24060 ac_file_inputs
="$ac_file_inputs $ac_f"
24063 # Let's still pretend it is `configure' which instantiates (i.e., don't
24064 # use $as_me), people would be surprised to read:
24065 # /* config.h. Generated by config.status. */
24066 configure_input
="Generated from "`IFS=:
24067 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24068 if test x
"$ac_file" != x-
; then
24069 configure_input
="$ac_file. $configure_input"
24070 { echo "$as_me:$LINENO: creating $ac_file" >&5
24071 echo "$as_me: creating $ac_file" >&6;}
24075 *:-:* |
*:-) cat >"$tmp/stdin";;
24080 ac_dir
=`$as_dirname -- "$ac_file" ||
24081 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24082 X"$ac_file" : 'X\(//\)[^/]' \| \
24083 X"$ac_file" : 'X\(//\)$' \| \
24084 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24090 /^X\(\/\/\)[^/].*/{
24105 -*) as_dir
=.
/$as_dir;;
24107 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24111 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24112 *) as_qdir
=$as_dir;;
24114 as_dirs
="'$as_qdir' $as_dirs"
24115 as_dir
=`$as_dirname -- "$as_dir" ||
24116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24117 X"$as_dir" : 'X\(//\)[^/]' \| \
24118 X"$as_dir" : 'X\(//\)$' \| \
24119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24125 /^X\(\/\/\)[^/].*/{
24138 test -d "$as_dir" && break
24140 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24141 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24142 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24143 { (exit 1); exit 1; }; }; }
24147 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24149 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24150 # A ".." for each directory in $ac_dir_suffix.
24151 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24152 case $ac_top_builddir_sub in
24153 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24154 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24157 ac_abs_top_builddir
=$ac_pwd
24158 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24159 # for backward compatibility:
24160 ac_top_builddir
=$ac_top_build_prefix
24163 .
) # We are building in place.
24165 ac_top_srcdir
=$ac_top_builddir_sub
24166 ac_abs_top_srcdir
=$ac_pwd ;;
24167 [\\/]* | ?
:[\\/]* ) # Absolute name.
24168 ac_srcdir
=$srcdir$ac_dir_suffix;
24169 ac_top_srcdir
=$srcdir
24170 ac_abs_top_srcdir
=$srcdir ;;
24171 *) # Relative name.
24172 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24173 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24174 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24176 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24186 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24187 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24191 cat >>$CONFIG_STATUS <<\_ACEOF
24192 # If the template does not know about datarootdir, expand it.
24193 # FIXME: This hack should be removed a few years after 2.60.
24194 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24196 case `sed -n '/datarootdir/ {
24205 ' $ac_file_inputs` in
24206 *datarootdir
*) ac_datarootdir_seen
=yes;;
24207 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24208 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24209 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24211 cat >>$CONFIG_STATUS <<_ACEOF
24212 ac_datarootdir_hack='
24213 s&@datadir@&$datadir&g
24214 s&@docdir@&$docdir&g
24215 s&@infodir@&$infodir&g
24216 s&@localedir@&$localedir&g
24217 s&@mandir@&$mandir&g
24218 s&\\\${datarootdir}&$datarootdir&g' ;;
24222 # Neutralize VPATH when `$srcdir' = `.'.
24223 # Shell code in configure.ac might set extrasub.
24224 # FIXME: do we really want to maintain this feature?
24225 cat >>$CONFIG_STATUS <<_ACEOF
24229 cat >>$CONFIG_STATUS <<\_ACEOF
24231 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24232 s
&@configure_input@
&$configure_input&;t t
24233 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24234 s
&@srcdir@
&$ac_srcdir&;t t
24235 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24236 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24237 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24238 s
&@builddir@
&$ac_builddir&;t t
24239 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24240 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24241 s
&@INSTALL@
&$ac_INSTALL&;t t
24242 $ac_datarootdir_hack
24243 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24246 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24247 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24248 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24249 which seems to be undefined. Please make sure it is defined." >&5
24250 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24251 which seems to be undefined. Please make sure it is defined." >&2;}
24255 -) cat "$tmp/out"; rm -f "$tmp/out";;
24256 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24265 # Transform confdefs.h into a sed script `conftest.defines', that
24266 # substitutes the proper values into config.h.in to produce config.h.
24267 rm -f conftest.defines conftest.
tail
24268 # First, append a space to every undef/define line, to ease matching.
24269 echo 's/$/ /' >conftest.defines
24270 # Then, protect against being on the right side of a sed subst, or in
24271 # an unquoted here document, in config.status. If some macros were
24272 # called several times there might be several #defines for the same
24273 # symbol, which is useless. But do not sort them, since the last
24274 # AC_DEFINE must be honored.
24275 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24276 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24277 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24278 # PARAMS is the parameter list in the macro definition--in most cases, it's
24279 # just an empty string.
24280 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24281 ac_dB
='\\)[ (].*,\\1define\\2'
24289 s/^[ ]*#[ ]*define[ ][ ]*//
24294 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24295 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24296 ' >>conftest.defines
24298 # Remove the space that was appended to ease matching.
24299 # Then replace #undef with comments. This is necessary, for
24300 # example, in the case of _POSIX_SOURCE, which is predefined and required
24301 # on some systems where configure will not decide to define it.
24302 # (The regexp can be short, since the line contains either #define or #undef.)
24304 s,^[ #]*u.*,/* & */,' >>conftest.defines
24306 # Break up conftest.defines:
24307 ac_max_sed_lines
=50
24309 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24310 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24311 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24313 ac_in
='$ac_file_inputs'
24314 ac_out
='"$tmp/out1"'
24315 ac_nxt
='"$tmp/out2"'
24319 # Write a here document:
24320 cat >>$CONFIG_STATUS <<_ACEOF
24321 # First, check the format of the line:
24322 cat >"\$tmp/defines.sed" <<\\CEOF
24323 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24324 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24328 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24330 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24331 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24332 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24333 grep . conftest.
tail >/dev
/null ||
break
24334 rm -f conftest.defines
24335 mv conftest.
tail conftest.defines
24337 rm -f conftest.defines conftest.
tail
24339 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24340 cat >>$CONFIG_STATUS <<\_ACEOF
24341 if test x
"$ac_file" != x-
; then
24342 echo "/* $configure_input */" >"$tmp/config.h"
24343 cat "$ac_result" >>"$tmp/config.h"
24344 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24345 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24346 echo "$as_me: $ac_file is unchanged" >&6;}
24349 mv "$tmp/config.h" $ac_file
24352 echo "/* $configure_input */"
24358 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24359 echo "$as_me: executing $ac_file commands" >&6;}
24364 case $ac_file$ac_mode in
24367 ### Make the necessary directories, if they don't exist.
24368 for dir
in etc lisp
; do
24369 test -d ${dir} || mkdir
${dir}
24372 # Build src/Makefile from ${srcdir}/src/Makefile.c
24373 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24374 # This must be done after src/config.h is built, since we rely on that file.
24376 # Now get this: Some word that is part of the ${srcdir} directory name
24377 # or the ${configuration} value might, just might, happen to be an
24378 # identifier like `sun4' or `i386' or something, and be predefined by
24379 # the C preprocessor to some helpful value like 1, or maybe the empty
24380 # string. Needless to say consequent macro substitutions are less
24381 # than conducive to the makefile finding the correct directory.
24382 undefs
="`echo $top_srcdir $configuration $canonical |
24383 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24384 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24387 echo creating src
/epaths.h
24388 ${MAKE-make} epaths-force
24390 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24391 # `..' to `. .' unless invoked with -traditional
24393 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24394 CPPFLAGS
="$CPPFLAGS -traditional"
24397 echo creating lib-src
/Makefile
24399 rm -f junk.c junk1.c junk2.c
24400 sed -e '/start of cpp stuff/q' \
24401 < Makefile.c
> junk1.c
24402 sed -e '1,/start of cpp stuff/d'\
24403 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24404 < Makefile.c
> junk.c
24405 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24406 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24407 cat junk1.c junk2.c
> Makefile.new
24408 rm -f junk.c junk1.c junk2.c
24409 chmod 444 Makefile.new
24410 mv -f Makefile.new Makefile
24413 echo creating src
/Makefile
24415 rm -f junk.c junk1.c junk2.c
24416 sed -e '/start of cpp stuff/q' \
24417 < Makefile.c
> junk1.c
24418 sed -e '1,/start of cpp stuff/d'\
24419 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24420 < Makefile.c
> junk.c
24421 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24422 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24423 cat junk1.c junk2.c
> Makefile.new
24424 rm -f junk.c junk1.c junk2.c
24425 chmod 444 Makefile.new
24426 mv -f Makefile.new Makefile
24429 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24430 echo creating src
/.gdbinit
24431 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24434 # This is how we know whether to re-run configure in certain cases.
24435 touch src
/config.stamp
24443 { (exit 0); exit 0; }
24445 chmod +x
$CONFIG_STATUS
24446 ac_clean_files
=$ac_clean_files_save
24449 # configure is writing to config.log, and then calls config.status.
24450 # config.status does its own redirection, appending to config.log.
24451 # Unfortunately, on DOS this fails, as config.log is still kept open
24452 # by configure, so config.status won't be able to write to it; its
24453 # output is simply discarded. So we exec the FD to /dev/null,
24454 # effectively closing config.log, so it can be properly (re)opened and
24455 # appended to by config.status. When coming back to configure, we
24456 # need to make the FD available again.
24457 if test "$no_create" != yes; then
24459 ac_config_status_args
=
24460 test "$silent" = yes &&
24461 ac_config_status_args
="$ac_config_status_args --quiet"
24463 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24465 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24466 # would make configure fail if this is the last instruction.
24467 $ac_cs_success ||
{ (exit 1); exit 1; }