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-gpm use -lgpm for mouse support on a GNU/Linux console
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don
't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables
:
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1355 nonstandard directory
<lib dir
>
1356 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1357 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1358 you have headers
in a nonstandard directory
<include dir
>
1360 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1362 Use these variables to override the choices made by
`configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1726 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1737 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1738 echo "$as_me: former value
: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1740 echo "$as_me: current value
: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1758 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1759 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s
,x
,x
', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1804 lispdir='${datadir}/emacs
/${version}/lisp
'
1805 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1806 '${datadir}/emacs
/site-lisp
'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1808 etcdir='${datadir}/emacs
/${version}/etc
'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs
/${version}/etc
'
1811 gamedir='${localstatedir}/games
/emacs
'
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1857 cat >>confdefs.h <<\_ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1902 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1903 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1905 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1906 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1945 # Check whether --with-gpm was given.
1946 if test "${with_gpm+set}" = set; then
1951 # Check whether --with-gtk was given.
1952 if test "${with_gtk+set}" = set; then
1957 # Check whether --with-pkg-config-prog was given.
1958 if test "${with_pkg_config_prog+set}" = set; then
1959 withval=$with_pkg_config_prog;
1963 # Check whether --with-toolkit-scroll-bars was given.
1964 if test "${with_toolkit_scroll_bars+set}" = set; then
1965 withval=$with_toolkit_scroll_bars;
1969 # Check whether --with-xim was given.
1970 if test "${with_xim+set}" = set; then
1975 # Check whether --with-carbon was given.
1976 if test "${with_carbon+set}" = set; then
1977 withval=$with_carbon;
1980 # Check whether --enable-carbon-app was given.
1981 if test "${enable_carbon_app+set}" = set; then
1982 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1986 # Check whether --enable-asserts was given.
1987 if test "${enable_asserts+set}" = set; then
1988 enableval=$enable_asserts; USE_XASSERTS=$enableval
1994 # Check whether --enable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1998 USE_MAINTAINER_MODE=no
2001 if test $USE_MAINTAINER_MODE = yes; then
2008 # Check whether --enable-locallisppath was given.
2009 if test "${enable_locallisppath+set}" = set; then
2010 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2012 elif test "${enableval}" != "yes"; then
2013 locallisppath=${enableval}
2018 #### Make srcdir absolute, if it isn't already. It
's important to
2019 #### avoid running the path through pwd unnecessarily, since pwd can
2020 #### give you automounter prefixes, which can go away. We do all this
2021 #### so Emacs can find its files when run uninstalled.
2022 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2027 ## We may be able to use the $PWD environment variable to make this
2028 ## absolute. But sometimes PWD is inaccurate.
2029 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2030 ## but that tested only for a well-formed and valid PWD,
2031 ## it did not object when PWD was well-formed and valid but just wrong.
2032 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2036 srcdir
="`(cd ${srcdir}; pwd)`"
2039 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2042 #### Check if the source directory already has a configured system in it.
2043 if test `pwd` != `(cd ${srcdir} && pwd)` \
2044 && test -f "${srcdir}/src/config.h" ; then
2045 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&5
2051 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2052 as a build directory right now; it has been configured in its own
2053 right. To configure in another directory as well, you MUST
2054 use GNU make. If you do not have GNU make, then you must
2055 now do \`make distclean' in ${srcdir},
2056 and then run $0 again." >&2;}
2059 #### Given the configuration name, set machfile and opsysfile to the
2060 #### names of the m/*.h and s/*.h files we should use.
2062 ### Canonicalize the configuration name.
2065 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2066 if test -f "$ac_dir/install-sh"; then
2068 ac_install_sh
="$ac_aux_dir/install-sh -c"
2070 elif test -f "$ac_dir/install.sh"; then
2072 ac_install_sh
="$ac_aux_dir/install.sh -c"
2074 elif test -f "$ac_dir/shtool"; then
2076 ac_install_sh
="$ac_aux_dir/shtool install -c"
2080 if test -z "$ac_aux_dir"; then
2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2082 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2083 { (exit 1); exit 1; }; }
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2091 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2092 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2095 # Make sure we can run config.sub.
2096 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2099 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: checking build system type" >&5
2102 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 ac_build_alias
=$build_alias
2107 test "x$ac_build_alias" = x
&&
2108 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2109 test "x$ac_build_alias" = x
&&
2110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
2113 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120 echo "${ECHO_T}$ac_cv_build" >&6; }
2121 case $ac_cv_build in
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124 echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2128 ac_save_IFS
=$IFS; IFS
='-'
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2138 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2141 { echo "$as_me:$LINENO: checking host system type" >&5
2142 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test "x$host_alias" = x
; then
2147 ac_cv_host
=$ac_cv_build
2149 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157 echo "${ECHO_T}$ac_cv_host" >&6; }
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161 echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2165 ac_save_IFS
=$IFS; IFS
='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 configuration
=${host_alias-${build_alias-$host}}
2183 ### If you add support for a new configuration, add code to this
2184 ### switch statement to recognize your configuration name and select
2185 ### the appropriate operating system and machine description files.
2187 ### You would hope that you could choose an m/*.h file pretty much
2188 ### based on the machine portion of the configuration name, and an s-
2189 ### file based on the operating system portion. However, it turns out
2190 ### that each m/*.h file is pretty manufacturer-specific - for
2191 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2192 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2193 ### machines. So we basically have to have a special case for each
2194 ### configuration name.
2196 ### As far as handling version numbers on operating systems is
2197 ### concerned, make sure things will fail in a fixable way. If
2198 ### /etc/MACHINES doesn't say anything about version numbers, be
2199 ### prepared to handle anything reasonably. If version numbers
2200 ### matter, be sure /etc/MACHINES says something about it.
2202 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2203 ### "System V Release 4"; he writes, "The old convention encouraged
2204 ### confusion between `system' and `release' levels'."
2206 machine
='' opsys
='' unported
=no
2207 case "${canonical}" in
2212 case "${canonical}" in
2213 alpha
*-*-freebsd*) machine
=alpha
;;
2214 ia64-
*-freebsd*) machine
=ia64
;;
2215 sparc64-
*-freebsd*) machine
=sparc
;;
2216 powerpc-
*-freebsd*) machine
=macppc
;;
2217 i
[3456]86-*-freebsd*) machine
=intel386
;;
2218 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2225 if test -f /usr
/lib
/crti.o
; then
2227 cat >>confdefs.h
<<\_ACEOF
2233 case "${canonical}" in
2234 alpha
*-*-netbsd*) machine
=alpha
;;
2235 i
[3456]86-*-netbsd*) machine
=intel386
;;
2237 # This is somewhat bogus.
2238 machine
=hp9000s300
;;
2239 mips-
*-netbsd*) machine
=pmax
;;
2240 mipsel-
*-netbsd*) machine
=pmax
;;
2241 mipseb-
*-netbsd*) machine
=pmax
;;
2242 ns32k-
*-netbsd*) machine
=ns32000
;;
2243 powerpc-
*-netbsd*) machine
=macppc
;;
2244 sparc
*-*-netbsd*) machine
=sparc
;;
2245 vax-
*-netbsd*) machine
=vax
;;
2246 arm-
*-netbsd*) machine
=arm
;;
2247 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2248 hppa-
*-netbsd*) machine
=hp800
;;
2249 shle-
*-netbsd*) machine
=sh3el
;;
2256 case "${canonical}" in
2257 alpha
*-*-openbsd*) machine
=alpha
;;
2258 arm-
*-openbsd*) machine
=arm
;;
2259 hppa-
*-openbsd*) machine
=hp9000s300
;;
2260 i386-
*-openbsd*) machine
=intel386
;;
2261 m68k-
*-openbsd*) machine
=hp9000s300
;;
2262 m88k-
*-openbsd*) machine
=aviion
;;
2263 mips64-
*-openbsd*) machine
=mips64
;;
2264 powerpc-
*-openbsd*) machine
=macppc
;;
2265 sh-
*-openbsd*) machine
=sh3el
;;
2266 sparc
*-*-openbsd*) machine
=sparc
;;
2267 vax-
*-openbsd*) machine
=vax
;;
2268 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2275 case "${canonical}" in
2276 i
[3456]86-*-lynxos*) machine
=intel386
;;
2277 powerpc-
*-lynxos*) machine
=powerpc
;;
2282 arm-acorn-riscix1.1
* )
2283 machine
=acorn opsys
=riscix1-1
2285 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2286 ## This name is riscix12 instead of riscix1.2
2287 ## to avoid a file name conflict on MSDOS.
2288 machine
=acorn opsys
=riscix12
2294 case "${canonical}" in
2295 i
[345]86-*-bsdi*) machine
=intel386
;;
2296 sparc-
*-bsdi*) machine
=sparc
;;
2297 powerpc-
*-bsdi*) machine
=macppc
;;
2299 case "${canonical}" in
2300 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2301 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2302 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2303 *-*-bsdi3* ) opsys
=bsdos3
;;
2304 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2309 ## Strictly speaking, we need the version of the alliant operating
2310 ## system to choose the right machine file, but currently the
2311 ## configuration name doesn't tell us enough to choose the right
2312 ## one; we need to give alliants their own operating system name to
2313 ## do this right. When someone cares, they can help us.
2315 machine
=alliant4 opsys
=bsd4-2
2318 machine
=alliant-2800 opsys
=bsd4-3
2321 ## Alpha (DEC) machines.
2323 machine
=alpha opsys
=osf1
2324 # This is needed to find X11R6.1 libraries for certain tests.
2325 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2326 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2327 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2328 # due to non-traditional preprocessing with the current compiler
2329 # defaults. OSF 4 can also have that compiler version, and there
2330 # seems always to have been a usable /usr/bin/cpp.
2331 NON_GNU_CPP
=/usr
/bin
/cpp
2332 case "${canonical}" in
2333 alpha
*-dec-osf[5-9]*)
2338 alpha
*-*-linux-gnu* )
2339 machine
=alpha opsys
=gnu-linux
2343 machine
=arm opsys
=gnu-linux
2348 machine
=altos opsys
=usg5-2
2353 machine
=amdahl opsys
=usg5-2-2
2356 ## Apollo, Domain/OS
2358 machine
=apollo opsys
=bsd4-3
2361 ## Apple Darwin / Mac OS X
2363 case "${canonical}" in
2364 i
[3456]86-* ) machine
=intel386
;;
2365 powerpc-
* ) machine
=powermac
;;
2369 # Define CPP as follows to make autoconf work correctly.
2370 CPP
="${CC-cc} -E -no-cpp-precomp"
2371 # Use fink packages if available.
2372 if test -d /sw
/include
&& test -d /sw
/lib
; then
2373 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2374 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2375 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2379 ## AT&T 3b2, 3b5, 3b15, 3b20
2381 machine
=att3b opsys
=usg5-2-2
2384 ## AT&T 3b1 - The Mighty Unix PC!
2386 machine
=7300 opsys
=usg5-2-2
2391 machine
=ibmrs6000 opsys
=aix3-2
2396 machine
=dpx2 opsys
=usg5-3
2401 machine
=sps7 opsys
=usg5-2
2404 ## CCI 5/32, 6/32 -- see "Tahoe".
2407 ## I don't know what configuration name to use for this; config.sub
2408 ## doesn't seem to know anything about it. Hey, Celerity users, get
2409 ## in touch with us!
2410 celerity-celerity-bsd
* )
2411 machine
=celerity opsys
=bsd4-2
2415 ## What operating systems does this chip run that Emacs has been
2419 ## We'll use the catch-all code at the bottom to guess the
2420 ## operating system.
2424 mips-compaq-nonstopux
* )
2425 machine
=nonstopux opsys
=nonstopux
2429 *-convex-bsd* |
*-convex-convexos* )
2430 machine
=convex opsys
=bsd4-3
2431 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2432 NON_GNU_CPP
="cc -E -P"
2436 i
[3456]86-cubix-sysv* )
2437 machine
=intel386 opsys
=usg5-3
2441 cydra
*-cydrome-sysv* )
2442 machine
=cydra5 opsys
=usg5-3
2445 ## Data General AViiON Machines
2446 ## DG changed naming conventions with the release of 5.4.4.10, they
2447 ## dropped the initial 5.4 but left the intervening R. Because of the
2448 ## R this shouldn't conflict with older versions of the OS (which I
2449 ## think were named like dgux4.*). In addition, DG new AViiONs series
2450 ## uses either Motorola M88k or Intel Pentium CPUs.
2451 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2452 machine
=aviion opsys
=dgux4
2454 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2455 ## This name is dgux5-4-3 instead of dgux5-4r3
2456 ## to avoid a file name conflict on MSDOS.
2457 machine
=aviion opsys
=dgux5-4-3
2459 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2460 machine
=aviion opsys
=dgux5-4r2
2463 machine
=aviion opsys
=dgux
2466 ## Data General AViiON Intel (x86) Machines
2467 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2468 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2469 i
[345]86-dg-dguxR4* )
2470 machine
=aviion-intel opsys
=dgux4
2474 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2475 machine
=pmax opsys
=bsd4-2
2477 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2478 machine
=pmax opsys
=bsd4-3
2481 machine
=pmax opsys
=ultrix4-3
2484 machine
=pmax opsys
=osf1
2486 mips-dec-mach_bsd4.3
* )
2487 machine
=pmax opsys
=mach-bsd4-3
2490 ## Motorola Delta machines
2491 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2492 machine
=delta opsys
=usg5-3
2493 if test -z "`type gnucc | grep 'not found'`"
2495 if test -s /etc
/167config
2496 then CC
="gnucc -m68040"
2497 else CC
="gnucc -m68881"
2500 if test -z "`type gcc | grep 'not found'`"
2506 m88k-motorola-sysv4
* )
2507 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2508 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2509 # I hope there are not other 4.0 versions for this machine
2510 # which really need usg5-4 instead.
2511 machine
=delta88k opsys
=usg5-4-2
2513 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2514 machine
=delta88k opsys
=usg5-3
2519 machine
=dual opsys
=usg5-2
2521 m68
*-dual-uniplus* )
2522 machine
=dual opsys
=unipl5-2
2527 machine
=elxsi opsys
=usg5-2
2532 machine
=ns16000 opsys
=umax
2535 ## The GEC 63 - apparently, this port isn't really finished yet.
2536 # I'm sure we finished off the last of the machines, though. -- fx
2538 ## Gould Power Node and NP1
2540 machine
=gould opsys
=bsd4-2
2543 machine
=gould opsys
=bsd4-3
2546 machine
=gould-np1 opsys
=bsd4-3
2549 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2550 ## as far as Emacs is concerned).
2552 # Build needs to be different on 7.0 and later releases
2553 case "`uname -r`" in
2554 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2555 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2557 NON_GNU_CPP
="/lib/cpp"
2559 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2561 machine
=nh3000 opsys
=cxux
2563 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2564 powerpc-harris-powerunix
)
2565 machine
=nh6000 opsys
=powerunix
2566 NON_GNU_CPP
="cc -Xo -E -P"
2568 ## SR2001/SR2201 running HI-UX/MPP
2569 hppa1.1
-hitachi-hiuxmpp* )
2570 machine
=sr2k opsys
=hiuxmpp
2572 hppa1.1
-hitachi-hiuxwe2* )
2573 machine
=sr2k opsys
=hiuxwe2
2576 xps
*-honeywell-sysv* )
2577 machine
=xps100 opsys
=usg5-2
2580 ## HP 9000 series 200 or 300
2582 machine
=hp9000s300 opsys
=bsd4-3
2584 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2586 case "`uname -r`" in
2587 ## Someone's system reports A.B8.05 for this.
2588 ## I wonder what other possibilities there are.
2589 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2590 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2591 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2592 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2593 *) machine
=hp9000s300 opsys
=hpux
;;
2597 ## HP 9000 series 700 and 800, running HP/UX
2599 machine
=hp800 opsys
=hpux
2602 machine
=hp800 opsys
=hpux8
2604 hppa
*-hp-hpux9shr* )
2605 machine
=hp800 opsys
=hpux9shr
2608 machine
=hp800 opsys
=hpux9
2610 hppa
*-hp-hpux10.2
* )
2611 machine
=hp800 opsys
=hpux10-20
2614 machine
=hp800 opsys
=hpux10
2616 hppa
*-hp-hpux1[1-9]* )
2617 machine
=hp800 opsys
=hpux11
2618 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2621 hppa
*-*-linux-gnu* )
2622 machine
=hp800 opsys
=gnu-linux
2625 ## HP 9000 series 700 and 800, running HP/UX
2627 ## Cross-compilation? Nah!
2628 case "`uname -r`" in
2629 ## Someone's system reports A.B8.05 for this.
2630 ## I wonder what other possibilities there are.
2631 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2632 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2633 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2634 *) machine
=hp800 opsys
=hpux10
;;
2638 machine
=hp800 opsys
=nextstep
2643 machine
=orion opsys
=bsd4-2
2645 clipper-orion-bsd
* )
2646 machine
=orion105 opsys
=bsd4-2
2650 i
[3456]86-ibm-aix1.1
* )
2651 machine
=ibmps2-aix opsys
=usg5-2-2
2653 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2654 machine
=ibmps2-aix opsys
=usg5-3
2657 machine
=ibm370aix opsys
=usg5-3
2660 machine
=ibms390 opsys
=gnu-linux
2662 s390x-
*-linux-gnu* )
2663 machine
=ibms390x opsys
=gnu-linux
2665 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2666 machine
=ibmrs6000 opsys
=aix3-1
2668 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2669 machine
=ibmrs6000 opsys
=aix3-2-5
2671 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2672 machine
=ibmrs6000 opsys
=aix4-1
2674 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2675 machine
=ibmrs6000 opsys
=aix4-2
2677 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2678 machine
=ibmrs6000 opsys
=aix4-2
2680 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2681 machine
=ibmrs6000 opsys
=aix4-2
2683 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2684 machine
=ibmrs6000 opsys
=aix4
2686 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2687 machine
=ibmrs6000 opsys
=aix4-1
2689 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2690 machine
=ibmrs6000 opsys
=aix3-2
2693 machine
=ibmrt opsys
=bsd4-3
2696 machine
=ibmrt opsys
=bsd4-2
2699 machine
=ibmrt opsys
=bsd4-3
2702 machine
=ibmrt opsys
=bsd4-2
2705 machine
=ibmrt opsys
=bsd4-3
2708 machine
=ibmrt opsys
=bsd4-3
2711 machine
=ibmrt-aix opsys
=usg5-2-2
2714 ## Integrated Solutions `Optimum V'
2716 machine
=isi-ov opsys
=bsd4-2
2719 machine
=isi-ov opsys
=bsd4-3
2722 ## Intel 386 machines where we do care about the manufacturer
2723 i
[3456]86-intsys-sysv* )
2724 machine
=is386 opsys
=usg5-2-2
2728 i
[3456]86-prime-sysv* )
2729 machine
=i386 opsys
=usg5-3
2732 ## Sequent Symmetry running Dynix
2733 i
[3456]86-sequent-bsd* )
2734 machine
=symmetry opsys
=bsd4-3
2737 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2738 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2739 machine
=sequent-ptx opsys
=ptx4
2740 NON_GNU_CPP
=/lib
/cpp
2743 ## Sequent Symmetry running DYNIX/ptx
2744 ## Use the old cpp rather than the newer ANSI one.
2745 i
[3456]86-sequent-ptx* )
2746 machine
=sequent-ptx opsys
=ptx
2747 NON_GNU_CPP
="/lib/cpp"
2750 ## ncr machine running svr4.3.
2751 i
[3456]86-ncr-sysv4.3
)
2752 machine
=ncr386 opsys
=usg5-4-3
2755 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2756 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2757 i
[3456]86-ncr-sysv* )
2758 machine
=ncr386 opsys
=usg5-4-2
2761 ## Intel Paragon OSF/1
2763 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2768 machine
=i860 opsys
=usg5-4
2769 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2770 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2773 ## Macintosh PowerPC
2774 powerpc
*-*-linux-gnu* )
2775 machine
=macppc opsys
=gnu-linux
2778 ## Masscomp machines
2779 m68
*-masscomp-rtu* )
2780 machine
=masscomp opsys
=rtu
2783 ## Megatest machines
2784 m68
*-megatest-bsd* )
2785 machine
=mega68 opsys
=bsd4-2
2788 ## Workstations sold by MIPS
2789 ## This is not necessarily all workstations using the MIPS processor -
2790 ## Irises are produced by SGI, and DECstations by DEC.
2792 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2793 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2794 ## it gives for choosing between the alternatives seems to be "Use
2795 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2796 ## the BSD world." I'll assume that these are instructions for
2797 ## handling two odd situations, and that every other situation
2798 ## should use mips.h and usg5-2-2, they being listed first.
2801 ## Fall through to the general code at the bottom to decide on the OS.
2803 mips-mips-riscos4
* )
2804 machine
=mips4 opsys
=bsd4-3
2805 NON_GNU_CC
="cc -systype bsd43"
2806 NON_GNU_CPP
="cc -systype bsd43 -E"
2808 mips-mips-riscos5
* )
2809 machine
=mips4 opsys
=riscos5
2810 NON_GNU_CC
="cc -systype bsd43"
2811 NON_GNU_CPP
="cc -systype bsd43 -E"
2814 machine
=mips opsys
=bsd4-3
2817 machine
=mips opsys
=usg5-2-2
2821 m68
*-next-* | m68k-
*-nextstep* )
2822 machine
=m68k opsys
=nextstep
2825 ## The complete machine from National Semiconductor
2827 machine
=ns32000 opsys
=usg5-2
2831 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2832 machine
=tower32 opsys
=usg5-2-2
2834 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2835 machine
=tower32v3 opsys
=usg5-3
2840 machine
=ews4800 opsys
=ux4800
2843 ## Nixdorf Targon 31
2844 m68
*-nixdorf-sysv* )
2845 machine
=targon31 opsys
=usg5-2-2
2850 machine
=nu opsys
=usg5-2
2855 machine
=plexus opsys
=usg5-2
2859 ## I don't really have any idea what sort of processor the Pyramid has,
2860 ## so I'm assuming it is its own architecture.
2861 pyramid-pyramid-bsd
* )
2862 machine
=pyramid opsys
=bsd4-2
2866 ns32k-sequent-bsd4.2
* )
2867 machine
=sequent opsys
=bsd4-2
2869 ns32k-sequent-bsd4.3
* )
2870 machine
=sequent opsys
=bsd4-3
2874 mips-siemens-sysv
* | mips-sni-sysv
*)
2875 machine
=mips-siemens opsys
=usg5-4
2876 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2877 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2880 ## Silicon Graphics machines
2881 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2883 machine
=irist opsys
=iris3-5
2885 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2886 machine
=irist opsys
=iris3-6
2890 machine
=iris4d opsys
=irix3-3
2893 machine
=iris4d opsys
=irix4-0
2896 machine
=iris4d opsys
=irix6-5
2897 # Without defining _LANGUAGE_C, things get masked out in the headers
2898 # so that, for instance, grepping for `free' in stdlib.h fails and
2899 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2900 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2901 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2904 machine
=iris4d opsys
=irix6-0
2905 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2906 # but presumably it does no harm.
2907 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2908 # -32 probably isn't necessary in later v.6s -- anyone know which?
2909 NON_GCC_TEST_OPTIONS
=-32
2911 mips-sgi-irix5.
[01]* )
2912 machine
=iris4d opsys
=irix5-0
2914 mips-sgi-irix5
* | mips-sgi-irix
* )
2915 machine
=iris4d opsys
=irix5-2
2920 machine
=news opsys
=bsd4-2
2923 machine
=news opsys
=bsd4-3
2925 m68
*-sony-newsos3* | m68
*-sony-news3*)
2926 machine
=news opsys
=bsd4-3
2928 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2929 machine
=news-risc opsys
=bsd4-3
2931 mips-sony-newsos6
* )
2932 machine
=news-r6 opsys
=newsos6
2935 machine
=news-risc opsys
=newsos5
2940 machine
=stride opsys
=usg5-2
2944 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2945 machine
=sparc opsys
=gnu-linux
2948 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2949 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2950 | rs6000-
*-solaris2*)
2951 case "${canonical}" in
2952 m68
*-sunos1* ) machine
=sun1
;;
2953 m68
*-sunos2* ) machine
=sun2
;;
2954 m68
* ) machine
=sun3
;;
2955 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2956 i
[3456]86-*-* ) machine
=intel386
;;
2957 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2958 powerpcle
* ) machine
=powerpcle
;;
2959 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2960 sparc
* ) machine
=sparc
;;
2963 case "${canonical}" in
2964 ## The Sun386 didn't get past 4.0.
2965 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2966 *-sunos4.0
* ) opsys
=sunos4-0
;;
2967 *-sunos4.1.
[3-9]*noshare
)
2968 ## This name is sunos413 instead of sunos4-1-3
2969 ## to avoid a file name conflict on MSDOS.
2971 NON_GNU_CPP
=/usr
/lib
/cpp
2972 NON_GCC_TEST_OPTIONS
=-Bstatic
2973 GCC_TEST_OPTIONS
=-static
2975 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2977 NON_GNU_CPP
=/usr
/lib
/cpp
2979 *-sunos4* |
*-sunos )
2981 NON_GCC_TEST_OPTIONS
=-Bstatic
2982 GCC_TEST_OPTIONS
=-static
2984 *-sunos5.3
* |
*-solaris2.3
* )
2986 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2988 *-sunos5.4
* |
*-solaris2.4
* )
2990 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2993 *-sunos5.5
* |
*-solaris2.5
* )
2995 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2998 *-sunos5.6
* |
*-solaris2.6
* )
3000 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3003 *-sunos5* |
*-solaris* )
3005 ## FIXME: make this into a proper fix that checks the compiler type,
3006 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3007 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3008 ## -Xs prevents spurious whitespace.
3009 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3011 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3016 ## Watch out for a compiler that we know will not work.
3017 case "${canonical}" in
3018 *-solaris* |
*-sunos5* )
3019 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3020 ## /usr/ucb/cc doesn't work;
3021 ## we should find some other compiler that does work.
3029 machine
=sparc opsys
=nextstep
3033 m68
*-tadpole-sysv* )
3034 machine
=tad68k opsys
=usg5-3
3038 tahoe-tahoe-bsd4.2
* )
3039 machine
=tahoe opsys
=bsd4-2
3041 tahoe-tahoe-bsd4.3
* )
3042 machine
=tahoe opsys
=bsd4-3
3045 ## Tandem Integrity S2
3047 machine
=tandem-s2 opsys
=usg5-3
3051 m88k-tektronix-sysv3
* )
3052 machine
=tekxd88 opsys
=usg5-3
3055 ## Tektronix 16000 box (6130?)
3056 ns16k-tektronix-bsd
* )
3057 machine
=ns16000 opsys
=bsd4-2
3060 ## src/m/tek4300.h hints that this is a m68k machine.
3061 m68
*-tektronix-bsd* )
3062 machine
=tek4300 opsys
=bsd4-3
3066 ## We seem to have lost the machine-description file titan.h!
3068 machine
=titan opsys
=usg5-3
3071 ## Ustation E30 (SS5E)
3072 m68
*-unisys-uniplus* )
3073 machine
=ustation opsystem
=unipl5-2
3079 case "${canonical}" in
3080 *-bsd4.1
* ) opsys
=bsd4-1
;;
3081 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3082 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3083 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3084 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3085 *-vms* ) opsys
=vms
;;
3091 ns16k-whitechapel-
* )
3093 ## We don't know what sort of OS runs on these; we'll let the
3094 ## operating system guessing code below try.
3099 machine
=wicat opsys
=usg5-2
3104 machine
=ia64 opsys
=gnu-linux
3107 ## Intel 386 machines where we don't care about the manufacturer
3110 case "${canonical}" in
3111 *-cygwin ) opsys
=cygwin
;;
3112 *-darwin* ) opsys
=darwin
3113 CPP
="${CC-cc} -E -no-cpp-precomp"
3115 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3116 *-isc2.2
* ) opsys
=isc2-2
;;
3117 *-isc4.0
* ) opsys
=isc4-0
;;
3118 *-isc4.
* ) opsys
=isc4-1
3119 GCC_TEST_OPTIONS
=-posix
3120 NON_GCC_TEST_OPTIONS
=-Xp
3122 *-isc* ) opsys
=isc3-0
;;
3123 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3124 *-esix* ) opsys
=esix
;;
3125 *-xenix* ) opsys
=xenix
;;
3126 *-linux-gnu* ) opsys
=gnu-linux
;;
3127 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3128 *-sco3.2v5
* ) opsys
=sco5
3129 NON_GNU_CPP
=/lib
/cpp
3130 # Prevent -belf from being passed to $CPP.
3131 # /lib/cpp does not accept it.
3132 OVERRIDE_CPPFLAGS
=" "
3134 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3135 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3136 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3137 *-386bsd* ) opsys
=386bsd
;;
3138 *-nextstep* ) opsys
=nextstep
;;
3139 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3143 ## m68k Linux-based GNU system
3145 machine
=m68k opsys
=gnu-linux
3148 ## Mips Linux-based GNU system
3149 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3150 machine
=mips opsys
=gnu-linux
3154 sparc-fujitsu-sysv4
* )
3155 machine
=sparc opsys
=uxpds
3156 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3161 f301-fujitsu-uxpv4.1
)
3162 machine
=f301 opsys
=uxpv
3165 ## AMD x86-64 Linux-based GNU system
3166 x86_64-
*-linux-gnu* )
3167 machine
=amdx86-64 opsys
=gnu-linux
3170 ## Tensilica Xtensa Linux-based GNU system
3171 xtensa-
*-linux-gnu* )
3172 machine
=xtensa opsys
=gnu-linux
3180 ### If the code above didn't choose an operating system, just choose
3181 ### an operating system based on the configuration name. You really
3182 ### only want to use this when you have no idea what the right
3183 ### operating system is; if you know what operating systems a machine
3184 ### runs, it's cleaner to make it explicit in the case statement
3186 if test x
"${opsys}" = x
; then
3187 case "${canonical}" in
3188 *-gnu* ) opsys
=gnu
;;
3189 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3190 *-bsd4.2
) opsys
=bsd4-2
;;
3191 *-bsd4.3
) opsys
=bsd4-3
;;
3192 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3193 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3194 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3195 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3196 *-sysv4.2uw
* ) opsys
=unixware
;;
3197 *-sysv5uw* ) opsys
=unixware
;;
3198 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3199 *-sysv4.1
* |
*-sysvr4.1
* )
3200 NON_GNU_CPP
=/usr
/lib
/cpp
3202 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3203 if [ x
$NON_GNU_CPP = x
]; then
3204 if [ -f /usr
/ccs
/lib
/cpp
]; then
3205 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3207 NON_GNU_CPP
=/lib
/cpp
3211 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3220 if test $unported = yes; then
3221 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3222 Check \`etc/MACHINES' for recognized configuration names." >&5
3223 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3224 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3225 { (exit 1); exit 1; }; }
3228 machfile
="m/${machine}.h"
3229 opsysfile
="s/${opsys}.h"
3232 #### Choose a compiler.
3233 test -n "$CC" && cc_specified
=yes
3235 # Save the value of CFLAGS that the user specified.
3236 SPECIFIED_CFLAGS
="$CFLAGS"
3239 "yes" ) CC
="gcc" GCC
=yes ;;
3240 "no" ) : ${CC=cc} ;;
3244 ac_cpp
='$CPP $CPPFLAGS'
3245 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3250 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC
="$CC" # Let the user override the test.
3259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir
=.
3264 for ac_exec_ext
in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 if test -n "$CC"; then
3278 { echo "$as_me:$LINENO: result: $CC" >&5
3279 echo "${ECHO_T}$CC" >&6; }
3281 { echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6; }
3287 if test -z "$ac_cv_prog_CC"; then
3289 # Extract the first word of "gcc", so it can be a program name with args.
3290 set dummy gcc
; ac_word
=$2
3291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir
=.
3304 for ac_exec_ext
in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_CC
="gcc"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3317 if test -n "$ac_ct_CC"; then
3318 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3319 echo "${ECHO_T}$ac_ct_CC" >&6; }
3321 { echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6; }
3325 if test "x$ac_ct_CC" = x
; then
3328 case $cross_compiling:$ac_tool_warned in
3330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3331 whose name does not start with the host triplet. If you think this
3332 configuration is useful to you, please write to autoconf@gnu.org." >&5
3333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3334 whose name does not start with the host triplet. If you think this
3335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3336 ac_tool_warned
=yes ;;
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3347 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3350 if test "${ac_cv_prog_CC+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC
="$CC" # Let the user override the test.
3356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir
=.
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 if test -n "$CC"; then
3375 { echo "$as_me:$LINENO: result: $CC" >&5
3376 echo "${ECHO_T}$CC" >&6; }
3378 { echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6; }
3385 if test -z "$CC"; then
3386 # Extract the first word of "cc", so it can be a program name with args.
3387 set dummy cc
; ac_word
=$2
3388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3390 if test "${ac_cv_prog_CC+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 if test -n "$CC"; then
3394 ac_cv_prog_CC
="$CC" # Let the user override the test.
3397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3401 test -z "$as_dir" && as_dir
=.
3402 for ac_exec_ext
in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3405 ac_prog_rejected
=yes
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 if test $ac_prog_rejected = yes; then
3417 # We found a bogon in the path, so make sure we never use it.
3418 set dummy
$ac_cv_prog_CC
3420 if test $# != 0; then
3421 # We chose a different compiler from the bogus one.
3422 # However, it has the same basename, so the bogon will be chosen
3423 # first if we set CC to just the basename; use the full file name.
3425 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3431 if test -n "$CC"; then
3432 { echo "$as_me:$LINENO: result: $CC" >&5
3433 echo "${ECHO_T}$CC" >&6; }
3435 { echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6; }
3441 if test -z "$CC"; then
3442 if test -n "$ac_tool_prefix"; then
3443 for ac_prog
in cl.exe
3445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3446 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 if test -n "$CC"; then
3453 ac_cv_prog_CC
="$CC" # Let the user override the test.
3455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir
=.
3460 for ac_exec_ext
in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 if test -n "$CC"; then
3474 { echo "$as_me:$LINENO: result: $CC" >&5
3475 echo "${ECHO_T}$CC" >&6; }
3477 { echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6; }
3482 test -n "$CC" && break
3485 if test -z "$CC"; then
3487 for ac_prog
in cl.exe
3489 # Extract the first word of "$ac_prog", so it can be a program name with args.
3490 set dummy
$ac_prog; ac_word
=$2
3491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3493 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 if test -n "$ac_ct_CC"; then
3497 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3503 test -z "$as_dir" && as_dir
=.
3504 for ac_exec_ext
in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_ac_ct_CC
="$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3517 if test -n "$ac_ct_CC"; then
3518 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3519 echo "${ECHO_T}$ac_ct_CC" >&6; }
3521 { echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6; }
3526 test -n "$ac_ct_CC" && break
3529 if test "x$ac_ct_CC" = x
; then
3532 case $cross_compiling:$ac_tool_warned in
3534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3535 whose name does not start with the host triplet. If you think this
3536 configuration is useful to you, please write to autoconf@gnu.org." >&5
3537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3538 whose name does not start with the host triplet. If you think this
3539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3540 ac_tool_warned
=yes ;;
3549 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3550 See \`config.log' for more details." >&5
3551 echo "$as_me: error: no acceptable C compiler found in \$PATH
3552 See \`config.log' for more details." >&2;}
3553 { (exit 1); exit 1; }; }
3555 # Provide some information about the compiler.
3556 echo "$as_me:$LINENO: checking for C compiler version" >&5
3557 ac_compiler
=`set X $ac_compile; echo $2`
3558 { (ac_try
="$ac_compiler --version >&5"
3560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compiler --version >&5") 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }
3568 { (ac_try="$ac_compiler -v >&5"
3570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3571 *) ac_try_echo
=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compiler -v >&5") 2>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }
3578 { (ac_try
="$ac_compiler -V >&5"
3580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_compiler -V >&5") 2>&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3604 ac_clean_files_save=$ac_clean_files
3605 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3606 # Try to create an executable without -o first, disregard a.out.
3607 # It will help us diagnose broken compilers, and finding out an intuition
3609 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3610 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3611 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3613 # List of possible output files, starting from the most likely.
3614 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3615 # only as a last resort. b.out is created by i960 compilers.
3616 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3618 # The IRIX 6 linker writes into existing files which may not be
3619 # executable, retaining their permissions. Remove them first so a
3620 # subsequent execution test works.
3622 for ac_file in $ac_files
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3626 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3631 if { (ac_try="$ac_link_default"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_link_default") 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; then
3641 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3644 # so that the user can short-circuit this test for compilers unknown to
3646 for ac_file
in $ac_files ''
3648 test -f "$ac_file" ||
continue
3650 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3653 # We found the default executable, but exeext='' is most
3657 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3659 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 # We set ac_cv_exeext here because the later test for it is not
3662 # safe: cross compilers may not add the suffix if given an `-o'
3663 # argument, so we may need to know it at that point already.
3664 # Even if this section looks crufty: it has the advantage of
3671 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3677 { echo "$as_me:$LINENO: result: $ac_file" >&5
3678 echo "${ECHO_T}$ac_file" >&6; }
3679 if test -z "$ac_file"; then
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.
$ac_ext >&5
3683 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3684 See \`config.log' for more details." >&5
3685 echo "$as_me: error: C compiler cannot create executables
3686 See \`config.log' for more details." >&2;}
3687 { (exit 77); exit 77; }; }
3690 ac_exeext
=$ac_cv_exeext
3692 # Check that the compiler produces executables we can run. If not, either
3693 # the compiler is broken, or we cross compile.
3694 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3695 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3696 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3697 # If not cross compiling, check that we can run a simple program.
3698 if test "$cross_compiling" != yes; then
3699 if { ac_try
='./$ac_file'
3700 { (case "(($ac_try" in
3701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_try") 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3711 if test "$cross_compiling" = maybe; then
3714 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3715 If you meant to cross compile, use \`--host'.
3716 See \`config.log' for more details.
" >&5
3717 echo "$as_me: error
: cannot run C compiled programs.
3718 If you meant to cross compile
, use \
`--host'.
3719 See \`config.log
' for more details." >&2;}
3720 { (exit 1); exit 1; }; }
3724 { echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6; }
3727 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3728 ac_clean_files=$ac_clean_files_save
3729 # Check that the compiler produces executables we can run. If not, either
3730 # the compiler is broken, or we cross compile.
3731 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3732 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3733 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3734 echo "${ECHO_T}$cross_compiling" >&6; }
3736 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3737 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3738 if { (ac_try="$ac_link"
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_link") 2>&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; then
3748 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3749 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3750 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3752 for ac_file
in conftest.exe conftest conftest.
*; do
3753 test -f "$ac_file" ||
continue
3755 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3756 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3762 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3769 rm -f conftest
$ac_cv_exeext
3770 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3771 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3773 rm -f conftest.
$ac_ext
3774 EXEEXT
=$ac_cv_exeext
3776 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3777 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3778 if test "${ac_cv_objext+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 cat >conftest.
$ac_ext <<_ACEOF
3784 cat confdefs.h
>>conftest.
$ac_ext
3785 cat >>conftest.
$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3796 rm -f conftest.o conftest.obj
3797 if { (ac_try
="$ac_compile"
3799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_compile") 2>&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; then
3807 for ac_file in conftest.o conftest.obj conftest.*; do
3808 test -f "$ac_file" || continue;
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3811 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3820 See \`config.log
' for more details." >&5
3821 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3822 See \`config.log' for more details.
" >&2;}
3823 { (exit 1); exit 1; }; }
3826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3828 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3829 echo "${ECHO_T}$ac_cv_objext" >&6; }
3830 OBJEXT=$ac_cv_objext
3832 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3833 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3834 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3835 echo $ECHO_N "(cached
) $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3874 echo "$as_me: failed program was
:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3884 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3885 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3886 GCC=`test $ac_compiler_gnu = yes && echo yes`
3887 ac_test_CFLAGS=${CFLAGS+set}
3888 ac_save_CFLAGS=$CFLAGS
3889 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3890 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3891 if test "${ac_cv_prog_cc_g+set}" = set; then
3892 echo $ECHO_N "(cached
) $ECHO_C" >&6
3894 ac_save_c_werror_flag=$ac_c_werror_flag
3895 ac_c_werror_flag=yes
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3922 grep -v '^ *+' conftest.er1 >conftest.err
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3932 echo "$as_me: failed program was
:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3951 rm -f conftest.$ac_objext
3952 if { (ac_try="$ac_compile"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compile") 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest.$ac_objext; then
3970 echo "$as_me: failed program was
:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3999 grep -v '^ *+' conftest.er1 >conftest.err
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest.$ac_objext; then
4009 echo "$as_me: failed program was
:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4024 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4026 if test "$ac_test_CFLAGS" = set; then
4027 CFLAGS=$ac_save_CFLAGS
4028 elif test $ac_cv_prog_cc_g = yes; then
4029 if test "$GCC" = yes; then
4035 if test "$GCC" = yes; then
4041 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4042 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4043 if test "${ac_cv_prog_cc_c89+set}" = set; then
4044 echo $ECHO_N "(cached
) $ECHO_C" >&6
4046 ac_cv_prog_cc_c89=no
4048 cat >conftest.$ac_ext <<_ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4072 s = g (p, va_arg (v,int));
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 CC="$ac_save_CC $ac_arg"
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4122 (exit $ac_status); } && {
4123 test -z "$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 } && test -s conftest.$ac_objext; then
4126 ac_cv_prog_cc_c89=$ac_arg
4128 echo "$as_me: failed program was
:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f core conftest.err conftest.$ac_objext
4135 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4137 rm -f conftest.$ac_ext
4142 case "x
$ac_cv_prog_cc_c89" in
4144 { echo "$as_me:$LINENO: result
: none needed
" >&5
4145 echo "${ECHO_T}none needed
" >&6; } ;;
4147 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4148 echo "${ECHO_T}unsupported
" >&6; } ;;
4150 CC="$CC $ac_cv_prog_cc_c89"
4151 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4152 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 # On Suns, sometimes $CPP names a directory.
4164 if test -n "$CPP" && test -d "$CPP"; then
4168 #### Some systems specify a CPP to use unless we are using GCC.
4169 #### Now that we know whether we are using GCC, we can decide whether
4170 #### to use that one.
4171 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4176 #### Some systems specify a CC to use unless we are using GCC.
4177 #### Now that we know whether we are using GCC, we can decide whether
4178 #### to use that one.
4179 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4180 test x$cc_specified != xyes
4185 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4187 CC="$CC $GCC_TEST_OPTIONS"
4190 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4192 CC="$CC $NON_GCC_TEST_OPTIONS"
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4202 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4203 # On Suns, sometimes $CPP names a directory.
4204 if test -n "$CPP" && test -d "$CPP"; then
4207 if test -z "$CPP"; then
4208 if test "${ac_cv_prog_CPP+set}" = set; then
4209 echo $ECHO_N "(cached
) $ECHO_C" >&6
4211 # Double quotes because CPP needs to be expanded
4212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4215 for ac_c_preproc_warn_flag in '' yes
4217 # Use a header file that comes with gcc, so configuring glibc
4218 # with a fresh cross-compiler works.
4219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220 # <limits.h> exists even on freestanding compilers.
4221 # On the NeXT, cc -E runs the code through the compiler's parser,
4222 # not just through cpp. "Syntax error
" is here to catch this case.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4230 # include <limits.h>
4232 # include <assert.h>
4236 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4248 (exit $ac_status); } >/dev/null && {
4249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4254 echo "$as_me: failed program was
:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4257 # Broken: fails on valid input.
4261 rm -f conftest.err conftest.$ac_ext
4263 # OK, works on sane cases. Now check whether nonexistent headers
4264 # can be detected and how.
4265 cat >conftest.$ac_ext <<_ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 #include <ac_nonexistent.h>
4273 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4285 (exit $ac_status); } >/dev/null && {
4286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4289 # Broken: success on invalid input.
4292 echo "$as_me: failed program was
:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 # Passes both tests.
4300 rm -f conftest.err conftest.$ac_ext
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then
4317 { echo "$as_me:$LINENO: result
: $CPP" >&5
4318 echo "${ECHO_T}$CPP" >&6; }
4320 for ac_c_preproc_warn_flag in '' yes
4322 # Use a header file that comes with gcc, so configuring glibc
4323 # with a fresh cross-compiler works.
4324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325 # <limits.h> exists even on freestanding compilers.
4326 # On the NeXT, cc -E runs the code through the compiler's parser,
4327 # not just through cpp. "Syntax error
" is here to catch this case.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4335 # include <limits.h>
4337 # include <assert.h>
4341 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4353 (exit $ac_status); } >/dev/null && {
4354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4359 echo "$as_me: failed program was
:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 # Broken: fails on valid input.
4366 rm -f conftest.err conftest.$ac_ext
4368 # OK, works on sane cases. Now check whether nonexistent headers
4369 # can be detected and how.
4370 cat >conftest.$ac_ext <<_ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 #include <ac_nonexistent.h>
4378 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4390 (exit $ac_status); } >/dev/null && {
4391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4394 # Broken: success on invalid input.
4397 echo "$as_me: failed program was
:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4400 # Passes both tests.
4405 rm -f conftest.err conftest.$ac_ext
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok; then
4413 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4414 See \
`config.log' for more details." >&5
4415 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4416 See \`config.log
' for more details." >&2;}
4417 { (exit 1); exit 1; }; }
4421 ac_cpp='$CPP $CPPFLAGS'
4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4423 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4428 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4429 if test "${ac_cv_path_GREP+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 # Extract the first word of "grep ggrep" to use in msg output
4433 if test -z "$GREP"; then
4434 set dummy grep ggrep; ac_prog_name=$2
4435 if test "${ac_cv_path_GREP+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 ac_path_GREP_found=false
4439 # Loop through the user's path and
test for each of PROGNAME-LIST
4440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4441 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4444 test -z "$as_dir" && as_dir
=.
4445 for ac_prog
in grep ggrep
; do
4446 for ac_exec_ext
in '' $ac_executable_extensions; do
4447 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4449 # Check for GNU ac_path_GREP and select it if it is found.
4450 # Check for GNU $ac_path_GREP
4451 case `"$ac_path_GREP" --version 2>&1` in
4453 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4456 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 echo 'GREP' >> "conftest.nl"
4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4464 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4465 ac_count
=`expr $ac_count + 1`
4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_GREP
="$ac_path_GREP"
4469 ac_path_GREP_max
=$ac_count
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4474 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4478 $ac_path_GREP_found && break 3
4488 GREP
="$ac_cv_path_GREP"
4489 if test -z "$GREP"; then
4490 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4491 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4492 { (exit 1); exit 1; }; }
4496 ac_cv_path_GREP
=$GREP
4501 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4502 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4503 GREP
="$ac_cv_path_GREP"
4506 { echo "$as_me:$LINENO: checking for egrep" >&5
4507 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4508 if test "${ac_cv_path_EGREP+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4512 then ac_cv_path_EGREP
="$GREP -E"
4514 # Extract the first word of "egrep" to use in msg output
4515 if test -z "$EGREP"; then
4516 set dummy
egrep; ac_prog_name
=$2
4517 if test "${ac_cv_path_EGREP+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 ac_path_EGREP_found
=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4523 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4526 test -z "$as_dir" && as_dir
=.
4527 for ac_prog
in egrep; do
4528 for ac_exec_ext
in '' $ac_executable_extensions; do
4529 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4531 # Check for GNU ac_path_EGREP and select it if it is found.
4532 # Check for GNU $ac_path_EGREP
4533 case `"$ac_path_EGREP" --version 2>&1` in
4535 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4538 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 echo 'EGREP' >> "conftest.nl"
4545 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4546 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4547 ac_count
=`expr $ac_count + 1`
4548 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_EGREP
="$ac_path_EGREP"
4551 ac_path_EGREP_max
=$ac_count
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4556 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4560 $ac_path_EGREP_found && break 3
4570 EGREP
="$ac_cv_path_EGREP"
4571 if test -z "$EGREP"; then
4572 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4573 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4574 { (exit 1); exit 1; }; }
4578 ac_cv_path_EGREP
=$EGREP
4584 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4585 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4586 EGREP
="$ac_cv_path_EGREP"
4590 { echo "$as_me:$LINENO: checking for AIX" >&5
4591 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4592 cat >conftest.
$ac_ext <<_ACEOF
4595 cat confdefs.h
>>conftest.
$ac_ext
4596 cat >>conftest.
$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "yes" >/dev
/null
2>&1; then
4605 { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4607 cat >>confdefs.h
<<\_ACEOF
4608 #define _ALL_SOURCE 1
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4619 cat >>confdefs.h
<<\_ACEOF
4620 #define _GNU_SOURCE 1
4625 ### Use -Wno-pointer-sign if the compiler supports it
4626 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4627 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4628 SAVE_CFLAGS
="$CFLAGS"
4629 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4630 cat >conftest.
$ac_ext <<_ACEOF
4633 cat confdefs.h
>>conftest.
$ac_ext
4634 cat >>conftest.
$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4645 rm -f conftest.
$ac_objext
4646 if { (ac_try
="$ac_compile"
4648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_compile") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.$ac_objext; then
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 if test $has_option = yes; then
4672 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4674 { echo "$as_me:$LINENO: result: $has_option" >&5
4675 echo "${ECHO_T}$has_option" >&6; }
4676 CFLAGS="$SAVE_CFLAGS"
4680 #### Some other nice autoconf tests.
4682 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4683 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4685 if test "$LN_S" = "ln -s"; then
4686 { echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6; }
4689 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4690 echo "${ECHO_T}no, using $LN_S" >&6; }
4694 ac_cpp='$CPP $CPPFLAGS'
4695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4699 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4700 # On Suns, sometimes $CPP names a directory.
4701 if test -n "$CPP" && test -d "$CPP"; then
4704 if test -z "$CPP"; then
4705 if test "${ac_cv_prog_CPP+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 # Double quotes because CPP needs to be expanded
4709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4712 for ac_c_preproc_warn_flag in '' yes
4714 # Use a header file that comes with gcc, so configuring glibc
4715 # with a fresh cross-compiler works.
4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4717 # <limits.h> exists even on freestanding compilers.
4718 # On the NeXT, cc -E runs the code through the compiler's parser,
4719 # not just through cpp. "Syntax error" is here to catch this case.
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4727 # include <limits.h>
4729 # include <assert.h>
4733 if { (ac_try="$ac_cpp conftest.$ac_ext"
4735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4736 *) ac_try_echo
=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4741 grep -v '^ *+' conftest.er1
>conftest.err
4743 cat conftest.err
>&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } >/dev
/null
&& {
4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.
$ac_ext >&5
4754 # Broken: fails on valid input.
4758 rm -f conftest.err conftest.
$ac_ext
4760 # OK, works on sane cases. Now check whether nonexistent headers
4761 # can be detected and how.
4762 cat >conftest.
$ac_ext <<_ACEOF
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <ac_nonexistent.h>
4770 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778 grep -v '^ *+' conftest.er1 >conftest.err
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } >/dev/null && {
4783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4784 test ! -s conftest.err
4786 # Broken: success on invalid input.
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 # Passes both tests.
4797 rm -f conftest.err conftest.$ac_ext
4800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4801 rm -f conftest.err conftest.
$ac_ext
4802 if $ac_preproc_ok; then
4814 { echo "$as_me:$LINENO: result: $CPP" >&5
4815 echo "${ECHO_T}$CPP" >&6; }
4817 for ac_c_preproc_warn_flag
in '' yes
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4832 # include <limits.h>
4834 # include <assert.h>
4838 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 grep -v '^ *+' conftest.er1 >conftest.err
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null && {
4851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4852 test ! -s conftest.err
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4859 # Broken: fails on valid input.
4863 rm -f conftest.err conftest.$ac_ext
4865 # OK, works on sane cases. Now check whether nonexistent headers
4866 # can be detected and how.
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <ac_nonexistent.h>
4875 if { (ac_try="$ac_cpp conftest.$ac_ext"
4877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4878 *) ac_try_echo
=$ac_try;;
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4883 grep -v '^ *+' conftest.er1
>conftest.err
4885 cat conftest.err
>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev
/null
&& {
4888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4889 test ! -s conftest.err
4891 # Broken: success on invalid input.
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.
$ac_ext >&5
4897 # Passes both tests.
4902 rm -f conftest.err conftest.
$ac_ext
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.
$ac_ext
4907 if $ac_preproc_ok; then
4910 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4911 See \`config.log' for more details." >&5
4912 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4913 See \`config.log' for more details." >&2;}
4914 { (exit 1); exit 1; }; }
4918 ac_cpp
='$CPP $CPPFLAGS'
4919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir
=.
4947 # Account for people who put trailing slashes in PATH elements.
4949 .
/ | .
// |
/cC
/* | \
4950 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4951 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4957 for ac_prog
in ginstall scoinst
install; do
4958 for ac_exec_ext
in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4960 if test $ac_prog = install &&
4961 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4964 elif test $ac_prog = install &&
4965 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4969 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4982 if test "${ac_cv_path_install+set}" = set; then
4983 INSTALL
=$ac_cv_path_install
4985 # As a last resort, use the slow shell script. Don't cache a
4986 # value for INSTALL within a source directory, because that will
4987 # break other packages using the cache if that directory is
4988 # removed, or if the value is a relative name.
4989 INSTALL
=$ac_install_sh
4992 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4993 echo "${ECHO_T}$INSTALL" >&6; }
4995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4996 # It thinks the first close brace ends the variable substitution.
4997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5001 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5003 if test "x$RANLIB" = x
; then
5004 if test -n "$ac_tool_prefix"; then
5005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5006 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5009 if test "${ac_cv_prog_RANLIB+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 if test -n "$RANLIB"; then
5013 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir
=.
5020 for ac_exec_ext
in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 RANLIB
=$ac_cv_prog_RANLIB
5033 if test -n "$RANLIB"; then
5034 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5035 echo "${ECHO_T}$RANLIB" >&6; }
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5043 if test -z "$ac_cv_prog_RANLIB"; then
5044 ac_ct_RANLIB
=$RANLIB
5045 # Extract the first word of "ranlib", so it can be a program name with args.
5046 set dummy ranlib
; ac_word
=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 if test -n "$ac_ct_RANLIB"; then
5053 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir
=.
5060 for ac_exec_ext
in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5073 if test -n "$ac_ct_RANLIB"; then
5074 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5075 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5077 { echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6; }
5081 if test "x$ac_ct_RANLIB" = x
; then
5084 case $cross_compiling:$ac_tool_warned in
5086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5087 whose name does not start with the host triplet. If you think this
5088 configuration is useful to you, please write to autoconf@gnu.org." >&5
5089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5090 whose name does not start with the host triplet. If you think this
5091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5092 ac_tool_warned
=yes ;;
5094 RANLIB
=$ac_ct_RANLIB
5097 RANLIB
="$ac_cv_prog_RANLIB"
5101 # Extract the first word of "install-info", so it can be a program name with args.
5102 set dummy install-info
; ac_word
=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 case $INSTALL_INFO in
5110 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir
=.
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5132 if test -n "$INSTALL_INFO"; then
5133 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5134 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5141 # Extract the first word of "install-info", so it can be a program name with args.
5142 set dummy install-info
; ac_word
=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 case $INSTALL_INFO in
5150 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5154 for as_dir
in /usr
/sbin
5157 test -z "$as_dir" && as_dir
=.
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5172 if test -n "$INSTALL_INFO"; then
5173 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5174 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5176 { echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6; }
5181 # Extract the first word of "install-info", so it can be a program name with args.
5182 set dummy install-info
; ac_word
=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 case $INSTALL_INFO in
5190 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir
=.
5198 for ac_exec_ext
in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5212 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5213 if test -n "$INSTALL_INFO"; then
5214 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5215 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5217 { echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6; }
5222 # Extract the first word of "gzip", so it can be a program name with args.
5223 set dummy
gzip; ac_word
=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir
=.
5239 for ac_exec_ext
in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5253 if test -n "$GZIP_PROG"; then
5254 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5255 echo "${ECHO_T}$GZIP_PROG" >&6; }
5257 { echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6; }
5264 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5266 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5269 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5271 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5275 late_LDFLAGS
=$LDFLAGS
5276 if test "$GCC" = yes; then
5277 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5279 LDFLAGS
="$LDFLAGS -znocombreloc"
5282 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5283 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5284 cat >conftest.
$ac_ext <<_ACEOF
5287 rm -f conftest.
$ac_objext conftest
$ac_exeext
5288 if { (ac_try
="$ac_link"
5290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_link") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest$ac_exeext &&
5304 $as_test_x conftest$ac_exeext; then
5305 { echo "$as_me:$LINENO: result: yes" >&5
5306 echo "${ECHO_T}yes" >&6; }
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 LDFLAGS=$late_LDFLAGS
5312 { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5317 conftest$ac_exeext conftest.$ac_ext
5319 #### Extract some information from the operating system and machine files.
5321 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5322 - which libraries the lib-src programs will want, and
5323 - whether the GNU malloc routines are usable..." >&5
5324 echo "$as_me: checking the machine- and system-dependent files to find out
5325 - which libraries the lib-src programs will want, and
5326 - whether the GNU malloc routines are usable..." >&6;}
5328 ### First figure out CFLAGS (which we use for running the compiler here)
5329 ### and REAL_CFLAGS (which we use for real compilation).
5330 ### The two are the same except on a few systems, where they are made
5331 ### different to work around various lossages. For example,
5332 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5333 ### as implying static linking.
5335 ### If the CFLAGS env var is specified, we use that value
5336 ### instead of the default.
5338 ### It's not important that this name contain the PID; you can't run
5339 ### two configures in the same directory and have anything work
5341 tempcname="conftest.c"
5344 #include "'${srcdir}'/src/'${opsysfile}'"
5345 #include "'${srcdir}'/src/'${machfile}'"
5346 #ifndef LIBS_MACHINE
5347 #define LIBS_MACHINE
5352 #ifndef C_SWITCH_SYSTEM
5353 #define C_SWITCH_SYSTEM
5355 #ifndef C_SWITCH_MACHINE
5356 #define C_SWITCH_MACHINE
5358 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5359 configure___ c_switch_system=C_SWITCH_SYSTEM
5360 configure___ c_switch_machine=C_SWITCH_MACHINE
5363 #define LIB_X11_LIB -lX11
5366 #ifndef LIBX11_MACHINE
5367 #define LIBX11_MACHINE
5370 #ifndef LIBX11_SYSTEM
5371 #define LIBX11_SYSTEM
5373 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5376 configure___ unexec=UNEXEC
5378 configure___ unexec=unexec.o
5381 #ifdef SYSTEM_MALLOC
5382 configure___ system_malloc=yes
5384 configure___ system_malloc=no
5387 #ifdef USE_MMAP_FOR_BUFFERS
5388 configure___ use_mmap_for_buffers=yes
5390 configure___ use_mmap_for_buffers=no
5393 #ifndef C_DEBUG_SWITCH
5394 #define C_DEBUG_SWITCH -g
5397 #ifndef C_OPTIMIZE_SWITCH
5399 #define C_OPTIMIZE_SWITCH -O2
5401 #define C_OPTIMIZE_SWITCH -O
5405 #ifndef C_WARNINGS_SWITCH
5406 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5409 #ifndef LD_SWITCH_MACHINE
5410 #define LD_SWITCH_MACHINE
5413 #ifndef LD_SWITCH_SYSTEM
5414 #define LD_SWITCH_SYSTEM
5417 #ifndef LD_SWITCH_X_SITE_AUX
5418 #define LD_SWITCH_X_SITE_AUX
5421 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5422 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5424 #ifdef THIS_IS_CONFIGURE
5426 /* Get the CFLAGS for tests in configure. */
5428 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5430 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5433 #else /* not THIS_IS_CONFIGURE */
5435 /* Get the CFLAGS for real compilation. */
5437 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5439 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5442 #endif /* not THIS_IS_CONFIGURE */
5445 # The value of CPP is a quoted variable reference, so we need to do this
5446 # to get its actual value...
5447 CPP=`eval "echo $CPP"`
5448 eval `${CPP} -Isrc ${tempcname} \
5449 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5450 if test "x$SPECIFIED_CFLAGS" = x; then
5451 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5452 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5454 REAL_CFLAGS="$CFLAGS"
5458 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5460 ### Make sure subsequent tests use flags consistent with the build flags.
5462 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5463 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5465 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5470 # Check whether --enable-largefile was given.
5471 if test "${enable_largefile+set}" = set; then
5472 enableval=$enable_largefile;
5475 if test "$enable_largefile" != no; then
5477 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5478 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5479 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 ac_cv_sys_largefile_CC=no
5483 if test "$GCC" != yes; then
5486 # IRIX 6.2 and later do not support large files by default,
5487 # so use the C compiler's -n32 option if that helps.
5488 cat >conftest.$ac_ext <<_ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 #include <sys/types.h>
5495 /* Check that off_t can represent 2**63 - 1 correctly.
5496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5497 since some C++ compilers masquerading as C compilers
5498 incorrectly reject 9223372036854775807. */
5499 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5501 && LARGE_OFF_T % 2147483647 == 1)
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5515 *) ac_try_echo
=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1
>conftest.err
5522 cat conftest.err
>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.
$ac_objext; then
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.
$ac_ext >&5
5536 rm -f core conftest.err conftest.
$ac_objext
5538 rm -f conftest.
$ac_objext
5539 if { (ac_try
="$ac_compile"
5541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5547 grep -v '^ *+' conftest.er1 >conftest.err
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 ac_cv_sys_largefile_CC=' -n32'; break
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5563 rm -f core conftest.err conftest.$ac_objext
5567 rm -f conftest.$ac_ext
5570 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5571 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5572 if test "$ac_cv_sys_largefile_CC" != no; then
5573 CC=$CC$ac_cv_sys_largefile_CC
5576 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5577 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5578 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 /* Check that off_t can represent 2**63 - 1 correctly.
5590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5591 since some C++ compilers masquerading as C compilers
5592 incorrectly reject 9223372036854775807. */
5593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5595 && LARGE_OFF_T % 2147483647 == 1)
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5609 *) ac_try_echo
=$ac_try;;
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compile") 2>conftest.er1
5614 grep -v '^ *+' conftest.er1
>conftest.err
5616 cat conftest.err
>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && {
5619 test -z "$ac_c_werror_flag" ||
5620 test ! -s conftest.err
5621 } && test -s conftest.
$ac_objext; then
5622 ac_cv_sys_file_offset_bits
=no
; break
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.
$ac_ext >&5
5630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5631 cat >conftest.
$ac_ext <<_ACEOF
5634 cat confdefs.h
>>conftest.
$ac_ext
5635 cat >>conftest.
$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #define _FILE_OFFSET_BITS 64
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5655 rm -f conftest.
$ac_objext
5656 if { (ac_try
="$ac_compile"
5658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_cv_sys_file_offset_bits=64; break
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_sys_file_offset_bits=unknown
5685 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5686 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5687 case $ac_cv_sys_file_offset_bits in #(
5690 cat >>confdefs.h <<_ACEOF
5691 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5696 if test $ac_cv_sys_file_offset_bits = unknown; then
5697 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5698 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5699 if test "${ac_cv_sys_large_files+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 cat >conftest.$ac_ext <<_ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 /* Check that off_t can represent 2**63 - 1 correctly.
5711 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5712 since some C++ compilers masquerading as C compilers
5713 incorrectly reject 9223372036854775807. */
5714 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5715 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5716 && LARGE_OFF_T % 2147483647 == 1)
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5730 *) ac_try_echo
=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5735 grep -v '^ *+' conftest.er1
>conftest.err
5737 cat conftest.err
>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.
$ac_objext; then
5743 ac_cv_sys_large_files
=no
; break
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.
$ac_ext >&5
5751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5752 cat >conftest.
$ac_ext <<_ACEOF
5755 cat confdefs.h
>>conftest.
$ac_ext
5756 cat >>conftest.
$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #define _LARGE_FILES 1
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5776 rm -f conftest.
$ac_objext
5777 if { (ac_try
="$ac_compile"
5779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5793 ac_cv_sys_large_files=1; break
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 ac_cv_sys_large_files=unknown
5806 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5807 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5808 case $ac_cv_sys_large_files in #(
5811 cat >>confdefs.h <<_ACEOF
5812 #define _LARGE_FILES $ac_cv_sys_large_files
5822 ### The standard library on x86-64 GNU/Linux distributions can
5823 ### be located in either /usr/lib64 or /usr/lib.
5824 case "${canonical}" in
5825 x86_64-*-linux-gnu* )
5826 if test -d /usr/lib64; then
5828 cat >>confdefs.h <<\_ACEOF
5829 #define HAVE_X86_64_LIB64_DIR 1
5838 if test "${with_sound}" != "no"; then
5839 # Sound support for GNU/Linux and the free BSDs.
5840 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5841 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5842 if test "${ac_cv_header_stdc+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5868 *) ac_try_echo
=$ac_try;;
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5873 grep -v '^ *+' conftest.er1
>conftest.err
5875 cat conftest.err
>&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest.
$ac_objext; then
5881 ac_cv_header_stdc
=yes
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.
$ac_ext >&5
5886 ac_cv_header_stdc
=no
5889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5891 if test $ac_cv_header_stdc = yes; then
5892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5893 cat >conftest.
$ac_ext <<_ACEOF
5896 cat confdefs.h
>>conftest.
$ac_ext
5897 cat >>conftest.
$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903 $EGREP "memchr" >/dev
/null
2>&1; then
5906 ac_cv_header_stdc
=no
5912 if test $ac_cv_header_stdc = yes; then
5913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5914 cat >conftest.
$ac_ext <<_ACEOF
5917 cat confdefs.h
>>conftest.
$ac_ext
5918 cat >>conftest.
$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "free" >/dev
/null
2>&1; then
5927 ac_cv_header_stdc
=no
5933 if test $ac_cv_header_stdc = yes; then
5934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5935 if test "$cross_compiling" = yes; then
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5946 #if ((' ' & 0x0FF) == 0x020)
5947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5950 # define ISLOWER(c) \
5951 (('a' <= (c) && (c) <= 'i') \
5952 || ('j' <= (c) && (c) <= 'r') \
5953 || ('s' <= (c) && (c) <= 'z'))
5954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5962 for (i = 0; i < 256; i++)
5963 if (XOR (islower (i), ISLOWER (i))
5964 || toupper (i) != TOUPPER (i))
5969 rm -f conftest
$ac_exeext
5970 if { (ac_try
="$ac_link"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_link") 2>&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5980 { (case "(($ac_try" in
5981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5982 *) ac_try_echo
=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_try") 2>&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5991 echo "$as_me: program exited with status $ac_status" >&5
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.
$ac_ext >&5
5996 ac_cv_header_stdc
=no
5998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6004 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6005 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6006 if test $ac_cv_header_stdc = yes; then
6008 cat >>confdefs.h
<<\_ACEOF
6009 #define STDC_HEADERS 1
6014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6024 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6025 inttypes.h stdint.h unistd.h
6027 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6030 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 cat >conftest.
$ac_ext <<_ACEOF
6036 cat confdefs.h
>>conftest.
$ac_ext
6037 cat >>conftest.
$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 $ac_includes_default
6041 #include <$ac_header>
6043 rm -f conftest.
$ac_objext
6044 if { (ac_try
="$ac_compile"
6046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6052 grep -v '^ *+' conftest.er1 >conftest.err
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_c_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6060 eval "$as_ac_Header=yes"
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 eval "$as_ac_Header=no"
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 ac_res=`eval echo '${'$as_ac_Header'}'`
6071 { echo "$as_me:$LINENO: result: $ac_res" >&5
6072 echo "${ECHO_T}$ac_res" >&6; }
6073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6074 cat >>confdefs.h <<_ACEOF
6075 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6086 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6088 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 ac_res=`eval echo '${'$as_ac_Header'}'`
6096 { echo "$as_me:$LINENO: result: $ac_res" >&5
6097 echo "${ECHO_T}$ac_res" >&6; }
6099 # Is the header compilable?
6100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 #include <$ac_header>
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6115 *) ac_try_echo
=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6120 grep -v '^ *+' conftest.er1
>conftest.err
6122 cat conftest.err
>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.
$ac_objext; then
6128 ac_header_compiler
=yes
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.
$ac_ext >&5
6133 ac_header_compiler
=no
6136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138 echo "${ECHO_T}$ac_header_compiler" >&6; }
6140 # Is the header present?
6141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6143 cat >conftest.
$ac_ext <<_ACEOF
6146 cat confdefs.h
>>conftest.
$ac_ext
6147 cat >>conftest.
$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <$ac_header>
6151 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null && {
6164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6167 ac_header_preproc=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_header_preproc=no
6175 rm -f conftest.err conftest.$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6177 echo "${ECHO_T}$ac_header_preproc" >&6; }
6179 # So? What about this header?
6180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6186 ac_header_preproc=yes
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 eval "$as_ac_Header=\$ac_header_preproc"
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6217 cat >>confdefs.h <<_ACEOF
6218 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6225 # Emulation library used on NetBSD.
6226 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6227 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6228 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 ac_check_lib_save_LIBS=$LIBS
6232 LIBS="-lossaudio $LIBS"
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6240 /* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply. */
6250 return _oss_ioctl ();
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6259 *) ac_try_echo
=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_link") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1
>conftest.err
6266 cat conftest.err
>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest
$ac_exeext &&
6272 $as_test_x conftest
$ac_exeext; then
6273 ac_cv_lib_ossaudio__oss_ioctl
=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.
$ac_ext >&5
6278 ac_cv_lib_ossaudio__oss_ioctl
=no
6281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6282 conftest
$ac_exeext conftest.
$ac_ext
6283 LIBS
=$ac_check_lib_save_LIBS
6285 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6286 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6287 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6296 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6297 if test "X${with_pkg_config_prog}" != X
; then
6298 PKG_CONFIG
="${with_pkg_config_prog}"
6303 if test -z "$PKG_CONFIG"; then
6304 # Extract the first word of "pkg-config", so it can be a program name with args.
6305 set dummy pkg-config
; ac_word
=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6320 test -z "$as_dir" && as_dir
=.
6321 for ac_exec_ext
in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6335 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6336 if test -n "$PKG_CONFIG"; then
6337 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6338 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6340 { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6347 if test "$PKG_CONFIG" = "no" ; then
6350 PKG_CONFIG_MIN_VERSION
=0.9.0
6351 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6352 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6353 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6355 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6356 { echo "$as_me:$LINENO: result: yes" >&5
6357 echo "${ECHO_T}yes" >&6; }
6360 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6361 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6362 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6363 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6364 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6366 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6367 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6368 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6369 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6370 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6376 ## If we have a custom action on failure, don't print errors, but
6377 ## do set a variable so people can do so.
6378 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6385 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6386 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6390 if test $succeeded = yes; then
6396 if test $HAVE_ALSA = yes; then
6397 SAVE_CFLAGS
="$CFLAGS"
6398 SAVE_LDFLAGS
="$LDFLAGS"
6399 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6400 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6401 cat >conftest.
$ac_ext <<_ACEOF
6404 cat confdefs.h
>>conftest.
$ac_ext
6405 cat >>conftest.
$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <asoundlib.h>
6411 snd_lib_error_set_handler (0);
6416 rm -f conftest.
$ac_objext
6417 if { (ac_try
="$ac_compile"
6419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_compile") 2>conftest.er1
6425 grep -v '^ *+' conftest.er1 >conftest.err
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest.$ac_objext; then
6433 emacs_alsa_normal=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6438 emacs_alsa_normal=no
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 if test "$emacs_alsa_normal" != yes; then
6443 cat >conftest.$ac_ext <<_ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 #include <alsa/asoundlib.h>
6453 snd_lib_error_set_handler (0);
6458 rm -f conftest.$ac_objext
6459 if { (ac_try="$ac_compile"
6461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6462 *) ac_try_echo
=$ac_try;;
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_compile") 2>conftest.er1
6467 grep -v '^ *+' conftest.er1
>conftest.err
6469 cat conftest.err
>&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } && {
6472 test -z "$ac_c_werror_flag" ||
6473 test ! -s conftest.err
6474 } && test -s conftest.
$ac_objext; then
6475 emacs_alsa_subdir
=yes
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.
$ac_ext >&5
6480 emacs_alsa_subdir
=no
6483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6484 if test "$emacs_alsa_subdir" != yes; then
6485 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6486 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6487 { (exit 1); exit 1; }; }
6489 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6492 CFLAGS
="$SAVE_CFLAGS"
6493 LDFLAGS
="$SAVE_LDFLAGS"
6494 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6495 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6497 cat >>confdefs.h
<<\_ACEOF
6530 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6531 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6532 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6533 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6536 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6537 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6540 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 ac_res
=`eval echo '${'$as_ac_Header'}'`
6544 { echo "$as_me:$LINENO: result: $ac_res" >&5
6545 echo "${ECHO_T}$ac_res" >&6; }
6547 # Is the header compilable?
6548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6550 cat >conftest.
$ac_ext <<_ACEOF
6553 cat confdefs.h
>>conftest.
$ac_ext
6554 cat >>conftest.
$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6557 #include <$ac_header>
6559 rm -f conftest.
$ac_objext
6560 if { (ac_try
="$ac_compile"
6562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_compile") 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest.$ac_objext; then
6576 ac_header_compiler=yes
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_header_compiler=no
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6; }
6588 # Is the header present?
6589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6591 cat >conftest.$ac_ext <<_ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #include <$ac_header>
6599 if { (ac_try="$ac_cpp conftest.$ac_ext"
6601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6602 *) ac_try_echo
=$ac_try;;
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6607 grep -v '^ *+' conftest.er1
>conftest.err
6609 cat conftest.err
>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } >/dev
/null
&& {
6612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6615 ac_header_preproc
=yes
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.
$ac_ext >&5
6620 ac_header_preproc
=no
6623 rm -f conftest.err conftest.
$ac_ext
6624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6625 echo "${ECHO_T}$ac_header_preproc" >&6; }
6627 # So? What about this header?
6628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6634 ac_header_preproc
=yes
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6654 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6657 eval "$as_ac_Header=\$ac_header_preproc"
6659 ac_res
=`eval echo '${'$as_ac_Header'}'`
6660 { echo "$as_me:$LINENO: result: $ac_res" >&5
6661 echo "${ECHO_T}$ac_res" >&6; }
6664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6665 cat >>confdefs.h
<<_ACEOF
6666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6675 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6676 cat >conftest.
$ac_ext <<_ACEOF
6679 cat confdefs.h
>>conftest.
$ac_ext
6680 cat >>conftest.
$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <sys/personality.h>
6686 personality (PER_LINUX32)
6691 rm -f conftest.
$ac_objext
6692 if { (ac_try
="$ac_compile"
6694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6700 grep -v '^ *+' conftest.er1 >conftest.err
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 emacs_cv_personality_linux32=yes
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 emacs_cv_personality_linux32=no
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6718 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6720 if test $emacs_cv_personality_linux32 = yes; then
6722 cat >>confdefs.h <<\_ACEOF
6723 #define HAVE_PERSONALITY_LINUX32 1
6729 for ac_header in term.h
6731 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 cat >conftest.$ac_ext <<_ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <$ac_header>
6745 if { (ac_try="$ac_cpp conftest.$ac_ext"
6747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6748 *) ac_try_echo
=$ac_try;;
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6753 grep -v '^ *+' conftest.er1
>conftest.err
6755 cat conftest.err
>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } >/dev
/null
&& {
6758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6759 test ! -s conftest.err
6761 eval "$as_ac_Header=yes"
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.
$ac_ext >&5
6766 eval "$as_ac_Header=no"
6769 rm -f conftest.err conftest.
$ac_ext
6771 ac_res
=`eval echo '${'$as_ac_Header'}'`
6772 { echo "$as_me:$LINENO: result: $ac_res" >&5
6773 echo "${ECHO_T}$ac_res" >&6; }
6774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6775 cat >>confdefs.h
<<_ACEOF
6776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6783 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6785 if test "${ac_cv_header_stdc+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 cat >conftest.
$ac_ext <<_ACEOF
6791 cat confdefs.h
>>conftest.
$ac_ext
6792 cat >>conftest.
$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6807 rm -f conftest.
$ac_objext
6808 if { (ac_try
="$ac_compile"
6810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6816 grep -v '^ *+' conftest.er1 >conftest.err
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 ac_cv_header_stdc=yes
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_header_stdc=no
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 if test $ac_cv_header_stdc = yes; then
6835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "memchr" >/dev/null 2>&1; then
6849 ac_cv_header_stdc=no
6855 if test $ac_cv_header_stdc = yes; then
6856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857 cat >conftest.$ac_ext <<_ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 $EGREP "free" >/dev/null 2>&1; then
6870 ac_cv_header_stdc=no
6876 if test $ac_cv_header_stdc = yes; then
6877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6878 if test "$cross_compiling" = yes; then
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6889 #if ((' ' & 0x0FF) == 0x020)
6890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6893 # define ISLOWER(c) \
6894 (('a' <= (c) && (c) <= 'i') \
6895 || ('j' <= (c) && (c) <= 'r') \
6896 || ('s' <= (c) && (c) <= 'z'))
6897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6905 for (i = 0; i < 256; i++)
6906 if (XOR (islower (i), ISLOWER (i))
6907 || toupper (i) != TOUPPER (i))
6912 rm -f conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6916 *) ac_try_echo
=$ac_try;;
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_link") 2>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6923 { (case "(($ac_try" in
6924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928 (eval "$ac_try") 2>&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6934 echo "$as_me: program exited with status $ac_status" >&5
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6939 ac_cv_header_stdc=no
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6947 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6948 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6949 if test $ac_cv_header_stdc = yes; then
6951 cat >>confdefs.h <<\_ACEOF
6952 #define STDC_HEADERS 1
6957 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6958 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6959 if test "${ac_cv_header_time+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 cat >conftest.$ac_ext <<_ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 #include <sys/types.h>
6969 #include <sys/time.h>
6975 if ((struct tm *) 0)
6981 rm -f conftest.$ac_objext
6982 if { (ac_try="$ac_compile"
6984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6985 *) ac_try_echo
=$ac_try;;
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_compile") 2>conftest.er1
6990 grep -v '^ *+' conftest.er1
>conftest.err
6992 cat conftest.err
>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest.
$ac_objext; then
6998 ac_cv_header_time
=yes
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7003 ac_cv_header_time
=no
7006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7008 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7009 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7010 if test $ac_cv_header_time = yes; then
7012 cat >>confdefs.h
<<\_ACEOF
7013 #define TIME_WITH_SYS_TIME 1
7018 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7019 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7020 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 cat >conftest.
$ac_ext <<_ACEOF
7026 cat confdefs.h
>>conftest.
$ac_ext
7027 cat >>conftest.
$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 $ac_includes_default
7041 rm -f conftest.
$ac_objext
7042 if { (ac_try
="$ac_compile"
7044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7050 grep -v '^ *+' conftest.er1 >conftest.err
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_have_decl_sys_siglist=yes
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_have_decl_sys_siglist=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7069 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7070 if test $ac_cv_have_decl_sys_siglist = yes; then
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_DECL_SYS_SIGLIST 1
7078 cat >>confdefs.h <<_ACEOF
7079 #define HAVE_DECL_SYS_SIGLIST 0
7086 if test $ac_cv_have_decl_sys_siglist != yes; then
7087 # For Tru64, at least:
7088 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7089 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7090 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 cat >conftest.$ac_ext <<_ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7103 #ifndef __sys_siglist
7104 (void) __sys_siglist;
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7115 *) ac_try_echo
=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1
>conftest.err
7122 cat conftest.err
>&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.
$ac_objext; then
7128 ac_cv_have_decl___sys_siglist
=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 ac_cv_have_decl___sys_siglist
=no
7136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7139 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7140 if test $ac_cv_have_decl___sys_siglist = yes; then
7142 cat >>confdefs.h
<<_ACEOF
7143 #define HAVE_DECL___SYS_SIGLIST 1
7148 cat >>confdefs.h
<<_ACEOF
7149 #define HAVE_DECL___SYS_SIGLIST 0
7156 if test $ac_cv_have_decl___sys_siglist = yes; then
7158 cat >>confdefs.h
<<\_ACEOF
7159 #define sys_siglist __sys_siglist
7164 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7165 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7166 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7176 #include <sys/wait.h>
7178 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7194 rm -f conftest.
$ac_objext
7195 if { (ac_try
="$ac_compile"
7197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 ac_cv_header_sys_wait_h=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_header_sys_wait_h=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7222 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7223 if test $ac_cv_header_sys_wait_h = yes; then
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_SYS_WAIT_H 1
7232 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7233 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7234 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 cat >conftest.$ac_ext <<_ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #ifdef TIME_WITH_SYS_TIME
7244 #include <sys/time.h>
7247 #ifdef HAVE_SYS_TIME_H
7248 #include <sys/time.h>
7259 static struct utimbuf x; x.actime = x.modtime;
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7268 *) ac_try_echo
=$ac_try;;
7270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 (eval "$ac_compile") 2>conftest.er1
7273 grep -v '^ *+' conftest.er1
>conftest.err
7275 cat conftest.err
>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest.
$ac_objext; then
7281 emacs_cv_struct_utimbuf
=yes
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.
$ac_ext >&5
7286 emacs_cv_struct_utimbuf
=no
7289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7291 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7292 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7293 if test $emacs_cv_struct_utimbuf = yes; then
7295 cat >>confdefs.h
<<\_ACEOF
7296 #define HAVE_STRUCT_UTIMBUF 1
7301 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7302 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7303 if test "${ac_cv_type_signal+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 cat >conftest.
$ac_ext <<_ACEOF
7309 cat confdefs.h
>>conftest.
$ac_ext
7310 cat >>conftest.
$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 #include <sys/types.h>
7318 return *(signal (0, 0)) (0) == 1;
7323 rm -f conftest.
$ac_objext
7324 if { (ac_try
="$ac_compile"
7326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7332 grep -v '^ *+' conftest.er1 >conftest.err
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.$ac_objext; then
7340 ac_cv_type_signal=int
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7345 ac_cv_type_signal=void
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7351 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7353 cat >>confdefs.h <<_ACEOF
7354 #define RETSIGTYPE $ac_cv_type_signal
7359 { echo "$as_me:$LINENO: checking for speed_t" >&5
7360 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7361 if test "${emacs_cv_speed_t+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 cat >conftest.$ac_ext <<_ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 #include <termios.h>
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7383 *) ac_try_echo
=$ac_try;;
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7388 grep -v '^ *+' conftest.er1
>conftest.err
7390 cat conftest.err
>&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.
$ac_objext; then
7396 emacs_cv_speed_t
=yes
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.
$ac_ext >&5
7404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7406 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7407 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7408 if test $emacs_cv_speed_t = yes; then
7410 cat >>confdefs.h
<<\_ACEOF
7411 #define HAVE_SPEED_T 1
7416 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7417 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7418 if test "${emacs_cv_struct_timeval+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 #ifdef TIME_WITH_SYS_TIME
7428 #include <sys/time.h>
7431 #ifdef HAVE_SYS_TIME_H
7432 #include <sys/time.h>
7440 static struct timeval x; x.tv_sec = x.tv_usec;
7445 rm -f conftest.
$ac_objext
7446 if { (ac_try
="$ac_compile"
7448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_compile") 2>conftest.er1
7454 grep -v '^ *+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
7462 emacs_cv_struct_timeval=yes
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7467 emacs_cv_struct_timeval=no
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7473 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7474 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7475 if test $emacs_cv_struct_timeval = yes; then
7477 cat >>confdefs.h <<\_ACEOF
7478 #define HAVE_TIMEVAL 1
7483 { echo "$as_me:$LINENO: checking for struct exception" >&5
7484 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7485 if test "${emacs_cv_struct_exception+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7498 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7507 *) ac_try_echo
=$ac_try;;
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_compile") 2>conftest.er1
7512 grep -v '^ *+' conftest.er1
>conftest.err
7514 cat conftest.err
>&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.
$ac_objext; then
7520 emacs_cv_struct_exception
=yes
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.
$ac_ext >&5
7525 emacs_cv_struct_exception
=no
7528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7530 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7531 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7532 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7533 if test $emacs_cv_struct_exception != yes; then
7535 cat >>confdefs.h
<<\_ACEOF
7536 #define NO_MATHERR 1
7542 for ac_header
in sys
/socket.h
7544 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7548 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 ac_res
=`eval echo '${'$as_ac_Header'}'`
7552 { echo "$as_me:$LINENO: result: $ac_res" >&5
7553 echo "${ECHO_T}$ac_res" >&6; }
7555 # Is the header compilable?
7556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7558 cat >conftest.
$ac_ext <<_ACEOF
7561 cat confdefs.h
>>conftest.
$ac_ext
7562 cat >>conftest.
$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7565 #include <$ac_header>
7567 rm -f conftest.
$ac_objext
7568 if { (ac_try
="$ac_compile"
7570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1 >conftest.err
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 ac_header_compiler=yes
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_header_compiler=no
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7594 echo "${ECHO_T}$ac_header_compiler" >&6; }
7596 # Is the header present?
7597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <$ac_header>
7607 if { (ac_try="$ac_cpp conftest.$ac_ext"
7609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7610 *) ac_try_echo
=$ac_try;;
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7615 grep -v '^ *+' conftest.er1
>conftest.err
7617 cat conftest.err
>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } >/dev
/null
&& {
7620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7623 ac_header_preproc
=yes
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.
$ac_ext >&5
7628 ac_header_preproc
=no
7631 rm -f conftest.err conftest.
$ac_ext
7632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633 echo "${ECHO_T}$ac_header_preproc" >&6; }
7635 # So? What about this header?
7636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7642 ac_header_preproc
=yes
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7662 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 eval "$as_ac_Header=\$ac_header_preproc"
7667 ac_res
=`eval echo '${'$as_ac_Header'}'`
7668 { echo "$as_me:$LINENO: result: $ac_res" >&5
7669 echo "${ECHO_T}$ac_res" >&6; }
7672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7673 cat >>confdefs.h
<<_ACEOF
7674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682 for ac_header
in net
/if.h
7684 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 cat >conftest.
$ac_ext <<_ACEOF
7693 cat confdefs.h
>>conftest.
$ac_ext
7694 cat >>conftest.
$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 #if HAVE_SYS_SOCKET_H
7698 #include <sys/socket.h>
7701 #include <$ac_header>
7703 rm -f conftest.
$ac_objext
7704 if { (ac_try
="$ac_compile"
7706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_compile") 2>conftest.er1
7712 grep -v '^ *+' conftest.er1 >conftest.err
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest.$ac_objext; then
7720 eval "$as_ac_Header=yes"
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 eval "$as_ac_Header=no"
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 ac_res=`eval echo '${'$as_ac_Header'}'`
7731 { echo "$as_me:$LINENO: result: $ac_res" >&5
7732 echo "${ECHO_T}$ac_res" >&6; }
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7743 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7744 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7745 if test "${ac_cv_struct_tm+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 cat >conftest.$ac_ext <<_ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <sys/types.h>
7761 int *p = &tm.tm_sec;
7767 rm -f conftest.$ac_objext
7768 if { (ac_try="$ac_compile"
7770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7771 *) ac_try_echo
=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1
>conftest.err
7778 cat conftest.err
>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.
$ac_objext; then
7784 ac_cv_struct_tm
=time.h
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.
$ac_ext >&5
7789 ac_cv_struct_tm
=sys
/time.h
7792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7794 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7795 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7796 if test $ac_cv_struct_tm = sys
/time.h
; then
7798 cat >>confdefs.h
<<\_ACEOF
7799 #define TM_IN_SYS_TIME 1
7804 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7805 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 cat >conftest.
$ac_ext <<_ACEOF
7812 cat confdefs.h
>>conftest.
$ac_ext
7813 cat >>conftest.
$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <sys/types.h>
7816 #include <$ac_cv_struct_tm>
7822 static struct tm ac_aggr;
7823 if (ac_aggr.tm_zone)
7829 rm -f conftest.
$ac_objext
7830 if { (ac_try
="$ac_compile"
7832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.$ac_objext; then
7846 ac_cv_member_struct_tm_tm_zone=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 #include <sys/types.h>
7858 #include <$ac_cv_struct_tm>
7864 static struct tm ac_aggr;
7865 if (sizeof ac_aggr.tm_zone)
7871 rm -f conftest.$ac_objext
7872 if { (ac_try="$ac_compile"
7874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7875 *) ac_try_echo
=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_compile") 2>conftest.er1
7880 grep -v '^ *+' conftest.er1
>conftest.err
7882 cat conftest.err
>&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest.
$ac_objext; then
7888 ac_cv_member_struct_tm_tm_zone
=yes
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.
$ac_ext >&5
7893 ac_cv_member_struct_tm_tm_zone
=no
7896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7902 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7903 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7905 cat >>confdefs.h
<<_ACEOF
7906 #define HAVE_STRUCT_TM_TM_ZONE 1
7912 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7914 cat >>confdefs.h
<<\_ACEOF
7915 #define HAVE_TM_ZONE 1
7919 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7920 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7921 if test "${ac_cv_have_decl_tzname+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 cat >conftest.
$ac_ext <<_ACEOF
7927 cat confdefs.h
>>conftest.
$ac_ext
7928 cat >>conftest.
$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7943 rm -f conftest.
$ac_objext
7944 if { (ac_try
="$ac_compile"
7946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_cv_have_decl_tzname=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7965 ac_cv_have_decl_tzname=no
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7971 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7972 if test $ac_cv_have_decl_tzname = yes; then
7974 cat >>confdefs.h <<_ACEOF
7975 #define HAVE_DECL_TZNAME 1
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DECL_TZNAME 0
7988 { echo "$as_me:$LINENO: checking for tzname" >&5
7989 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7990 if test "${ac_cv_var_tzname+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8000 #if !HAVE_DECL_TZNAME
8001 extern char *tzname[];
8007 return tzname[0][0];
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (ac_try="$ac_link"
8015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8016 *) ac_try_echo
=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_link") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1
>conftest.err
8023 cat conftest.err
>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest
$ac_exeext &&
8029 $as_test_x conftest
$ac_exeext; then
8030 ac_cv_var_tzname
=yes
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.
$ac_ext >&5
8038 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8039 conftest
$ac_exeext conftest.
$ac_ext
8041 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8042 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8043 if test $ac_cv_var_tzname = yes; then
8045 cat >>confdefs.h
<<\_ACEOF
8046 #define HAVE_TZNAME 1
8052 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8053 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8054 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 cat >conftest.
$ac_ext <<_ACEOF
8060 cat confdefs.h
>>conftest.
$ac_ext
8061 cat >>conftest.
$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8068 static struct tm ac_aggr;
8069 if (ac_aggr.tm_gmtoff)
8075 rm -f conftest.
$ac_objext
8076 if { (ac_try
="$ac_compile"
8078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8092 ac_cv_member_struct_tm_tm_gmtoff=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8108 static struct tm ac_aggr;
8109 if (sizeof ac_aggr.tm_gmtoff)
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8119 *) ac_try_echo
=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1
>conftest.err
8126 cat conftest.err
>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.
$ac_objext; then
8132 ac_cv_member_struct_tm_tm_gmtoff
=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.
$ac_ext >&5
8137 ac_cv_member_struct_tm_tm_gmtoff
=no
8140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8146 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8147 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8149 cat >>confdefs.h
<<\_ACEOF
8150 #define HAVE_TM_GMTOFF 1
8155 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8156 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8157 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 cat >conftest.
$ac_ext <<_ACEOF
8163 cat confdefs.h
>>conftest.
$ac_ext
8164 cat >>conftest.
$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8167 #if HAVE_SYS_SOCKET_H
8168 #include <sys/socket.h>
8177 static struct ifreq ac_aggr;
8178 if (ac_aggr.ifr_flags)
8184 rm -f conftest.
$ac_objext
8185 if { (ac_try
="$ac_compile"
8187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8193 grep -v '^ *+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
8201 ac_cv_member_struct_ifreq_ifr_flags=yes
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8213 #if HAVE_SYS_SOCKET_H
8214 #include <sys/socket.h>
8223 static struct ifreq ac_aggr;
8224 if (sizeof ac_aggr.ifr_flags)
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8234 *) ac_try_echo
=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8239 grep -v '^ *+' conftest.er1
>conftest.err
8241 cat conftest.err
>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.
$ac_objext; then
8247 ac_cv_member_struct_ifreq_ifr_flags
=yes
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.
$ac_ext >&5
8252 ac_cv_member_struct_ifreq_ifr_flags
=no
8255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8260 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8261 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8262 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8264 cat >>confdefs.h
<<_ACEOF
8265 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8270 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8271 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8272 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 cat >conftest.
$ac_ext <<_ACEOF
8278 cat confdefs.h
>>conftest.
$ac_ext
8279 cat >>conftest.
$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 $ac_includes_default
8282 #if HAVE_SYS_SOCKET_H
8283 #include <sys/socket.h>
8292 static struct ifreq ac_aggr;
8293 if (ac_aggr.ifr_hwaddr)
8299 rm -f conftest.
$ac_objext
8300 if { (ac_try
="$ac_compile"
8302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest.$ac_objext; then
8316 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 cat >conftest.$ac_ext <<_ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #if HAVE_SYS_SOCKET_H
8329 #include <sys/socket.h>
8338 static struct ifreq ac_aggr;
8339 if (sizeof ac_aggr.ifr_hwaddr)
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8349 *) ac_try_echo
=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_compile") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1
>conftest.err
8356 cat conftest.err
>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && {
8359 test -z "$ac_c_werror_flag" ||
8360 test ! -s conftest.err
8361 } && test -s conftest.
$ac_objext; then
8362 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.
$ac_ext >&5
8367 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8375 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8376 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8377 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8379 cat >>confdefs.h
<<_ACEOF
8380 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8385 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8386 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8387 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 cat >conftest.
$ac_ext <<_ACEOF
8393 cat confdefs.h
>>conftest.
$ac_ext
8394 cat >>conftest.
$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #if HAVE_SYS_SOCKET_H
8398 #include <sys/socket.h>
8407 static struct ifreq ac_aggr;
8408 if (ac_aggr.ifr_netmask)
8414 rm -f conftest.
$ac_objext
8415 if { (ac_try
="$ac_compile"
8417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && {
8428 test -z "$ac_c_werror_flag" ||
8429 test ! -s conftest.err
8430 } && test -s conftest.$ac_objext; then
8431 ac_cv_member_struct_ifreq_ifr_netmask=yes
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 #if HAVE_SYS_SOCKET_H
8444 #include <sys/socket.h>
8453 static struct ifreq ac_aggr;
8454 if (sizeof ac_aggr.ifr_netmask)
8460 rm -f conftest.$ac_objext
8461 if { (ac_try="$ac_compile"
8463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8464 *) ac_try_echo
=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_compile") 2>conftest.er1
8469 grep -v '^ *+' conftest.er1
>conftest.err
8471 cat conftest.err
>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && {
8474 test -z "$ac_c_werror_flag" ||
8475 test ! -s conftest.err
8476 } && test -s conftest.
$ac_objext; then
8477 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.
$ac_ext >&5
8482 ac_cv_member_struct_ifreq_ifr_netmask
=no
8485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8490 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8491 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8492 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8494 cat >>confdefs.h
<<_ACEOF
8495 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8500 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8501 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8502 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 cat >conftest.
$ac_ext <<_ACEOF
8508 cat confdefs.h
>>conftest.
$ac_ext
8509 cat >>conftest.
$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 #if HAVE_SYS_SOCKET_H
8513 #include <sys/socket.h>
8522 static struct ifreq ac_aggr;
8523 if (ac_aggr.ifr_broadaddr)
8529 rm -f conftest.
$ac_objext
8530 if { (ac_try
="$ac_compile"
8532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8538 grep -v '^ *+' conftest.er1 >conftest.err
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.$ac_objext; then
8546 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 #if HAVE_SYS_SOCKET_H
8559 #include <sys/socket.h>
8568 static struct ifreq ac_aggr;
8569 if (sizeof ac_aggr.ifr_broadaddr)
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8579 *) ac_try_echo
=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1
>conftest.err
8586 cat conftest.err
>&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.
$ac_objext; then
8592 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.
$ac_ext >&5
8597 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8605 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8606 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8607 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8609 cat >>confdefs.h
<<_ACEOF
8610 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8615 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8616 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8617 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 cat >conftest.
$ac_ext <<_ACEOF
8623 cat confdefs.h
>>conftest.
$ac_ext
8624 cat >>conftest.
$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 $ac_includes_default
8627 #if HAVE_SYS_SOCKET_H
8628 #include <sys/socket.h>
8637 static struct ifreq ac_aggr;
8638 if (ac_aggr.ifr_addr)
8644 rm -f conftest.
$ac_objext
8645 if { (ac_try
="$ac_compile"
8647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_addr=yes
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 cat >conftest.$ac_ext <<_ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 $ac_includes_default
8673 #if HAVE_SYS_SOCKET_H
8674 #include <sys/socket.h>
8683 static struct ifreq ac_aggr;
8684 if (sizeof ac_aggr.ifr_addr)
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8694 *) ac_try_echo
=$ac_try;;
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8699 grep -v '^ *+' conftest.er1
>conftest.err
8701 cat conftest.err
>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest.
$ac_objext; then
8707 ac_cv_member_struct_ifreq_ifr_addr
=yes
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.
$ac_ext >&5
8712 ac_cv_member_struct_ifreq_ifr_addr
=no
8715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8720 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8721 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8722 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8724 cat >>confdefs.h
<<_ACEOF
8725 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8733 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8734 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8735 if test "$ac_cv_prog_cc_c89" != no
; then
8736 { echo "$as_me:$LINENO: result: yes" >&5
8737 echo "${ECHO_T}yes" >&6; }
8739 cat >>confdefs.h
<<\_ACEOF
8740 #define PROTOTYPES 1
8744 cat >>confdefs.h
<<\_ACEOF
8745 #define __PROTOTYPES 1
8749 { echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6; }
8753 { echo "$as_me:$LINENO: checking for working volatile" >&5
8754 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8755 if test "${ac_cv_c_volatile+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 cat >conftest.
$ac_ext <<_ACEOF
8761 cat confdefs.h
>>conftest.
$ac_ext
8762 cat >>conftest.
$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8770 int * volatile y = (int *) 0;
8776 rm -f conftest.
$ac_objext
8777 if { (ac_try
="$ac_compile"
8779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_compile") 2>conftest.er1
8785 grep -v '^ *+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest.$ac_objext; then
8793 ac_cv_c_volatile=yes
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8804 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8805 if test $ac_cv_c_volatile = no; then
8807 cat >>confdefs.h <<\_ACEOF
8813 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8814 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8815 if test "${ac_cv_c_const+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8828 /* FIXME: Include the comments suggested by Paul. */
8830 /* Ultrix mips cc rejects this. */
8831 typedef int charset[2];
8833 /* SunOS 4.1.1 cc rejects this. */
8834 char const *const *pcpcc;
8836 /* NEC SVR4.0.2 mips cc rejects this. */
8837 struct point {int x, y;};
8838 static struct point const zero = {0,0};
8839 /* AIX XL C 1.02.0.0 rejects this.
8840 It does not let you subtract one const X* pointer from another in
8841 an arm of an if-expression whose if-part is not a constant
8843 const char *g = "string";
8844 pcpcc = &g + (g ? g-g : 0);
8845 /* HPUX 7.0 cc rejects these. */
8847 ppc = (char**) pcpcc;
8848 pcpcc = (char const *const *) ppc;
8849 { /* SCO 3.2v4 cc rejects this. */
8851 char const *s = 0 ? (char *) 0 : (char const *) 0;
8856 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8858 const int *foo = &x[0];
8861 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8862 typedef const int *iptr;
8866 { /* AIX XL C 1.02.0.0 rejects this saying
8867 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8868 struct s { int j; const int *ap[3]; };
8869 struct s *b; b->j = 5;
8871 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8875 return !cs[0] && !zero.x;
8882 rm -f conftest.$ac_objext
8883 if { (ac_try="$ac_compile"
8885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8886 *) ac_try_echo
=$ac_try;;
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_compile") 2>conftest.er1
8891 grep -v '^ *+' conftest.er1
>conftest.err
8893 cat conftest.err
>&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && {
8896 test -z "$ac_c_werror_flag" ||
8897 test ! -s conftest.err
8898 } && test -s conftest.
$ac_objext; then
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.
$ac_ext >&5
8907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8909 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8910 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8911 if test $ac_cv_c_const = no
; then
8913 cat >>confdefs.h
<<\_ACEOF
8919 { echo "$as_me:$LINENO: checking for void * support" >&5
8920 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8921 if test "${emacs_cv_void_star+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 cat >conftest.
$ac_ext <<_ACEOF
8927 cat confdefs.h
>>conftest.
$ac_ext
8928 cat >>conftest.
$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8939 rm -f conftest.
$ac_objext
8940 if { (ac_try
="$ac_compile"
8942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8948 grep -v '^ *+' conftest.er1 >conftest.err
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 emacs_cv_void_star=yes
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 emacs_cv_void_star=no
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8967 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8968 if test $emacs_cv_void_star = yes; then
8969 cat >>confdefs.h <<\_ACEOF
8970 #define POINTER_TYPE void
8974 cat >>confdefs.h <<\_ACEOF
8975 #define POINTER_TYPE char
8984 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8985 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8986 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8987 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 cat >conftest.make <<\_ACEOF
8993 @echo '@@@%%%=$(MAKE)=@@@%%%'
8995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8996 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8998 eval ac_cv_prog_make_${ac_make}_set=yes;;
9000 eval ac_cv_prog_make_${ac_make}_set=no;;
9004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9005 { echo "$as_me:$LINENO: result: yes" >&5
9006 echo "${ECHO_T}yes" >&6; }
9009 { echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6; }
9011 SET_MAKE="MAKE=${MAKE-make}"
9015 { echo "$as_me:$LINENO: checking for long file names" >&5
9016 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9017 if test "${ac_cv_sys_long_file_names+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 ac_cv_sys_long_file_names=yes
9021 # Test for long file names in all the places we know might matter:
9022 # . the current directory, where building will happen
9023 # $prefix/lib where we will be installing things
9024 # $exec_prefix/lib likewise
9025 # $TMPDIR if set, where it might want to write temporary files
9026 # /tmp where it might want to write temporary files
9029 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9030 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9031 # in the usual case where exec_prefix is '${prefix}'.
9033 . | /* | ?:[\\/]*) ;; #(
9036 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9037 ac_xdir=$ac_dir/cf$$
9038 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9039 ac_tf1=$ac_xdir/conftest9012345
9040 ac_tf2=$ac_xdir/conftest9012346
9041 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9042 ac_cv_sys_long_file_names=no
9043 rm -f -r "$ac_xdir" 2>/dev/null
9044 test $ac_cv_sys_long_file_names = no && break
9047 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9048 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9049 if test $ac_cv_sys_long_file_names = yes; then
9051 cat >>confdefs.h <<\_ACEOF
9052 #define HAVE_LONG_FILE_NAMES 1
9058 #### Choose a window system.
9060 { echo "$as_me:$LINENO: checking for X" >&5
9061 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9064 # Check whether --with-x was given.
9065 if test "${with_x+set}" = set; then
9069 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9070 if test "x$with_x" = xno; then
9071 # The user explicitly disabled X.
9074 case $x_includes,$x_libraries in #(
9075 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9076 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9077 { (exit 1); exit 1; }; };; #(
9078 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 # One or both of the vars are not set, and there is no cached value.
9082 ac_x_includes=no ac_x_libraries=no
9083 rm -f -r conftest.dir
9084 if mkdir conftest.dir; then
9086 cat >Imakefile <<'_ACEOF'
9088 @echo incroot='${INCROOT}'
9090 @echo usrlibdir='${USRLIBDIR}'
9092 @echo libdir='${LIBDIR}'
9094 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9096 for ac_var in incroot usrlibdir libdir; do
9097 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9099 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9100 for ac_extension in a so sl; do
9101 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9102 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9103 ac_im_usrlibdir=$ac_im_libdir; break
9106 # Screen out bogus values from the imake configuration. They are
9107 # bogus both because they are the default anyway, and because
9108 # using them would break gcc on systems where it needs fixed includes.
9109 case $ac_im_incroot in
9110 /usr/include) ac_x_includes= ;;
9111 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9113 case $ac_im_usrlibdir in
9115 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9119 rm -f -r conftest.dir
9122 # Standard set of common directories for X headers.
9123 # Check X11 before X11Rn because it is often a symlink to the current release.
9135 /usr/local/X11/include
9136 /usr/local/X11R6/include
9137 /usr/local/X11R5/include
9138 /usr/local/X11R4/include
9140 /usr/local/include/X11
9141 /usr/local/include/X11R6
9142 /usr/local/include/X11R5
9143 /usr/local/include/X11R4
9147 /usr/XFree86/include/X11
9151 /usr/unsupported/include
9153 /usr/local/x11r5/include
9154 /usr/lpp/Xamples/include
9156 /usr/openwin/include
9157 /usr/openwin/share/include'
9159 if test "$ac_x_includes" = no; then
9160 # Guess where to find include files, by looking for Xlib.h.
9161 # First, try using that file with no special directory specified.
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 #include <X11/Xlib.h>
9170 if { (ac_try="$ac_cpp conftest.$ac_ext"
9172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9173 *) ac_try_echo
=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9178 grep -v '^ *+' conftest.er1
>conftest.err
9180 cat conftest.err
>&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } >/dev
/null
&& {
9183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9186 # We can compile using X headers with no special include directory.
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.
$ac_ext >&5
9192 for ac_dir
in $ac_x_header_dirs; do
9193 if test -r "$ac_dir/X11/Xlib.h"; then
9194 ac_x_includes
=$ac_dir
9200 rm -f conftest.err conftest.
$ac_ext
9201 fi # $ac_x_includes = no
9203 if test "$ac_x_libraries" = no
; then
9204 # Check for the libraries.
9205 # See if we find them without any special options.
9206 # Don't add to $LIBS permanently.
9209 cat >conftest.
$ac_ext <<_ACEOF
9212 cat confdefs.h
>>conftest.
$ac_ext
9213 cat >>conftest.
$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 #include <X11/Xlib.h>
9224 rm -f conftest.
$ac_objext conftest
$ac_exeext
9225 if { (ac_try
="$ac_link"
9227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_link") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest$ac_exeext &&
9241 $as_test_x conftest$ac_exeext; then
9243 # We can link X programs with no special library path.
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9250 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9252 # Don't even attempt the hair of trying to link an X program!
9253 for ac_extension in a so sl; do
9254 if test -r "$ac_dir/libX11.$ac_extension"; then
9255 ac_x_libraries=$ac_dir
9262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9263 conftest$ac_exeext conftest.$ac_ext
9264 fi # $ac_x_libraries = no
9266 case $ac_x_includes,$ac_x_libraries in #(
9268 # Didn't find X, or a directory has "'" in its name.
9269 ac_cv_have_x="have_x=no";; #(
9271 # Record where we found X for the cache.
9272 ac_cv_have_x="have_x=yes\
9273 ac_x_includes='$ac_x_includes'\
9274 ac_x_libraries='$ac_x_libraries'"
9280 eval "$ac_cv_have_x"
9283 if test "$have_x" != yes; then
9284 { echo "$as_me:$LINENO: result: $have_x" >&5
9285 echo "${ECHO_T}$have_x" >&6; }
9288 # If each of the values was on the command line, it overrides each guess.
9289 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9290 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9291 # Update the cache value to reflect the command line values.
9292 ac_cv_have_x="have_x=yes\
9293 ac_x_includes='$x_includes'\
9294 ac_x_libraries='$x_libraries'"
9295 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9296 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9299 if test "$no_x" = yes; then
9305 if test "${x_libraries}" != NONE; then
9306 if test -n "${x_libraries}"; then
9307 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9308 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9310 x_default_search_path=""
9311 x_search_path=${x_libraries}
9312 if test -z "${x_search_path}"; then
9313 x_search_path=/usr/lib
9315 for x_library in `echo ${x_search_path}: | \
9316 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9318 ${x_library}/X11/%L/%T/%N%C%S:\
9319 ${x_library}/X11/%l/%T/%N%C%S:\
9320 ${x_library}/X11/%T/%N%C%S:\
9321 ${x_library}/X11/%L/%T/%N%S:\
9322 ${x_library}/X11/%l/%T/%N%S:\
9323 ${x_library}/X11/%T/%N%S"
9324 if test x"${x_default_search_path}" = x; then
9325 x_default_search_path=${x_search_path}
9327 x_default_search_path="${x_search_path}:${x_default_search_path}"
9331 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9332 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9335 if test x"${x_includes}" = x; then
9336 bitmapdir=/usr/include/X11/bitmaps
9338 # accumulate include directories that have X11 bitmap subdirectories
9340 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9341 if test -d "${bmd}/X11/bitmaps"; then
9342 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9344 if test -d "${bmd}/bitmaps"; then
9345 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9348 if test ${bmd_acc} != "dummyval"; then
9349 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9354 if test "${with_carbon}" != no; then
9355 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9356 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9357 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9358 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9362 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9364 # Is the header compilable?
9365 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9366 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9374 #include <Carbon/Carbon.h>
9376 rm -f conftest.$ac_objext
9377 if { (ac_try="$ac_compile"
9379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9380 *) ac_try_echo
=$ac_try;;
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_compile") 2>conftest.er1
9385 grep -v '^ *+' conftest.er1
>conftest.err
9387 cat conftest.err
>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } && {
9390 test -z "$ac_c_werror_flag" ||
9391 test ! -s conftest.err
9392 } && test -s conftest.
$ac_objext; then
9393 ac_header_compiler
=yes
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.
$ac_ext >&5
9398 ac_header_compiler
=no
9401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9403 echo "${ECHO_T}$ac_header_compiler" >&6; }
9405 # Is the header present?
9406 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9407 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9408 cat >conftest.
$ac_ext <<_ACEOF
9411 cat confdefs.h
>>conftest.
$ac_ext
9412 cat >>conftest.
$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <Carbon/Carbon.h>
9416 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9424 grep -v '^ *+' conftest.er1 >conftest.err
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } >/dev/null && {
9429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9430 test ! -s conftest.err
9432 ac_header_preproc=yes
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_header_preproc=no
9440 rm -f conftest.err conftest.$ac_ext
9441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9442 echo "${ECHO_T}$ac_header_preproc" >&6; }
9444 # So? What about this header?
9445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9451 ac_header_preproc=yes
9454 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9455 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9459 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9469 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9470 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9471 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9476 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9477 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9480 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9486 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9487 if test "${with_carbon+set}" != set \
9488 && test "${carbon_appdir_x+set}" != set; then
9489 for var in with_x with_x_toolkit with_gtk with_xim \
9490 with_xpm with_jpeg with_tiff with_gif with_png; do
9491 if eval test \"\${$var+set}\" = set; then
9498 if test "${HAVE_CARBON}" = yes; then
9502 case "${window_system}" in
9506 case "${with_x_toolkit}" in
9507 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9508 motif ) USE_X_TOOLKIT=MOTIF ;;
9510 USE_X_TOOLKIT=none ;;
9511 no ) USE_X_TOOLKIT=none ;;
9512 * ) USE_X_TOOLKIT=maybe ;;
9522 ### If we're using X11, we should use the X menu package.
9525 yes ) HAVE_MENUS=yes ;;
9528 if test "${opsys}" = "hpux9"; then
9529 case "${x_libraries}" in
9531 opsysfile="s/hpux9-x11r4.h"
9536 if test "${opsys}" = "hpux9shr"; then
9537 case "${x_libraries}" in
9539 opsysfile="s/hpux9shxr4.h"
9544 ### Compute the unexec source name from the object name.
9545 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9547 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9548 # Assume not, until told otherwise.
9551 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9552 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9553 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9564 #define malloc_get_state innocuous_malloc_get_state
9566 /* System header to define __stub macros and hopefully few prototypes,
9567 which can conflict with char malloc_get_state (); below.
9568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569 <limits.h> exists even on freestanding compilers. */
9572 # include <limits.h>
9574 # include <assert.h>
9577 #undef malloc_get_state
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9585 char malloc_get_state ();
9586 /* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9596 return malloc_get_state ();
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9605 *) ac_try_echo
=$ac_try;;
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9610 grep -v '^ *+' conftest.er1
>conftest.err
9612 cat conftest.err
>&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest
$ac_exeext &&
9618 $as_test_x conftest
$ac_exeext; then
9619 ac_cv_func_malloc_get_state
=yes
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.
$ac_ext >&5
9624 ac_cv_func_malloc_get_state
=no
9627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9628 conftest
$ac_exeext conftest.
$ac_ext
9630 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9631 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9632 if test $ac_cv_func_malloc_get_state = yes; then
9638 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9639 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9640 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 cat >conftest.
$ac_ext <<_ACEOF
9646 cat confdefs.h
>>conftest.
$ac_ext
9647 cat >>conftest.
$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9651 #define malloc_set_state innocuous_malloc_set_state
9653 /* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char malloc_set_state (); below.
9655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9656 <limits.h> exists even on freestanding compilers. */
9659 # include <limits.h>
9661 # include <assert.h>
9664 #undef malloc_set_state
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9672 char malloc_set_state ();
9673 /* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9683 return malloc_set_state ();
9688 rm -f conftest.
$ac_objext conftest
$ac_exeext
9689 if { (ac_try
="$ac_link"
9691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9697 grep -v '^ *+' conftest.er1 >conftest.err
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } && {
9702 test -z "$ac_c_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest$ac_exeext &&
9705 $as_test_x conftest$ac_exeext; then
9706 ac_cv_func_malloc_set_state=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_func_malloc_set_state=no
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715 conftest$ac_exeext conftest.$ac_ext
9717 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9718 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9719 if test $ac_cv_func_malloc_set_state = yes; then
9725 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9726 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9727 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 cat >conftest.$ac_ext <<_ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 extern void (* __after_morecore_hook)();
9740 __after_morecore_hook = 0
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9749 *) ac_try_echo
=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1
>conftest.err
9756 cat conftest.err
>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest
$ac_exeext &&
9762 $as_test_x conftest
$ac_exeext; then
9763 emacs_cv_var___after_morecore_hook
=yes
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.
$ac_ext >&5
9768 emacs_cv_var___after_morecore_hook
=no
9771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9772 conftest
$ac_exeext conftest.
$ac_ext
9774 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9775 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9776 if test $emacs_cv_var___after_morecore_hook = no
; then
9779 if test "${system_malloc}" = "yes"; then
9782 (The GNU allocators don't work with this system configuration.)"
9784 if test "$doug_lea_malloc" = "yes" ; then
9785 if test "$GNU_MALLOC" = yes ; then
9787 (Using Doug Lea's new malloc from the GNU C Library.)"
9790 cat >>confdefs.h
<<\_ACEOF
9791 #define DOUG_LEA_MALLOC 1
9796 if test x
"${REL_ALLOC}" = x
; then
9797 REL_ALLOC
=${GNU_MALLOC}
9803 for ac_header
in stdlib.h unistd.h
9805 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9809 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_res
=`eval echo '${'$as_ac_Header'}'`
9813 { echo "$as_me:$LINENO: result: $ac_res" >&5
9814 echo "${ECHO_T}$ac_res" >&6; }
9816 # Is the header compilable?
9817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9819 cat >conftest.
$ac_ext <<_ACEOF
9822 cat confdefs.h
>>conftest.
$ac_ext
9823 cat >>conftest.
$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 $ac_includes_default
9826 #include <$ac_header>
9828 rm -f conftest.
$ac_objext
9829 if { (ac_try
="$ac_compile"
9831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9837 grep -v '^ *+' conftest.er1 >conftest.err
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9845 ac_header_compiler=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_header_compiler=no
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9855 echo "${ECHO_T}$ac_header_compiler" >&6; }
9857 # Is the header present?
9858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <$ac_header>
9868 if { (ac_try="$ac_cpp conftest.$ac_ext"
9870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9871 *) ac_try_echo
=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1
>conftest.err
9878 cat conftest.err
>&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev
/null
&& {
9881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9884 ac_header_preproc
=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.
$ac_ext >&5
9889 ac_header_preproc
=no
9892 rm -f conftest.err conftest.
$ac_ext
9893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 echo "${ECHO_T}$ac_header_preproc" >&6; }
9896 # So? What about this header?
9897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9903 ac_header_preproc
=yes
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9923 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 eval "$as_ac_Header=\$ac_header_preproc"
9928 ac_res
=`eval echo '${'$as_ac_Header'}'`
9929 { echo "$as_me:$LINENO: result: $ac_res" >&5
9930 echo "${ECHO_T}$ac_res" >&6; }
9933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 cat >>confdefs.h
<<_ACEOF
9935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943 for ac_func
in getpagesize
9945 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9948 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 cat >conftest.
$ac_ext <<_ACEOF
9954 cat confdefs.h
>>conftest.
$ac_ext
9955 cat >>conftest.
$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9959 #define $ac_func innocuous_$ac_func
9961 /* System header to define __stub macros and hopefully few prototypes,
9962 which can conflict with char $ac_func (); below.
9963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9964 <limits.h> exists even on freestanding compilers. */
9967 # include <limits.h>
9969 # include <assert.h>
9974 /* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9981 /* The GNU C library defines this for functions which it implements
9982 to always fail with ENOSYS. Some functions are actually named
9983 something starting with __ and the normal name is an alias. */
9984 #if defined __stub_$ac_func || defined __stub___$ac_func
9996 rm -f conftest.
$ac_objext conftest
$ac_exeext
9997 if { (ac_try
="$ac_link"
9999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext &&
10013 $as_test_x conftest$ac_exeext; then
10014 eval "$as_ac_var=yes"
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 eval "$as_ac_var=no"
10022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023 conftest$ac_exeext conftest.$ac_ext
10025 ac_res=`eval echo '${'$as_ac_var'}'`
10026 { echo "$as_me:$LINENO: result: $ac_res" >&5
10027 echo "${ECHO_T}$ac_res" >&6; }
10028 if test `eval echo '${'$as_ac_var'}'` = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10036 { echo "$as_me:$LINENO: checking for working mmap" >&5
10037 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10038 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 if test "$cross_compiling" = yes; then
10042 ac_cv_func_mmap_fixed_mapped=no
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 /* malloc might have been renamed as rpl_malloc. */
10054 /* Thanks to Mike Haertel and Jim Avera for this test.
10055 Here is a matrix of mmap possibilities:
10056 mmap private not fixed
10057 mmap private fixed at somewhere currently unmapped
10058 mmap private fixed at somewhere already mapped
10059 mmap shared not fixed
10060 mmap shared fixed at somewhere currently unmapped
10061 mmap shared fixed at somewhere already mapped
10062 For private mappings, we should verify that changes cannot be read()
10063 back from the file, nor mmap's back from the file at a different
10064 address. (There have been systems where private was not correctly
10065 implemented like the infamous i386 svr4.0, and systems where the
10066 VM page cache was not coherent with the file system buffer cache
10067 like early versions of FreeBSD and possibly contemporary NetBSD.)
10068 For shared mappings, we should conversely verify that changes get
10069 propagated back to all the places they're supposed to be.
10071 Grep wants private fixed already mapped.
10072 The main things grep needs to know about mmap are:
10073 * does it exist and is it safe to write into the mmap'd area
10074 * how to use it (BSD variants) */
10077 #include <sys/mman.h>
10079 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10083 /* This mess was copied from the GNU getpagesize.h. */
10084 #ifndef HAVE_GETPAGESIZE
10085 /* Assume that all systems that can run configure have sys/param.h. */
10086 # ifndef HAVE_SYS_PARAM_H
10087 # define HAVE_SYS_PARAM_H 1
10090 # ifdef _SC_PAGESIZE
10091 # define getpagesize() sysconf(_SC_PAGESIZE)
10092 # else /* no _SC_PAGESIZE */
10093 # ifdef HAVE_SYS_PARAM_H
10094 # include <sys/param.h>
10095 # ifdef EXEC_PAGESIZE
10096 # define getpagesize() EXEC_PAGESIZE
10097 # else /* no EXEC_PAGESIZE */
10099 # define getpagesize() NBPG * CLSIZE
10102 # endif /* no CLSIZE */
10103 # else /* no NBPG */
10105 # define getpagesize() NBPC
10106 # else /* no NBPC */
10108 # define getpagesize() PAGESIZE
10109 # endif /* PAGESIZE */
10110 # endif /* no NBPC */
10111 # endif /* no NBPG */
10112 # endif /* no EXEC_PAGESIZE */
10113 # else /* no HAVE_SYS_PARAM_H */
10114 # define getpagesize() 8192 /* punt totally */
10115 # endif /* no HAVE_SYS_PARAM_H */
10116 # endif /* no _SC_PAGESIZE */
10118 #endif /* no HAVE_GETPAGESIZE */
10123 char *data, *data2, *data3;
10127 pagesize = getpagesize ();
10129 /* First, make a file with some known garbage in it. */
10130 data = (char *) malloc (pagesize);
10133 for (i = 0; i < pagesize; ++i)
10134 *(data + i) = rand ();
10136 fd = creat ("conftest.mmap", 0600);
10139 if (write (fd, data, pagesize) != pagesize)
10143 /* Next, try to mmap the file at a fixed address which already has
10144 something else allocated at it. If we can, also make sure that
10145 we see the same garbage. */
10146 fd = open ("conftest.mmap", O_RDWR);
10149 data2 = (char *) malloc (2 * pagesize);
10152 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10153 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10154 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10156 for (i = 0; i < pagesize; ++i)
10157 if (*(data + i) != *(data2 + i))
10160 /* Finally, make sure that changes to the mapped area do not
10161 percolate back to the file as seen by read(). (This is a bug on
10162 some variants of i386 svr4.0.) */
10163 for (i = 0; i < pagesize; ++i)
10164 *(data2 + i) = *(data2 + i) + 1;
10165 data3 = (char *) malloc (pagesize);
10168 if (read (fd, data3, pagesize) != pagesize)
10170 for (i = 0; i < pagesize; ++i)
10171 if (*(data + i) != *(data3 + i))
10177 rm -f conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10181 *) ac_try_echo
=$ac_try;;
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10188 { (case "(($ac_try" in
10189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_func_mmap_fixed_mapped=yes
10199 echo "$as_me: program exited with status $ac_status" >&5
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10203 ( exit $ac_status )
10204 ac_cv_func_mmap_fixed_mapped=no
10206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10211 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10212 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10213 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_MMAP 1
10220 rm -f conftest.mmap
10222 if test $use_mmap_for_buffers = yes; then
10226 LIBS="$libsrc_libs $LIBS"
10229 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10230 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-ldnet $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10253 return dnet_ntoa ();
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10262 *) ac_try_echo
=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10267 grep -v '^ *+' conftest.er1
>conftest.err
10269 cat conftest.err
>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest
$ac_exeext &&
10275 $as_test_x conftest
$ac_exeext; then
10276 ac_cv_lib_dnet_dnet_ntoa
=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.
$ac_ext >&5
10281 ac_cv_lib_dnet_dnet_ntoa
=no
10284 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10285 conftest
$ac_exeext conftest.
$ac_ext
10286 LIBS
=$ac_check_lib_save_LIBS
10288 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10289 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10290 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10291 cat >>confdefs.h
<<_ACEOF
10292 #define HAVE_LIBDNET 1
10295 LIBS
="-ldnet $LIBS"
10300 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10301 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10302 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 ac_check_lib_save_LIBS
=$LIBS
10306 LIBS
="-lXbsd $LIBS"
10307 cat >conftest.
$ac_ext <<_ACEOF
10310 cat confdefs.h
>>conftest.
$ac_ext
10311 cat >>conftest.
$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10323 rm -f conftest.
$ac_objext conftest
$ac_exeext
10324 if { (ac_try
="$ac_link"
10325 case "(($ac_try" in
10326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_link") 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext &&
10340 $as_test_x conftest$ac_exeext; then
10341 ac_cv_lib_Xbsd_main=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_cv_lib_Xbsd_main=no
10349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS=$ac_check_lib_save_LIBS
10353 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10354 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10355 if test $ac_cv_lib_Xbsd_main = yes; then
10356 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10361 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10362 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10363 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-lpthreads $LIBS"
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10385 return cma_open ();
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10394 *) ac_try_echo
=$ac_try;;
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_link") 2>conftest.er1
10399 grep -v '^ *+' conftest.er1
>conftest.err
10401 cat conftest.err
>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest
$ac_exeext &&
10407 $as_test_x conftest
$ac_exeext; then
10408 ac_cv_lib_pthreads_cma_open
=yes
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.
$ac_ext >&5
10413 ac_cv_lib_pthreads_cma_open
=no
10416 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10417 conftest
$ac_exeext conftest.
$ac_ext
10418 LIBS
=$ac_check_lib_save_LIBS
10420 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10421 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10422 if test $ac_cv_lib_pthreads_cma_open = yes; then
10423 cat >>confdefs.h
<<_ACEOF
10424 #define HAVE_LIBPTHREADS 1
10427 LIBS
="-lpthreads $LIBS"
10432 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10433 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10434 if test -d /usr
/X386
/include
; then
10436 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10440 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10441 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10446 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10447 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10448 if test "${gdb_cv_bigtoc+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10454 *) gdb_cv_bigtoc
=-bbigtoc ;;
10457 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10458 cat >conftest.
$ac_ext <<_ACEOF
10461 cat confdefs.h
>>conftest.
$ac_ext
10462 cat >>conftest.
$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10473 rm -f conftest.
$ac_objext conftest
$ac_exeext
10474 if { (ac_try
="$ac_link"
10475 case "(($ac_try" in
10476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10503 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10504 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10508 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10509 # used for the tests that follow. We set them back to REAL_CFLAGS and
10510 # REAL_CPPFLAGS later on.
10512 REAL_CPPFLAGS="$CPPFLAGS"
10514 if test "${HAVE_X11}" = "yes"; then
10515 DEFS="$C_SWITCH_X_SITE $DEFS"
10516 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10518 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10519 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10521 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10522 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10523 # but it's more convenient here to set LD_RUN_PATH
10524 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10525 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10526 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10530 if test "${opsys}" = "gnu-linux"; then
10531 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10532 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10533 cat >conftest.$ac_ext <<_ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10543 XOpenDisplay ("foo");
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10552 *) ac_try_echo
=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10557 grep -v '^ *+' conftest.er1
>conftest.err
10559 cat conftest.err
>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest
$ac_exeext &&
10565 $as_test_x conftest
$ac_exeext; then
10566 xlinux_first_failure
=no
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.
$ac_ext >&5
10571 xlinux_first_failure
=yes
10574 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10575 conftest
$ac_exeext conftest.
$ac_ext
10576 if test "${xlinux_first_failure}" = "yes"; then
10577 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10578 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10579 OLD_CPPFLAGS
="$CPPFLAGS"
10581 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10582 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10583 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10584 LIBS
="$LIBS -b i486-linuxaout"
10585 cat >conftest.
$ac_ext <<_ACEOF
10588 cat confdefs.h
>>conftest.
$ac_ext
10589 cat >>conftest.
$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10595 XOpenDisplay ("foo");
10600 rm -f conftest.
$ac_objext conftest
$ac_exeext
10601 if { (ac_try
="$ac_link"
10602 case "(($ac_try" in
10603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext &&
10617 $as_test_x conftest$ac_exeext; then
10618 xlinux_second_failure=no
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 xlinux_second_failure=yes
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 if test "${xlinux_second_failure}" = "yes"; then
10629 # If we get the same failure with -b, there is no use adding -b.
10630 # So take it out. This plays safe.
10631 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10632 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10633 CPPFLAGS="$OLD_CPPFLAGS"
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10638 { echo "$as_me:$LINENO: result: yes" >&5
10639 echo "${ECHO_T}yes" >&6; }
10642 { echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6; }
10647 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10648 # header files included from there.
10649 { echo "$as_me:$LINENO: checking for Xkb" >&5
10650 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10651 cat >conftest.$ac_ext <<_ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 #include <X11/Xlib.h>
10658 #include <X11/XKBlib.h>
10662 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10671 *) ac_try_echo
=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1
>conftest.err
10678 cat conftest.err
>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest
$ac_exeext &&
10684 $as_test_x conftest
$ac_exeext; then
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.
$ac_ext >&5
10693 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10694 conftest
$ac_exeext conftest.
$ac_ext
10695 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10696 echo "${ECHO_T}$emacs_xkb" >&6; }
10697 if test $emacs_xkb = yes; then
10699 cat >>confdefs.h
<<\_ACEOF
10700 #define HAVE_XKBGETKEYBOARD 1
10709 for ac_func
in XrmSetDatabase XScreenResourceString \
10710 XScreenNumberOfScreen XSetWMProtocols
10712 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10715 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 cat >conftest.
$ac_ext <<_ACEOF
10721 cat confdefs.h
>>conftest.
$ac_ext
10722 cat >>conftest.
$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10726 #define $ac_func innocuous_$ac_func
10728 /* System header to define __stub macros and hopefully few prototypes,
10729 which can conflict with char $ac_func (); below.
10730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10731 <limits.h> exists even on freestanding compilers. */
10734 # include <limits.h>
10736 # include <assert.h>
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10748 /* The GNU C library defines this for functions which it implements
10749 to always fail with ENOSYS. Some functions are actually named
10750 something starting with __ and the normal name is an alias. */
10751 #if defined __stub_$ac_func || defined __stub___$ac_func
10758 return $ac_func ();
10763 rm -f conftest.
$ac_objext conftest
$ac_exeext
10764 if { (ac_try
="$ac_link"
10765 case "(($ac_try" in
10766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_link") 2>conftest.er1
10772 grep -v '^ *+' conftest.er1 >conftest.err
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest$ac_exeext &&
10780 $as_test_x conftest$ac_exeext; then
10781 eval "$as_ac_var=yes"
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10786 eval "$as_ac_var=no"
10789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10790 conftest$ac_exeext conftest.$ac_ext
10792 ac_res=`eval echo '${'$as_ac_var'}'`
10793 { echo "$as_me:$LINENO: result: $ac_res" >&5
10794 echo "${ECHO_T}$ac_res" >&6; }
10795 if test `eval echo '${'$as_ac_var'}'` = yes; then
10796 cat >>confdefs.h <<_ACEOF
10797 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10805 if test "${window_system}" = "x11"; then
10806 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10807 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10808 if test "${emacs_cv_x11_version_6+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <X11/Xlib.h>
10821 #if XlibSpecificationRelease < 6
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (ac_try="$ac_link"
10831 case "(($ac_try" in
10832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10833 *) ac_try_echo
=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_link") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1
>conftest.err
10840 cat conftest.err
>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest
$ac_exeext &&
10846 $as_test_x conftest
$ac_exeext; then
10847 emacs_cv_x11_version_6
=yes
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.
$ac_ext >&5
10852 emacs_cv_x11_version_6
=no
10855 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10856 conftest
$ac_exeext conftest.
$ac_ext
10859 if test $emacs_cv_x11_version_6 = yes; then
10860 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10861 echo "${ECHO_T}6 or newer" >&6; }
10863 cat >>confdefs.h
<<\_ACEOF
10864 #define HAVE_X11R6 1
10868 { echo "$as_me:$LINENO: result: before 6" >&5
10869 echo "${ECHO_T}before 6" >&6; }
10873 if test "${window_system}" = "x11"; then
10874 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10875 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10876 if test "${emacs_cv_x11_version_5+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 cat >conftest.
$ac_ext <<_ACEOF
10882 cat confdefs.h
>>conftest.
$ac_ext
10883 cat >>conftest.
$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <X11/Xlib.h>
10889 #if XlibSpecificationRelease < 5
10897 rm -f conftest.
$ac_objext conftest
$ac_exeext
10898 if { (ac_try
="$ac_link"
10899 case "(($ac_try" in
10900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_link") 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } && {
10911 test -z "$ac_c_werror_flag" ||
10912 test ! -s conftest.err
10913 } && test -s conftest$ac_exeext &&
10914 $as_test_x conftest$ac_exeext; then
10915 emacs_cv_x11_version_5=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 emacs_cv_x11_version_5=no
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924 conftest$ac_exeext conftest.$ac_ext
10927 if test $emacs_cv_x11_version_5 = yes; then
10928 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10929 echo "${ECHO_T}5 or newer" >&6; }
10932 cat >>confdefs.h <<\_ACEOF
10933 #define HAVE_X11R5 1
10938 { echo "$as_me:$LINENO: result: before 5" >&5
10939 echo "${ECHO_T}before 5" >&6; }
10944 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10947 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10948 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10949 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10950 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10951 { (exit 1); exit 1; }; };
10955 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10957 if test "X${with_pkg_config_prog}" != X; then
10958 PKG_CONFIG="${with_pkg_config_prog}"
10963 if test -z "$PKG_CONFIG"; then
10964 # Extract the first word of "pkg-config", so it can be a program name with args.
10965 set dummy pkg-config; ac_word=$2
10966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10968 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 case $PKG_CONFIG in
10973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10991 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10996 if test -n "$PKG_CONFIG"; then
10997 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10998 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11000 { echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6; }
11007 if test "$PKG_CONFIG" = "no" ; then
11008 { { echo "$as_me:$LINENO: error:
11009 *** 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
11010 echo "$as_me: error:
11011 *** 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;}
11012 { (exit 1); exit 1; }; }
11014 PKG_CONFIG_MIN_VERSION=0.9.0
11015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11016 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11017 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11019 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11020 { echo "$as_me:$LINENO: result: yes" >&5
11021 echo "${ECHO_T}yes" >&6; }
11024 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11025 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11026 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11027 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11028 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11030 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11031 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11032 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11033 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11034 echo "${ECHO_T}$GTK_LIBS" >&6; }
11036 { echo "$as_me:$LINENO: result: no" >&5
11037 echo "${ECHO_T}no" >&6; }
11040 ## If we have a custom action on failure, don't print errors, but
11041 ## do set a variable so people can do so.
11042 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11043 echo $GTK_PKG_ERRORS
11049 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11050 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11054 if test $succeeded = yes; then
11057 { { 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
11058 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;}
11059 { (exit 1); exit 1; }; }
11064 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11065 CFLAGS="$CFLAGS $GTK_CFLAGS"
11066 LIBS="$GTK_LIBS $LIBS"
11069 for ac_func in gtk_main
11071 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11085 #define $ac_func innocuous_$ac_func
11087 /* System header to define __stub macros and hopefully few prototypes,
11088 which can conflict with char $ac_func (); below.
11089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11090 <limits.h> exists even on freestanding compilers. */
11093 # include <limits.h>
11095 # include <assert.h>
11100 /* Override any GCC internal prototype to avoid an error.
11101 Use char because int might match the return type of a GCC
11102 builtin and then its argument prototype would still apply. */
11107 /* The GNU C library defines this for functions which it implements
11108 to always fail with ENOSYS. Some functions are actually named
11109 something starting with __ and the normal name is an alias. */
11110 #if defined __stub_$ac_func || defined __stub___$ac_func
11117 return $ac_func ();
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (ac_try="$ac_link"
11124 case "(($ac_try" in
11125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11126 *) ac_try_echo
=$ac_try;;
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_link") 2>conftest.er1
11131 grep -v '^ *+' conftest.er1
>conftest.err
11133 cat conftest.err
>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } && {
11136 test -z "$ac_c_werror_flag" ||
11137 test ! -s conftest.err
11138 } && test -s conftest
$ac_exeext &&
11139 $as_test_x conftest
$ac_exeext; then
11140 eval "$as_ac_var=yes"
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.
$ac_ext >&5
11145 eval "$as_ac_var=no"
11148 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11149 conftest
$ac_exeext conftest.
$ac_ext
11151 ac_res
=`eval echo '${'$as_ac_var'}'`
11152 { echo "$as_me:$LINENO: result: $ac_res" >&5
11153 echo "${ECHO_T}$ac_res" >&6; }
11154 if test `eval echo '${'$as_ac_var'}'` = yes; then
11155 cat >>confdefs.h
<<_ACEOF
11156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11162 if test "${GTK_COMPILES}" != "yes"; then
11163 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11164 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11165 { (exit 1); exit 1; }; };
11170 cat >>confdefs.h
<<\_ACEOF
11176 if test "$with_toolkit_scroll_bars" != no
; then
11177 with_toolkit_scroll_bars
=yes
11180 HAVE_GTK_MULTIDISPLAY
=no
11182 for ac_func
in gdk_display_open
11184 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11187 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 cat >conftest.
$ac_ext <<_ACEOF
11193 cat confdefs.h
>>conftest.
$ac_ext
11194 cat >>conftest.
$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11198 #define $ac_func innocuous_$ac_func
11200 /* System header to define __stub macros and hopefully few prototypes,
11201 which can conflict with char $ac_func (); below.
11202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11203 <limits.h> exists even on freestanding compilers. */
11206 # include <limits.h>
11208 # include <assert.h>
11213 /* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11220 /* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223 #if defined __stub_$ac_func || defined __stub___$ac_func
11230 return $ac_func ();
11235 rm -f conftest.
$ac_objext conftest
$ac_exeext
11236 if { (ac_try
="$ac_link"
11237 case "(($ac_try" in
11238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_link") 2>conftest.er1
11244 grep -v '^ *+' conftest.er1 >conftest.err
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest$ac_exeext &&
11252 $as_test_x conftest$ac_exeext; then
11253 eval "$as_ac_var=yes"
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 eval "$as_ac_var=no"
11261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11262 conftest$ac_exeext conftest.$ac_ext
11264 ac_res=`eval echo '${'$as_ac_var'}'`
11265 { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11267 if test `eval echo '${'$as_ac_var'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11271 HAVE_GTK_MULTIDISPLAY=yes
11275 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11277 cat >>confdefs.h <<\_ACEOF
11278 #define HAVE_GTK_MULTIDISPLAY 1
11282 HAVE_GTK_FILE_SELECTION=no
11284 for ac_func in gtk_file_selection_new
11286 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 cat >conftest.$ac_ext <<_ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11300 #define $ac_func innocuous_$ac_func
11302 /* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below.
11304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305 <limits.h> exists even on freestanding compilers. */
11308 # include <limits.h>
11310 # include <assert.h>
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11322 /* The GNU C library defines this for functions which it implements
11323 to always fail with ENOSYS. Some functions are actually named
11324 something starting with __ and the normal name is an alias. */
11325 #if defined __stub_$ac_func || defined __stub___$ac_func
11332 return $ac_func ();
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (ac_try="$ac_link"
11339 case "(($ac_try" in
11340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11341 *) ac_try_echo
=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_link") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1
>conftest.err
11348 cat conftest.err
>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest
$ac_exeext &&
11354 $as_test_x conftest
$ac_exeext; then
11355 eval "$as_ac_var=yes"
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.
$ac_ext >&5
11360 eval "$as_ac_var=no"
11363 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11364 conftest
$ac_exeext conftest.
$ac_ext
11366 ac_res
=`eval echo '${'$as_ac_var'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368 echo "${ECHO_T}$ac_res" >&6; }
11369 if test `eval echo '${'$as_ac_var'}'` = yes; then
11370 cat >>confdefs.h
<<_ACEOF
11371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11373 HAVE_GTK_FILE_SELECTION
=yes
11378 HAVE_GTK_FILE_CHOOSER
=no
11380 for ac_func
in gtk_file_chooser_dialog_new
11382 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11385 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 cat >conftest.
$ac_ext <<_ACEOF
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11396 #define $ac_func innocuous_$ac_func
11398 /* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func (); below.
11400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11401 <limits.h> exists even on freestanding compilers. */
11404 # include <limits.h>
11406 # include <assert.h>
11411 /* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
11418 /* The GNU C library defines this for functions which it implements
11419 to always fail with ENOSYS. Some functions are actually named
11420 something starting with __ and the normal name is an alias. */
11421 #if defined __stub_$ac_func || defined __stub___$ac_func
11428 return $ac_func ();
11433 rm -f conftest.
$ac_objext conftest
$ac_exeext
11434 if { (ac_try
="$ac_link"
11435 case "(($ac_try" in
11436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_link") 2>conftest.er1
11442 grep -v '^ *+' conftest.er1 >conftest.err
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest$ac_exeext &&
11450 $as_test_x conftest$ac_exeext; then
11451 eval "$as_ac_var=yes"
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 eval "$as_ac_var=no"
11459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11460 conftest$ac_exeext conftest.$ac_ext
11462 ac_res=`eval echo '${'$as_ac_var'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11465 if test `eval echo '${'$as_ac_var'}'` = yes; then
11466 cat >>confdefs.h <<_ACEOF
11467 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11469 HAVE_GTK_FILE_CHOOSER=yes
11474 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11475 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11477 cat >>confdefs.h <<\_ACEOF
11478 #define HAVE_GTK_FILE_BOTH 1
11483 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11484 HAVE_GTK_AND_PTHREAD=no
11486 for ac_header in pthread.h
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11499 # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11515 *) ac_try_echo
=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11520 grep -v '^ *+' conftest.er1
>conftest.err
11522 cat conftest.err
>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest.
$ac_objext; then
11528 ac_header_compiler
=yes
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.
$ac_ext >&5
11533 ac_header_compiler
=no
11536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11538 echo "${ECHO_T}$ac_header_compiler" >&6; }
11540 # Is the header present?
11541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11543 cat >conftest.
$ac_ext <<_ACEOF
11546 cat confdefs.h
>>conftest.
$ac_ext
11547 cat >>conftest.
$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 #include <$ac_header>
11551 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11552 case "(($ac_try" in
11553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } >/dev/null && {
11564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11567 ac_header_preproc=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_header_preproc=no
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11579 # So? What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 eval "$as_ac_Header=\$ac_header_preproc"
11611 ac_res=`eval echo '${'$as_ac_Header'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11625 if test "$ac_cv_header_pthread_h"; then
11626 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11627 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11628 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lpthread $LIBS"
11633 cat >conftest.$ac_ext <<_ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11646 char pthread_self ();
11650 return pthread_self ();
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11659 *) ac_try_echo
=$ac_try;;
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11664 grep -v '^ *+' conftest.er1
>conftest.err
11666 cat conftest.err
>&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest
$ac_exeext &&
11672 $as_test_x conftest
$ac_exeext; then
11673 ac_cv_lib_pthread_pthread_self
=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.
$ac_ext >&5
11678 ac_cv_lib_pthread_pthread_self
=no
11681 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11682 conftest
$ac_exeext conftest.
$ac_ext
11683 LIBS
=$ac_check_lib_save_LIBS
11685 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11686 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11687 if test $ac_cv_lib_pthread_pthread_self = yes; then
11688 HAVE_GTK_AND_PTHREAD
=yes
11692 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11693 GTK_LIBS
="$GTK_LIBS -lpthread"
11695 cat >>confdefs.h
<<\_ACEOF
11696 #define HAVE_GTK_AND_PTHREAD 1
11703 ### Link with -lXft if available to work around a bug.
11705 if test "${HAVE_GTK}" = "yes"; then
11706 if test "X${with_pkg_config_prog}" != X
; then
11707 PKG_CONFIG
="${with_pkg_config_prog}"
11713 if test -z "$PKG_CONFIG"; then
11714 # Extract the first word of "pkg-config", so it can be a program name with args.
11715 set dummy pkg-config
; ac_word
=$2
11716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11718 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 case $PKG_CONFIG in
11723 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11727 for as_dir
in $PATH
11730 test -z "$as_dir" && as_dir
=.
11731 for ac_exec_ext
in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11745 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11746 if test -n "$PKG_CONFIG"; then
11747 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11748 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11750 { echo "$as_me:$LINENO: result: no" >&5
11751 echo "${ECHO_T}no" >&6; }
11757 if test "$PKG_CONFIG" = "no" ; then
11760 PKG_CONFIG_MIN_VERSION
=0.9.0
11761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11762 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11763 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11765 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11766 { echo "$as_me:$LINENO: result: yes" >&5
11767 echo "${ECHO_T}yes" >&6; }
11770 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11771 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11772 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11773 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11774 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11776 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11777 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11778 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11779 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11780 echo "${ECHO_T}$XFT_LIBS" >&6; }
11782 { echo "$as_me:$LINENO: result: no" >&5
11783 echo "${ECHO_T}no" >&6; }
11786 ## If we have a custom action on failure, don't print errors, but
11787 ## do set a variable so people can do so.
11788 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11800 if test $succeeded = yes; then
11806 if test "$HAVE_XFT" != no
; then
11807 OLD_CFLAGS
="$CPPFLAGS"
11808 OLD_CPPFLAGS
="$CFLAGS"
11810 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11811 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11812 LIBS
="$XFT_LIBS $LIBS"
11813 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11814 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11815 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11816 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11820 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11822 # Is the header compilable?
11823 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11824 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11825 cat >conftest.
$ac_ext <<_ACEOF
11828 cat confdefs.h
>>conftest.
$ac_ext
11829 cat >>conftest.
$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 $ac_includes_default
11832 #include <X11/Xft/Xft.h>
11834 rm -f conftest.
$ac_objext
11835 if { (ac_try
="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11851 ac_header_compiler=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_header_compiler=no
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11861 echo "${ECHO_T}$ac_header_compiler" >&6; }
11863 # Is the header present?
11864 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11865 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11866 cat >conftest.$ac_ext <<_ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <X11/Xft/Xft.h>
11874 if { (ac_try="$ac_cpp conftest.$ac_ext"
11875 case "(($ac_try" in
11876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11877 *) ac_try_echo
=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11882 grep -v '^ *+' conftest.er1
>conftest.err
11884 cat conftest.err
>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } >/dev
/null
&& {
11887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11888 test ! -s conftest.err
11890 ac_header_preproc
=yes
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.
$ac_ext >&5
11895 ac_header_preproc
=no
11898 rm -f conftest.err conftest.
$ac_ext
11899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11900 echo "${ECHO_T}$ac_header_preproc" >&6; }
11902 # So? What about this header?
11903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11905 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11906 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11909 ac_header_preproc
=yes
11912 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11913 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11915 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11917 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11919 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11921 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11923 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11927 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11928 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11929 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11934 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11935 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11938 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11939 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11940 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11941 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 ac_check_lib_save_LIBS
=$LIBS
11945 LIBS
="-lXft $XFT_LIBS $LIBS"
11946 cat >conftest.
$ac_ext <<_ACEOF
11949 cat confdefs.h
>>conftest.
$ac_ext
11950 cat >>conftest.
$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11959 char XftFontOpen ();
11963 return XftFontOpen ();
11968 rm -f conftest.
$ac_objext conftest
$ac_exeext
11969 if { (ac_try
="$ac_link"
11970 case "(($ac_try" in
11971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_link") 2>conftest.er1
11977 grep -v '^ *+' conftest.er1 >conftest.err
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest$ac_exeext &&
11985 $as_test_x conftest$ac_exeext; then
11986 ac_cv_lib_Xft_XftFontOpen=yes
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11991 ac_cv_lib_Xft_XftFontOpen=no
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995 conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11998 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11999 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12000 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12008 if test "${HAVE_XFT}" = "yes"; then
12010 cat >>confdefs.h <<\_ACEOF
12015 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12017 CFLAGS="$OLD_CPPFLAGS"
12018 CFLAGS="$OLD_CFLAGS"
12024 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12025 if test x"${HAVE_X11R5}" = xyes; then
12026 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12027 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12028 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 #include <X11/Intrinsic.h>
12039 #include <X11/Xaw/Simple.h>
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12052 *) ac_try_echo
=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1
>conftest.err
12059 cat conftest.err
>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest
$ac_exeext &&
12065 $as_test_x conftest
$ac_exeext; then
12066 emacs_cv_x11_version_5_with_xaw
=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.
$ac_ext >&5
12071 emacs_cv_x11_version_5_with_xaw
=no
12074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12075 conftest
$ac_exeext conftest.
$ac_ext
12078 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12079 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12080 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12081 USE_X_TOOLKIT
=LUCID
12083 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12084 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12085 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12086 { (exit 1); exit 1; }; }
12088 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12089 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12098 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12100 if test "${USE_X_TOOLKIT}" != "none"; then
12101 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12102 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12103 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 cat >conftest.
$ac_ext <<_ACEOF
12109 cat confdefs.h
>>conftest.
$ac_ext
12110 cat >>conftest.
$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <X11/Intrinsic.h>
12116 #if XtSpecificationRelease < 6
12124 rm -f conftest.
$ac_objext conftest
$ac_exeext
12125 if { (ac_try
="$ac_link"
12126 case "(($ac_try" in
12127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && {
12138 test -z "$ac_c_werror_flag" ||
12139 test ! -s conftest.err
12140 } && test -s conftest$ac_exeext &&
12141 $as_test_x conftest$ac_exeext; then
12142 emacs_cv_x11_toolkit_version_6=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 emacs_cv_x11_toolkit_version_6=no
12150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12154 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12155 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12156 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12157 echo "${ECHO_T}6 or newer" >&6; }
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_X11XTR6 1
12164 { echo "$as_me:$LINENO: result: before 6" >&5
12165 echo "${ECHO_T}before 6" >&6; }
12169 if test x$HAVE_X11XTR6 = xyes; then
12170 LIBS="-lXt -lSM -lICE $LIBS"
12175 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12176 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12177 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 ac_check_lib_save_LIBS=$LIBS
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12195 char XmuConvertStandardSelection ();
12199 return XmuConvertStandardSelection ();
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12208 *) ac_try_echo
=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1
>conftest.err
12215 cat conftest.err
>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest
$ac_exeext &&
12221 $as_test_x conftest
$ac_exeext; then
12222 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.
$ac_ext >&5
12227 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12230 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12231 conftest
$ac_exeext conftest.
$ac_ext
12232 LIBS
=$ac_check_lib_save_LIBS
12234 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12235 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12236 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12237 cat >>confdefs.h
<<_ACEOF
12238 #define HAVE_LIBXMU 1
12245 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12248 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12249 if test "${HAVE_X11}" = "yes"; then
12250 if test "${USE_X_TOOLKIT}" != "none"; then
12252 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12253 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 ac_check_lib_save_LIBS
=$LIBS
12258 LIBS
="-lXext $LIBS"
12259 cat >conftest.
$ac_ext <<_ACEOF
12262 cat confdefs.h
>>conftest.
$ac_ext
12263 cat >>conftest.
$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12272 char XShapeQueryExtension ();
12276 return XShapeQueryExtension ();
12281 rm -f conftest.
$ac_objext conftest
$ac_exeext
12282 if { (ac_try
="$ac_link"
12283 case "(($ac_try" in
12284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
12290 grep -v '^ *+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } && {
12295 test -z "$ac_c_werror_flag" ||
12296 test ! -s conftest.err
12297 } && test -s conftest$ac_exeext &&
12298 $as_test_x conftest$ac_exeext; then
12299 ac_cv_lib_Xext_XShapeQueryExtension=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_cv_lib_Xext_XShapeQueryExtension=no
12307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12311 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12312 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12313 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define HAVE_LIBXEXT 1
12318 LIBS="-lXext $LIBS"
12325 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12326 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12327 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12328 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12341 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12344 Motif version prior to 2.1.
12350 rm -f conftest.$ac_objext
12351 if { (ac_try="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12354 *) ac_try_echo
=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12359 grep -v '^ *+' conftest.er1
>conftest.err
12361 cat conftest.err
>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest.
$ac_objext; then
12367 emacs_cv_motif_version_2_1
=yes
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.
$ac_ext >&5
12372 emacs_cv_motif_version_2_1
=no
12375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12377 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12378 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12379 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12380 if test $emacs_cv_motif_version_2_1 = yes; then
12383 cat >>confdefs.h
<<\_ACEOF
12384 #define HAVE_MOTIF_2_1 1
12387 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12388 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12389 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 ac_check_lib_save_LIBS
=$LIBS
12394 cat >conftest.
$ac_ext <<_ACEOF
12397 cat confdefs.h
>>conftest.
$ac_ext
12398 cat >>conftest.
$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12407 char XpCreateContext ();
12411 return XpCreateContext ();
12416 rm -f conftest.
$ac_objext conftest
$ac_exeext
12417 if { (ac_try
="$ac_link"
12418 case "(($ac_try" in
12419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_link") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && {
12430 test -z "$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12432 } && test -s conftest$ac_exeext &&
12433 $as_test_x conftest$ac_exeext; then
12434 ac_cv_lib_Xp_XpCreateContext=yes
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 ac_cv_lib_Xp_XpCreateContext=no
12442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12443 conftest$ac_exeext conftest.$ac_ext
12444 LIBS=$ac_check_lib_save_LIBS
12446 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12447 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12448 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12452 if test ${HAVE_LIBXP} = yes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_LIBXP 1
12460 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12461 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12462 if test "${emacs_cv_lesstif+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 # We put this in CFLAGS temporarily to precede other -I options
12466 # that might be in CFLAGS temporarily.
12467 # We put this in CPPFLAGS where it precedes the other -I options.
12468 OLD_CPPFLAGS=$CPPFLAGS
12470 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12471 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12472 cat >conftest.$ac_ext <<_ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12491 *) ac_try_echo
=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1
>conftest.err
12498 cat conftest.err
>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.
$ac_objext; then
12504 emacs_cv_lesstif
=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.
$ac_ext >&5
12509 emacs_cv_lesstif
=no
12512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12514 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12515 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12516 if test $emacs_cv_lesstif = yes; then
12517 # Make sure this -I option remains in CPPFLAGS after it is set
12518 # back to REAL_CPPFLAGS.
12519 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12520 # have those other -I options anyway. Ultimately, having this
12521 # directory ultimately in CPPFLAGS will be enough.
12522 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12523 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12526 CPPFLAGS
=$OLD_CPPFLAGS
12531 ### Is -lXaw3d available?
12533 if test "${HAVE_X11}" = "yes"; then
12534 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12535 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12536 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12537 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 cat >conftest.
$ac_ext <<_ACEOF
12543 cat confdefs.h
>>conftest.
$ac_ext
12544 cat >>conftest.
$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 #include <X11/Xaw3d/Scrollbar.h>
12548 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12549 case "(($ac_try" in
12550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } >/dev/null && {
12561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12564 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12569 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12572 rm -f conftest.err conftest.$ac_ext
12574 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12575 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12576 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12577 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12578 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-lXaw3d $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12597 char XawScrollbarSetThumb ();
12601 return XawScrollbarSetThumb ();
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12610 *) ac_try_echo
=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1
>conftest.err
12617 cat conftest.err
>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest
$ac_exeext &&
12623 $as_test_x conftest
$ac_exeext; then
12624 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.
$ac_ext >&5
12629 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12632 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12633 conftest
$ac_exeext conftest.
$ac_ext
12634 LIBS
=$ac_check_lib_save_LIBS
12636 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12637 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12638 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12645 if test "${HAVE_XAW3D}" = "yes"; then
12647 cat >>confdefs.h
<<\_ACEOF
12648 #define HAVE_XAW3D 1
12657 USE_TOOLKIT_SCROLL_BARS
=no
12658 if test "${with_toolkit_scroll_bars}" != "no"; then
12659 if test "${USE_X_TOOLKIT}" != "none"; then
12660 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12661 cat >>confdefs.h
<<\_ACEOF
12662 #define USE_TOOLKIT_SCROLL_BARS 1
12666 USE_TOOLKIT_SCROLL_BARS
=yes
12667 elif test "${HAVE_XAW3D}" = "yes"; then
12668 cat >>confdefs.h
<<\_ACEOF
12669 #define USE_TOOLKIT_SCROLL_BARS 1
12672 USE_TOOLKIT_SCROLL_BARS
=yes
12674 elif test "${HAVE_GTK}" = "yes"; then
12675 cat >>confdefs.h
<<\_ACEOF
12676 #define USE_TOOLKIT_SCROLL_BARS 1
12679 USE_TOOLKIT_SCROLL_BARS
=yes
12680 elif test "${HAVE_CARBON}" = "yes"; then
12681 cat >>confdefs.h
<<\_ACEOF
12682 #define USE_TOOLKIT_SCROLL_BARS 1
12685 USE_TOOLKIT_SCROLL_BARS
=yes
12689 cat >conftest.
$ac_ext <<_ACEOF
12692 cat confdefs.h
>>conftest.
$ac_ext
12693 cat >>conftest.
$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 #include <X11/Xlib.h>
12697 #include <X11/Xresource.h>
12706 rm -f conftest.
$ac_objext
12707 if { (ac_try
="$ac_compile"
12708 case "(($ac_try" in
12709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_compile") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1 >conftest.err
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest.$ac_objext; then
12725 cat >>confdefs.h <<\_ACEOF
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739 if test "${with_xim}" != "no"; then
12741 cat >>confdefs.h <<\_ACEOF
12748 if test "${HAVE_XIM}" != "no"; then
12749 late_CFLAGS=$CFLAGS
12750 if test "$GCC" = yes; then
12751 CFLAGS="$CFLAGS --pedantic-errors"
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12760 #include <X11/Xlib.h>
12761 #include <X11/Xresource.h>
12770 XPointer *client_data;
12772 /* If we're not using GCC, it's probably not XFree86, and this is
12773 probably right, but we can't use something like --pedantic-errors. */
12774 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12775 char*, XIMProc, XPointer*);
12777 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12783 rm -f conftest.$ac_objext
12784 if { (ac_try="$ac_compile"
12785 case "(($ac_try" in
12786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12787 *) ac_try_echo
=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12792 grep -v '^ *+' conftest.er1
>conftest.err
12794 cat conftest.err
>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest.
$ac_objext; then
12800 emacs_cv_arg6_star
=yes
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.
$ac_ext >&5
12808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12810 if test "$emacs_cv_arg6_star" = yes; then
12811 cat >>confdefs.h
<<\_ACEOF
12812 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12816 cat >>confdefs.h
<<\_ACEOF
12817 #define XRegisterIMInstantiateCallback_arg6 XPointer
12821 CFLAGS
=$late_CFLAGS
12824 ### Use -lXpm if available, unless `--with-xpm=no'.
12826 if test "${HAVE_X11}" = "yes"; then
12827 if test "${with_xpm}" != "no"; then
12828 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12829 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12830 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12831 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12835 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12837 # Is the header compilable?
12838 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12839 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12840 cat >conftest.
$ac_ext <<_ACEOF
12843 cat confdefs.h
>>conftest.
$ac_ext
12844 cat >>conftest.
$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 $ac_includes_default
12847 #include <X11/xpm.h>
12849 rm -f conftest.
$ac_objext
12850 if { (ac_try
="$ac_compile"
12851 case "(($ac_try" in
12852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_compile") 2>conftest.er1
12858 grep -v '^ *+' conftest.er1 >conftest.err
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest.$ac_objext; then
12866 ac_header_compiler=yes
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12871 ac_header_compiler=no
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12876 echo "${ECHO_T}$ac_header_compiler" >&6; }
12878 # Is the header present?
12879 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12880 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12881 cat >conftest.$ac_ext <<_ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887 #include <X11/xpm.h>
12889 if { (ac_try="$ac_cpp conftest.$ac_ext"
12890 case "(($ac_try" in
12891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12892 *) ac_try_echo
=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12897 grep -v '^ *+' conftest.er1
>conftest.err
12899 cat conftest.err
>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } >/dev
/null
&& {
12902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12905 ac_header_preproc
=yes
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.
$ac_ext >&5
12910 ac_header_preproc
=no
12913 rm -f conftest.err conftest.
$ac_ext
12914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12915 echo "${ECHO_T}$ac_header_preproc" >&6; }
12917 # So? What about this header?
12918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12920 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12921 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12924 ac_header_preproc
=yes
12927 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12928 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12930 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12932 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12934 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12936 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12938 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12942 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12943 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12944 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12949 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12950 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12953 if test $ac_cv_header_X11_xpm_h = yes; then
12954 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12955 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12956 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 ac_check_lib_save_LIBS
=$LIBS
12960 LIBS
="-lXpm -lX11 $LIBS"
12961 cat >conftest.
$ac_ext <<_ACEOF
12964 cat confdefs.h
>>conftest.
$ac_ext
12965 cat >>conftest.
$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12974 char XpmReadFileToPixmap ();
12978 return XpmReadFileToPixmap ();
12983 rm -f conftest.
$ac_objext conftest
$ac_exeext
12984 if { (ac_try
="$ac_link"
12985 case "(($ac_try" in
12986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12992 grep -v '^ *+' conftest.er1 >conftest.err
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } && {
12997 test -z "$ac_c_werror_flag" ||
12998 test ! -s conftest.err
12999 } && test -s conftest$ac_exeext &&
13000 $as_test_x conftest$ac_exeext; then
13001 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13013 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13014 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13015 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13022 if test "${HAVE_XPM}" = "yes"; then
13023 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13024 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13025 cat >conftest.$ac_ext <<_ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include "X11/xpm.h"
13032 #ifndef XpmReturnAllocPixels
13033 no_return_alloc_pixels
13037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13038 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13046 if test "${HAVE_XPM}" = "yes"; then
13047 { echo "$as_me:$LINENO: result: yes" >&5
13048 echo "${ECHO_T}yes" >&6; }
13050 { echo "$as_me:$LINENO: result: no" >&5
13051 echo "${ECHO_T}no" >&6; }
13056 if test "${HAVE_XPM}" = "yes"; then
13058 cat >>confdefs.h <<\_ACEOF
13065 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13067 if test "${HAVE_X11}" = "yes"; then
13068 if test "${with_jpeg}" != "no"; then
13069 if test "${ac_cv_header_jerror_h+set}" = set; then
13070 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13071 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13072 if test "${ac_cv_header_jerror_h+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13076 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13078 # Is the header compilable?
13079 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13080 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 $ac_includes_default
13088 #include <jerror.h>
13090 rm -f conftest.$ac_objext
13091 if { (ac_try="$ac_compile"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_compile") 2>conftest.er1
13099 grep -v '^
*+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && {
13104 test -z "$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13106 } && test -s conftest.$ac_objext; then
13107 ac_header_compiler=yes
13109 echo "$as_me: failed program was:" >&5
13110 sed 's
/^
/|
/' conftest.$ac_ext >&5
13112 ac_header_compiler=no
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13117 echo "${ECHO_T}$ac_header_compiler" >&6; }
13119 # Is the header present?
13120 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13121 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13122 cat >conftest.$ac_ext <<_ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 #include <jerror.h>
13130 if { (ac_try="$ac_cpp conftest.$ac_ext"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13138 grep -v '^
*+' conftest.er1 >conftest.err
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } >/dev/null && {
13143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13144 test ! -s conftest.err
13146 ac_header_preproc=yes
13148 echo "$as_me: failed program was:" >&5
13149 sed 's
/^
/|
/' conftest.$ac_ext >&5
13151 ac_header_preproc=no
13154 rm -f conftest.err conftest.$ac_ext
13155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13156 echo "${ECHO_T}$ac_header_preproc" >&6; }
13158 # So? What about this header?
13159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13161 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13162 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13164 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13165 ac_header_preproc=yes
13168 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13169 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13171 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13173 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13175 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13177 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13179 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13183 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13184 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13185 if test "${ac_cv_header_jerror_h+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 ac_cv_header_jerror_h=$ac_header_preproc
13190 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13191 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13194 if test $ac_cv_header_jerror_h = yes; then
13195 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13196 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13197 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-ljpeg $LIBS"
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13215 char jpeg_destroy_compress ();
13219 return jpeg_destroy_compress ();
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13233 grep -v '^
*+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest$ac_exeext &&
13241 $as_test_x conftest$ac_exeext; then
13242 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13244 echo "$as_me: failed program was:" >&5
13245 sed 's
/^
/|
/' conftest.$ac_ext >&5
13247 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13252 LIBS=$ac_check_lib_save_LIBS
13254 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13255 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13256 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13266 if test "${HAVE_JPEG}" = "yes"; then
13267 cat >>confdefs.h <<\_ACEOF
13268 #define HAVE_JPEG 1
13271 cat >conftest.$ac_ext <<_ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <jpeglib.h>
13278 version=JPEG_LIB_VERSION
13281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13282 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_JPEG 1
13288 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13289 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13297 ### Use -lpng if available, unless `--with-png=no'.
13299 if test "${HAVE_X11}" = "yes"; then
13300 if test "${with_png}" != "no"; then
13301 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13302 # in /usr/include/libpng.
13305 for ac_header
in png.h libpng
/png.h
13307 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13308 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13311 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 ac_res
=`eval echo '${'$as_ac_Header'}'`
13315 { echo "$as_me:$LINENO: result: $ac_res" >&5
13316 echo "${ECHO_T}$ac_res" >&6; }
13318 # Is the header compilable?
13319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13321 cat >conftest.
$ac_ext <<_ACEOF
13324 cat confdefs.h
>>conftest.
$ac_ext
13325 cat >>conftest.
$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 $ac_includes_default
13328 #include <$ac_header>
13330 rm -f conftest.
$ac_objext
13331 if { (ac_try
="$ac_compile"
13332 case "(($ac_try" in
13333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_compile") 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest.$ac_objext; then
13347 ac_header_compiler=yes
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_header_compiler=no
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13357 echo "${ECHO_T}$ac_header_compiler" >&6; }
13359 # Is the header present?
13360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 #include <$ac_header>
13370 if { (ac_try="$ac_cpp conftest.$ac_ext"
13371 case "(($ac_try" in
13372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13373 *) ac_try_echo
=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1
>conftest.err
13380 cat conftest.err
>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } >/dev
/null
&& {
13383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13386 ac_header_preproc
=yes
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.
$ac_ext >&5
13391 ac_header_preproc
=no
13394 rm -f conftest.err conftest.
$ac_ext
13395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13396 echo "${ECHO_T}$ac_header_preproc" >&6; }
13398 # So? What about this header?
13399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13405 ac_header_preproc
=yes
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13425 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 eval "$as_ac_Header=\$ac_header_preproc"
13430 ac_res
=`eval echo '${'$as_ac_Header'}'`
13431 { echo "$as_me:$LINENO: result: $ac_res" >&5
13432 echo "${ECHO_T}$ac_res" >&6; }
13435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13436 cat >>confdefs.h
<<_ACEOF
13437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13444 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13445 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13446 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13447 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 ac_check_lib_save_LIBS
=$LIBS
13451 LIBS
="-lpng -lz -lm $LIBS"
13452 cat >conftest.
$ac_ext <<_ACEOF
13455 cat confdefs.h
>>conftest.
$ac_ext
13456 cat >>conftest.
$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13465 char png_get_channels ();
13469 return png_get_channels ();
13474 rm -f conftest.
$ac_objext conftest
$ac_exeext
13475 if { (ac_try
="$ac_link"
13476 case "(($ac_try" in
13477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1 >conftest.err
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest$ac_exeext &&
13491 $as_test_x conftest$ac_exeext; then
13492 ac_cv_lib_png_png_get_channels=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_cv_lib_png_png_get_channels=no
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13505 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13506 if test $ac_cv_lib_png_png_get_channels = yes; then
13513 if test "${HAVE_PNG}" = "yes"; then
13515 cat >>confdefs.h <<\_ACEOF
13522 ### Use -ltiff if available, unless `--with-tiff=no
'.
13524 if test "${HAVE_X11}" = "yes"; then
13525 if test "${with_tiff}" != "no"; then
13526 if test "${ac_cv_header_tiffio_h+set}" = set; then
13527 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13528 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_tiffio_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13533 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13535 # Is the header compilable?
13536 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13537 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 $ac_includes_default
13545 #include <tiffio.h>
13547 rm -f conftest.$ac_objext
13548 if { (ac_try="$ac_compile"
13549 case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compile") 2>conftest.er1
13556 grep -v '^
*+' conftest.er1 >conftest.err
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && {
13561 test -z "$ac_c_werror_flag" ||
13562 test ! -s conftest.err
13563 } && test -s conftest.$ac_objext; then
13564 ac_header_compiler=yes
13566 echo "$as_me: failed program was:" >&5
13567 sed 's
/^
/|
/' conftest.$ac_ext >&5
13569 ac_header_compiler=no
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13574 echo "${ECHO_T}$ac_header_compiler" >&6; }
13576 # Is the header present?
13577 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13578 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 #include <tiffio.h>
13587 if { (ac_try="$ac_cpp conftest.$ac_ext"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13595 grep -v '^
*+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } >/dev/null && {
13600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13603 ac_header_preproc=yes
13605 echo "$as_me: failed program was:" >&5
13606 sed 's
/^
/|
/' conftest.$ac_ext >&5
13608 ac_header_preproc=no
13611 rm -f conftest.err conftest.$ac_ext
13612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13613 echo "${ECHO_T}$ac_header_preproc" >&6; }
13615 # So? What about this header?
13616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13618 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13619 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13621 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13622 ac_header_preproc=yes
13625 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13626 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13628 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13630 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13632 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13634 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13636 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13640 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13641 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13642 if test "${ac_cv_header_tiffio_h+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 ac_cv_header_tiffio_h=$ac_header_preproc
13647 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13648 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13651 if test $ac_cv_header_tiffio_h = yes; then
13653 # At least one tiff package requires the jpeg library.
13654 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13655 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13656 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13657 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-ltiff $tifflibs $LIBS"
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13675 char TIFFGetVersion ();
13679 return TIFFGetVersion ();
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13693 grep -v '^
*+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && {
13698 test -z "$ac_c_werror_flag" ||
13699 test ! -s conftest.err
13700 } && test -s conftest$ac_exeext &&
13701 $as_test_x conftest$ac_exeext; then
13702 ac_cv_lib_tiff_TIFFGetVersion=yes
13704 echo "$as_me: failed program was:" >&5
13705 sed 's
/^
/|
/' conftest.$ac_ext >&5
13707 ac_cv_lib_tiff_TIFFGetVersion=no
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13715 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13716 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13725 if test "${HAVE_TIFF}" = "yes"; then
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_TIFF 1
13734 ### Use -lgif if available, unless `--with-gif=no'.
13736 if test "${HAVE_X11}" = "yes"; then
13737 if test "${with_gif}" != "no"; then
13738 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13739 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13740 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13741 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13745 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13747 # Is the header compilable?
13748 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13749 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13750 cat >conftest.
$ac_ext <<_ACEOF
13753 cat confdefs.h
>>conftest.
$ac_ext
13754 cat >>conftest.
$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 $ac_includes_default
13757 #include <gif_lib.h>
13759 rm -f conftest.
$ac_objext
13760 if { (ac_try
="$ac_compile"
13761 case "(($ac_try" in
13762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && {
13773 test -z "$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 } && test -s conftest.$ac_objext; then
13776 ac_header_compiler=yes
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 ac_header_compiler=no
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13786 echo "${ECHO_T}$ac_header_compiler" >&6; }
13788 # Is the header present?
13789 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13790 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13791 cat >conftest.$ac_ext <<_ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <gif_lib.h>
13799 if { (ac_try="$ac_cpp conftest.$ac_ext"
13800 case "(($ac_try" in
13801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13802 *) ac_try_echo
=$ac_try;;
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13807 grep -v '^ *+' conftest.er1
>conftest.err
13809 cat conftest.err
>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev
/null
&& {
13812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13815 ac_header_preproc
=yes
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.
$ac_ext >&5
13820 ac_header_preproc
=no
13823 rm -f conftest.err conftest.
$ac_ext
13824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13825 echo "${ECHO_T}$ac_header_preproc" >&6; }
13827 # So? What about this header?
13828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13831 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13833 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13834 ac_header_preproc
=yes
13837 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13838 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13840 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13842 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13844 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13846 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13848 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13852 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13853 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13854 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 ac_cv_header_gif_lib_h
=$ac_header_preproc
13859 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13860 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13863 if test $ac_cv_header_gif_lib_h = yes; then
13864 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13865 # Earlier versions can crash Emacs.
13866 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13867 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13868 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 ac_check_lib_save_LIBS
=$LIBS
13872 LIBS
="-lungif $LIBS"
13873 cat >conftest.
$ac_ext <<_ACEOF
13876 cat confdefs.h
>>conftest.
$ac_ext
13877 cat >>conftest.
$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13886 char EGifPutExtensionLast ();
13890 return EGifPutExtensionLast ();
13895 rm -f conftest.
$ac_objext conftest
$ac_exeext
13896 if { (ac_try
="$ac_link"
13897 case "(($ac_try" in
13898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>conftest.er1
13904 grep -v '^ *+' conftest.er1 >conftest.err
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest$ac_exeext &&
13912 $as_test_x conftest$ac_exeext; then
13913 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13918 ac_cv_lib_ungif_EGifPutExtensionLast=no
13921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_check_lib_save_LIBS
13925 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13926 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13927 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13936 if test "${HAVE_GIF}" = "yes"; then
13938 cat >>confdefs.h <<\_ACEOF
13945 ### Use -lgpm if available, unless `--with-gpm=no
'.
13947 if test "${with_gpm}" != "no"; then
13948 if test "${ac_cv_header_gpm_h+set}" = set; then
13949 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13950 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13951 if test "${ac_cv_header_gpm_h+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13955 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13957 # Is the header compilable?
13958 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13959 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13960 cat >conftest.$ac_ext <<_ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 $ac_includes_default
13969 rm -f conftest.$ac_objext
13970 if { (ac_try="$ac_compile"
13971 case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_compile") 2>conftest.er1
13978 grep -v '^
*+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } && {
13983 test -z "$ac_c_werror_flag" ||
13984 test ! -s conftest.err
13985 } && test -s conftest.$ac_objext; then
13986 ac_header_compiler=yes
13988 echo "$as_me: failed program was:" >&5
13989 sed 's
/^
/|
/' conftest.$ac_ext >&5
13991 ac_header_compiler=no
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13996 echo "${ECHO_T}$ac_header_compiler" >&6; }
13998 # Is the header present?
13999 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14000 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14009 if { (ac_try="$ac_cpp conftest.$ac_ext"
14010 case "(($ac_try" in
14011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14017 grep -v '^
*+' conftest.er1 >conftest.err
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } >/dev/null && {
14022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14023 test ! -s conftest.err
14025 ac_header_preproc=yes
14027 echo "$as_me: failed program was:" >&5
14028 sed 's
/^
/|
/' conftest.$ac_ext >&5
14030 ac_header_preproc=no
14033 rm -f conftest.err conftest.$ac_ext
14034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14035 echo "${ECHO_T}$ac_header_preproc" >&6; }
14037 # So? What about this header?
14038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14040 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14041 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result
" >&5
14043 echo "$as_me: WARNING
: gpm.h
: proceeding with the compiler
's result" >&2;}
14044 ac_header_preproc=yes
14047 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14048 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14050 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14052 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14054 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result
" >&5
14056 echo "$as_me: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14058 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14062 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14063 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14064 if test "${ac_cv_header_gpm_h+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 ac_cv_header_gpm_h=$ac_header_preproc
14069 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14070 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14073 if test $ac_cv_header_gpm_h = yes; then
14074 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14075 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14076 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 ac_check_lib_save_LIBS=$LIBS
14081 cat >conftest.$ac_ext <<_ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14098 return Gpm_Open ();
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (ac_try="$ac_link"
14105 case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_link") 2>conftest.er1
14112 grep -v '^
*+' conftest.er1 >conftest.err
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest$ac_exeext &&
14120 $as_test_x conftest$ac_exeext; then
14121 ac_cv_lib_gpm_Gpm_Open=yes
14123 echo "$as_me: failed program was:" >&5
14124 sed 's
/^
/|
/' conftest.$ac_ext >&5
14126 ac_cv_lib_gpm_Gpm_Open=no
14129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14130 conftest$ac_exeext conftest.$ac_ext
14131 LIBS=$ac_check_lib_save_LIBS
14133 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14134 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14135 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14144 if test "${HAVE_GPM}" = "yes"; then
14146 cat >>confdefs.h <<\_ACEOF
14152 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14153 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14154 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14155 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14159 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14161 # Is the header compilable?
14162 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14163 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 $ac_includes_default
14171 #include <malloc/malloc.h>
14173 rm -f conftest.$ac_objext
14174 if { (ac_try="$ac_compile"
14175 case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14182 grep -v '^
*+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest.$ac_objext; then
14190 ac_header_compiler=yes
14192 echo "$as_me: failed program was:" >&5
14193 sed 's
/^
/|
/' conftest.$ac_ext >&5
14195 ac_header_compiler=no
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14200 echo "${ECHO_T}$ac_header_compiler" >&6; }
14202 # Is the header present?
14203 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14204 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 #include <malloc/malloc.h>
14213 if { (ac_try="$ac_cpp conftest.$ac_ext"
14214 case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14221 grep -v '^
*+' conftest.er1 >conftest.err
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev/null && {
14226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14227 test ! -s conftest.err
14229 ac_header_preproc=yes
14231 echo "$as_me: failed program was:" >&5
14232 sed 's
/^
/|
/' conftest.$ac_ext >&5
14234 ac_header_preproc=no
14237 rm -f conftest.err conftest.$ac_ext
14238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14239 echo "${ECHO_T}$ac_header_preproc" >&6; }
14241 # So? What about this header?
14242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14244 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14245 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
14247 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
14248 ac_header_preproc=yes
14251 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14252 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14254 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14256 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14258 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
14260 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14262 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14266 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14267 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14268 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14273 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14274 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14277 if test $ac_cv_header_malloc_malloc_h = yes; then
14279 cat >>confdefs.h <<\_ACEOF
14280 #define HAVE_MALLOC_MALLOC_H 1
14287 ### Use Mac OS X Carbon API to implement GUI.
14288 if test "${HAVE_CARBON}" = "yes"; then
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_CARBON 1
14294 ## Specify the install directory
14296 if test "${carbon_appdir_x}" != ""; then
14297 case ${carbon_appdir_x} in
14298 y | ye | yes) carbon_appdir=/Applications ;;
14299 * ) carbon_appdir=${carbon_appdir_x} ;;
14302 # We also have mouse menus.
14306 ### Use session management (-lSM -lICE) if available
14308 if test "${HAVE_X11}" = "yes"; then
14309 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14310 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14311 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14316 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14318 # Is the header compilable?
14319 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14320 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14321 cat >conftest.$ac_ext <<_ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 $ac_includes_default
14328 #include <X11/SM/SMlib.h>
14330 rm -f conftest.$ac_objext
14331 if { (ac_try="$ac_compile"
14332 case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_compile") 2>conftest.er1
14339 grep -v '^
*+' conftest.er1 >conftest.err
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } && {
14344 test -z "$ac_c_werror_flag" ||
14345 test ! -s conftest.err
14346 } && test -s conftest.$ac_objext; then
14347 ac_header_compiler=yes
14349 echo "$as_me: failed program was:" >&5
14350 sed 's
/^
/|
/' conftest.$ac_ext >&5
14352 ac_header_compiler=no
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14357 echo "${ECHO_T}$ac_header_compiler" >&6; }
14359 # Is the header present?
14360 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14361 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14362 cat >conftest.$ac_ext <<_ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 #include <X11/SM/SMlib.h>
14370 if { (ac_try="$ac_cpp conftest.$ac_ext"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14378 grep -v '^
*+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } >/dev/null && {
14383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14386 ac_header_preproc=yes
14388 echo "$as_me: failed program was:" >&5
14389 sed 's
/^
/|
/' conftest.$ac_ext >&5
14391 ac_header_preproc=no
14394 rm -f conftest.err conftest.$ac_ext
14395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396 echo "${ECHO_T}$ac_header_preproc" >&6; }
14398 # So? What about this header?
14399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14401 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14402 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
14404 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
14405 ac_header_preproc=yes
14408 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14409 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14411 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14413 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14415 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
14417 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14419 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14423 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14424 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14425 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14430 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14431 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14434 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14435 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14436 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14437 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 ac_check_lib_save_LIBS=$LIBS
14441 LIBS="-lSM -lICE $LIBS"
14442 cat >conftest.$ac_ext <<_ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14449 /* Override any GCC internal prototype to avoid an error.
14450 Use char because int might match the return type of a GCC
14451 builtin and then its argument prototype would still apply. */
14455 char SmcOpenConnection ();
14459 return SmcOpenConnection ();
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (ac_try="$ac_link"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_link") 2>conftest.er1
14473 grep -v '^
*+' conftest.er1 >conftest.err
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest$ac_exeext &&
14481 $as_test_x conftest$ac_exeext; then
14482 ac_cv_lib_SM_SmcOpenConnection=yes
14484 echo "$as_me: failed program was:" >&5
14485 sed 's
/^
/|
/' conftest.$ac_ext >&5
14487 ac_cv_lib_SM_SmcOpenConnection=no
14490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14491 conftest$ac_exeext conftest.$ac_ext
14492 LIBS=$ac_check_lib_save_LIBS
14494 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14495 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14496 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14504 if test "${HAVE_X_SM}" = "yes"; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_X_SM 1
14512 *) LIBS="-lSM -lICE $LIBS" ;;
14517 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
14518 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14519 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14520 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 cat >conftest.
$ac_ext <<_ACEOF
14526 cat confdefs.h
>>conftest.
$ac_ext
14527 cat >>conftest.
$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14538 rm -f conftest.
$ac_objext conftest
$ac_exeext
14539 if { (ac_try
="$ac_link"
14540 case "(($ac_try" in
14541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_link") 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest$ac_exeext &&
14555 $as_test_x conftest$ac_exeext; then
14556 emacs_cv_netdb_declares_h_errno=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 emacs_cv_netdb_declares_h_errno=no
14564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14565 conftest$ac_exeext conftest.$ac_ext
14567 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14568 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14569 if test $emacs_cv_netdb_declares_h_errno = yes; then
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_H_ERRNO 1
14577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14578 # for constant arguments. Useless!
14579 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14580 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14581 if test "${ac_cv_working_alloca_h+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <alloca.h>
14594 char *p = (char *) alloca (2 * sizeof (int));
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (ac_try="$ac_link"
14602 case "(($ac_try" in
14603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14604 *) ac_try_echo
=$ac_try;;
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_link") 2>conftest.er1
14609 grep -v '^ *+' conftest.er1
>conftest.err
14611 cat conftest.err
>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest
$ac_exeext &&
14617 $as_test_x conftest
$ac_exeext; then
14618 ac_cv_working_alloca_h
=yes
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.
$ac_ext >&5
14623 ac_cv_working_alloca_h
=no
14626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14627 conftest
$ac_exeext conftest.
$ac_ext
14629 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14630 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14631 if test $ac_cv_working_alloca_h = yes; then
14633 cat >>confdefs.h
<<\_ACEOF
14634 #define HAVE_ALLOCA_H 1
14639 { echo "$as_me:$LINENO: checking for alloca" >&5
14640 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14641 if test "${ac_cv_func_alloca_works+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 cat >conftest.
$ac_ext <<_ACEOF
14647 cat confdefs.h
>>conftest.
$ac_ext
14648 cat >>conftest.
$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14651 # define alloca __builtin_alloca
14654 # include <malloc.h>
14655 # define alloca _alloca
14657 # ifdef HAVE_ALLOCA_H
14658 # include <alloca.h>
14663 # ifndef alloca /* predefined by HP cc +Olibcalls */
14674 char *p = (char *) alloca (1);
14680 rm -f conftest.
$ac_objext conftest
$ac_exeext
14681 if { (ac_try
="$ac_link"
14682 case "(($ac_try" in
14683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_link") 2>conftest.er1
14689 grep -v '^ *+' conftest.er1 >conftest.err
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && {
14694 test -z "$ac_c_werror_flag" ||
14695 test ! -s conftest.err
14696 } && test -s conftest$ac_exeext &&
14697 $as_test_x conftest$ac_exeext; then
14698 ac_cv_func_alloca_works=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_cv_func_alloca_works=no
14706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14707 conftest$ac_exeext conftest.$ac_ext
14709 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14710 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14712 if test $ac_cv_func_alloca_works = yes; then
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_ALLOCA 1
14719 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14720 # that cause trouble. Some versions do not even contain alloca or
14721 # contain a buggy version. If you still want to use their alloca,
14722 # use ar to extract alloca.o from them instead of compiling alloca.c.
14724 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14726 cat >>confdefs.h <<\_ACEOF
14731 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14732 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14733 if test "${ac_cv_os_cray+set}" = set; then
14734 echo $ECHO_N "(cached
) $ECHO_C" >&6
14736 cat >conftest.$ac_ext <<_ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #if defined CRAY && ! defined CRAY2
14749 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14750 $EGREP "webecray
" >/dev/null 2>&1; then
14758 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14759 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14760 if test $ac_cv_os_cray = yes; then
14761 for ac_func in _getb67 GETB67 getb67; do
14762 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14763 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14764 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14765 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14766 echo $ECHO_N "(cached
) $ECHO_C" >&6
14768 cat >conftest.$ac_ext <<_ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14776 #define $ac_func innocuous_$ac_func
14778 /* System header to define __stub macros and hopefully few prototypes,
14779 which can conflict with char $ac_func (); below.
14780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14781 <limits.h> exists even on freestanding compilers. */
14784 # include <limits.h>
14786 # include <assert.h>
14791 /* Override any GCC internal prototype to avoid an error.
14792 Use char because int might match the return type of a GCC
14793 builtin and then its argument prototype would still apply. */
14798 /* The GNU C library defines this for functions which it implements
14799 to always fail with ENOSYS. Some functions are actually named
14800 something starting with __ and the normal name is an alias. */
14801 #if defined __stub_$ac_func || defined __stub___$ac_func
14808 return $ac_func ();
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (ac_try="$ac_link"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_link") 2>conftest.er1
14822 grep -v '^ *+' conftest.er1 >conftest.err
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14826 (exit $ac_status); } && {
14827 test -z "$ac_c_werror_flag" ||
14828 test ! -s conftest.err
14829 } && test -s conftest$ac_exeext &&
14830 $as_test_x conftest$ac_exeext; then
14831 eval "$as_ac_var=yes"
14833 echo "$as_me: failed program was
:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 eval "$as_ac_var=no
"
14839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14840 conftest$ac_exeext conftest.$ac_ext
14842 ac_res=`eval echo '${'$as_ac_var'}'`
14843 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14844 echo "${ECHO_T}$ac_res" >&6; }
14845 if test `eval echo '${'$as_ac_var'}'` = yes; then
14847 cat >>confdefs.h <<_ACEOF
14848 #define CRAY_STACKSEG_END $ac_func
14857 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14858 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14859 if test "${ac_cv_c_stack_direction+set}" = set; then
14860 echo $ECHO_N "(cached
) $ECHO_C" >&6
14862 if test "$cross_compiling" = yes; then
14863 ac_cv_c_stack_direction=0
14865 cat >conftest.$ac_ext <<_ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 $ac_includes_default
14873 find_stack_direction ()
14875 static char *addr = 0;
14880 return find_stack_direction ();
14883 return (&dummy > addr) ? 1 : -1;
14889 return find_stack_direction () < 0;
14892 rm -f conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_link") 2>&5
14901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_cv_c_stack_direction=1
14914 echo "$as_me: program exited with status
$ac_status" >&5
14915 echo "$as_me: failed program was
:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 ( exit $ac_status )
14919 ac_cv_c_stack_direction=-1
14921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14926 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14927 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14929 cat >>confdefs.h <<_ACEOF
14930 #define STACK_DIRECTION $ac_cv_c_stack_direction
14937 # fmod, logb, and frexp are found in -lm on most systems.
14938 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14940 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14941 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14942 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14943 echo $ECHO_N "(cached
) $ECHO_C" >&6
14945 ac_check_lib_save_LIBS=$LIBS
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14954 /* Override any GCC internal prototype to avoid an error.
14955 Use char because int might match the return type of a GCC
14956 builtin and then its argument prototype would still apply. */
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (ac_try="$ac_link"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_link") 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext &&
14986 $as_test_x conftest$ac_exeext; then
14987 ac_cv_lib_m_sqrt=yes
14989 echo "$as_me: failed program was
:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ac_cv_lib_m_sqrt=no
14995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14996 conftest$ac_exeext conftest.$ac_ext
14997 LIBS=$ac_check_lib_save_LIBS
14999 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15000 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15001 if test $ac_cv_lib_m_sqrt = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_LIBM 1
15011 # Check for mail-locking functions in a "mail" library. Probably this should
15012 # have the same check as for liblockfile below.
15014 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15015 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15016 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15017 echo $ECHO_N "(cached
) $ECHO_C" >&6
15019 ac_check_lib_save_LIBS=$LIBS
15020 LIBS="-lmail $LIBS"
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15038 return maillock ();
15043 rm -f conftest.$ac_objext conftest$ac_exeext
15044 if { (ac_try="$ac_link"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
15052 grep -v '^ *+' conftest.er1 >conftest.err
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest$ac_exeext &&
15060 $as_test_x conftest$ac_exeext; then
15061 ac_cv_lib_mail_maillock=yes
15063 echo "$as_me: failed program was
:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 ac_cv_lib_mail_maillock=no
15069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15070 conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15073 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15074 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15075 if test $ac_cv_lib_mail_maillock = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define HAVE_LIBMAIL 1
15080 LIBS="-lmail $LIBS"
15085 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15086 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15087 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15088 echo $ECHO_N "(cached
) $ECHO_C" >&6
15090 ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-llockfile $LIBS"
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15109 return maillock ();
15114 rm -f conftest.$ac_objext conftest$ac_exeext
15115 if { (ac_try="$ac_link"
15116 case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15121 (eval "$ac_link") 2>conftest.er1
15123 grep -v '^ *+' conftest.er1 >conftest.err
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15127 (exit $ac_status); } && {
15128 test -z "$ac_c_werror_flag" ||
15129 test ! -s conftest.err
15130 } && test -s conftest$ac_exeext &&
15131 $as_test_x conftest$ac_exeext; then
15132 ac_cv_lib_lockfile_maillock=yes
15134 echo "$as_me: failed program was
:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15137 ac_cv_lib_lockfile_maillock=no
15140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15141 conftest$ac_exeext conftest.$ac_ext
15142 LIBS=$ac_check_lib_save_LIBS
15144 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15145 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15146 if test $ac_cv_lib_lockfile_maillock = yes; then
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_LIBLOCKFILE 1
15151 LIBS="-llockfile $LIBS"
15155 # If we have the shared liblockfile, assume we must use it for mail
15156 # locking (e.g. Debian). If we couldn't link against liblockfile
15157 # (no liblockfile.a installed), ensure that we don't need to.
15158 if test "$ac_cv_lib_lockfile_maillock" = no; then
15159 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15160 set dummy liblockfile.so; ac_word=$2
15161 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15162 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15163 if test "${ac_cv_prog_liblockfile+set}" = set; then
15164 echo $ECHO_N "(cached
) $ECHO_C" >&6
15166 if test -n "$liblockfile"; then
15167 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15170 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15171 for as_dir in $as_dummy
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15177 ac_cv_prog_liblockfile="yes"
15178 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15185 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15188 liblockfile=$ac_cv_prog_liblockfile
15189 if test -n "$liblockfile"; then
15190 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15191 echo "${ECHO_T}$liblockfile" >&6; }
15193 { echo "$as_me:$LINENO: result
: no
" >&5
15194 echo "${ECHO_T}no
" >&6; }
15198 if test $ac_cv_prog_liblockfile = yes; then
15199 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15200 This probably means that movemail could lose mail.
15201 There may be a \`development' package to
install containing liblockfile.
" >&5
15202 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15203 This probably means that movemail could lose mail.
15204 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15205 { (exit 1); exit 1; }; }
15210 for ac_func in touchlock
15212 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15213 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15214 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15215 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15216 echo $ECHO_N "(cached
) $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15226 #define $ac_func innocuous_$ac_func
15228 /* System header to define __stub macros and hopefully few prototypes,
15229 which can conflict with char $ac_func (); below.
15230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15231 <limits.h> exists even on freestanding compilers. */
15234 # include <limits.h>
15236 # include <assert.h>
15241 /* Override any GCC internal prototype to avoid an error.
15242 Use char because int might match the return type of a GCC
15243 builtin and then its argument prototype would still apply. */
15248 /* The GNU C library defines this for functions which it implements
15249 to always fail with ENOSYS. Some functions are actually named
15250 something starting with __ and the normal name is an alias. */
15251 #if defined __stub_$ac_func || defined __stub___$ac_func
15258 return $ac_func ();
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (ac_try="$ac_link"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>conftest.er1
15272 grep -v '^ *+' conftest.er1 >conftest.err
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest$ac_exeext &&
15280 $as_test_x conftest$ac_exeext; then
15281 eval "$as_ac_var=yes"
15283 echo "$as_me: failed program was
:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 eval "$as_ac_var=no
"
15289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15290 conftest$ac_exeext conftest.$ac_ext
15292 ac_res=`eval echo '${'$as_ac_var'}'`
15293 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15294 echo "${ECHO_T}$ac_res" >&6; }
15295 if test `eval echo '${'$as_ac_var'}'` = yes; then
15296 cat >>confdefs.h <<_ACEOF
15297 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15304 for ac_header in maillock.h
15306 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15308 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15309 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached
) $ECHO_C" >&6
15313 ac_res=`eval echo '${'$as_ac_Header'}'`
15314 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15315 echo "${ECHO_T}$ac_res" >&6; }
15317 # Is the header compilable?
15318 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15319 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 $ac_includes_default
15327 #include <$ac_header>
15329 rm -f conftest.$ac_objext
15330 if { (ac_try="$ac_compile"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_compile") 2>conftest.er1
15338 grep -v '^ *+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15342 (exit $ac_status); } && {
15343 test -z "$ac_c_werror_flag" ||
15344 test ! -s conftest.err
15345 } && test -s conftest.$ac_objext; then
15346 ac_header_compiler=yes
15348 echo "$as_me: failed program was
:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 ac_header_compiler=no
15354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15356 echo "${ECHO_T}$ac_header_compiler" >&6; }
15358 # Is the header present?
15359 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15360 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 #include <$ac_header>
15369 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15377 grep -v '^ *+' conftest.er1 >conftest.err
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15381 (exit $ac_status); } >/dev/null && {
15382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15385 ac_header_preproc=yes
15387 echo "$as_me: failed program was
:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ac_header_preproc=no
15393 rm -f conftest.err conftest.$ac_ext
15394 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15395 echo "${ECHO_T}$ac_header_preproc" >&6; }
15397 # So? What about this header?
15398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15400 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15401 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15402 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15404 ac_header_preproc=yes
15407 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15408 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15409 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15410 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15411 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15412 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15413 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15414 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15415 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15417 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15418 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15422 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15423 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached
) $ECHO_C" >&6
15427 eval "$as_ac_Header=\
$ac_header_preproc"
15429 ac_res=`eval echo '${'$as_ac_Header'}'`
15430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15435 cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15513 for ac_func in gethostname getdomainname dup2 \
15514 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15515 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15516 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15517 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15518 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15519 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15520 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15521 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15523 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15524 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15525 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15526 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached
) $ECHO_C" >&6
15529 cat >conftest.$ac_ext <<_ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15537 #define $ac_func innocuous_$ac_func
15539 /* System header to define __stub macros and hopefully few prototypes,
15540 which can conflict with char $ac_func (); below.
15541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15542 <limits.h> exists even on freestanding compilers. */
15545 # include <limits.h>
15547 # include <assert.h>
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15559 /* The GNU C library defines this for functions which it implements
15560 to always fail with ENOSYS. Some functions are actually named
15561 something starting with __ and the normal name is an alias. */
15562 #if defined __stub_$ac_func || defined __stub___$ac_func
15569 return $ac_func ();
15574 rm -f conftest.$ac_objext conftest$ac_exeext
15575 if { (ac_try="$ac_link"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_link") 2>conftest.er1
15583 grep -v '^ *+' conftest.er1 >conftest.err
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15587 (exit $ac_status); } && {
15588 test -z "$ac_c_werror_flag" ||
15589 test ! -s conftest.err
15590 } && test -s conftest$ac_exeext &&
15591 $as_test_x conftest$ac_exeext; then
15592 eval "$as_ac_var=yes"
15594 echo "$as_me: failed program was
:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 eval "$as_ac_var=no
"
15600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15601 conftest$ac_exeext conftest.$ac_ext
15603 ac_res=`eval echo '${'$as_ac_var'}'`
15604 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15606 if test `eval echo '${'$as_ac_var'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15616 for ac_header in sys/un.h
15618 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15619 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15620 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15621 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15623 echo $ECHO_N "(cached
) $ECHO_C" >&6
15625 ac_res=`eval echo '${'$as_ac_Header'}'`
15626 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15629 # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15631 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 $ac_includes_default
15639 #include <$ac_header>
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1 >conftest.err
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest.$ac_objext; then
15658 ac_header_compiler=yes
15660 echo "$as_me: failed program was
:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 ac_header_compiler=no
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15668 echo "${ECHO_T}$ac_header_compiler" >&6; }
15670 # Is the header present?
15671 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15672 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15673 cat >conftest.$ac_ext <<_ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 #include <$ac_header>
15681 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15693 (exit $ac_status); } >/dev/null && {
15694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15697 ac_header_preproc=yes
15699 echo "$as_me: failed program was
:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_header_preproc=no
15705 rm -f conftest.err conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15707 echo "${ECHO_T}$ac_header_preproc" >&6; }
15709 # So? What about this header?
15710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15712 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15713 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15714 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15716 ac_header_preproc=yes
15719 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15720 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15721 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15722 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15723 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15724 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15725 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15726 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15727 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15729 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15730 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15734 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15735 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15736 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15737 echo $ECHO_N "(cached
) $ECHO_C" >&6
15739 eval "$as_ac_Header=\
$ac_header_preproc"
15741 ac_res=`eval echo '${'$as_ac_Header'}'`
15742 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15743 echo "${ECHO_T}$ac_res" >&6; }
15746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15747 cat >>confdefs.h <<_ACEOF
15748 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15760 for ac_header in $ac_header_list
15762 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15763 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15764 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15765 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15766 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15767 echo $ECHO_N "(cached
) $ECHO_C" >&6
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15773 # Is the header compilable?
15774 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15775 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $ac_includes_default
15783 #include <$ac_header>
15785 rm -f conftest.$ac_objext
15786 if { (ac_try="$ac_compile"
15787 case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_compile") 2>conftest.er1
15794 grep -v '^ *+' conftest.er1 >conftest.err
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15798 (exit $ac_status); } && {
15799 test -z "$ac_c_werror_flag" ||
15800 test ! -s conftest.err
15801 } && test -s conftest.$ac_objext; then
15802 ac_header_compiler=yes
15804 echo "$as_me: failed program was
:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_header_compiler=no
15810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15812 echo "${ECHO_T}$ac_header_compiler" >&6; }
15814 # Is the header present?
15815 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15816 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15817 cat >conftest.$ac_ext <<_ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 #include <$ac_header>
15825 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15837 (exit $ac_status); } >/dev/null && {
15838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15841 ac_header_preproc=yes
15843 echo "$as_me: failed program was
:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15846 ac_header_preproc=no
15849 rm -f conftest.err conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15851 echo "${ECHO_T}$ac_header_preproc" >&6; }
15853 # So? What about this header?
15854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15856 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15857 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15858 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15860 ac_header_preproc=yes
15863 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15864 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15866 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15867 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15868 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15869 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15870 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15871 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15873 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15874 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15878 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15879 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached
) $ECHO_C" >&6
15883 eval "$as_ac_Header=\
$ac_header_preproc"
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15907 for ac_func in $ac_func_list
15909 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15910 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15911 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15912 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15913 echo $ECHO_N "(cached
) $ECHO_C" >&6
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15923 #define $ac_func innocuous_$ac_func
15925 /* System header to define __stub macros and hopefully few prototypes,
15926 which can conflict with char $ac_func (); below.
15927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15928 <limits.h> exists even on freestanding compilers. */
15931 # include <limits.h>
15933 # include <assert.h>
15938 /* Override any GCC internal prototype to avoid an error.
15939 Use char because int might match the return type of a GCC
15940 builtin and then its argument prototype would still apply. */
15945 /* The GNU C library defines this for functions which it implements
15946 to always fail with ENOSYS. Some functions are actually named
15947 something starting with __ and the normal name is an alias. */
15948 #if defined __stub_$ac_func || defined __stub___$ac_func
15955 return $ac_func ();
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_link") 2>conftest.er1
15969 grep -v '^ *+' conftest.er1 >conftest.err
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15973 (exit $ac_status); } && {
15974 test -z "$ac_c_werror_flag" ||
15975 test ! -s conftest.err
15976 } && test -s conftest$ac_exeext &&
15977 $as_test_x conftest$ac_exeext; then
15978 eval "$as_ac_var=yes"
15980 echo "$as_me: failed program was
:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 eval "$as_ac_var=no
"
15986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15987 conftest$ac_exeext conftest.$ac_ext
15989 ac_res=`eval echo '${'$as_ac_var'}'`
15990 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992 if test `eval echo '${'$as_ac_var'}'` = yes; then
15993 cat >>confdefs.h <<_ACEOF
15994 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16016 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16017 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16018 if test "${ac_cv_func_working_mktime+set}" = set; then
16019 echo $ECHO_N "(cached
) $ECHO_C" >&6
16021 if test "$cross_compiling" = yes; then
16022 ac_cv_func_working_mktime=no
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 /* Test program from Paul Eggert and Tony Leneis. */
16031 #ifdef TIME_WITH_SYS_TIME
16032 # include <sys/time.h>
16035 # ifdef HAVE_SYS_TIME_H
16036 # include <sys/time.h>
16042 #include <stdlib.h>
16044 #ifdef HAVE_UNISTD_H
16045 # include <unistd.h>
16049 # define alarm(X) /* empty */
16052 /* Work around redefinition to rpl_putenv by other config tests. */
16055 static time_t time_t_max;
16056 static time_t time_t_min;
16058 /* Values we'll use to set the TZ environment variable. */
16059 static char *tz_strings[] = {
16060 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16061 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16063 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16065 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16066 Based on a problem report from Andreas Jaeger. */
16068 spring_forward_gap ()
16070 /* glibc (up to about 1998-10-07) failed this test. */
16073 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16074 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16075 on systems that don't support the Olson extension, or don't have the
16076 full zoneinfo tables installed. */
16077 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16086 return mktime (&tm) != (time_t) -1;
16094 return ! (lt = localtime (&now)) || mktime (lt) == now;
16101 return (mktime_test1 (now)
16102 && mktime_test1 ((time_t) (time_t_max - now))
16103 && mktime_test1 ((time_t) (time_t_min + now)));
16109 /* Based on code from Ariel Faigon. */
16119 return tm.tm_mon == 2 && tm.tm_mday == 31;
16128 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16129 now = mktime (&tm);
16130 if (now != (time_t) -1)
16132 struct tm *lt = localtime (&now);
16134 && lt->tm_year == tm.tm_year
16135 && lt->tm_mon == tm.tm_mon
16136 && lt->tm_mday == tm.tm_mday
16137 && lt->tm_hour == tm.tm_hour
16138 && lt->tm_min == tm.tm_min
16139 && lt->tm_sec == tm.tm_sec
16140 && lt->tm_yday == tm.tm_yday
16141 && lt->tm_wday == tm.tm_wday
16142 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16143 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16152 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16153 ignoring leap seconds. */
16154 unsigned long int answer = 2527315200UL;
16158 tm.tm_year = 2050 - 1900;
16161 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16164 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16165 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16166 on systems that don't support the Olson extension, or don't have the
16167 full zoneinfo tables installed. */
16168 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16172 /* Check that the result is either a failure, or close enough
16173 to the correct answer that we can assume the discrepancy is
16174 due to leap seconds. */
16175 return (t == (time_t) -1
16176 || (0 < t && answer - 120 <= t && t <= answer + 120));
16185 /* This test makes some buggy mktime implementations loop.
16186 Give up after 60 seconds; a mktime slower than that
16187 isn't worth using anyway. */
16190 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16193 if ((time_t) -1 < 0)
16194 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16196 delta = time_t_max / 997; /* a suitable prime number */
16197 for (i = 0; i < N_STRINGS; i++)
16200 putenv (tz_strings[i]);
16202 for (t = 0; t <= time_t_max - delta; t += delta)
16203 if (! mktime_test (t))
16205 if (! (mktime_test ((time_t) 1)
16206 && mktime_test ((time_t) (60 * 60))
16207 && mktime_test ((time_t) (60 * 60 * 24))))
16210 for (j = 1; 0 < j; j *= 2)
16211 if (! bigtime_test (j))
16213 if (! bigtime_test (j - 1))
16216 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16219 rm -f conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>&5
16228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_cv_func_working_mktime=yes
16241 echo "$as_me: program exited with status
$ac_status" >&5
16242 echo "$as_me: failed program was
:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 ( exit $ac_status )
16246 ac_cv_func_working_mktime=no
16248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16253 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16254 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16255 if test $ac_cv_func_working_mktime = no; then
16256 case " $LIBOBJS " in
16257 *" mktime.
$ac_objext "* ) ;;
16258 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16264 if test "$ac_cv_func_working_mktime" = no; then
16266 cat >>confdefs.h <<\_ACEOF
16267 #define BROKEN_MKTIME 1
16272 ac_have_func=no # yes means we've found a way to get the load average.
16274 # Make sure getloadavg.c is where it belongs, at configure-time.
16275 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16276 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16277 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16278 { (exit 1); exit 1; }; }
16282 # Check for getloadavg, but be sure not to touch the cache variable.
16283 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16284 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16285 if test "${ac_cv_func_getloadavg+set}" = set; then
16286 echo $ECHO_N "(cached
) $ECHO_C" >&6
16288 cat >conftest.$ac_ext <<_ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16296 #define getloadavg innocuous_getloadavg
16298 /* System header to define __stub macros and hopefully few prototypes,
16299 which can conflict with char getloadavg (); below.
16300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16301 <limits.h> exists even on freestanding compilers. */
16304 # include <limits.h>
16306 # include <assert.h>
16311 /* Override any GCC internal prototype to avoid an error.
16312 Use char because int might match the return type of a GCC
16313 builtin and then its argument prototype would still apply. */
16317 char getloadavg ();
16318 /* The GNU C library defines this for functions which it implements
16319 to always fail with ENOSYS. Some functions are actually named
16320 something starting with __ and the normal name is an alias. */
16321 #if defined __stub_getloadavg || defined __stub___getloadavg
16328 return getloadavg ();
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>conftest.er1
16342 grep -v '^ *+' conftest.er1 >conftest.err
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16346 (exit $ac_status); } && {
16347 test -z "$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 } && test -s conftest$ac_exeext &&
16350 $as_test_x conftest$ac_exeext; then
16351 ac_cv_func_getloadavg=yes
16353 echo "$as_me: failed program was
:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_cv_func_getloadavg=no
16359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16360 conftest$ac_exeext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16363 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16364 if test $ac_cv_func_getloadavg = yes; then
16369 ) && ac_have_func=yes
16371 # On HPUX9, an unprivileged user can get load averages through this function.
16373 for ac_func in pstat_getdynamic
16375 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16376 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16377 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16378 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached
) $ECHO_C" >&6
16381 cat >conftest.$ac_ext <<_ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16389 #define $ac_func innocuous_$ac_func
16391 /* System header to define __stub macros and hopefully few prototypes,
16392 which can conflict with char $ac_func (); below.
16393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16394 <limits.h> exists even on freestanding compilers. */
16397 # include <limits.h>
16399 # include <assert.h>
16404 /* Override any GCC internal prototype to avoid an error.
16405 Use char because int might match the return type of a GCC
16406 builtin and then its argument prototype would still apply. */
16411 /* The GNU C library defines this for functions which it implements
16412 to always fail with ENOSYS. Some functions are actually named
16413 something starting with __ and the normal name is an alias. */
16414 #if defined __stub_$ac_func || defined __stub___$ac_func
16421 return $ac_func ();
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16435 grep -v '^ *+' conftest.er1 >conftest.err
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16439 (exit $ac_status); } && {
16440 test -z "$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 } && test -s conftest$ac_exeext &&
16443 $as_test_x conftest$ac_exeext; then
16444 eval "$as_ac_var=yes"
16446 echo "$as_me: failed program was
:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 eval "$as_ac_var=no
"
16452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16453 conftest$ac_exeext conftest.$ac_ext
16455 ac_res=`eval echo '${'$as_ac_var'}'`
16456 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458 if test `eval echo '${'$as_ac_var'}'` = yes; then
16459 cat >>confdefs.h <<_ACEOF
16460 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16467 # Solaris has libkstat which does not require root.
16469 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16470 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16471 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16472 echo $ECHO_N "(cached
) $ECHO_C" >&6
16474 ac_check_lib_save_LIBS=$LIBS
16475 LIBS="-lkstat $LIBS"
16476 cat >conftest.$ac_ext <<_ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16483 /* Override any GCC internal prototype to avoid an error.
16484 Use char because int might match the return type of a GCC
16485 builtin and then its argument prototype would still apply. */
16489 char kstat_open ();
16493 return kstat_open ();
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext &&
16515 $as_test_x conftest$ac_exeext; then
16516 ac_cv_lib_kstat_kstat_open=yes
16518 echo "$as_me: failed program was
:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ac_cv_lib_kstat_kstat_open=no
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16528 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16529 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16530 if test $ac_cv_lib_kstat_kstat_open = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define HAVE_LIBKSTAT 1
16535 LIBS="-lkstat $LIBS"
16539 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16541 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16542 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16543 # to get the right answer into the cache.
16544 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16545 if test $ac_have_func = no; then
16546 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16547 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16548 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16549 echo $ECHO_N "(cached
) $ECHO_C" >&6
16551 ac_check_lib_save_LIBS=$LIBS
16553 cat >conftest.$ac_ext <<_ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16560 /* Override any GCC internal prototype to avoid an error.
16561 Use char because int might match the return type of a GCC
16562 builtin and then its argument prototype would still apply. */
16570 return elf_begin ();
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (ac_try="$ac_link"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_link") 2>conftest.er1
16584 grep -v '^ *+' conftest.er1 >conftest.err
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16588 (exit $ac_status); } && {
16589 test -z "$ac_c_werror_flag" ||
16590 test ! -s conftest.err
16591 } && test -s conftest$ac_exeext &&
16592 $as_test_x conftest$ac_exeext; then
16593 ac_cv_lib_elf_elf_begin=yes
16595 echo "$as_me: failed program was
:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16598 ac_cv_lib_elf_elf_begin=no
16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602 conftest$ac_exeext conftest.$ac_ext
16603 LIBS=$ac_check_lib_save_LIBS
16605 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16606 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16607 if test $ac_cv_lib_elf_elf_begin = yes; then
16612 if test $ac_have_func = no; then
16613 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16614 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16615 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16616 echo $ECHO_N "(cached
) $ECHO_C" >&6
16618 ac_check_lib_save_LIBS=$LIBS
16620 cat >conftest.$ac_ext <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16637 return kvm_open ();
16642 rm -f conftest.$ac_objext conftest$ac_exeext
16643 if { (ac_try="$ac_link"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16651 grep -v '^ *+' conftest.er1 >conftest.err
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest$ac_exeext &&
16659 $as_test_x conftest$ac_exeext; then
16660 ac_cv_lib_kvm_kvm_open=yes
16662 echo "$as_me: failed program was
:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 ac_cv_lib_kvm_kvm_open=no
16668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_lib_save_LIBS
16672 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16673 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16674 if test $ac_cv_lib_kvm_kvm_open = yes; then
16678 # Check for the 4.4BSD definition of getloadavg.
16679 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16680 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16681 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16682 echo $ECHO_N "(cached
) $ECHO_C" >&6
16684 ac_check_lib_save_LIBS=$LIBS
16685 LIBS="-lutil $LIBS"
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16693 /* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16699 char getloadavg ();
16703 return getloadavg ();
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16721 (exit $ac_status); } && {
16722 test -z "$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16724 } && test -s conftest$ac_exeext &&
16725 $as_test_x conftest$ac_exeext; then
16726 ac_cv_lib_util_getloadavg=yes
16728 echo "$as_me: failed program was
:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_cv_lib_util_getloadavg=no
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16736 LIBS=$ac_check_lib_save_LIBS
16738 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16739 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16740 if test $ac_cv_lib_util_getloadavg = yes; then
16741 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16746 if test $ac_have_func = no; then
16747 # There is a commonly available library for RS/6000 AIX.
16748 # Since it is not a standard part of AIX, it might be installed locally.
16749 ac_getloadavg_LIBS=$LIBS
16750 LIBS="-L/usr
/local
/lib
$LIBS"
16751 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16752 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16753 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16754 echo $ECHO_N "(cached
) $ECHO_C" >&6
16756 ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lgetloadavg $LIBS"
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16771 char getloadavg ();
16775 return getloadavg ();
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_link") 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16793 (exit $ac_status); } && {
16794 test -z "$ac_c_werror_flag" ||
16795 test ! -s conftest.err
16796 } && test -s conftest$ac_exeext &&
16797 $as_test_x conftest$ac_exeext; then
16798 ac_cv_lib_getloadavg_getloadavg=yes
16800 echo "$as_me: failed program was
:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_lib_getloadavg_getloadavg=no
16806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16807 conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16810 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16811 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16812 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16813 LIBS="-lgetloadavg $LIBS"
16815 LIBS=$ac_getloadavg_LIBS
16820 # Make sure it is really in the library, if we think we found it,
16821 # otherwise set up the replacement function.
16823 for ac_func in getloadavg
16825 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16826 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16827 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16828 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached
) $ECHO_C" >&6
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839 #define $ac_func innocuous_$ac_func
16841 /* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func (); below.
16843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 <limits.h> exists even on freestanding compilers. */
16847 # include <limits.h>
16849 # include <assert.h>
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined __stub_$ac_func || defined __stub___$ac_func
16871 return $ac_func ();
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (ac_try="$ac_link"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_link") 2>conftest.er1
16885 grep -v '^ *+' conftest.er1 >conftest.err
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest$ac_exeext &&
16893 $as_test_x conftest$ac_exeext; then
16894 eval "$as_ac_var=yes"
16896 echo "$as_me: failed program was
:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 eval "$as_ac_var=no
"
16902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16903 conftest$ac_exeext conftest.$ac_ext
16905 ac_res=`eval echo '${'$as_ac_var'}'`
16906 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16907 echo "${ECHO_T}$ac_res" >&6; }
16908 if test `eval echo '${'$as_ac_var'}'` = yes; then
16909 cat >>confdefs.h <<_ACEOF
16910 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16914 case " $LIBOBJS " in
16915 *" getloadavg.
$ac_objext "* ) ;;
16916 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16921 cat >>confdefs.h <<\_ACEOF
16922 #define C_GETLOADAVG 1
16925 # Figure out what our getloadavg.c needs.
16927 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16928 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16929 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16930 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16931 echo $ECHO_N "(cached
) $ECHO_C" >&6
16933 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16934 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16936 # Is the header compilable?
16937 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16938 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16946 #include <sys/dg_sys_info.h>
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_compile") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest.$ac_objext; then
16965 ac_header_compiler=yes
16967 echo "$as_me: failed program was
:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_header_compiler=no
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6; }
16977 # Is the header present?
16978 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16979 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <sys/dg_sys_info.h>
16988 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17000 (exit $ac_status); } >/dev/null && {
17001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17004 ac_header_preproc=yes
17006 echo "$as_me: failed program was
:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ac_header_preproc=no
17012 rm -f conftest.err conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17014 echo "${ECHO_T}$ac_header_preproc" >&6; }
17016 # So? What about this header?
17017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17019 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17020 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17021 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17022 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17023 ac_header_preproc=yes
17026 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17027 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17028 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17029 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17030 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17031 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17032 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17033 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17034 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17035 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17036 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17037 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17041 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17042 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17043 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17044 echo $ECHO_N "(cached
) $ECHO_C" >&6
17046 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17048 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17049 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17052 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17055 cat >>confdefs.h <<\_ACEOF
17060 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17061 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17062 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17063 echo $ECHO_N "(cached
) $ECHO_C" >&6
17065 ac_check_lib_save_LIBS=$LIBS
17067 cat >conftest.$ac_ext <<_ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17080 char dg_sys_info ();
17084 return dg_sys_info ();
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext &&
17106 $as_test_x conftest$ac_exeext; then
17107 ac_cv_lib_dgc_dg_sys_info=yes
17109 echo "$as_me: failed program was
:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_lib_dgc_dg_sys_info=no
17115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17116 conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17119 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17120 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17121 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17122 cat >>confdefs.h <<_ACEOF
17123 #define HAVE_LIBDGC 1
17134 if test "${ac_cv_header_locale_h+set}" = set; then
17135 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17136 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17137 if test "${ac_cv_header_locale_h+set}" = set; then
17138 echo $ECHO_N "(cached
) $ECHO_C" >&6
17140 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17141 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17143 # Is the header compilable?
17144 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17145 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17146 cat >conftest.$ac_ext <<_ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 $ac_includes_default
17153 #include <locale.h>
17155 rm -f conftest.$ac_objext
17156 if { (ac_try="$ac_compile"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_compile") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest.$ac_objext; then
17172 ac_header_compiler=yes
17174 echo "$as_me: failed program was
:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17177 ac_header_compiler=no
17180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17182 echo "${ECHO_T}$ac_header_compiler" >&6; }
17184 # Is the header present?
17185 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17186 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 #include <locale.h>
17195 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17203 grep -v '^ *+' conftest.er1 >conftest.err
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17207 (exit $ac_status); } >/dev/null && {
17208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17211 ac_header_preproc=yes
17213 echo "$as_me: failed program was
:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17216 ac_header_preproc=no
17219 rm -f conftest.err conftest.$ac_ext
17220 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17221 echo "${ECHO_T}$ac_header_preproc" >&6; }
17223 # So? What about this header?
17224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17226 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17227 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17228 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17229 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17230 ac_header_preproc=yes
17233 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17234 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17235 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17236 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17237 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17238 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17239 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17240 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17241 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17242 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17243 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17244 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17248 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17249 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17250 if test "${ac_cv_header_locale_h+set}" = set; then
17251 echo $ECHO_N "(cached
) $ECHO_C" >&6
17253 ac_cv_header_locale_h=$ac_header_preproc
17255 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17256 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17262 for ac_func in setlocale
17264 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17265 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17266 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17267 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17268 echo $ECHO_N "(cached
) $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17278 #define $ac_func innocuous_$ac_func
17280 /* System header to define __stub macros and hopefully few prototypes,
17281 which can conflict with char $ac_func (); below.
17282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283 <limits.h> exists even on freestanding compilers. */
17286 # include <limits.h>
17288 # include <assert.h>
17293 /* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17300 /* The GNU C library defines this for functions which it implements
17301 to always fail with ENOSYS. Some functions are actually named
17302 something starting with __ and the normal name is an alias. */
17303 #if defined __stub_$ac_func || defined __stub___$ac_func
17310 return $ac_func ();
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_link") 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext &&
17332 $as_test_x conftest$ac_exeext; then
17333 eval "$as_ac_var=yes"
17335 echo "$as_me: failed program was
:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 eval "$as_ac_var=no
"
17341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17342 conftest$ac_exeext conftest.$ac_ext
17344 ac_res=`eval echo '${'$as_ac_var'}'`
17345 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17346 echo "${ECHO_T}$ac_res" >&6; }
17347 if test `eval echo '${'$as_ac_var'}'` = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17356 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17357 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17358 # Irix 4.0.5F has the header but not the library.
17359 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17362 cat >>confdefs.h <<\_ACEOF
17368 if test $ac_have_func = no; then
17369 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17370 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17371 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17372 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17373 echo $ECHO_N "(cached
) $ECHO_C" >&6
17375 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17376 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17378 # Is the header compilable?
17379 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17380 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17388 #include <inq_stats/cpustats.h>
17390 rm -f conftest.$ac_objext
17391 if { (ac_try="$ac_compile"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_compile") 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest.$ac_objext; then
17407 ac_header_compiler=yes
17409 echo "$as_me: failed program was
:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_compiler=no
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17417 echo "${ECHO_T}$ac_header_compiler" >&6; }
17419 # Is the header present?
17420 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17421 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 #include <inq_stats/cpustats.h>
17430 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17438 grep -v '^ *+' conftest.er1 >conftest.err
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17442 (exit $ac_status); } >/dev/null && {
17443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17446 ac_header_preproc=yes
17448 echo "$as_me: failed program was
:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 ac_header_preproc=no
17454 rm -f conftest.err conftest.$ac_ext
17455 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17456 echo "${ECHO_T}$ac_header_preproc" >&6; }
17458 # So? What about this header?
17459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17461 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17462 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17463 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17464 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17465 ac_header_preproc=yes
17468 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17469 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17470 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17471 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17472 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17473 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17474 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17475 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17476 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17477 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17478 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17479 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17483 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17484 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17485 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17486 echo $ECHO_N "(cached
) $ECHO_C" >&6
17488 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17490 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17491 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17494 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17497 cat >>confdefs.h <<\_ACEOF
17502 cat >>confdefs.h <<\_ACEOF
17511 if test $ac_have_func = no; then
17512 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17513 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17514 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17515 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17516 echo $ECHO_N "(cached
) $ECHO_C" >&6
17518 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17519 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17521 # Is the header compilable?
17522 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17523 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 $ac_includes_default
17531 #include <sys/cpustats.h>
17533 rm -f conftest.$ac_objext
17534 if { (ac_try="$ac_compile"
17535 case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_compile") 2>conftest.er1
17542 grep -v '^ *+' conftest.er1 >conftest.err
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17546 (exit $ac_status); } && {
17547 test -z "$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 } && test -s conftest.$ac_objext; then
17550 ac_header_compiler=yes
17552 echo "$as_me: failed program was
:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_header_compiler=no
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17560 echo "${ECHO_T}$ac_header_compiler" >&6; }
17562 # Is the header present?
17563 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17564 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 #include <sys/cpustats.h>
17573 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17585 (exit $ac_status); } >/dev/null && {
17586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17589 ac_header_preproc=yes
17591 echo "$as_me: failed program was
:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ac_header_preproc=no
17597 rm -f conftest.err conftest.$ac_ext
17598 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17599 echo "${ECHO_T}$ac_header_preproc" >&6; }
17601 # So? What about this header?
17602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17604 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17605 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17606 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17607 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17608 ac_header_preproc=yes
17611 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17612 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17613 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17614 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17615 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17616 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17617 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17618 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17619 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17620 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17621 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17622 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17626 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17627 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17628 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17629 echo $ECHO_N "(cached
) $ECHO_C" >&6
17631 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17633 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17634 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17637 if test $ac_cv_header_sys_cpustats_h = yes; then
17638 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17647 if test $ac_have_func = no; then
17649 for ac_header in mach/mach.h
17651 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17652 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17653 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17654 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17656 echo $ECHO_N "(cached
) $ECHO_C" >&6
17658 ac_res=`eval echo '${'$as_ac_Header'}'`
17659 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17660 echo "${ECHO_T}$ac_res" >&6; }
17662 # Is the header compilable?
17663 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17664 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17665 cat >conftest.$ac_ext <<_ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 $ac_includes_default
17672 #include <$ac_header>
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_compile") 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest.$ac_objext; then
17691 ac_header_compiler=yes
17693 echo "$as_me: failed program was
:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_header_compiler=no
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17701 echo "${ECHO_T}$ac_header_compiler" >&6; }
17703 # Is the header present?
17704 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17705 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 #include <$ac_header>
17714 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17722 grep -v '^ *+' conftest.er1 >conftest.err
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17726 (exit $ac_status); } >/dev/null && {
17727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17730 ac_header_preproc=yes
17732 echo "$as_me: failed program was
:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 ac_header_preproc=no
17738 rm -f conftest.err conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17740 echo "${ECHO_T}$ac_header_preproc" >&6; }
17742 # So? What about this header?
17743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17745 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17746 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17747 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17749 ac_header_preproc=yes
17752 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17753 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17754 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17755 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17756 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17757 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17758 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17759 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17760 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17762 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17763 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17767 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17768 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached
) $ECHO_C" >&6
17772 eval "$as_ac_Header=\
$ac_header_preproc"
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17791 for ac_header in nlist.h
17793 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17794 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17795 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17796 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17797 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17798 echo $ECHO_N "(cached
) $ECHO_C" >&6
17800 ac_res=`eval echo '${'$as_ac_Header'}'`
17801 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17804 # Is the header compilable?
17805 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17806 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17807 cat >conftest.$ac_ext <<_ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 $ac_includes_default
17814 #include <$ac_header>
17816 rm -f conftest.$ac_objext
17817 if { (ac_try="$ac_compile"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_compile") 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest.$ac_objext; then
17833 ac_header_compiler=yes
17835 echo "$as_me: failed program was
:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_header_compiler=no
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17843 echo "${ECHO_T}$ac_header_compiler" >&6; }
17845 # Is the header present?
17846 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17847 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 #include <$ac_header>
17856 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17868 (exit $ac_status); } >/dev/null && {
17869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17872 ac_header_preproc=yes
17874 echo "$as_me: failed program was
:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_header_preproc=no
17880 rm -f conftest.err conftest.$ac_ext
17881 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17882 echo "${ECHO_T}$ac_header_preproc" >&6; }
17884 # So? What about this header?
17885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17887 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17888 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17889 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17891 ac_header_preproc=yes
17894 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17895 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17896 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17897 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17898 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17899 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17900 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17901 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17902 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17904 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17905 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17909 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17910 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17911 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17912 echo $ECHO_N "(cached
) $ECHO_C" >&6
17914 eval "$as_ac_Header=\
$ac_header_preproc"
17916 ac_res=`eval echo '${'$as_ac_Header'}'`
17917 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17918 echo "${ECHO_T}$ac_res" >&6; }
17921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17925 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17926 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17927 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17928 echo $ECHO_N "(cached
) $ECHO_C" >&6
17930 cat >conftest.$ac_ext <<_ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17941 static struct nlist ac_aggr;
17942 if (ac_aggr.n_un.n_name)
17948 rm -f conftest.$ac_objext
17949 if { (ac_try="$ac_compile"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.$ac_objext; then
17965 ac_cv_member_struct_nlist_n_un_n_name=yes
17967 echo "$as_me: failed program was
:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 cat >conftest.$ac_ext <<_ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17981 static struct nlist ac_aggr;
17982 if (sizeof ac_aggr.n_un.n_name)
17988 rm -f conftest.$ac_objext
17989 if { (ac_try="$ac_compile"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_compile") 2>conftest.er1
17997 grep -v '^ *+' conftest.er1 >conftest.err
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18001 (exit $ac_status); } && {
18002 test -z "$ac_c_werror_flag" ||
18003 test ! -s conftest.err
18004 } && test -s conftest.$ac_objext; then
18005 ac_cv_member_struct_nlist_n_un_n_name=yes
18007 echo "$as_me: failed program was
:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18010 ac_cv_member_struct_nlist_n_un_n_name=no
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18019 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18020 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18027 cat >>confdefs.h <<\_ACEOF
18028 #define NLIST_NAME_UNION 1
18042 # Some definitions of getloadavg require that the program be installed setgid.
18043 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18044 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18045 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18046 echo $ECHO_N "(cached
) $ECHO_C" >&6
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18055 #ifdef LDAV_PRIVILEGED
18056 Yowza Am I SETGID yet
18059 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18060 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18061 ac_cv_func_getloadavg_setgid=yes
18063 ac_cv_func_getloadavg_setgid=no
18068 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18069 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18070 if test $ac_cv_func_getloadavg_setgid = yes; then
18073 cat >>confdefs.h <<\_ACEOF
18074 #define GETLOADAVG_PRIVILEGED 1
18081 if test $ac_cv_func_getloadavg_setgid = yes; then
18082 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18083 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18084 if test "${ac_cv_group_kmem+set}" = set; then
18085 echo $ECHO_N "(cached
) $ECHO_C" >&6
18087 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18088 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18089 # If we got an error (system does not support symlinks), try without -L.
18090 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18091 ac_cv_group_kmem=`echo $ac_ls_output \
18092 | sed -ne 's/[ ][ ]*/ /g;
18093 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18097 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18098 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18099 KMEM_GROUP=$ac_cv_group_kmem
18101 if test "x
$ac_save_LIBS" = x; then
18102 GETLOADAVG_LIBS=$LIBS
18104 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18110 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18111 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18112 if test "${ac_cv_sys_largefile_source+set}" = set; then
18113 echo $ECHO_N "(cached
) $ECHO_C" >&6
18116 cat >conftest.$ac_ext <<_ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18126 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (ac_try="$ac_link"
18133 case "(($ac_try" in
18134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135 *) ac_try_echo=$ac_try;;
18137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18138 (eval "$ac_link") 2>conftest.er1
18140 grep -v '^ *+' conftest.er1 >conftest.err
18142 cat conftest.err >&5
18143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18144 (exit $ac_status); } && {
18145 test -z "$ac_c_werror_flag" ||
18146 test ! -s conftest.err
18147 } && test -s conftest$ac_exeext &&
18148 $as_test_x conftest$ac_exeext; then
18149 ac_cv_sys_largefile_source=no; break
18151 echo "$as_me: failed program was
:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18158 conftest$ac_exeext conftest.$ac_ext
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #define _LARGEFILE_SOURCE 1
18170 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest$ac_exeext &&
18192 $as_test_x conftest$ac_exeext; then
18193 ac_cv_sys_largefile_source=1; break
18195 echo "$as_me: failed program was
:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202 conftest$ac_exeext conftest.$ac_ext
18203 ac_cv_sys_largefile_source=unknown
18207 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18208 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18209 case $ac_cv_sys_largefile_source in #(
18212 cat >>confdefs.h <<_ACEOF
18213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18219 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18220 # in glibc 2.1.3, but that breaks too many other things.
18221 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18222 if test $ac_cv_sys_largefile_source != unknown; then
18224 cat >>confdefs.h <<\_ACEOF
18225 #define HAVE_FSEEKO 1
18231 # Configure getopt.
18232 # getopt.m4 serial 10
18234 # The getopt module assume you want GNU getopt, with getopt_long etc,
18235 # rather than vanilla POSIX getopt. This means your your code should
18236 # always include <getopt.h> for the getopt prototypes.
18248 # Prerequisites of lib/getopt*.
18255 for ac_header in getopt.h
18257 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18259 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18260 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18262 echo $ECHO_N "(cached
) $ECHO_C" >&6
18264 ac_res=`eval echo '${'$as_ac_Header'}'`
18265 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18266 echo "${ECHO_T}$ac_res" >&6; }
18268 # Is the header compilable?
18269 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18270 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18278 #include <$ac_header>
18280 rm -f conftest.$ac_objext
18281 if { (ac_try="$ac_compile"
18282 case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_compile") 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18293 (exit $ac_status); } && {
18294 test -z "$ac_c_werror_flag" ||
18295 test ! -s conftest.err
18296 } && test -s conftest.$ac_objext; then
18297 ac_header_compiler=yes
18299 echo "$as_me: failed program was
:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_header_compiler=no
18305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18307 echo "${ECHO_T}$ac_header_compiler" >&6; }
18309 # Is the header present?
18310 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18311 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 #include <$ac_header>
18320 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18332 (exit $ac_status); } >/dev/null && {
18333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18336 ac_header_preproc=yes
18338 echo "$as_me: failed program was
:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_header_preproc=no
18344 rm -f conftest.err conftest.$ac_ext
18345 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18346 echo "${ECHO_T}$ac_header_preproc" >&6; }
18348 # So? What about this header?
18349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18351 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18352 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18353 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18355 ac_header_preproc=yes
18358 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18359 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18360 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18361 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18362 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18363 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18365 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18369 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18373 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18374 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached
) $ECHO_C" >&6
18378 eval "$as_ac_Header=\
$ac_header_preproc"
18380 ac_res=`eval echo '${'$as_ac_Header'}'`
18381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18382 echo "${ECHO_T}$ac_res" >&6; }
18385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18386 cat >>confdefs.h <<_ACEOF
18387 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18396 if test -z "$GETOPT_H"; then
18398 for ac_func in getopt_long_only
18400 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18401 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18402 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18403 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18404 echo $ECHO_N "(cached
) $ECHO_C" >&6
18406 cat >conftest.$ac_ext <<_ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18414 #define $ac_func innocuous_$ac_func
18416 /* System header to define __stub macros and hopefully few prototypes,
18417 which can conflict with char $ac_func (); below.
18418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18419 <limits.h> exists even on freestanding compilers. */
18422 # include <limits.h>
18424 # include <assert.h>
18429 /* Override any GCC internal prototype to avoid an error.
18430 Use char because int might match the return type of a GCC
18431 builtin and then its argument prototype would still apply. */
18436 /* The GNU C library defines this for functions which it implements
18437 to always fail with ENOSYS. Some functions are actually named
18438 something starting with __ and the normal name is an alias. */
18439 #if defined __stub_$ac_func || defined __stub___$ac_func
18446 return $ac_func ();
18451 rm -f conftest.$ac_objext conftest$ac_exeext
18452 if { (ac_try="$ac_link"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_link") 2>conftest.er1
18460 grep -v '^ *+' conftest.er1 >conftest.err
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18464 (exit $ac_status); } && {
18465 test -z "$ac_c_werror_flag" ||
18466 test ! -s conftest.err
18467 } && test -s conftest$ac_exeext &&
18468 $as_test_x conftest$ac_exeext; then
18469 eval "$as_ac_var=yes"
18471 echo "$as_me: failed program was
:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 eval "$as_ac_var=no
"
18477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18478 conftest$ac_exeext conftest.$ac_ext
18480 ac_res=`eval echo '${'$as_ac_var'}'`
18481 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18482 echo "${ECHO_T}$ac_res" >&6; }
18483 if test `eval echo '${'$as_ac_var'}'` = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18495 if test -z "$GETOPT_H"; then
18496 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18497 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18498 if test "${ac_cv_have_decl_optreset+set}" = set; then
18499 echo $ECHO_N "(cached
) $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include <getopt.h>
18520 rm -f conftest.$ac_objext
18521 if { (ac_try="$ac_compile"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_compile") 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest.$ac_objext; then
18537 ac_cv_have_decl_optreset=yes
18539 echo "$as_me: failed program was
:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_cv_have_decl_optreset=no
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18547 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18548 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18549 if test $ac_cv_have_decl_optreset = yes; then
18555 if test -z "$GETOPT_H"; then
18556 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18557 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18558 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18559 echo $ECHO_N "(cached
) $ECHO_C" >&6
18561 if test "$cross_compiling" = yes; then
18562 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18563 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18564 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18565 echo $ECHO_N "(cached
) $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 #include <getopt.h>
18578 #ifndef getopt_clip
18579 (void) getopt_clip;
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_compile") 2>conftest.er1
18595 grep -v '^ *+' conftest.er1 >conftest.err
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest.$ac_objext; then
18603 ac_cv_have_decl_getopt_clip=yes
18605 echo "$as_me: failed program was
:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_cv_have_decl_getopt_clip=no
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18614 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18615 if test $ac_cv_have_decl_getopt_clip = yes; then
18616 gl_cv_func_gnu_getopt=no
18618 gl_cv_func_gnu_getopt=yes
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 #include <getopt.h>
18634 myargv[0] = "conftest
";
18637 return getopt (2, myargv, "+a
") != '?';
18643 rm -f conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>&5
18652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 gl_cv_func_gnu_getopt=yes
18665 echo "$as_me: program exited with status
$ac_status" >&5
18666 echo "$as_me: failed program was
:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ( exit $ac_status )
18670 gl_cv_func_gnu_getopt=no
18672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18677 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18678 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18679 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18686 if test -n "$GETOPT_H"; then
18691 cat >>confdefs.h <<\_ACEOF
18692 #define __GETOPT_PREFIX rpl_
18698 GETOPTOBJS='getopt.o getopt1.o'
18705 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18706 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18707 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18708 echo $ECHO_N "(cached
) $ECHO_C" >&6
18710 # Use it with a single arg.
18711 cat >conftest.$ac_ext <<_ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 $ac_includes_default
18726 rm -f conftest.$ac_objext
18727 if { (ac_try="$ac_compile"
18728 case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_compile") 2>conftest.er1
18735 grep -v '^ *+' conftest.er1 >conftest.err
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18739 (exit $ac_status); } && {
18740 test -z "$ac_c_werror_flag" ||
18741 test ! -s conftest.err
18742 } && test -s conftest.$ac_objext; then
18743 ac_cv_func_getpgrp_void=no
18745 echo "$as_me: failed program was
:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 ac_cv_func_getpgrp_void=yes
18751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18755 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18756 if test $ac_cv_func_getpgrp_void = yes; then
18758 cat >>confdefs.h <<\_ACEOF
18759 #define GETPGRP_VOID 1
18766 for ac_func in strftime
18768 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18769 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18770 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18771 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18772 echo $ECHO_N "(cached
) $ECHO_C" >&6
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18782 #define $ac_func innocuous_$ac_func
18784 /* System header to define __stub macros and hopefully few prototypes,
18785 which can conflict with char $ac_func (); below.
18786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18787 <limits.h> exists even on freestanding compilers. */
18790 # include <limits.h>
18792 # include <assert.h>
18797 /* Override any GCC internal prototype to avoid an error.
18798 Use char because int might match the return type of a GCC
18799 builtin and then its argument prototype would still apply. */
18804 /* The GNU C library defines this for functions which it implements
18805 to always fail with ENOSYS. Some functions are actually named
18806 something starting with __ and the normal name is an alias. */
18807 #if defined __stub_$ac_func || defined __stub___$ac_func
18814 return $ac_func ();
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (ac_try="$ac_link"
18821 case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_link") 2>conftest.er1
18828 grep -v '^ *+' conftest.er1 >conftest.err
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18832 (exit $ac_status); } && {
18833 test -z "$ac_c_werror_flag" ||
18834 test ! -s conftest.err
18835 } && test -s conftest$ac_exeext &&
18836 $as_test_x conftest$ac_exeext; then
18837 eval "$as_ac_var=yes"
18839 echo "$as_me: failed program was
:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 eval "$as_ac_var=no
"
18845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846 conftest$ac_exeext conftest.$ac_ext
18848 ac_res=`eval echo '${'$as_ac_var'}'`
18849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18850 echo "${ECHO_T}$ac_res" >&6; }
18851 if test `eval echo '${'$as_ac_var'}'` = yes; then
18852 cat >>confdefs.h <<_ACEOF
18853 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18857 # strftime is in -lintl on SCO UNIX.
18858 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18859 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18860 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18861 echo $ECHO_N "(cached
) $ECHO_C" >&6
18863 ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-lintl $LIBS"
18865 cat >conftest.$ac_ext <<_ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18872 /* Override any GCC internal prototype to avoid an error.
18873 Use char because int might match the return type of a GCC
18874 builtin and then its argument prototype would still apply. */
18882 return strftime ();
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (ac_try="$ac_link"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18896 grep -v '^ *+' conftest.er1 >conftest.err
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18900 (exit $ac_status); } && {
18901 test -z "$ac_c_werror_flag" ||
18902 test ! -s conftest.err
18903 } && test -s conftest$ac_exeext &&
18904 $as_test_x conftest$ac_exeext; then
18905 ac_cv_lib_intl_strftime=yes
18907 echo "$as_me: failed program was
:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_lib_intl_strftime=no
18913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18914 conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18917 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18918 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18919 if test $ac_cv_lib_intl_strftime = yes; then
18920 cat >>confdefs.h <<\_ACEOF
18921 #define HAVE_STRFTIME 1
18924 LIBS="-lintl $LIBS"
18933 for ac_func in grantpt
18935 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18936 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18937 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18938 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18939 echo $ECHO_N "(cached
) $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18949 #define $ac_func innocuous_$ac_func
18951 /* System header to define __stub macros and hopefully few prototypes,
18952 which can conflict with char $ac_func (); below.
18953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18954 <limits.h> exists even on freestanding compilers. */
18957 # include <limits.h>
18959 # include <assert.h>
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18971 /* The GNU C library defines this for functions which it implements
18972 to always fail with ENOSYS. Some functions are actually named
18973 something starting with __ and the normal name is an alias. */
18974 #if defined __stub_$ac_func || defined __stub___$ac_func
18981 return $ac_func ();
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_link") 2>conftest.er1
18995 grep -v '^ *+' conftest.er1 >conftest.err
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest$ac_exeext &&
19003 $as_test_x conftest$ac_exeext; then
19004 eval "$as_ac_var=yes"
19006 echo "$as_me: failed program was
:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19009 eval "$as_ac_var=no
"
19012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19013 conftest$ac_exeext conftest.$ac_ext
19015 ac_res=`eval echo '${'$as_ac_var'}'`
19016 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19017 echo "${ECHO_T}$ac_res" >&6; }
19018 if test `eval echo '${'$as_ac_var'}'` = yes; then
19019 cat >>confdefs.h <<_ACEOF
19020 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19027 # PTY-related GNU extensions.
19029 for ac_func in getpt
19031 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19032 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19033 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19034 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19035 echo $ECHO_N "(cached
) $ECHO_C" >&6
19037 cat >conftest.$ac_ext <<_ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19045 #define $ac_func innocuous_$ac_func
19047 /* System header to define __stub macros and hopefully few prototypes,
19048 which can conflict with char $ac_func (); below.
19049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19050 <limits.h> exists even on freestanding compilers. */
19053 # include <limits.h>
19055 # include <assert.h>
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19067 /* The GNU C library defines this for functions which it implements
19068 to always fail with ENOSYS. Some functions are actually named
19069 something starting with __ and the normal name is an alias. */
19070 #if defined __stub_$ac_func || defined __stub___$ac_func
19077 return $ac_func ();
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19091 grep -v '^ *+' conftest.er1 >conftest.err
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19095 (exit $ac_status); } && {
19096 test -z "$ac_c_werror_flag" ||
19097 test ! -s conftest.err
19098 } && test -s conftest$ac_exeext &&
19099 $as_test_x conftest$ac_exeext; then
19100 eval "$as_ac_var=yes"
19102 echo "$as_me: failed program was
:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 eval "$as_ac_var=no
"
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109 conftest$ac_exeext conftest.$ac_ext
19111 ac_res=`eval echo '${'$as_ac_var'}'`
19112 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19113 echo "${ECHO_T}$ac_res" >&6; }
19114 if test `eval echo '${'$as_ac_var'}'` = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19123 # Check this now, so that we will NOT find the above functions in ncurses.
19124 # That is because we have not set up to link ncurses in lib-src.
19125 # It's better to believe a function is not available
19126 # than to expect to find it in ncurses.
19128 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19129 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19130 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19131 echo $ECHO_N "(cached
) $ECHO_C" >&6
19133 ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-lncurses $LIBS"
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19142 /* Override any GCC internal prototype to avoid an error.
19143 Use char because int might match the return type of a GCC
19144 builtin and then its argument prototype would still apply. */
19157 rm -f conftest.$ac_objext conftest$ac_exeext
19158 if { (ac_try="$ac_link"
19159 case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_link") 2>conftest.er1
19166 grep -v '^ *+' conftest.er1 >conftest.err
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19170 (exit $ac_status); } && {
19171 test -z "$ac_c_werror_flag" ||
19172 test ! -s conftest.err
19173 } && test -s conftest$ac_exeext &&
19174 $as_test_x conftest$ac_exeext; then
19175 ac_cv_lib_ncurses_tparm=yes
19177 echo "$as_me: failed program was
:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19180 ac_cv_lib_ncurses_tparm=no
19183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19184 conftest$ac_exeext conftest.$ac_ext
19185 LIBS=$ac_check_lib_save_LIBS
19187 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19188 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19189 if test $ac_cv_lib_ncurses_tparm = yes; then
19190 cat >>confdefs.h <<_ACEOF
19191 #define HAVE_LIBNCURSES 1
19194 LIBS="-lncurses $LIBS"
19199 # Do we need the Hesiod library to provide the support routines?
19200 if test "$with_hesiod" = yes ; then
19201 # Don't set $LIBS here -- see comments above.
19203 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19204 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19205 if test "${ac_cv_func_res_send+set}" = set; then
19206 echo $ECHO_N "(cached
) $ECHO_C" >&6
19208 cat >conftest.$ac_ext <<_ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19214 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19216 #define res_send innocuous_res_send
19218 /* System header to define __stub macros and hopefully few prototypes,
19219 which can conflict with char res_send (); below.
19220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19221 <limits.h> exists even on freestanding compilers. */
19224 # include <limits.h>
19226 # include <assert.h>
19231 /* Override any GCC internal prototype to avoid an error.
19232 Use char because int might match the return type of a GCC
19233 builtin and then its argument prototype would still apply. */
19238 /* The GNU C library defines this for functions which it implements
19239 to always fail with ENOSYS. Some functions are actually named
19240 something starting with __ and the normal name is an alias. */
19241 #if defined __stub_res_send || defined __stub___res_send
19248 return res_send ();
19253 rm -f conftest.$ac_objext conftest$ac_exeext
19254 if { (ac_try="$ac_link"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_link") 2>conftest.er1
19262 grep -v '^ *+' conftest.er1 >conftest.err
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19266 (exit $ac_status); } && {
19267 test -z "$ac_c_werror_flag" ||
19268 test ! -s conftest.err
19269 } && test -s conftest$ac_exeext &&
19270 $as_test_x conftest$ac_exeext; then
19271 ac_cv_func_res_send=yes
19273 echo "$as_me: failed program was
:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_func_res_send=no
19279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19280 conftest$ac_exeext conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19283 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19284 if test $ac_cv_func_res_send = yes; then
19287 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19288 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19289 if test "${ac_cv_func___res_send+set}" = set; then
19290 echo $ECHO_N "(cached
) $ECHO_C" >&6
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19300 #define __res_send innocuous___res_send
19302 /* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char __res_send (); below.
19304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19305 <limits.h> exists even on freestanding compilers. */
19308 # include <limits.h>
19310 # include <assert.h>
19315 /* Override any GCC internal prototype to avoid an error.
19316 Use char because int might match the return type of a GCC
19317 builtin and then its argument prototype would still apply. */
19321 char __res_send ();
19322 /* The GNU C library defines this for functions which it implements
19323 to always fail with ENOSYS. Some functions are actually named
19324 something starting with __ and the normal name is an alias. */
19325 #if defined __stub___res_send || defined __stub_____res_send
19332 return __res_send ();
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (ac_try="$ac_link"
19339 case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_link") 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19350 (exit $ac_status); } && {
19351 test -z "$ac_c_werror_flag" ||
19352 test ! -s conftest.err
19353 } && test -s conftest$ac_exeext &&
19354 $as_test_x conftest$ac_exeext; then
19355 ac_cv_func___res_send=yes
19357 echo "$as_me: failed program was
:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_func___res_send=no
19363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19364 conftest$ac_exeext conftest.$ac_ext
19366 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19367 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19368 if test $ac_cv_func___res_send = yes; then
19371 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19372 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19373 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19374 echo $ECHO_N "(cached
) $ECHO_C" >&6
19376 ac_check_lib_save_LIBS=$LIBS
19377 LIBS="-lresolv $LIBS"
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19385 /* Override any GCC internal prototype to avoid an error.
19386 Use char because int might match the return type of a GCC
19387 builtin and then its argument prototype would still apply. */
19395 return res_send ();
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (ac_try="$ac_link"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_link") 2>conftest.er1
19409 grep -v '^ *+' conftest.er1 >conftest.err
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest$ac_exeext &&
19417 $as_test_x conftest$ac_exeext; then
19418 ac_cv_lib_resolv_res_send=yes
19420 echo "$as_me: failed program was
:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 ac_cv_lib_resolv_res_send=no
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19430 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19431 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19432 if test $ac_cv_lib_resolv_res_send = yes; then
19435 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19436 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19437 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19438 echo $ECHO_N "(cached
) $ECHO_C" >&6
19440 ac_check_lib_save_LIBS=$LIBS
19441 LIBS="-lresolv $LIBS"
19442 cat >conftest.$ac_ext <<_ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19449 /* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19455 char __res_send ();
19459 return __res_send ();
19464 rm -f conftest.$ac_objext conftest$ac_exeext
19465 if { (ac_try="$ac_link"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>conftest.er1
19473 grep -v '^ *+' conftest.er1 >conftest.err
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest$ac_exeext &&
19481 $as_test_x conftest$ac_exeext; then
19482 ac_cv_lib_resolv___res_send=yes
19484 echo "$as_me: failed program was
:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_cv_lib_resolv___res_send=no
19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491 conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19494 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19495 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19496 if test $ac_cv_lib_resolv___res_send = yes; then
19506 if test "$resolv" = yes ; then
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE_LIBRESOLV 1
19516 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19517 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19518 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19519 echo $ECHO_N "(cached
) $ECHO_C" >&6
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19529 #define hes_getmailhost innocuous_hes_getmailhost
19531 /* System header to define __stub macros and hopefully few prototypes,
19532 which can conflict with char hes_getmailhost (); below.
19533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19534 <limits.h> exists even on freestanding compilers. */
19537 # include <limits.h>
19539 # include <assert.h>
19542 #undef hes_getmailhost
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19550 char hes_getmailhost ();
19551 /* The GNU C library defines this for functions which it implements
19552 to always fail with ENOSYS. Some functions are actually named
19553 something starting with __ and the normal name is an alias. */
19554 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19561 return hes_getmailhost ();
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest$ac_exeext &&
19583 $as_test_x conftest$ac_exeext; then
19584 ac_cv_func_hes_getmailhost=yes
19586 echo "$as_me: failed program was
:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_func_hes_getmailhost=no
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593 conftest$ac_exeext conftest.$ac_ext
19595 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19596 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19597 if test $ac_cv_func_hes_getmailhost = yes; then
19600 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19601 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19602 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19603 echo $ECHO_N "(cached
) $ECHO_C" >&6
19605 ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lhesiod $RESOLVLIB $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 /* Override any GCC internal prototype to avoid an error.
19615 Use char because int might match the return type of a GCC
19616 builtin and then its argument prototype would still apply. */
19620 char hes_getmailhost ();
19624 return hes_getmailhost ();
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext &&
19646 $as_test_x conftest$ac_exeext; then
19647 ac_cv_lib_hesiod_hes_getmailhost=yes
19649 echo "$as_me: failed program was
:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 ac_cv_lib_hesiod_hes_getmailhost=no
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656 conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_check_lib_save_LIBS
19659 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19660 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19661 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_LIBHESIOD 1
19675 # These tell us which Kerberos-related libraries to use.
19676 if test "${with_kerberos+set}" = set; then
19678 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19679 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19680 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19681 echo $ECHO_N "(cached
) $ECHO_C" >&6
19683 ac_check_lib_save_LIBS=$LIBS
19684 LIBS="-lcom_err $LIBS"
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (ac_try="$ac_link"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_link") 2>conftest.er1
19716 grep -v '^ *+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19720 (exit $ac_status); } && {
19721 test -z "$ac_c_werror_flag" ||
19722 test ! -s conftest.err
19723 } && test -s conftest$ac_exeext &&
19724 $as_test_x conftest$ac_exeext; then
19725 ac_cv_lib_com_err_com_err=yes
19727 echo "$as_me: failed program was
:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19730 ac_cv_lib_com_err_com_err=no
19733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19734 conftest$ac_exeext conftest.$ac_ext
19735 LIBS=$ac_check_lib_save_LIBS
19737 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19738 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19739 if test $ac_cv_lib_com_err_com_err = yes; then
19740 cat >>confdefs.h <<_ACEOF
19741 #define HAVE_LIBCOM_ERR 1
19744 LIBS="-lcom_err $LIBS"
19749 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19750 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19751 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19752 echo $ECHO_N "(cached
) $ECHO_C" >&6
19754 ac_check_lib_save_LIBS=$LIBS
19755 LIBS="-lk5crypto $LIBS"
19756 cat >conftest.$ac_ext <<_ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19763 /* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19769 char mit_des_cbc_encrypt ();
19773 return mit_des_cbc_encrypt ();
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19798 echo "$as_me: failed program was
:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19806 LIBS=$ac_check_lib_save_LIBS
19808 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19809 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19810 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_LIBK5CRYPTO 1
19815 LIBS="-lk5crypto $LIBS"
19820 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19821 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19822 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19823 echo $ECHO_N "(cached
) $ECHO_C" >&6
19825 ac_check_lib_save_LIBS=$LIBS
19826 LIBS="-lcrypto $LIBS"
19827 cat >conftest.$ac_ext <<_ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19834 /* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19840 char mit_des_cbc_encrypt ();
19844 return mit_des_cbc_encrypt ();
19849 rm -f conftest.$ac_objext conftest$ac_exeext
19850 if { (ac_try="$ac_link"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_link") 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19862 (exit $ac_status); } && {
19863 test -z "$ac_c_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest$ac_exeext &&
19866 $as_test_x conftest$ac_exeext; then
19867 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19869 echo "$as_me: failed program was
:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19879 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19880 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19881 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_LIBCRYPTO 1
19886 LIBS="-lcrypto $LIBS"
19891 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19892 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19893 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19894 echo $ECHO_N "(cached
) $ECHO_C" >&6
19896 ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lkrb5 $LIBS"
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19911 char krb5_init_context ();
19915 return krb5_init_context ();
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_link") 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19933 (exit $ac_status); } && {
19934 test -z "$ac_c_werror_flag" ||
19935 test ! -s conftest.err
19936 } && test -s conftest$ac_exeext &&
19937 $as_test_x conftest$ac_exeext; then
19938 ac_cv_lib_krb5_krb5_init_context=yes
19940 echo "$as_me: failed program was
:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_cv_lib_krb5_krb5_init_context=no
19946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19947 conftest$ac_exeext conftest.$ac_ext
19948 LIBS=$ac_check_lib_save_LIBS
19950 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19951 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19952 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19953 cat >>confdefs.h <<_ACEOF
19954 #define HAVE_LIBKRB5 1
19957 LIBS="-lkrb5 $LIBS"
19961 if test "${with_kerberos5+set}" != set; then
19963 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19964 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19965 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19966 echo $ECHO_N "(cached
) $ECHO_C" >&6
19968 ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-ldes425 $LIBS"
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 /* Override any GCC internal prototype to avoid an error.
19978 Use char because int might match the return type of a GCC
19979 builtin and then its argument prototype would still apply. */
19983 char des_cbc_encrypt ();
19987 return des_cbc_encrypt ();
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext &&
20009 $as_test_x conftest$ac_exeext; then
20010 ac_cv_lib_des425_des_cbc_encrypt=yes
20012 echo "$as_me: failed program was
:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_cv_lib_des425_des_cbc_encrypt=no
20018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20020 LIBS=$ac_check_lib_save_LIBS
20022 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20023 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20024 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define HAVE_LIBDES425 1
20029 LIBS="-ldes425 $LIBS"
20033 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20034 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20035 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20036 echo $ECHO_N "(cached
) $ECHO_C" >&6
20038 ac_check_lib_save_LIBS=$LIBS
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20047 /* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20053 char des_cbc_encrypt ();
20057 return des_cbc_encrypt ();
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (ac_try="$ac_link"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_link") 2>conftest.er1
20071 grep -v '^ *+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest$ac_exeext &&
20079 $as_test_x conftest$ac_exeext; then
20080 ac_cv_lib_des_des_cbc_encrypt=yes
20082 echo "$as_me: failed program was
:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_cv_lib_des_des_cbc_encrypt=no
20088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20089 conftest$ac_exeext conftest.$ac_ext
20090 LIBS=$ac_check_lib_save_LIBS
20092 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20093 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20094 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE_LIBDES 1
20106 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20107 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20108 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20109 echo $ECHO_N "(cached
) $ECHO_C" >&6
20111 ac_check_lib_save_LIBS=$LIBS
20112 LIBS="-lkrb4 $LIBS"
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20120 /* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20126 char krb_get_cred ();
20130 return krb_get_cred ();
20135 rm -f conftest.$ac_objext conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>conftest.er1
20144 grep -v '^ *+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20148 (exit $ac_status); } && {
20149 test -z "$ac_c_werror_flag" ||
20150 test ! -s conftest.err
20151 } && test -s conftest$ac_exeext &&
20152 $as_test_x conftest$ac_exeext; then
20153 ac_cv_lib_krb4_krb_get_cred=yes
20155 echo "$as_me: failed program was
:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ac_cv_lib_krb4_krb_get_cred=no
20161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20162 conftest$ac_exeext conftest.$ac_ext
20163 LIBS=$ac_check_lib_save_LIBS
20165 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20166 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20167 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20168 cat >>confdefs.h <<_ACEOF
20169 #define HAVE_LIBKRB4 1
20172 LIBS="-lkrb4 $LIBS"
20176 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20177 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20178 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20179 echo $ECHO_N "(cached
) $ECHO_C" >&6
20181 ac_check_lib_save_LIBS=$LIBS
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20190 /* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20196 char krb_get_cred ();
20200 return krb_get_cred ();
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1 >conftest.err
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext &&
20222 $as_test_x conftest$ac_exeext; then
20223 ac_cv_lib_krb_krb_get_cred=yes
20225 echo "$as_me: failed program was
:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_cv_lib_krb_krb_get_cred=no
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20233 LIBS=$ac_check_lib_save_LIBS
20235 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20236 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20237 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define HAVE_LIBKRB 1
20250 if test "${with_kerberos5+set}" = set; then
20252 for ac_header in krb5.h
20254 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20256 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20257 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20259 echo $ECHO_N "(cached
) $ECHO_C" >&6
20261 ac_res=`eval echo '${'$as_ac_Header'}'`
20262 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20263 echo "${ECHO_T}$ac_res" >&6; }
20265 # Is the header compilable?
20266 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20267 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20268 cat >conftest.$ac_ext <<_ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 $ac_includes_default
20275 #include <$ac_header>
20277 rm -f conftest.$ac_objext
20278 if { (ac_try="$ac_compile"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_compile") 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest.$ac_objext; then
20294 ac_header_compiler=yes
20296 echo "$as_me: failed program was
:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_header_compiler=no
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20304 echo "${ECHO_T}$ac_header_compiler" >&6; }
20306 # Is the header present?
20307 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20308 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 #include <$ac_header>
20317 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20318 case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20325 grep -v '^ *+' conftest.er1 >conftest.err
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20329 (exit $ac_status); } >/dev/null && {
20330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20331 test ! -s conftest.err
20333 ac_header_preproc=yes
20335 echo "$as_me: failed program was
:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20338 ac_header_preproc=no
20341 rm -f conftest.err conftest.$ac_ext
20342 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20343 echo "${ECHO_T}$ac_header_preproc" >&6; }
20345 # So? What about this header?
20346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20348 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20349 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20350 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20352 ac_header_preproc=yes
20355 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20356 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20357 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20358 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20359 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20360 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20361 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20362 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20363 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20365 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20366 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20370 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20371 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20372 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20373 echo $ECHO_N "(cached
) $ECHO_C" >&6
20375 eval "$as_ac_Header=\
$ac_header_preproc"
20377 ac_res=`eval echo '${'$as_ac_Header'}'`
20378 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20379 echo "${ECHO_T}$ac_res" >&6; }
20382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20383 cat >>confdefs.h <<_ACEOF
20384 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20393 for ac_header in des.h
20395 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20396 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20397 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20398 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20399 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20400 echo $ECHO_N "(cached
) $ECHO_C" >&6
20402 ac_res=`eval echo '${'$as_ac_Header'}'`
20403 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20404 echo "${ECHO_T}$ac_res" >&6; }
20406 # Is the header compilable?
20407 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20408 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 $ac_includes_default
20416 #include <$ac_header>
20418 rm -f conftest.$ac_objext
20419 if { (ac_try="$ac_compile"
20420 case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_compile") 2>conftest.er1
20427 grep -v '^ *+' conftest.er1 >conftest.err
20429 cat conftest.err >&5
20430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20431 (exit $ac_status); } && {
20432 test -z "$ac_c_werror_flag" ||
20433 test ! -s conftest.err
20434 } && test -s conftest.$ac_objext; then
20435 ac_header_compiler=yes
20437 echo "$as_me: failed program was
:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20440 ac_header_compiler=no
20443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20445 echo "${ECHO_T}$ac_header_compiler" >&6; }
20447 # Is the header present?
20448 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20449 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 #include <$ac_header>
20458 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20466 grep -v '^ *+' conftest.er1 >conftest.err
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20470 (exit $ac_status); } >/dev/null && {
20471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20474 ac_header_preproc=yes
20476 echo "$as_me: failed program was
:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20479 ac_header_preproc=no
20482 rm -f conftest.err conftest.$ac_ext
20483 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20484 echo "${ECHO_T}$ac_header_preproc" >&6; }
20486 # So? What about this header?
20487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20489 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20490 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20491 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20493 ac_header_preproc=yes
20496 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20497 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20498 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20499 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20500 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20501 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20502 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20503 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20504 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20506 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20507 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20511 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20512 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20513 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20514 echo $ECHO_N "(cached
) $ECHO_C" >&6
20516 eval "$as_ac_Header=\
$ac_header_preproc"
20518 ac_res=`eval echo '${'$as_ac_Header'}'`
20519 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20520 echo "${ECHO_T}$ac_res" >&6; }
20523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20530 for ac_header in kerberosIV/des.h
20532 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20533 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20534 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20535 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20536 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20537 echo $ECHO_N "(cached
) $ECHO_C" >&6
20539 ac_res=`eval echo '${'$as_ac_Header'}'`
20540 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20541 echo "${ECHO_T}$ac_res" >&6; }
20543 # Is the header compilable?
20544 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20545 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 $ac_includes_default
20553 #include <$ac_header>
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_compile") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20568 (exit $ac_status); } && {
20569 test -z "$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 } && test -s conftest.$ac_objext; then
20572 ac_header_compiler=yes
20574 echo "$as_me: failed program was
:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_header_compiler=no
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20582 echo "${ECHO_T}$ac_header_compiler" >&6; }
20584 # Is the header present?
20585 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20586 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <$ac_header>
20595 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20596 case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20603 grep -v '^ *+' conftest.er1 >conftest.err
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20607 (exit $ac_status); } >/dev/null && {
20608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20609 test ! -s conftest.err
20611 ac_header_preproc=yes
20613 echo "$as_me: failed program was
:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ac_header_preproc=no
20619 rm -f conftest.err conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20621 echo "${ECHO_T}$ac_header_preproc" >&6; }
20623 # So? What about this header?
20624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20626 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20627 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20628 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20630 ac_header_preproc=yes
20633 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20634 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20635 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20636 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20637 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20638 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20639 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20640 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20641 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20643 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20644 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20648 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20649 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20650 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20651 echo $ECHO_N "(cached
) $ECHO_C" >&6
20653 eval "$as_ac_Header=\
$ac_header_preproc"
20655 ac_res=`eval echo '${'$as_ac_Header'}'`
20656 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20657 echo "${ECHO_T}$ac_res" >&6; }
20660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20661 cat >>confdefs.h <<_ACEOF
20662 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20667 for ac_header in kerberos/des.h
20669 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20671 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20672 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20673 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20674 echo $ECHO_N "(cached
) $ECHO_C" >&6
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20680 # Is the header compilable?
20681 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20682 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 $ac_includes_default
20690 #include <$ac_header>
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_header_compiler=yes
20711 echo "$as_me: failed program was
:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_header_compiler=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6; }
20721 # Is the header present?
20722 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20723 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <$ac_header>
20732 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20744 (exit $ac_status); } >/dev/null && {
20745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20748 ac_header_preproc=yes
20750 echo "$as_me: failed program was
:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_header_preproc=no
20756 rm -f conftest.err conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20758 echo "${ECHO_T}$ac_header_preproc" >&6; }
20760 # So? What about this header?
20761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20764 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20765 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20767 ac_header_preproc=yes
20770 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20771 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20772 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20773 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20774 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20775 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20776 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20777 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20778 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20781 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20785 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20786 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20788 echo $ECHO_N "(cached
) $ECHO_C" >&6
20790 eval "$as_ac_Header=\
$ac_header_preproc"
20792 ac_res=`eval echo '${'$as_ac_Header'}'`
20793 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20794 echo "${ECHO_T}$ac_res" >&6; }
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20815 for ac_header in krb.h
20817 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20819 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20820 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20821 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20822 echo $ECHO_N "(cached
) $ECHO_C" >&6
20824 ac_res=`eval echo '${'$as_ac_Header'}'`
20825 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20826 echo "${ECHO_T}$ac_res" >&6; }
20828 # Is the header compilable?
20829 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20830 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 $ac_includes_default
20838 #include <$ac_header>
20840 rm -f conftest.$ac_objext
20841 if { (ac_try="$ac_compile"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_compile") 2>conftest.er1
20849 grep -v '^ *+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest.$ac_objext; then
20857 ac_header_compiler=yes
20859 echo "$as_me: failed program was
:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_header_compiler=no
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20866 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20867 echo "${ECHO_T}$ac_header_compiler" >&6; }
20869 # Is the header present?
20870 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20871 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20872 cat >conftest.$ac_ext <<_ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 #include <$ac_header>
20880 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20888 grep -v '^ *+' conftest.er1 >conftest.err
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20892 (exit $ac_status); } >/dev/null && {
20893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20894 test ! -s conftest.err
20896 ac_header_preproc=yes
20898 echo "$as_me: failed program was
:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901 ac_header_preproc=no
20904 rm -f conftest.err conftest.$ac_ext
20905 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20906 echo "${ECHO_T}$ac_header_preproc" >&6; }
20908 # So? What about this header?
20909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20911 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20912 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20913 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20915 ac_header_preproc=yes
20918 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20919 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20920 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20921 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20922 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20923 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20924 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20925 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20926 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20928 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20929 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20933 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20934 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20936 echo $ECHO_N "(cached
) $ECHO_C" >&6
20938 eval "$as_ac_Header=\
$ac_header_preproc"
20940 ac_res=`eval echo '${'$as_ac_Header'}'`
20941 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20942 echo "${ECHO_T}$ac_res" >&6; }
20945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20946 cat >>confdefs.h <<_ACEOF
20947 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20952 for ac_header in kerberosIV/krb.h
20954 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20955 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20956 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20957 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20958 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20959 echo $ECHO_N "(cached
) $ECHO_C" >&6
20961 ac_res=`eval echo '${'$as_ac_Header'}'`
20962 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20963 echo "${ECHO_T}$ac_res" >&6; }
20965 # Is the header compilable?
20966 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20967 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20968 cat >conftest.$ac_ext <<_ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 $ac_includes_default
20975 #include <$ac_header>
20977 rm -f conftest.$ac_objext
20978 if { (ac_try="$ac_compile"
20979 case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_compile") 2>conftest.er1
20986 grep -v '^ *+' conftest.er1 >conftest.err
20988 cat conftest.err >&5
20989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20990 (exit $ac_status); } && {
20991 test -z "$ac_c_werror_flag" ||
20992 test ! -s conftest.err
20993 } && test -s conftest.$ac_objext; then
20994 ac_header_compiler=yes
20996 echo "$as_me: failed program was
:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ac_header_compiler=no
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21004 echo "${ECHO_T}$ac_header_compiler" >&6; }
21006 # Is the header present?
21007 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21008 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21009 cat >conftest.$ac_ext <<_ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 #include <$ac_header>
21017 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21018 case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21025 grep -v '^ *+' conftest.er1 >conftest.err
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21029 (exit $ac_status); } >/dev/null && {
21030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21031 test ! -s conftest.err
21033 ac_header_preproc=yes
21035 echo "$as_me: failed program was
:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21038 ac_header_preproc=no
21041 rm -f conftest.err conftest.$ac_ext
21042 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21043 echo "${ECHO_T}$ac_header_preproc" >&6; }
21045 # So? What about this header?
21046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21048 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21049 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21050 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21052 ac_header_preproc=yes
21055 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21056 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21057 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21058 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21059 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21060 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21061 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21062 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21063 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21065 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21066 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21070 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21071 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21073 echo $ECHO_N "(cached
) $ECHO_C" >&6
21075 eval "$as_ac_Header=\
$ac_header_preproc"
21077 ac_res=`eval echo '${'$as_ac_Header'}'`
21078 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21079 echo "${ECHO_T}$ac_res" >&6; }
21082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21083 cat >>confdefs.h <<_ACEOF
21084 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21089 for ac_header in kerberos/krb.h
21091 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21092 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21093 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21094 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21095 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21096 echo $ECHO_N "(cached
) $ECHO_C" >&6
21098 ac_res=`eval echo '${'$as_ac_Header'}'`
21099 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21102 # Is the header compilable?
21103 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21104 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21105 cat >conftest.$ac_ext <<_ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21111 $ac_includes_default
21112 #include <$ac_header>
21114 rm -f conftest.$ac_objext
21115 if { (ac_try="$ac_compile"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_compile") 2>conftest.er1
21123 grep -v '^ *+' conftest.er1 >conftest.err
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21127 (exit $ac_status); } && {
21128 test -z "$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21130 } && test -s conftest.$ac_objext; then
21131 ac_header_compiler=yes
21133 echo "$as_me: failed program was
:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ac_header_compiler=no
21139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21141 echo "${ECHO_T}$ac_header_compiler" >&6; }
21143 # Is the header present?
21144 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21145 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 #include <$ac_header>
21154 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21155 case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21160 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21162 grep -v '^ *+' conftest.er1 >conftest.err
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21166 (exit $ac_status); } >/dev/null && {
21167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21168 test ! -s conftest.err
21170 ac_header_preproc=yes
21172 echo "$as_me: failed program was
:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 ac_header_preproc=no
21178 rm -f conftest.err conftest.$ac_ext
21179 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21180 echo "${ECHO_T}$ac_header_preproc" >&6; }
21182 # So? What about this header?
21183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21185 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21186 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21187 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21189 ac_header_preproc=yes
21192 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21193 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21194 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21195 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21196 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21197 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21198 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21199 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21200 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21202 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21203 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21207 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21208 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21210 echo $ECHO_N "(cached
) $ECHO_C" >&6
21212 eval "$as_ac_Header=\
$ac_header_preproc"
21214 ac_res=`eval echo '${'$as_ac_Header'}'`
21215 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21216 echo "${ECHO_T}$ac_res" >&6; }
21219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21220 cat >>confdefs.h <<_ACEOF
21221 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21238 for ac_header in com_err.h
21240 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21241 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21242 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21243 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21245 echo $ECHO_N "(cached
) $ECHO_C" >&6
21247 ac_res=`eval echo '${'$as_ac_Header'}'`
21248 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21249 echo "${ECHO_T}$ac_res" >&6; }
21251 # Is the header compilable?
21252 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21253 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21254 cat >conftest.$ac_ext <<_ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 $ac_includes_default
21261 #include <$ac_header>
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21280 ac_header_compiler=yes
21282 echo "$as_me: failed program was
:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_compiler=no
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21290 echo "${ECHO_T}$ac_header_compiler" >&6; }
21292 # Is the header present?
21293 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21294 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include <$ac_header>
21303 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 2>conftest.er1
21311 grep -v '^ *+' conftest.er1 >conftest.err
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21315 (exit $ac_status); } >/dev/null && {
21316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21319 ac_header_preproc=yes
21321 echo "$as_me: failed program was
:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21324 ac_header_preproc=no
21327 rm -f conftest.err conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21329 echo "${ECHO_T}$ac_header_preproc" >&6; }
21331 # So? What about this header?
21332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21334 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21335 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21336 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21338 ac_header_preproc=yes
21341 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21342 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21343 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21344 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21345 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21346 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21347 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21348 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21349 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21351 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21352 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21356 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21357 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21358 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached
) $ECHO_C" >&6
21361 eval "$as_ac_Header=\
$ac_header_preproc"
21363 ac_res=`eval echo '${'$as_ac_Header'}'`
21364 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21365 echo "${ECHO_T}$ac_res" >&6; }
21368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21369 cat >>confdefs.h <<_ACEOF
21370 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21379 # Solaris requires -lintl if you want strerror (which calls dgettext)
21380 # to return localized messages.
21382 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21383 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21384 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21385 echo $ECHO_N "(cached
) $ECHO_C" >&6
21387 ac_check_lib_save_LIBS=$LIBS
21388 LIBS="-lintl $LIBS"
21389 cat >conftest.$ac_ext <<_ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21396 /* Override any GCC internal prototype to avoid an error.
21397 Use char because int might match the return type of a GCC
21398 builtin and then its argument prototype would still apply. */
21406 return dgettext ();
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (ac_try="$ac_link"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_link") 2>conftest.er1
21420 grep -v '^ *+' conftest.er1 >conftest.err
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest$ac_exeext &&
21428 $as_test_x conftest$ac_exeext; then
21429 ac_cv_lib_intl_dgettext=yes
21431 echo "$as_me: failed program was
:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 ac_cv_lib_intl_dgettext=no
21437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21438 conftest$ac_exeext conftest.$ac_ext
21439 LIBS=$ac_check_lib_save_LIBS
21441 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21442 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21443 if test $ac_cv_lib_intl_dgettext = yes; then
21444 cat >>confdefs.h <<_ACEOF
21445 #define HAVE_LIBINTL 1
21448 LIBS="-lintl $LIBS"
21453 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21454 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21455 if test "${emacs_cv_localtime_cache+set}" = set; then
21456 echo $ECHO_N "(cached
) $ECHO_C" >&6
21458 if test x$ac_cv_func_tzset = xyes; then
21459 if test "$cross_compiling" = yes; then
21460 # If we have tzset, assume the worst when cross-compiling.
21461 emacs_cv_localtime_cache=yes
21463 cat >conftest.$ac_ext <<_ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21470 extern char **environ;
21474 for (to = from = environ; (*to = *from); from++)
21475 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21478 char TZ_GMT0[] = "TZ
=GMT0
";
21479 char TZ_PST8[] = "TZ
=PST8
";
21482 time_t now = time ((time_t *) 0);
21483 int hour_GMT0, hour_unset;
21484 if (putenv (TZ_GMT0) != 0)
21486 hour_GMT0 = localtime (&now)->tm_hour;
21488 hour_unset = localtime (&now)->tm_hour;
21489 if (putenv (TZ_PST8) != 0)
21491 if (localtime (&now)->tm_hour == hour_GMT0)
21494 if (localtime (&now)->tm_hour != hour_unset)
21499 rm -f conftest$ac_exeext
21500 if { (ac_try="$ac_link"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_link") 2>&5
21508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21510 { (case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_try") 2>&5
21517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 emacs_cv_localtime_cache=no
21521 echo "$as_me: program exited with status
$ac_status" >&5
21522 echo "$as_me: failed program was
:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21525 ( exit $ac_status )
21526 emacs_cv_localtime_cache=yes
21528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21533 # If we lack tzset, report that localtime does not cache TZ,
21534 # since we can't invalidate the cache if we don't have tzset.
21535 emacs_cv_localtime_cache=no
21538 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21539 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21540 if test $emacs_cv_localtime_cache = yes; then
21542 cat >>confdefs.h <<\_ACEOF
21543 #define LOCALTIME_CACHE 1
21548 if test "x
$HAVE_TIMEVAL" = xyes; then
21550 for ac_func in gettimeofday
21552 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21553 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21554 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21555 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21556 echo $ECHO_N "(cached
) $ECHO_C" >&6
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21566 #define $ac_func innocuous_$ac_func
21568 /* System header to define __stub macros and hopefully few prototypes,
21569 which can conflict with char $ac_func (); below.
21570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21571 <limits.h> exists even on freestanding compilers. */
21574 # include <limits.h>
21576 # include <assert.h>
21581 /* Override any GCC internal prototype to avoid an error.
21582 Use char because int might match the return type of a GCC
21583 builtin and then its argument prototype would still apply. */
21588 /* The GNU C library defines this for functions which it implements
21589 to always fail with ENOSYS. Some functions are actually named
21590 something starting with __ and the normal name is an alias. */
21591 #if defined __stub_$ac_func || defined __stub___$ac_func
21598 return $ac_func ();
21603 rm -f conftest.$ac_objext conftest$ac_exeext
21604 if { (ac_try="$ac_link"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_link") 2>conftest.er1
21612 grep -v '^ *+' conftest.er1 >conftest.err
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest$ac_exeext &&
21620 $as_test_x conftest$ac_exeext; then
21621 eval "$as_ac_var=yes"
21623 echo "$as_me: failed program was
:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21626 eval "$as_ac_var=no
"
21629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21630 conftest$ac_exeext conftest.$ac_ext
21632 ac_res=`eval echo '${'$as_ac_var'}'`
21633 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21634 echo "${ECHO_T}$ac_res" >&6; }
21635 if test `eval echo '${'$as_ac_var'}'` = yes; then
21636 cat >>confdefs.h <<_ACEOF
21637 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21643 if test $ac_cv_func_gettimeofday = yes; then
21644 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21645 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21646 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21647 echo $ECHO_N "(cached
) $ECHO_C" >&6
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21656 #ifdef TIME_WITH_SYS_TIME
21657 #include <sys/time.h>
21660 #ifdef HAVE_SYS_TIME_H
21661 #include <sys/time.h>
21669 struct timeval time;
21670 gettimeofday (&time, 0);
21675 rm -f conftest.$ac_objext
21676 if { (ac_try="$ac_compile"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_compile") 2>conftest.er1
21684 grep -v '^ *+' conftest.er1 >conftest.err
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21688 (exit $ac_status); } && {
21689 test -z "$ac_c_werror_flag" ||
21690 test ! -s conftest.err
21691 } && test -s conftest.$ac_objext; then
21692 emacs_cv_gettimeofday_two_arguments=yes
21694 echo "$as_me: failed program was
:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 emacs_cv_gettimeofday_two_arguments=no
21700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21703 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21704 if test $emacs_cv_gettimeofday_two_arguments = no; then
21706 cat >>confdefs.h <<\_ACEOF
21707 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21715 { echo "$as_me:$LINENO: checking
for socket
" >&5
21716 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21717 if test "${ac_cv_func_socket+set}" = set; then
21718 echo $ECHO_N "(cached
) $ECHO_C" >&6
21720 cat >conftest.$ac_ext <<_ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21728 #define socket innocuous_socket
21730 /* System header to define __stub macros and hopefully few prototypes,
21731 which can conflict with char socket (); below.
21732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21733 <limits.h> exists even on freestanding compilers. */
21736 # include <limits.h>
21738 # include <assert.h>
21743 /* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
21750 /* The GNU C library defines this for functions which it implements
21751 to always fail with ENOSYS. Some functions are actually named
21752 something starting with __ and the normal name is an alias. */
21753 #if defined __stub_socket || defined __stub___socket
21765 rm -f conftest.$ac_objext conftest$ac_exeext
21766 if { (ac_try="$ac_link"
21767 case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_link") 2>conftest.er1
21774 grep -v '^ *+' conftest.er1 >conftest.err
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21778 (exit $ac_status); } && {
21779 test -z "$ac_c_werror_flag" ||
21780 test ! -s conftest.err
21781 } && test -s conftest$ac_exeext &&
21782 $as_test_x conftest$ac_exeext; then
21783 ac_cv_func_socket=yes
21785 echo "$as_me: failed program was
:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21788 ac_cv_func_socket=no
21791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21792 conftest$ac_exeext conftest.$ac_ext
21794 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21795 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21796 if test $ac_cv_func_socket = yes; then
21802 if test $ok_so_far = yes; then
21803 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21804 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21805 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21806 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21807 echo $ECHO_N "(cached
) $ECHO_C" >&6
21809 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21810 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21812 # Is the header compilable?
21813 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21814 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21822 #include <netinet/in.h>
21824 rm -f conftest.$ac_objext
21825 if { (ac_try="$ac_compile"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_compile") 2>conftest.er1
21833 grep -v '^ *+' conftest.er1 >conftest.err
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest.$ac_objext; then
21841 ac_header_compiler=yes
21843 echo "$as_me: failed program was
:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21846 ac_header_compiler=no
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21851 echo "${ECHO_T}$ac_header_compiler" >&6; }
21853 # Is the header present?
21854 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21855 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21856 cat >conftest.$ac_ext <<_ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 #include <netinet/in.h>
21864 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21872 grep -v '^ *+' conftest.er1 >conftest.err
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21876 (exit $ac_status); } >/dev/null && {
21877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21878 test ! -s conftest.err
21880 ac_header_preproc=yes
21882 echo "$as_me: failed program was
:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 ac_header_preproc=no
21888 rm -f conftest.err conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21890 echo "${ECHO_T}$ac_header_preproc" >&6; }
21892 # So? What about this header?
21893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21895 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21896 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21897 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21898 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21899 ac_header_preproc=yes
21902 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21903 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21904 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21905 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21906 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21907 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21908 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21909 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21910 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21911 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21912 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21913 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21917 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21918 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21919 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21920 echo $ECHO_N "(cached
) $ECHO_C" >&6
21922 ac_cv_header_netinet_in_h=$ac_header_preproc
21924 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21925 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21928 if test $ac_cv_header_netinet_in_h = yes; then
21936 if test $ok_so_far = yes; then
21937 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21938 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21939 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21940 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21941 echo $ECHO_N "(cached
) $ECHO_C" >&6
21943 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21944 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21946 # Is the header compilable?
21947 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21948 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21949 cat >conftest.$ac_ext <<_ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 $ac_includes_default
21956 #include <arpa/inet.h>
21958 rm -f conftest.$ac_objext
21959 if { (ac_try="$ac_compile"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_compile") 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest.$ac_objext; then
21975 ac_header_compiler=yes
21977 echo "$as_me: failed program was
:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_header_compiler=no
21983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21985 echo "${ECHO_T}$ac_header_compiler" >&6; }
21987 # Is the header present?
21988 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21989 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21990 cat >conftest.$ac_ext <<_ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 #include <arpa/inet.h>
21998 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22006 grep -v '^ *+' conftest.er1 >conftest.err
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22010 (exit $ac_status); } >/dev/null && {
22011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22014 ac_header_preproc=yes
22016 echo "$as_me: failed program was
:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22019 ac_header_preproc=no
22022 rm -f conftest.err conftest.$ac_ext
22023 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22024 echo "${ECHO_T}$ac_header_preproc" >&6; }
22026 # So? What about this header?
22027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22029 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22030 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22031 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22032 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22033 ac_header_preproc=yes
22036 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22037 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22038 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22039 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22040 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22041 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22042 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22043 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22044 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22045 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22046 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22047 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22051 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22052 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22053 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22054 echo $ECHO_N "(cached
) $ECHO_C" >&6
22056 ac_cv_header_arpa_inet_h=$ac_header_preproc
22058 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22059 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22062 if test $ac_cv_header_arpa_inet_h = yes; then
22070 if test $ok_so_far = yes; then
22072 cat >>confdefs.h <<\_ACEOF
22073 #define HAVE_INET_SOCKETS 1
22079 for ac_header in sys/ioctl.h
22081 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22083 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22084 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22085 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22086 echo $ECHO_N "(cached
) $ECHO_C" >&6
22088 ac_res=`eval echo '${'$as_ac_Header'}'`
22089 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22090 echo "${ECHO_T}$ac_res" >&6; }
22092 # Is the header compilable?
22093 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22094 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22095 cat >conftest.$ac_ext <<_ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 $ac_includes_default
22102 #include <$ac_header>
22104 rm -f conftest.$ac_objext
22105 if { (ac_try="$ac_compile"
22106 case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_compile") 2>conftest.er1
22113 grep -v '^ *+' conftest.er1 >conftest.err
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22117 (exit $ac_status); } && {
22118 test -z "$ac_c_werror_flag" ||
22119 test ! -s conftest.err
22120 } && test -s conftest.$ac_objext; then
22121 ac_header_compiler=yes
22123 echo "$as_me: failed program was
:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22126 ac_header_compiler=no
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22131 echo "${ECHO_T}$ac_header_compiler" >&6; }
22133 # Is the header present?
22134 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22135 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22136 cat >conftest.$ac_ext <<_ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 #include <$ac_header>
22144 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22152 grep -v '^ *+' conftest.er1 >conftest.err
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22156 (exit $ac_status); } >/dev/null && {
22157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22158 test ! -s conftest.err
22160 ac_header_preproc=yes
22162 echo "$as_me: failed program was
:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_header_preproc=no
22168 rm -f conftest.err conftest.$ac_ext
22169 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22170 echo "${ECHO_T}$ac_header_preproc" >&6; }
22172 # So? What about this header?
22173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22175 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22176 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22177 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22179 ac_header_preproc=yes
22182 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22183 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22184 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22185 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22186 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22187 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22188 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22189 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22190 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22192 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22193 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22197 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22198 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22200 echo $ECHO_N "(cached
) $ECHO_C" >&6
22202 eval "$as_ac_Header=\
$ac_header_preproc"
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22210 cat >>confdefs.h <<_ACEOF
22211 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22219 if test -f /usr/lpp/X11/bin/smt.exp; then
22221 cat >>confdefs.h <<\_ACEOF
22222 #define HAVE_AIX_SMT_EXP 1
22227 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22228 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22229 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22230 { echo "$as_me:$LINENO: result
: yes" >&5
22231 echo "${ECHO_T}yes" >&6; }
22233 cat >>confdefs.h <<\_ACEOF
22234 #define HAVE_DEV_PTMX 1
22238 { echo "$as_me:$LINENO: result
: no
" >&5
22239 echo "${ECHO_T}no
" >&6; }
22242 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22243 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22244 if test "${ac_cv_type_pid_t+set}" = set; then
22245 echo $ECHO_N "(cached
) $ECHO_C" >&6
22247 cat >conftest.$ac_ext <<_ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 $ac_includes_default
22254 typedef pid_t ac__type_new_;
22258 if ((ac__type_new_ *) 0)
22260 if (sizeof (ac__type_new_))
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1 >conftest.err
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.$ac_objext; then
22283 ac_cv_type_pid_t=yes
22285 echo "$as_me: failed program was
:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22288 ac_cv_type_pid_t=no
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22295 if test $ac_cv_type_pid_t = yes; then
22299 cat >>confdefs.h <<_ACEOF
22306 for ac_header in vfork.h
22308 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22309 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22310 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22311 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22312 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22313 echo $ECHO_N "(cached
) $ECHO_C" >&6
22315 ac_res=`eval echo '${'$as_ac_Header'}'`
22316 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22317 echo "${ECHO_T}$ac_res" >&6; }
22319 # Is the header compilable?
22320 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22321 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22322 cat >conftest.$ac_ext <<_ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h. */
22328 $ac_includes_default
22329 #include <$ac_header>
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22340 grep -v '^ *+' conftest.er1 >conftest.err
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_header_compiler=yes
22350 echo "$as_me: failed program was
:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_header_compiler=no
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22358 echo "${ECHO_T}$ac_header_compiler" >&6; }
22360 # Is the header present?
22361 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22362 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22363 cat >conftest.$ac_ext <<_ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 #include <$ac_header>
22371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 2>conftest.er1
22379 grep -v '^ *+' conftest.er1 >conftest.err
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22383 (exit $ac_status); } >/dev/null && {
22384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22387 ac_header_preproc=yes
22389 echo "$as_me: failed program was
:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 ac_header_preproc=no
22395 rm -f conftest.err conftest.$ac_ext
22396 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22397 echo "${ECHO_T}$ac_header_preproc" >&6; }
22399 # So? What about this header?
22400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22402 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22403 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22404 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22406 ac_header_preproc=yes
22409 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22410 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22411 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22412 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22413 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22414 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22415 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22416 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22417 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22419 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22420 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22424 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22425 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22427 echo $ECHO_N "(cached
) $ECHO_C" >&6
22429 eval "$as_ac_Header=\
$ac_header_preproc"
22431 ac_res=`eval echo '${'$as_ac_Header'}'`
22432 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22433 echo "${ECHO_T}$ac_res" >&6; }
22436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22447 for ac_func in fork vfork
22449 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22450 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22451 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22452 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22453 echo $ECHO_N "(cached
) $ECHO_C" >&6
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22463 #define $ac_func innocuous_$ac_func
22465 /* System header to define __stub macros and hopefully few prototypes,
22466 which can conflict with char $ac_func (); below.
22467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22468 <limits.h> exists even on freestanding compilers. */
22471 # include <limits.h>
22473 # include <assert.h>
22478 /* Override any GCC internal prototype to avoid an error.
22479 Use char because int might match the return type of a GCC
22480 builtin and then its argument prototype would still apply. */
22485 /* The GNU C library defines this for functions which it implements
22486 to always fail with ENOSYS. Some functions are actually named
22487 something starting with __ and the normal name is an alias. */
22488 #if defined __stub_$ac_func || defined __stub___$ac_func
22495 return $ac_func ();
22500 rm -f conftest.$ac_objext conftest$ac_exeext
22501 if { (ac_try="$ac_link"
22502 case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_link") 2>conftest.er1
22509 grep -v '^ *+' conftest.er1 >conftest.err
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest$ac_exeext &&
22517 $as_test_x conftest$ac_exeext; then
22518 eval "$as_ac_var=yes"
22520 echo "$as_me: failed program was
:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 eval "$as_ac_var=no
"
22526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22527 conftest$ac_exeext conftest.$ac_ext
22529 ac_res=`eval echo '${'$as_ac_var'}'`
22530 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22531 echo "${ECHO_T}$ac_res" >&6; }
22532 if test `eval echo '${'$as_ac_var'}'` = yes; then
22533 cat >>confdefs.h <<_ACEOF
22534 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22540 if test "x
$ac_cv_func_fork" = xyes; then
22541 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22542 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22543 if test "${ac_cv_func_fork_works+set}" = set; then
22544 echo $ECHO_N "(cached
) $ECHO_C" >&6
22546 if test "$cross_compiling" = yes; then
22547 ac_cv_func_fork_works=cross
22549 cat >conftest.$ac_ext <<_ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 $ac_includes_default
22560 /* By Ruediger Kuhlmann. */
22561 return fork () < 0;
22567 rm -f conftest$ac_exeext
22568 if { (ac_try="$ac_link"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_link") 2>&5
22576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22583 (eval "$ac_try") 2>&5
22585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22586 (exit $ac_status); }; }; then
22587 ac_cv_func_fork_works=yes
22589 echo "$as_me: program exited with status
$ac_status" >&5
22590 echo "$as_me: failed program was
:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 ( exit $ac_status )
22594 ac_cv_func_fork_works=no
22596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22602 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22605 ac_cv_func_fork_works=$ac_cv_func_fork
22607 if test "x
$ac_cv_func_fork_works" = xcross; then
22609 *-*-amigaos* | *-*-msdosdjgpp*)
22610 # Override, as these systems have only a dummy fork() stub
22611 ac_cv_func_fork_works=no
22614 ac_cv_func_fork_works=yes
22617 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22618 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22620 ac_cv_func_vfork_works=$ac_cv_func_vfork
22621 if test "x
$ac_cv_func_vfork" = xyes; then
22622 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22623 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22624 if test "${ac_cv_func_vfork_works+set}" = set; then
22625 echo $ECHO_N "(cached
) $ECHO_C" >&6
22627 if test "$cross_compiling" = yes; then
22628 ac_cv_func_vfork_works=cross
22630 cat >conftest.$ac_ext <<_ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 /* Thanks to Paul Eggert for this test. */
22637 $ac_includes_default
22638 #include <sys/wait.h>
22639 #ifdef HAVE_VFORK_H
22640 # include <vfork.h>
22642 /* On some sparc systems, changes by the child to local and incoming
22643 argument registers are propagated back to the parent. The compiler
22644 is told about this with #include <vfork.h>, but some compilers
22645 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22646 static variable whose address is put into a register that is
22647 clobbered by the vfork. */
22650 sparc_address_test (int arg)
22652 sparc_address_test (arg) int arg;
22655 static pid_t child;
22673 pid_t parent = getpid ();
22676 sparc_address_test (0);
22681 /* Here is another test for sparc vfork register problems. This
22682 test uses lots of local variables, at least as many local
22683 variables as main has allocated so far including compiler
22684 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22685 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22686 reuse the register of parent for one of the local variables,
22687 since it will think that parent can't possibly be used any more
22688 in this routine. Assigning to the local variable will thus
22689 munge parent in the parent process. */
22691 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22692 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22693 /* Convince the compiler that p..p7 are live; otherwise, it might
22694 use the same hardware register for all 8 local variables. */
22695 if (p != p1 || p != p2 || p != p3 || p != p4
22696 || p != p5 || p != p6 || p != p7)
22699 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22700 from child file descriptors. If the child closes a descriptor
22701 before it execs or exits, this munges the parent's descriptor
22702 as well. Test for this by closing stdout in the child. */
22703 _exit(close(fileno(stdout)) != 0);
22708 while (wait(&status) != child)
22711 /* Was there some problem with vforking? */
22714 /* Did the child fail? (This shouldn't happen.) */
22717 /* Did the vfork/compiler bug occur? */
22718 || parent != getpid()
22720 /* Did the file descriptor bug occur? */
22721 || fstat(fileno(stdout), &st) != 0
22726 rm -f conftest$ac_exeext
22727 if { (ac_try="$ac_link"
22728 case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_link") 2>&5
22735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22737 { (case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_try") 2>&5
22744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22745 (exit $ac_status); }; }; then
22746 ac_cv_func_vfork_works=yes
22748 echo "$as_me: program exited with status
$ac_status" >&5
22749 echo "$as_me: failed program was
:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ( exit $ac_status )
22753 ac_cv_func_vfork_works=no
22755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22761 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22764 if test "x
$ac_cv_func_fork_works" = xcross; then
22765 ac_cv_func_vfork_works=$ac_cv_func_vfork
22766 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22767 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22770 if test "x
$ac_cv_func_vfork_works" = xyes; then
22772 cat >>confdefs.h <<\_ACEOF
22773 #define HAVE_WORKING_VFORK 1
22778 cat >>confdefs.h <<\_ACEOF
22783 if test "x
$ac_cv_func_fork_works" = xyes; then
22785 cat >>confdefs.h <<\_ACEOF
22786 #define HAVE_WORKING_FORK 1
22792 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22793 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22794 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22795 echo $ECHO_N "(cached
) $ECHO_C" >&6
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 #include <langinfo.h>
22807 char* cs = nl_langinfo(CODESET);
22812 rm -f conftest.$ac_objext conftest$ac_exeext
22813 if { (ac_try="$ac_link"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_link") 2>conftest.er1
22821 grep -v '^ *+' conftest.er1 >conftest.err
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest$ac_exeext &&
22829 $as_test_x conftest$ac_exeext; then
22830 emacs_cv_langinfo_codeset=yes
22832 echo "$as_me: failed program was
:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 emacs_cv_langinfo_codeset=no
22838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22839 conftest$ac_exeext conftest.$ac_ext
22842 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22843 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22844 if test $emacs_cv_langinfo_codeset = yes; then
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_LANGINFO_CODESET 1
22852 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22853 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22854 if test "${ac_cv_type_size_t+set}" = set; then
22855 echo $ECHO_N "(cached
) $ECHO_C" >&6
22857 cat >conftest.$ac_ext <<_ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 $ac_includes_default
22864 typedef size_t ac__type_new_;
22868 if ((ac__type_new_ *) 0)
22870 if (sizeof (ac__type_new_))
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22885 grep -v '^ *+' conftest.er1 >conftest.err
22887 cat conftest.err >&5
22888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 ac_cv_type_size_t=yes
22895 echo "$as_me: failed program was
:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ac_cv_type_size_t=no
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22904 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22905 if test $ac_cv_type_size_t = yes; then
22907 cat >>confdefs.h <<_ACEOF
22908 #define HAVE_SIZE_T 1
22915 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22916 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22917 if test "${ac_cv_type_mbstate_t+set}" = set; then
22918 echo $ECHO_N "(cached
) $ECHO_C" >&6
22920 cat >conftest.$ac_ext <<_ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 $ac_includes_default
22927 # include <wchar.h>
22931 mbstate_t x; return sizeof x;
22936 rm -f conftest.$ac_objext
22937 if { (ac_try="$ac_compile"
22938 case "(($ac_try" in
22939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22943 (eval "$ac_compile") 2>conftest.er1
22945 grep -v '^ *+' conftest.er1 >conftest.err
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22949 (exit $ac_status); } && {
22950 test -z "$ac_c_werror_flag" ||
22951 test ! -s conftest.err
22952 } && test -s conftest.$ac_objext; then
22953 ac_cv_type_mbstate_t=yes
22955 echo "$as_me: failed program was
:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22958 ac_cv_type_mbstate_t=no
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22964 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22965 if test $ac_cv_type_mbstate_t = yes; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_MBSTATE_T 1
22973 cat >>confdefs.h <<\_ACEOF
22974 #define mbstate_t int
22979 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22980 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22981 if test "${emacs_cv_c_restrict+set}" = set; then
22982 echo $ECHO_N "(cached
) $ECHO_C" >&6
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 void fred (int *restrict x);
22999 rm -f conftest.$ac_objext
23000 if { (ac_try="$ac_compile"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_compile") 2>conftest.er1
23008 grep -v '^ *+' conftest.er1 >conftest.err
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest.$ac_objext; then
23016 emacs_cv_c_restrict=yes
23018 echo "$as_me: failed program was
:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 void fred (int *__restrict x);
23036 rm -f conftest.$ac_objext
23037 if { (ac_try="$ac_compile"
23038 case "(($ac_try" in
23039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040 *) ac_try_echo=$ac_try;;
23042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23043 (eval "$ac_compile") 2>conftest.er1
23045 grep -v '^ *+' conftest.er1 >conftest.err
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23049 (exit $ac_status); } && {
23050 test -z "$ac_c_werror_flag" ||
23051 test ! -s conftest.err
23052 } && test -s conftest.$ac_objext; then
23053 emacs_cv_c_restrict=__restrict
23055 echo "$as_me: failed program was
:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23058 emacs_cv_c_restrict=no
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23067 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23068 case "$emacs_cv_c_restrict" in
23069 yes) emacs_restrict=restrict;;
23070 no) emacs_restrict="";;
23071 *) emacs_restrict="$emacs_cv_c_restrict";;
23073 if test "$emacs_restrict" != __restrict; then
23075 cat >>confdefs.h <<_ACEOF
23076 #define __restrict $emacs_restrict
23081 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23082 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23083 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23084 echo $ECHO_N "(cached
) $ECHO_C" >&6
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 void fred (int x[__restrict]);
23101 rm -f conftest.$ac_objext
23102 if { (ac_try="$ac_compile"
23103 case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_compile") 2>conftest.er1
23110 grep -v '^ *+' conftest.er1 >conftest.err
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23114 (exit $ac_status); } && {
23115 test -z "$ac_c_werror_flag" ||
23116 test ! -s conftest.err
23117 } && test -s conftest.$ac_objext; then
23118 emacs_cv_c_restrict_arr=yes
23120 echo "$as_me: failed program was
:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 emacs_cv_c_restrict_arr=no
23126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23129 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23130 if test "$emacs_cv_c_restrict_arr" = yes; then
23132 cat >>confdefs.h <<\_ACEOF
23133 #define __restrict_arr __restrict
23140 # Set up the CFLAGS for real compilation, so we can substitute it.
23141 CFLAGS="$REAL_CFLAGS"
23142 CPPFLAGS="$REAL_CPPFLAGS"
23144 #### Find out which version of Emacs this is.
23145 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23146 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23147 if test x"${version}" = x; then
23148 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23149 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23150 { (exit 1); exit 1; }; }
23153 ### Specify what sort of things we'll be editing into Makefile and config.h.
23154 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23190 cat >>confdefs.h <<_ACEOF
23191 #define EMACS_CONFIGURATION "${canonical}"
23195 cat >>confdefs.h <<_ACEOF
23196 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23200 cat >>confdefs.h <<_ACEOF
23201 #define config_machfile "${machfile}"
23205 cat >>confdefs.h <<_ACEOF
23206 #define config_opsysfile "${opsysfile}"
23210 cat >>confdefs.h <<_ACEOF
23211 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23215 cat >>confdefs.h <<_ACEOF
23216 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23220 cat >>confdefs.h <<_ACEOF
23221 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23225 cat >>confdefs.h <<_ACEOF
23226 #define UNEXEC_SRC ${UNEXEC_SRC}
23230 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23232 cat >>confdefs.h <<\_ACEOF
23233 #define HAVE_X_WINDOWS 1
23237 if test "${USE_X_TOOLKIT}" != "none
" ; then
23239 cat >>confdefs.h <<\_ACEOF
23240 #define USE_X_TOOLKIT 1
23244 if test "${HAVE_X11}" = "yes" ; then
23246 cat >>confdefs.h <<\_ACEOF
23251 if test "${HAVE_XFREE386}" = "yes" ; then
23253 cat >>confdefs.h <<\_ACEOF
23254 #define HAVE_XFREE386 1
23258 if test "${HAVE_MENUS}" = "yes" ; then
23260 cat >>confdefs.h <<\_ACEOF
23261 #define HAVE_MENUS 1
23265 if test "${GNU_MALLOC}" = "yes" ; then
23267 cat >>confdefs.h <<\_ACEOF
23268 #define GNU_MALLOC 1
23272 if test "${REL_ALLOC}" = "yes" ; then
23274 cat >>confdefs.h <<\_ACEOF
23275 #define REL_ALLOC 1
23284 #### Report on what we decided to do.
23285 #### Report GTK as a toolkit, even if it doesn't use Xt.
23286 #### It makes printing result more understandable as using GTK sets
23287 #### toolkit_scroll_bars to yes by default.
23288 if test "${HAVE_GTK}" = "yes"; then
23293 Configured
for \
`${canonical}'.
23295 Where should the build process find the source code? ${srcdir}
23296 What operating system and machine description files should Emacs use?
23297 \`${opsysfile}' and \`${machfile}'
23298 What compiler should emacs be built with?
${CC} ${CFLAGS}
23299 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23300 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23301 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23302 What window system should Emacs use?
${window_system}
23303 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23305 if test -n "${x_includes}"; then
23306 echo " Where
do we
find X Windows header files?
${x_includes}"
23308 echo " Where
do we
find X Windows header files? Standard
dirs"
23310 if test -n "${x_libraries}"; then
23311 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23313 echo " Where
do we
find X Windows libraries? Standard
dirs"
23316 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23317 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23318 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23319 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23320 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23321 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23322 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23323 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23326 if test $USE_XASSERTS = yes; then
23327 echo " Compiling with asserts turned on.
"
23328 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23332 if test "$USE_X_TOOLKIT" = GTK; then
23333 case "$canonical" in
23335 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23336 will probably get a crash on startup. If this happens
, please use another
23337 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23344 # Remove any trailing slashes in these variables.
23345 test "${prefix}" != NONE &&
23346 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23347 test "${exec_prefix}" != NONE &&
23348 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23350 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23351 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23352 ## from Makefile.c can correctly provide the arg `-traditional' to the
23355 cat >conftest.$ac_ext <<_ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23363 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23364 $EGREP "yes..
yes" >/dev/null 2>&1; then
23365 CPP_NEED_TRADITIONAL=no
23367 CPP_NEED_TRADITIONAL=yes
23372 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
"
23374 ac_config_commands="$ac_config_commands default
"
23376 cat >confcache <<\_ACEOF
23377 # This file is a shell script that caches the results of configure
23378 # tests run on this system so they can be shared between configure
23379 # scripts and configure runs, see configure's option --config-cache.
23380 # It is not useful on other systems. If it contains results you don't
23381 # want to keep, you may remove or edit it.
23383 # config.status only pays attention to the cache file if you give it
23384 # the --recheck option to rerun configure.
23386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23388 # following values.
23392 # The following way of writing the cache mishandles newlines in values,
23393 # but we know of no workaround that is simple, portable, and efficient.
23394 # So, we kill variables containing newlines.
23395 # Ultrix sh set writes to stderr and can't be redirected directly,
23396 # and sets the high bit in the cache file unless we assign to the vars.
23398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23399 eval ac_val=\$$ac_var
23403 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23404 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23407 _ | IFS | as_nl) ;; #(
23408 *) $as_unset $ac_var ;;
23414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23415 *${as_nl}ac_space=\ *)
23416 # `set' does not quote correctly, so add quotes (double-quote
23417 # substitution turns \\\\ into \\, and sed turns \\ into \).
23420 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23423 # `set' quotes correctly as required by POSIX, so do not add quotes.
23424 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23438 if test -w "$cache_file"; then
23439 test "x
$cache_file" != "x
/dev
/null
" &&
23440 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23441 echo "$as_me: updating cache
$cache_file" >&6;}
23442 cat confcache >$cache_file
23444 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23445 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23450 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23451 # Let make expand exec_prefix.
23452 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23454 DEFS=-DHAVE_CONFIG_H
23458 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23459 # 1. Remove the extension, and $U if already installed.
23460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23461 ac_i=`echo "$ac_i" | sed "$ac_script"`
23462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23463 # will be set to the directory where LIBOBJS objects are built.
23464 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23465 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23467 LIBOBJS=$ac_libobjs
23469 LTLIBOBJS=$ac_ltlibobjs
23473 : ${CONFIG_STATUS=./config.status}
23474 ac_clean_files_save=$ac_clean_files
23475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23476 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23477 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23478 cat >$CONFIG_STATUS <<_ACEOF
23480 # Generated by $as_me.
23481 # Run this file to recreate the current configuration.
23482 # Compiler output produced by configure, useful for debugging
23483 # configure, is in config.log if it exists.
23486 ac_cs_recheck=false
23488 SHELL=\${CONFIG_SHELL-$SHELL}
23491 cat >>$CONFIG_STATUS <<\_ACEOF
23492 ## --------------------- ##
23493 ## M4sh Initialization. ##
23494 ## --------------------- ##
23496 # Be more Bourne compatible
23497 DUALCASE=1; export DUALCASE # for MKS sh
23498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23502 # is contrary to our usage. Disable this feature.
23503 alias -g '${1+"$@"}'='"$@
"'
23504 setopt NO_GLOB_SUBST
23506 case `(set -o) 2>/dev/null` in
23507 *posix*) set -o posix ;;
23516 # Avoid depending upon Character Ranges.
23517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23520 as_cr_digits='0123456789'
23521 as_cr_alnum=$as_cr_Letters$as_cr_digits
23523 # The user is always right.
23524 if test "${PATH_SEPARATOR+set}" != set; then
23525 echo "#! /bin/sh" >conf$$.sh
23526 echo "exit 0" >>conf$$.sh
23528 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23536 # Support unset when possible.
23537 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23545 # We need space, tab and new line, in precisely that order. Quoting is
23546 # there to prevent editors from complaining about space-tab.
23547 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23548 # splitting by setting IFS to empty value.)
23553 # Find who we are. Look in the path if we contain no directory separator.
23555 *[\\/]* ) as_myself
=$0 ;;
23556 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23557 for as_dir
in $PATH
23560 test -z "$as_dir" && as_dir
=.
23561 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23567 # We did not find ourselves, most probably we were run as `sh COMMAND'
23568 # in which case we are not to be found in the path.
23569 if test "x$as_myself" = x
; then
23572 if test ! -f "$as_myself"; then
23573 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23574 { (exit 1); exit 1; }
23577 # Work around bugs in pre-3.0 UWIN ksh.
23578 for as_var
in ENV MAIL MAILPATH
23579 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23587 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23588 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23589 LC_TELEPHONE LC_TIME
23591 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23592 eval $as_var=C
; export $as_var
23594 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23598 # Required to use basename.
23599 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23600 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23606 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23607 as_basename
=basename
23613 # Name of the executable.
23614 as_me
=`$as_basename -- "$0" ||
23615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23616 X"$0" : 'X\(//\)$' \| \
23617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23619 sed '/^.*\/\([^/][^/]*\)\/*$/{
23638 as_lineno_1
=$LINENO
23639 as_lineno_2
=$LINENO
23640 test "x$as_lineno_1" != "x$as_lineno_2" &&
23641 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23643 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23644 # uniformly replaced by the line number. The first 'sed' inserts a
23645 # line-number line after each line using $LINENO; the second 'sed'
23646 # does the real work. The second script uses 'N' to pair each
23647 # line-number line with the line containing $LINENO, and appends
23648 # trailing '-' during substitution so that $LINENO is not a special
23649 # case at line end.
23650 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23651 # scripts with optimization help from Paolo Bonzini. Blame Lee
23652 # E. McMahon (1931-1989) for sed's syntax. :-)
23664 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23667 ' >$as_me.lineno
&&
23668 chmod +x
"$as_me.lineno" ||
23669 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23670 { (exit 1); exit 1; }; }
23672 # Don't try to exec as it changes $[0], causing all sort of problems
23673 # (the dirname of $[0] is not the place where we might find the
23674 # original and so on. Autoconf is especially sensitive to this).
23675 .
"./$as_me.lineno"
23676 # Exit status is that of the last command.
23681 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23687 ECHO_C
= ECHO_N
= ECHO_T
=
23688 case `echo -n x` in
23690 case `echo 'x\c'` in
23691 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23698 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23699 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23705 rm -f conf$$ conf$$.exe conf$$.
file
23706 if test -d conf$$.dir
; then
23707 rm -f conf$$.dir
/conf$$.
file
23713 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23715 # ... but there are two gotchas:
23716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23718 # In both cases, we have to default to `cp -p'.
23719 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23721 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23726 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23727 rmdir conf$$.dir
2>/dev
/null
23729 if mkdir
-p .
2>/dev
/null
; then
23732 test -d .
/-p && rmdir .
/-p
23736 if test -x / >/dev
/null
2>&1; then
23737 as_test_x
='test -x'
23739 if ls -dL / >/dev
/null
2>&1; then
23746 if test -d "$1"; then
23752 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23753 ???[sx]*):;;*)false;;esac;fi
23757 as_executable_p
=$as_test_x
23759 # Sed expression to map a string onto a valid CPP name.
23760 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23762 # Sed expression to map a string onto a valid variable name.
23763 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23768 # Save the log message, to keep $[0] and so on meaningful, and to
23769 # report actual input values of CONFIG_FILES etc. instead of their
23770 # values after options handling.
23772 This file was extended by $as_me, which was
23773 generated by GNU Autoconf 2.61. Invocation command line was
23775 CONFIG_FILES = $CONFIG_FILES
23776 CONFIG_HEADERS = $CONFIG_HEADERS
23777 CONFIG_LINKS = $CONFIG_LINKS
23778 CONFIG_COMMANDS = $CONFIG_COMMANDS
23781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23786 cat >>$CONFIG_STATUS <<_ACEOF
23787 # Files that config.status was made for.
23788 config_files="$ac_config_files"
23789 config_headers="$ac_config_headers"
23790 config_commands="$ac_config_commands"
23794 cat >>$CONFIG_STATUS <<\_ACEOF
23796 \`$as_me' instantiates files from templates according to the
23797 current configuration.
23799 Usage: $0 [OPTIONS] [FILE]...
23801 -h, --help print this help, then exit
23802 -V, --version print version number and configuration settings, then exit
23803 -q, --quiet do not print progress messages
23804 -d, --debug don't remove temporary files
23805 --recheck update $as_me by reconfiguring in the same conditions
23806 --file=FILE[:TEMPLATE]
23807 instantiate the configuration file FILE
23808 --header=FILE[:TEMPLATE]
23809 instantiate the configuration header FILE
23811 Configuration files:
23814 Configuration headers:
23817 Configuration commands:
23820 Report bugs to <bug-autoconf@gnu.org>."
23823 cat >>$CONFIG_STATUS <<_ACEOF
23826 configured by $0, generated by GNU Autoconf 2.61,
23827 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23829 Copyright (C) 2006 Free Software Foundation, Inc.
23830 This config.status script is free software; the Free Software Foundation
23831 gives unlimited permission to copy, distribute and modify it."
23838 cat >>$CONFIG_STATUS <<\_ACEOF
23839 # If no file are specified by the user, then we need to provide default
23840 # value. By we need to know if files were specified by the user.
23846 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23847 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23858 # Handling of the options.
23859 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23861 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23862 echo "$ac_cs_version"; exit ;;
23863 --debug |
--debu |
--deb |
--de |
--d |
-d )
23865 --file |
--fil |
--fi |
--f )
23867 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23868 ac_need_defaults
=false
;;
23869 --header |
--heade |
--head |
--hea )
23871 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23872 ac_need_defaults
=false
;;
23874 # Conflict between --help and --header
23875 { echo "$as_me: error: ambiguous option: $1
23876 Try \`$0 --help' for more information." >&2
23877 { (exit 1); exit 1; }; };;
23878 --help |
--hel |
-h )
23879 echo "$ac_cs_usage"; exit ;;
23880 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23881 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23884 # This is an error.
23885 -*) { echo "$as_me: error: unrecognized option: $1
23886 Try \`$0 --help' for more information." >&2
23887 { (exit 1); exit 1; }; } ;;
23889 *) ac_config_targets
="$ac_config_targets $1"
23890 ac_need_defaults
=false
;;
23896 ac_configure_extra_args
=
23898 if $ac_cs_silent; then
23900 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23904 cat >>$CONFIG_STATUS <<_ACEOF
23905 if \$ac_cs_recheck; then
23906 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23907 CONFIG_SHELL=$SHELL
23908 export CONFIG_SHELL
23909 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23913 cat >>$CONFIG_STATUS <<\_ACEOF
23917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23918 ## Running $as_me. ##
23924 cat >>$CONFIG_STATUS <<_ACEOF
23928 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23934 # Handling of arguments.
23935 for ac_config_target
in $ac_config_targets
23937 case $ac_config_target in
23938 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23939 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23940 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23941 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23942 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23943 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23944 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23945 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23946 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23947 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23948 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23949 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23951 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23952 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23953 { (exit 1); exit 1; }; };;
23958 # If the user did not use the arguments to specify the items to instantiate,
23959 # then the envvar interface is used. Set only those that are not.
23960 # We use the long form for the default assignment because of an extremely
23961 # bizarre bug on SunOS 4.1.3.
23962 if $ac_need_defaults; then
23963 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23964 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23965 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23968 # Have a temporary directory for convenience. Make it in the build tree
23969 # simply because there is no reason against having it here, and in addition,
23970 # creating and moving files from /tmp can sometimes cause problems.
23971 # Hook for its removal unless debugging.
23972 # Note that there is a small window in which the directory will not be cleaned:
23973 # after its creation but before its name has been assigned to `$tmp'.
23977 trap 'exit_status=$?
23978 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23980 trap '{ (exit 1); exit 1; }' 1 2 13 15
23982 # Create a (secure) tmp directory for tmp files.
23985 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23986 test -n "$tmp" && test -d "$tmp"
23989 tmp
=.
/conf$$
-$RANDOM
23990 (umask 077 && mkdir
"$tmp")
23993 echo "$me: cannot create a temporary directory in ." >&2
23994 { (exit 1); exit 1; }
23998 # Set up the sed scripts for CONFIG_FILES section.
24001 # No need to generate the scripts if there are no CONFIG_FILES.
24002 # This happens for instance when ./config.status config.h
24003 if test -n "$CONFIG_FILES"; then
24010 for ac_last_try
in false false false false false
:; do
24011 cat >conf$
$subs.
sed <<_ACEOF
24012 SHELL!$SHELL$ac_delim
24013 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24014 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24015 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24016 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24017 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24018 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24019 exec_prefix!$exec_prefix$ac_delim
24020 prefix!$prefix$ac_delim
24021 program_transform_name!$program_transform_name$ac_delim
24022 bindir!$bindir$ac_delim
24023 sbindir!$sbindir$ac_delim
24024 libexecdir!$libexecdir$ac_delim
24025 datarootdir!$datarootdir$ac_delim
24026 datadir!$datadir$ac_delim
24027 sysconfdir!$sysconfdir$ac_delim
24028 sharedstatedir!$sharedstatedir$ac_delim
24029 localstatedir!$localstatedir$ac_delim
24030 includedir!$includedir$ac_delim
24031 oldincludedir!$oldincludedir$ac_delim
24032 docdir!$docdir$ac_delim
24033 infodir!$infodir$ac_delim
24034 htmldir!$htmldir$ac_delim
24035 dvidir!$dvidir$ac_delim
24036 pdfdir!$pdfdir$ac_delim
24037 psdir!$psdir$ac_delim
24038 libdir!$libdir$ac_delim
24039 localedir!$localedir$ac_delim
24040 mandir!$mandir$ac_delim
24041 DEFS!$DEFS$ac_delim
24042 ECHO_C!$ECHO_C$ac_delim
24043 ECHO_N!$ECHO_N$ac_delim
24044 ECHO_T!$ECHO_T$ac_delim
24045 LIBS!$LIBS$ac_delim
24046 build_alias!$build_alias$ac_delim
24047 host_alias!$host_alias$ac_delim
24048 target_alias!$target_alias$ac_delim
24049 MAINT!$MAINT$ac_delim
24050 build!$build$ac_delim
24051 build_cpu!$build_cpu$ac_delim
24052 build_vendor!$build_vendor$ac_delim
24053 build_os!$build_os$ac_delim
24054 host!$host$ac_delim
24055 host_cpu!$host_cpu$ac_delim
24056 host_vendor!$host_vendor$ac_delim
24057 host_os!$host_os$ac_delim
24059 CFLAGS!$CFLAGS$ac_delim
24060 LDFLAGS!$LDFLAGS$ac_delim
24061 CPPFLAGS!$CPPFLAGS$ac_delim
24062 ac_ct_CC!$ac_ct_CC$ac_delim
24063 EXEEXT!$EXEEXT$ac_delim
24064 OBJEXT!$OBJEXT$ac_delim
24066 GREP!$GREP$ac_delim
24067 EGREP!$EGREP$ac_delim
24068 LN_S!$LN_S$ac_delim
24069 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24070 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24071 INSTALL_DATA!$INSTALL_DATA$ac_delim
24072 RANLIB!$RANLIB$ac_delim
24073 INSTALL_INFO!$INSTALL_INFO$ac_delim
24074 GZIP_PROG!$GZIP_PROG$ac_delim
24075 LIBSOUND!$LIBSOUND$ac_delim
24076 PKG_CONFIG!$PKG_CONFIG$ac_delim
24077 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24078 ALSA_LIBS!$ALSA_LIBS$ac_delim
24079 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24080 SET_MAKE!$SET_MAKE$ac_delim
24081 XMKMF!$XMKMF$ac_delim
24082 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24083 GTK_LIBS!$GTK_LIBS$ac_delim
24084 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24085 XFT_LIBS!$XFT_LIBS$ac_delim
24086 ALLOCA!$ALLOCA$ac_delim
24087 liblockfile!$liblockfile$ac_delim
24088 LIBOBJS!$LIBOBJS$ac_delim
24089 NEED_SETGID!$NEED_SETGID$ac_delim
24090 KMEM_GROUP!$KMEM_GROUP$ac_delim
24091 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24092 GETOPT_H!$GETOPT_H$ac_delim
24093 GETOPTOBJS!$GETOPTOBJS$ac_delim
24094 version!$version$ac_delim
24095 configuration!$configuration$ac_delim
24096 canonical!$canonical$ac_delim
24097 srcdir!$srcdir$ac_delim
24098 lispdir!$lispdir$ac_delim
24099 locallisppath!$locallisppath$ac_delim
24100 lisppath!$lisppath$ac_delim
24101 x_default_search_path!$x_default_search_path$ac_delim
24102 etcdir!$etcdir$ac_delim
24103 archlibdir!$archlibdir$ac_delim
24104 bitmapdir!$bitmapdir$ac_delim
24105 gamedir!$gamedir$ac_delim
24106 gameuser!$gameuser$ac_delim
24107 c_switch_system!$c_switch_system$ac_delim
24108 c_switch_machine!$c_switch_machine$ac_delim
24111 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24113 elif $ac_last_try; then
24114 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24115 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24116 { (exit 1); exit 1; }; }
24118 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24122 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24123 if test -n "$ac_eof"; then
24124 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24125 ac_eof
=`expr $ac_eof + 1`
24128 cat >>$CONFIG_STATUS <<_ACEOF
24129 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24133 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24134 s/^/s,@/; s/!/@,|#_!!_#|/
24137 s/'"$ac_delim"'$/,g/; t
24139 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24140 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24141 rm -f conf$
$subs.
sed
24142 cat >>$CONFIG_STATUS <<_ACEOF
24148 for ac_last_try
in false false false false false
:; do
24149 cat >conf$
$subs.
sed <<_ACEOF
24150 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24151 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24152 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24153 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24154 machfile!$machfile$ac_delim
24155 opsysfile!$opsysfile$ac_delim
24156 carbon_appdir!$carbon_appdir$ac_delim
24157 LTLIBOBJS!$LTLIBOBJS$ac_delim
24160 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24162 elif $ac_last_try; then
24163 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24164 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24165 { (exit 1); exit 1; }; }
24167 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24171 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24172 if test -n "$ac_eof"; then
24173 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24174 ac_eof
=`expr $ac_eof + 1`
24177 cat >>$CONFIG_STATUS <<_ACEOF
24178 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24182 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24183 s/^/s,@/; s/!/@,|#_!!_#|/
24186 s/'"$ac_delim"'$/,g/; t
24188 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24189 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24190 rm -f conf$
$subs.
sed
24191 cat >>$CONFIG_STATUS <<_ACEOF
24198 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24199 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24200 # trailing colons and then remove the whole line if VPATH becomes empty
24201 # (actually we leave an empty line to preserve line numbers).
24202 if test "x$srcdir" = x.
; then
24203 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24204 s/:*\$(srcdir):*/:/
24205 s/:*\${srcdir}:*/:/
24207 s/^\([^=]*=[ ]*\):*/\1/
24213 cat >>$CONFIG_STATUS <<\_ACEOF
24214 fi # test -n "$CONFIG_FILES"
24217 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24220 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24222 case $ac_mode$ac_tag in
24224 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24225 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24226 { (exit 1); exit 1; }; };;
24227 :[FH
]-) ac_tag
=-:-;;
24228 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24245 -) ac_f
="$tmp/stdin";;
24246 *) # Look for the file first in the build tree, then in the source tree
24247 # (if the path is not absolute). The absolute path cannot be DOS-style,
24248 # because $ac_f cannot contain `:'.
24252 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24254 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24255 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24256 { (exit 1); exit 1; }; };;
24258 ac_file_inputs
="$ac_file_inputs $ac_f"
24261 # Let's still pretend it is `configure' which instantiates (i.e., don't
24262 # use $as_me), people would be surprised to read:
24263 # /* config.h. Generated by config.status. */
24264 configure_input
="Generated from "`IFS=:
24265 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24266 if test x
"$ac_file" != x-
; then
24267 configure_input
="$ac_file. $configure_input"
24268 { echo "$as_me:$LINENO: creating $ac_file" >&5
24269 echo "$as_me: creating $ac_file" >&6;}
24273 *:-:* |
*:-) cat >"$tmp/stdin";;
24278 ac_dir
=`$as_dirname -- "$ac_file" ||
24279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24280 X"$ac_file" : 'X\(//\)[^/]' \| \
24281 X"$ac_file" : 'X\(//\)$' \| \
24282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24288 /^X\(\/\/\)[^/].*/{
24303 -*) as_dir
=.
/$as_dir;;
24305 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24309 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24310 *) as_qdir
=$as_dir;;
24312 as_dirs
="'$as_qdir' $as_dirs"
24313 as_dir
=`$as_dirname -- "$as_dir" ||
24314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24315 X"$as_dir" : 'X\(//\)[^/]' \| \
24316 X"$as_dir" : 'X\(//\)$' \| \
24317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24323 /^X\(\/\/\)[^/].*/{
24336 test -d "$as_dir" && break
24338 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24339 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24340 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24341 { (exit 1); exit 1; }; }; }
24345 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24347 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24348 # A ".." for each directory in $ac_dir_suffix.
24349 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24350 case $ac_top_builddir_sub in
24351 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24352 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24355 ac_abs_top_builddir
=$ac_pwd
24356 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24357 # for backward compatibility:
24358 ac_top_builddir
=$ac_top_build_prefix
24361 .
) # We are building in place.
24363 ac_top_srcdir
=$ac_top_builddir_sub
24364 ac_abs_top_srcdir
=$ac_pwd ;;
24365 [\\/]* | ?
:[\\/]* ) # Absolute name.
24366 ac_srcdir
=$srcdir$ac_dir_suffix;
24367 ac_top_srcdir
=$srcdir
24368 ac_abs_top_srcdir
=$srcdir ;;
24369 *) # Relative name.
24370 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24371 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24372 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24374 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24384 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24385 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24389 cat >>$CONFIG_STATUS <<\_ACEOF
24390 # If the template does not know about datarootdir, expand it.
24391 # FIXME: This hack should be removed a few years after 2.60.
24392 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24394 case `sed -n '/datarootdir/ {
24403 ' $ac_file_inputs` in
24404 *datarootdir
*) ac_datarootdir_seen
=yes;;
24405 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24406 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24407 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24409 cat >>$CONFIG_STATUS <<_ACEOF
24410 ac_datarootdir_hack='
24411 s&@datadir@&$datadir&g
24412 s&@docdir@&$docdir&g
24413 s&@infodir@&$infodir&g
24414 s&@localedir@&$localedir&g
24415 s&@mandir@&$mandir&g
24416 s&\\\${datarootdir}&$datarootdir&g' ;;
24420 # Neutralize VPATH when `$srcdir' = `.'.
24421 # Shell code in configure.ac might set extrasub.
24422 # FIXME: do we really want to maintain this feature?
24423 cat >>$CONFIG_STATUS <<_ACEOF
24427 cat >>$CONFIG_STATUS <<\_ACEOF
24429 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24430 s
&@configure_input@
&$configure_input&;t t
24431 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24432 s
&@srcdir@
&$ac_srcdir&;t t
24433 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24434 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24435 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24436 s
&@builddir@
&$ac_builddir&;t t
24437 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24438 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24439 s
&@INSTALL@
&$ac_INSTALL&;t t
24440 $ac_datarootdir_hack
24441 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24446 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24447 which seems to be undefined. Please make sure it is defined." >&5
24448 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24449 which seems to be undefined. Please make sure it is defined." >&2;}
24453 -) cat "$tmp/out"; rm -f "$tmp/out";;
24454 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24463 # Transform confdefs.h into a sed script `conftest.defines', that
24464 # substitutes the proper values into config.h.in to produce config.h.
24465 rm -f conftest.defines conftest.
tail
24466 # First, append a space to every undef/define line, to ease matching.
24467 echo 's/$/ /' >conftest.defines
24468 # Then, protect against being on the right side of a sed subst, or in
24469 # an unquoted here document, in config.status. If some macros were
24470 # called several times there might be several #defines for the same
24471 # symbol, which is useless. But do not sort them, since the last
24472 # AC_DEFINE must be honored.
24473 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24474 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24475 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24476 # PARAMS is the parameter list in the macro definition--in most cases, it's
24477 # just an empty string.
24478 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24479 ac_dB
='\\)[ (].*,\\1define\\2'
24487 s/^[ ]*#[ ]*define[ ][ ]*//
24492 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24493 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24494 ' >>conftest.defines
24496 # Remove the space that was appended to ease matching.
24497 # Then replace #undef with comments. This is necessary, for
24498 # example, in the case of _POSIX_SOURCE, which is predefined and required
24499 # on some systems where configure will not decide to define it.
24500 # (The regexp can be short, since the line contains either #define or #undef.)
24502 s,^[ #]*u.*,/* & */,' >>conftest.defines
24504 # Break up conftest.defines:
24505 ac_max_sed_lines
=50
24507 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24508 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24509 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24511 ac_in
='$ac_file_inputs'
24512 ac_out
='"$tmp/out1"'
24513 ac_nxt
='"$tmp/out2"'
24517 # Write a here document:
24518 cat >>$CONFIG_STATUS <<_ACEOF
24519 # First, check the format of the line:
24520 cat >"\$tmp/defines.sed" <<\\CEOF
24521 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24522 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24526 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24528 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24529 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24530 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24531 grep . conftest.
tail >/dev
/null ||
break
24532 rm -f conftest.defines
24533 mv conftest.
tail conftest.defines
24535 rm -f conftest.defines conftest.
tail
24537 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24538 cat >>$CONFIG_STATUS <<\_ACEOF
24539 if test x
"$ac_file" != x-
; then
24540 echo "/* $configure_input */" >"$tmp/config.h"
24541 cat "$ac_result" >>"$tmp/config.h"
24542 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24544 echo "$as_me: $ac_file is unchanged" >&6;}
24547 mv "$tmp/config.h" $ac_file
24550 echo "/* $configure_input */"
24556 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24557 echo "$as_me: executing $ac_file commands" >&6;}
24562 case $ac_file$ac_mode in
24565 ### Make the necessary directories, if they don't exist.
24566 for dir
in etc lisp
; do
24567 test -d ${dir} || mkdir
${dir}
24570 # Build src/Makefile from ${srcdir}/src/Makefile.c
24571 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24572 # This must be done after src/config.h is built, since we rely on that file.
24574 # Now get this: Some word that is part of the ${srcdir} directory name
24575 # or the ${configuration} value might, just might, happen to be an
24576 # identifier like `sun4' or `i386' or something, and be predefined by
24577 # the C preprocessor to some helpful value like 1, or maybe the empty
24578 # string. Needless to say consequent macro substitutions are less
24579 # than conducive to the makefile finding the correct directory.
24580 undefs
="`echo $top_srcdir $configuration $canonical |
24581 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24582 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24585 echo creating src
/epaths.h
24586 ${MAKE-make} epaths-force
24588 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24589 # `..' to `. .' unless invoked with -traditional
24591 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24592 CPPFLAGS
="$CPPFLAGS -traditional"
24595 echo creating lib-src
/Makefile
24597 rm -f junk.c junk1.c junk2.c
24598 sed -e '/start of cpp stuff/q' \
24599 < Makefile.c
> junk1.c
24600 sed -e '1,/start of cpp stuff/d'\
24601 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24602 < Makefile.c
> junk.c
24603 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24604 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24605 cat junk1.c junk2.c
> Makefile.new
24606 rm -f junk.c junk1.c junk2.c
24607 chmod 444 Makefile.new
24608 mv -f Makefile.new Makefile
24611 echo creating src
/Makefile
24613 rm -f junk.c junk1.c junk2.c
24614 sed -e '/start of cpp stuff/q' \
24615 < Makefile.c
> junk1.c
24616 sed -e '1,/start of cpp stuff/d'\
24617 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24618 < Makefile.c
> junk.c
24619 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24620 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24621 cat junk1.c junk2.c
> Makefile.new
24622 rm -f junk.c junk1.c junk2.c
24623 chmod 444 Makefile.new
24624 mv -f Makefile.new Makefile
24627 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24628 echo creating src
/.gdbinit
24629 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24632 # This is how we know whether to re-run configure in certain cases.
24633 touch src
/config.stamp
24641 { (exit 0); exit 0; }
24643 chmod +x
$CONFIG_STATUS
24644 ac_clean_files
=$ac_clean_files_save
24647 # configure is writing to config.log, and then calls config.status.
24648 # config.status does its own redirection, appending to config.log.
24649 # Unfortunately, on DOS this fails, as config.log is still kept open
24650 # by configure, so config.status won't be able to write to it; its
24651 # output is simply discarded. So we exec the FD to /dev/null,
24652 # effectively closing config.log, so it can be properly (re)opened and
24653 # appended to by config.status. When coming back to configure, we
24654 # need to make the FD available again.
24655 if test "$no_create" != yes; then
24657 ac_config_status_args
=
24658 test "$silent" = yes &&
24659 ac_config_status_args
="$ac_config_status_args --quiet"
24661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24664 # would make configure fail if this is the last instruction.
24665 $ac_cs_success ||
{ (exit 1); exit 1; }